2012 Mar 29 7:53 AM
Hi Expert,
In my selection screen input field is currency. If i will enter currency USD then the amount = 1,212,981.0 in us format (,).
If i will enter currency EUR then the amount = 1.212.981,00 in Europe format (.).
User can enter any value in the currency field in selection based.
Inside the program i am using alv and the value is present in internal table.
In alv output i am expecting to display in currency format they have entered in screen.
Please help me out on this issue.
Thanks and Regards
Abdul
Moderator message: this is well documented, please search for available information.
Message was edited by: Thomas Zloch
Hi Expert,
In my selection screen input field is currency. If i will enter currency USD then the amount = 1,212,981.0 in us format (,).
If i will enter currency EUR then the amount = 1.212.981,00 in Europe format (.).
User can enter any value in the currency field in selection based.
Inside the program i am using alv and the value is present in internal table.
In alv output i am expecting to display in currency format they have entered in screen.
Please help me out on this issue.
Thanks and Regards
Abdul
Moderator message: this is well documented, please search for available information.
Message was edited by: Thomas Zloch
2012 Mar 29 8:04 AM
Use this FM, it will help you.
it_amount-tcur = wa_header-waers.
it_amount-t_amount = wa_header-wrbtr.
CALL FUNCTION 'BKK_AMOUNT_CONV_TO_INTERN_MAIN'
EXPORTING
i_amount = it_amount
IMPORTING
e_amount = et_amount
EXCEPTIONS
amounts_not_valid = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
****First convert
WRITE et_amount-t_amount TO l_amount1.
2012 Mar 29 8:26 AM
Hi ,
Abdul You can pass the input currency type to field catalog (currency) for the amount field, it 'll fullfill your requirement.
Regards,
Mitul.
2012 Mar 29 8:27 AM
Use this link for details.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/ff/4649b1f17411d2b486006094192fe3/content.htm