Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Wild card characters

hi frnds ,

I want to use wild card character for decimal point numbers for following combinations

1 ) 123,45,56.89 many commas and one period

2) 123.45.56, 78 many periods and one comma.

3). 123 45 89.89 many spaces but one period

these are nothg but out user setting combinations for decimal notation . I need to compare the type of the number entered by the user with the user settings and if not matches then though an error hence i need to compare the number entered with these notations.

please provide me the wild card combination for these three.

<b>rewards will be given to the helpful answer</b>

thanks khushy

Former Member

My code is not working as I have immagined.

It check only if the amount is like SAP would like (means '.' as decimal indicator). Maybe you could use it ..

PARAMETERS : p_toto(20).

DATA : w_amount(13) TYPE p DECIMALS 2.

CATCH SYSTEM-EXCEPTIONS convt_no_number = 1
                        OTHERS          = 2.
  MOVE p_toto TO w_amount.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question