Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

amount will be displayed based on currency

Former Member
0 Likes
1,786

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,525

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.

Read only

Former Member
0 Likes
1,525

Hi ,

Abdul  You can pass the input currency type to field catalog (currency) for the amount field, it 'll fullfill your requirement.

Regards,

Mitul.

Read only