11-07-2014 5:22 AM
Hi Techies,
i have to requirement where i need to convert amount using : CUURENCY_SAP_BAPI .
Explained everything in the image .
11-07-2014 5:52 AM
It's not deleting because they are not "trailing zeros". If you need only 2 decimals try:
WRITE tram_amt TO lv_string DECIMALS 2 LEFT-JUSTIFIED.
And define lv_string as char20, not as STRING.
Regards,
Custodio
11-07-2014 5:52 AM
It's not deleting because they are not "trailing zeros". If you need only 2 decimals try:
WRITE tram_amt TO lv_string DECIMALS 2 LEFT-JUSTIFIED.
And define lv_string as char20, not as STRING.
Regards,
Custodio
11-07-2014 7:13 AM
11-07-2014 6:17 AM
hi ajay,
Instead of shift deleting define the variable as below and pass the value in it.
DATA: lv_string TYPE char10 VALUE '251.2500',
lv_str TYPE p DECIMALS 2.
lv_str = lv_string.