on 07-17-2007 10:57 AM
I'm probably making a really simple mistake, but I've got the following code in a SAPscript window:
/: IF ®UD-WRBTR& GT 0
* DR
/: ELSE
* CR
/: ENDIF
I've debugged through the print program and REGUD-WRBTR is 1175.00 but it still prints CR.
Any ideas?
Gill
Hi GIll,
It is very strange why my previous code did not work anyhow? Try this,
I hope this time it will definitely works.
Call subroutine from your SAPSCRIPT changing FLAG.
In program, do the checking and if REGUD-WRBTR > 0. set flag to 'Y'
Come back to SAPscript, If FLAG = 'Y' print DR else CR.
Reward points to all useful answers.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
SAPScript is tricky, you might try out out the following combinations:
/: IF ®UD-WRBTR& GT '0'
/: IF ®UD-WRBTR& GT 0.00
/: IF ®UD-WRBTR& GT '0.00'
One of them has to work.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try this it will definitely work.
<b>
/: IF ®UD-WRBTR& GT 0
DR
/: ENDIF
/: IF ®UD-WRBTR& LT 0
CR
/: ENDIF</b>
Reward points if useful.
Regards,
SaiRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
Is your SAPScript activated?
You can debug your SAPScript also, maybe a previous IF is excluding your code...
Just go to SE71, Tools - Set debugger.
Regards
Tamá
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
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.