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
-
How to print a window (ex:total)only after end of main window in SAP Script
How to print a window(ex: total) only after end of main window in SAP Script
Thank you.Create a total window and place it after your main window, get the number of lines in your main window and place counter
Ex,&SAPSCRIPT-COUNTER_1(+)&,
IF SAPSCRIPT-COUNTER_1& EQ <number of lines in main window>
**print total
ENDIF.
Regards,
Sairam -
Hi,
I have written a condition in the text elements like below.
IF &EKPO-NETWR& GT '300'
Print some text.
ELSE
Print other text.
ENDIF
But its not working.If i put EQ or NE,its working fine.But if i put GT,GE,LT,LE or >,< ,its not working.
Suggest if there is any other symbol to be used in SAP Sccript for GT,GE.
Thanks,
Aparna.Hi all,
Me to Facing the same problem while using IF condition in the SAP Script for the following code.
IF &ITAB-TCS& GT 0
&SY-ULINE(65)&,,,,,,Tax Collected at Source,,&ITAB-TCS&
,,,,,,&SY-ULINE(65)&
ELSEIF &ITAB-TCS& EQ &0&
&SY-ULINE(65)&
ENDIF
i tried with all the optons mentioned,but no luck.
try to give some resolution for this.
Regards,
Sathya -
How to end text element in sap script
how to end an text element in sap script
this is the format.
/E text element name
&tablename-fieldname&
text-text-text-text
now if i do not end that text element it is not displayiny my below text , so what to do in this caseGo through the links mentioned below.
http://www.****************/Tutorials/Smartforms/SFMain.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
http://www.sapmaterial.com/smartform_example.html
Re: Hands on SAP Smart Forms
smartforms
Reward points if useful. -
Dear Support Team,
Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
ThanksIt is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.
-
There was some updayts for my iPad 4 automatically downloaded. After installing it, the iPad began to restart itself every few minutes.
I tryed to update my iPad using iTunes. After connecting to MacBook Pro, where is installed all latest software, iPad is recognised as "iPad", Serial Number: n/a. iTunes run recovery mode, trying to restore iPad firmware, and in the end unknown error occured (3). Tried many times, not results. And now iPad stays only in recovery mode, can't switch it off. How can I solve this problem please?When I restart my iPad the connect to iTunes comes up and stays on until it shuts down again, I have read a report from Apple support suggesting I reinstall iTunes so I might try that again and also your suggestion which i shall also try, but thanks again - rg1547
-
hi desperately need help. my iphone 3gs is stuck in recovery mode... when i try and do the restore via itunes it goes through the motions but when it gets to the end it tells me there was an error and it couldnt be restored... originally it was an ex contract phone that i had opened to orange from vodafone.. it was fine until i tried to do the ios 6 update
There is a way to get it recovered from the so called DFU mode. Try to restart the phone while holding the home and power button at the same time. Then try to connect it to iTunes and do the same again. If you try that again till it works you should be able to use your iPhone as before.
-
hello i have a trouble with my i phone... i was trying to update a new software and at the end it says that there is some error and i cannot turn my i phone bak on all it shows is itunes logo in the midlle and usb cable with an arrow pointing at the logo. If anyone knows what it is and what i should do please get back to me as soon as possible many thanks.
http://support.apple.com/kb/HT1808
-
I am trying to download the update IOS 5 version for mi ipad 2 and at the end when it finishes downloading it shows an error "connection has been interrupted and that the task could not be completed", my internet service is fine, what can it be?
The 2nd generation can not be upgraded beyond 4.2.1.
-
Getting error: Before viewing PDF documents in this browser you must launch Adobe Reader and accept the End User License Agreement, then Quit and relaunch the browser. I just purchased and installed Adobe acrobat pro for the Mac today.
Hi Tbeirne,
If you just want to save a pdf opened in Safari to your machine use the save as option from within the Reader plugin window. Just click on any of the buttons highlighted in below screenshots to Save a pdf at any location on your machine.
or
To summarize the issue, if you had opened an Internet PDF in a browser plug-in, you must use the save feature in the plug-in, not the Safari File > PDF Export, or File > Save As...
Please let us know if this solution works for you and you are able to save and view PDFs files locally.
Regards,
Shashi -
When restoring my backup from my old iphone via my computer to my new iphone, it gets all the way through the restore and then at the end it says there was an error and doesn't restore. Doesn't say what error.
Make sure you have the Latest Version of iTunes (v11) Installed on your computer
iTunes free download from www.itunes.com/download
Also... See Here > Configure security software -
I go through the process of burning a DVD from a Premier Pro Project and at the end of the process I get an encoding error and the dvd does not start burning. How do I fix this?
adam@honestmusky wrote:
Yes I am using encore. I used to have no problem doing this, but I had to get a new computer and now something isn't working right.
How about some DETAILS?
-Premiere Pro Video Editing Information FAQ http://forums.adobe.com/message/4200840
Also describe the EXACT steps you take to go from Premiere Pro to Encore -
I upgrade the iso 5 on iPhone 4 and when it ended a error message appear what do i do
I upgrade the iso 5 on iPhone 4 and when it ended a error message appear what do i do
A quick search of the forums or google would have revealed the answer without the need to post a vague question.
Temporarily disable any Anti-Virus and Firewall software on the computer. -
When synching my iphone to my itunes, I get an error message at the end with code 1150. What is this error code and what does it mean?
try uninstalling and reinstalling itunes on your computer. here is a link for that http://support.apple.com/kb/HT1925
-
he download was completed the laptop was extracting the software and at the end of the loading line it writes an unknown error occurred (3194) please help me thank you
3194 = https://discussions.apple.com/message/18851577#18851577
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
-
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
-
Updates my lion to Mountain lion... but the mirroring feature, power nap and twiter integration is not available... Please advice .. thanks in advance...