Skip to Content
avatar image
Former Member

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 20, 2007 at 09:14 AM

    You could use the command : CATCH .. ENDCATCH.

    to encapsulate your move with catch / endcatch.

    you check the exception CONVT_NO_NUMBER, if SY-SUBRC ne then ... you know the number is not number for SAP regarding user configuration.


    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 20, 2007 at 09:20 AM


    I am not sure what is the input/field type user give, but you can goto USR01 and get the decimal notation DCPFM based on the user name (sy-uname) and compare the values whihc comes in.



    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi bahu raj how to comapre thats thats what i m confused i wil get the vlue from USR21 either blank , x, or y but what about the value enetred by the user how to check the cnotation for that.

      thanks ,