Joined: 31 Oct 2007 Posts: 24 Location: 4.7, ECC 6.0
Posted: Tue Jan 29, 2008 12:26 am Post subject:
Приведение типа лучше делать при выводе, например, если в ексель, там можно настроить маску. Но если на абапе, то можно сделать так:
Code:
SHIFT string RIGHT DELETING TRAILING '0'.
SHIFT string RIGHT DELETING TRAILING '.'.
Например
Code:
DATA: v1(6) TYPE c VALUE '100.000',
v2(6) TYPE c VALUE '100.200'.
SHIFT v1 RIGHT DELETING TRAILING '0'.
SHIFT v1 RIGHT DELETING TRAILING '.'.
SHIFT v2 RIGHT DELETING TRAILING '0'.
SHIFT v2 RIGHT DELETING TRAILING '.'.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.