cancel
Showing results for 
Search instead for 
Did you mean: 

Amount Display in SAP Script

Former Member
0 Kudos

Hi ,

I need to display an amount in SAP Script , it is currently displayed as 11,33 , but i want to display it as 11.33 .

I used the command SET COUNTRY also , but it does not seem to help.

Kindly suggest what can the method to acheive it .

Regards

Arun

Accepted Solutions (1)

Accepted Solutions (1)

aidan_black
Active Contributor
0 Kudos

Hi,

For the decimal point or comma, this can be fixed via set country configuration transaction code 'OY01'. SAPSCRIPT will print the output based on country code rather user profile.

Please check the following SAP Notes to change the predefined decimal format during the output.:

6030 - Wrong decimal character

32105 - SAPscript print: Incorrect decimal/date format

Or perhaps you can use the ABAP SET COUNTRY to set to the desired format at the start of the document window (MAIN) as described in Note #32105.

Regards,

Aidan

Former Member
0 Kudos

Hi ,

I found the reason why SET COUNTRY was not working , the command refers to the setting in the table T005X , and in my case the value for India was not set correctly .

Thank's a lot a for your responses.

Regards

Arun

Former Member
0 Kudos

Hi,

Check u r user settings.

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

follow the solution of Bhupal and close the thread.

Gr., Frank

Former Member
0 Kudos

Hi,

You can set this in user profile.

Go SYSTEM>userprofile--->owndata

In defaults tab, under Decimal Notation you can set according to your output.

Regards,

Bhupal.

Former Member
0 Kudos

Hi Arun,

In perform try this code.

CONSTANTS : c_comma TYPE c VALUE ',', "for comma

c_dot TYPE c VALUE '.', "for dot

DO.

FIND c_comma IN in_tab-value. "your value

IF sy-subrc IS INITIAL.

REPLACE c_comma WITH c_dot INTO in_tab-value.

ELSE.

EXIT.

ENDIF.

ENDDO.

and this value send throw OUT_TAB value.

Regards,

Manju