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

Decimal point

former_member626380
Participant
0 Likes
2,630

hi

if output field = 22222.22

How to make ouput like 22,222.22

I declared field type p decimal 2 not true

And used type BSIK-WRBTR

BUT not true too

How to make result 22,222.22

3 REPLIES 3
Read only

michael_piesche
Active Contributor
2,083

It seems like your output is the internal representation of a number with fixed length and decimals (only decimal point, no thousands separator for digit grouping). So no Output Conversion has taken place for your 'output'. What coding/technique are you using to output the data?

Please provide coding or screenshots:

  1. Defintion of variable
  2. Setting value of variable
  3. Using variable for output
  4. What/where is the output?
    a) Selection-Screen of Report
    b) Selection-Screen Output of Report with WRITE commands
    c) Dynpro Screen
    d) Messages/Logging for Jobs in SM37 or Logs in SLG1
    e) Export to file e.g. Excel
    f) others?

Be also aware, that depending on the DDIC data element or the ABAP internal type, that the format of the displayed numbers is in general dependent on your default user settings (System->User Profile->Own Data->Defaults->Decimal Notation):

  • [ ] 1.234.567,89
  • [X] 1,234,567.89
  • [Y] 1 234 567,89

For DDIC domains that are assigned to the data elements, there can also be a CONVERSION-EXIT defined, that also changes how the output is presented, and this can be different for different SAP Releases:

  • in Rel. 753 WRBTR has the Domain AFLE13D2O16N_TO_23D2O30N with the Conversion-Exit AU132
    Data Type CURR with 23 characters including 2 decimal places and the output lenght is 30 characters (for digit grouping)
  • in Rel. 740 WRBTR has the Domain WERT7 with no Conversion-Exit (so only default user settings apply)
    Data Type CURR with 13 characters including 2 decimal places and the output lenght is 16 characters (for digit grouping)
Read only

foessleitner
SAP Champion
SAP Champion
2,083

Hi,

I would like to add that you also can use String Expressions to change the output of fieldvalues - of course also for decimals fields.

Check: String Embedded Expressions: DECIMALS and NUMBER.

Kind Regards, Johann

Read only

michael_piesche
Active Contributor
0 Likes
2,083

alaa-azazy, please follow up on your open question.

  • comment answers or your question if there are still open issues.
  • otherwise mark an answer as accepted if it helped you solve your problem
  • or post an answer of yourself and accept it if you found another useful solution yourself
  • or redirect your question to another question that is related and was useful to solve your problem
  • in the end, close your question