Académique Documents
Professionnel Documents
Culture Documents
156 0 1 2
Below mentioned function module converts the data to two decimal before saving to table
*w_tgt -> Holds the amount to be converted ,i.e the value entered by *the End user
*w_curr -> The currency field entered by the User for amount w_tgt
Sample Output:
***********************************************************
* The Curr field, which is the displayed Can be two or four decimals as per the requirement
*w_tgt -> Holds the amount to be converted ,i.e the value entered by *the End user
*w_curr -> The currency field entered by the User for amount w_tgt
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
w_source=w_tgt.
Thanks
Read Here at SAP ABAP Forum to Get Answers for More Questions Like Aforementioned.