Error "AND, OR or end of condition expected" in sap script IF statement

Hi all,
/:   IF  &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000'
=    OR &WA_BSEG_IN-BUKRS& EQ '4000' OR  &WA_BSEG_IN-BUKRS& EQ '5000'
/:   CASE  &WA_BSEG_IN-BLART&
/:   WHEN 'DZ'
/:   IF  &SAVE_EVENT& EQ u2018ZPR01u2019 OR &SAVE_EVENT& EQ u2018ZPR06u2019
D1   <C4>Cheque Number/Bank Reference,,Payment Method,,Amount,,Cur,,</>
/:   ENDIF
/:   WHEN OTHERS
D1   <C4>Payment Method,,Cheque Number/Bank Reference,,Amount,,Cur,,</>
/:   ENDCASE
/:   ENDIF
I am getting below error in the the if statement (5th line) in sap script.
Error is "AND, OR or end of condition expected".
What is error in the 5th line?
Thanks in advance

Hi,
In sap script, always give conditon in a sinlge line. Dont break the condition into many lines.
/: IF &WA_BSEG_IN-BUKRS& EQ '1000' OR &WA_BSEG_IN-BUKRS& EQ'2000' OR &WA_BSEG_IN-BUKRS& EQ '4000'
Thanks.

Similar Messages

Maybe you are looking for

  • Lumia update in Lumia 1520 Claro Uruguay

    Hi I have a Lumia 1520, operator Claro, country Uruguay. Still in Black update. My phone is no longer listed in: http://www.microsoft.com/en/mobile/support/software-update/wp8-software-update/availability-in-latin... Sometime ago (before Denim update

  • How to delete unwanted road direction in ovi maps ...

    if i already saved my previous road direction in drive mode , but i cannot delete it , no delete function found, it is annoying...how u guys to remove it ? for landmark ,i know i can delete inside location icon..but this road direction no...really No

  • Problem with JCA program

    Hello all, Im trying to modify the JCA program from SAP to get details from SALESORDER_GETLIST BAPI. But im getting some errors. Please help me out. In the next two consecutive replies im posting the java code and the jsp code. thnx Steve

  • Task name is shown different on vSphere web client 6.0 and vsphere client 6.0

    I have created a task on vCenter 6.0. Task name as is shown different on vSphere web client 6.0 and vSphere client 6.0. Task name is shown correctly on vSphere client 6.0. But on vSphere web client 6.0 there is additional '.label' attached at end of

  • I updates to mountain lion, but NO MIRRORING, NO POWER NAP, NO TWITTER INTEGRATION !

    Updates my lion to Mountain lion... but the mirroring feature, power nap and twiter integration is not available... Please advice .. thanks in advance...