Skip to Content
author's profile photo Former Member
Former Member

How to understand variable contains a ABCDE....any of characters

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:56 AM

    if var1 CA 'ABCDE'.

    ENDIF.

    or if you want to check from A to Z....

    use the FM NUMERIC_CHECK...

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 09:57 AM

    Hi,

    constants:c_char(26) type c value 'ABCDE.....'.

    If var CA c_char.

    Endif.

    Cheers,

    Bujji.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:00 AM

    hi

    diclare a variable like syst-abcde(v_abcde).

    then check this with your variable

    if va ca v_abcde..

    Reward if it is ok.

    Thanks

    Siva Kumar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 10:01 AM

    hi,

    try like this to find any of the characteter is present in u r variable

    IF VAR CA SY-ABCD.

    */ U R CREQUIREMNT

    ENDIF

    DONT FORGET TO REWARD IF HELPFUL

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.