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

Condition failing though value is correct in SCRIPT

Hi

Iam using script and in debuging &REGUH& value is '4210' but condition is faling and not executing include.

/: IF &REGUH-ZBUKR& = '4110' OR

/: &REGUH-ZBUKR& = '4330' OR

/: &REGUH-ZBUKR& = '4310' OR

/: &REGUH-ZBUKR& = '4360' OR

/: &REGUH-ZBUKR& = '4210' OR

/: &REGUH-ZBUKR& = '4220' OR

/: &REGUH-ZBUKR& = '4240' OR

/: &REGUH-ZBUKR& = '4270'

/: INCLUDE ZADRS_REMITT_EMEA OBJECT TEXT ID ST LANGUAGE EN

/: ENDIF.

Please let me know what is bug in the above code

Thanks

Krishna

Edited by: Krishnama Raju Samunuri on Sep 8, 2009 2:39 PM

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Sep 08, 2009 at 12:42 PM

    HI,

    Try putting a full stop after &REGUH-ZBUKR& = '4270'

    regards,

    Ankur Parab

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 08, 2009 at 12:44 PM

    check whether '4210' is a character type field.

    or try the same in your program

    IF REGUH-ZBUKR& = '4110' OR

    REGUH-ZBUKR& = '4330' OR

    REGUH-ZBUKR& = '4310' OR

    REGUH-ZBUKR& = '4360' OR

    REGUH-ZBUKR& = '4210' OR

    REGUH-ZBUKR& = '4220' OR

    REGUH-ZBUKR& = '4240' OR

    REGUH-ZBUKR& = '4270'.

    flag = 'X'.

    else.

    clear flag.

    endif.

    the in your script check the value of flag

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 12:45 PM

    I think some space problem may be there.

    so pls change the code like this

    &REGUH-ZBUKR(C)& = '4210' OR

    for each and every condition add (C) .

    It may work.

    Regards

    Shiba Prasad Dutta

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 08, 2009 at 04:09 PM

    I have solved my self.

    I have separely written statements with if endif..if endif ..if endif..if endif

    like that.

    thanks for all

    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.