Application Development 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: 

Find symbol in string

Former Member
0 Kudos

HI all

assume i have number 300.000.000,00 type p length 2 like

and i want to know what is the symbol of the dec places

in these case its ','

or in diffrent case 300,000,000.00 here the symbol of the dec

is '.'

Regards

Alex

Moderator message: basic ABAP programming, please search for available information/documentation before asking.

Edited by: Thomas Zloch on Dec 7, 2010 3:41 PM

3 REPLIES 3

Former Member
0 Kudos

Hello,

In the number (for eg. 300.000.000,00 or 300,000,000.00) the symbols '.' or ',' (dot or comma) represents the different decimal notations.

The SAP user can change this format using the transaction code SU01 (User Maintenance). For more information navigate to Default TAB in the Transaction SU01D(User Display transaction) displays the user Profile.

Hope this helps you!

Regards,

M M Jaffer.

kesavadas_thekkillath
Active Contributor
0 Kudos

You can get it directly from table USR01 for the particular user, field decimal notation

Former Member
0 Kudos

Try the logic below

DATA:VAR(20) ,
      pack type p value 300000000,
     TEST(1).



write: pack to var.

Condense var.

TEST = VAR+3(1).

IF test eq '.'.

  write 'This is a dot'.
ENDIF.