on 12-03-2008 11:34 AM
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.
hey guyz...wot is the solution? please help me.... am facing same issue.
Thanks & Regards
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not solved the problem
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aparna,
Hope you figure out what went wrong.
It happened to me as well. But did figure out eventually.
I suggest that you put a dummy text in your condition just to see if the system execute the logic as previously suggested.
Verify the language that you are testing and modifying.
Kind Regards,
Lino
you don hv to specify quotes for numeric data....
try removing the quotes.....n check...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aparna,
try using
IF &EKPO-NETWR& GT 300, without the quotes. I think it will work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi aparna,
in my script i have used a condition like :
if structure name-fieldname>0
print some text
else
print other text
it is working fine for me so i don't think the problem is > or < sign . There must some problem in your condition. so debug your script and see what value is coming in EKPO-NETWR .
regards
Saurabh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I think, that the fault has to do with the processing of program symbols. The comparison is always performed on literal values, that is, the symbols are formatted as character strings before they are compared.
You can find more information in sap online documentation, http://help.sap.com/saphelp_nw70/helpdata/en/d1/80318f454211d189710000e8322d00/frameset.htm
kind regards, Fößleitner Johann
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.