on 02-16-2007 4:17 PM
Hi,
I have the problem that sapscript ignores the IF/Else-Statement.
Example:
/: IF &flag& = 'X'
/: DEFINE &var& = 'YES'
/: ENDIF
&var&
When I start the form in debug-mode I can see the '/:' at IF/ENDIF. Then, it is replaced by a '/(' and the Command is interpretetd as an Output-Text. The DEFINE is ok! I see the '/:'.
What's wrong? Or is it only possible to have Text-Output between IF/ENDIF?
Thx.
Message was edited by:
Thomas Kper
Hi,
Define &Var& before the if condition. Not in IF condition. Check out this one.
/: DEFINE &var& = 'YES'.
/: IF &flag& = 'X'
&var&
/: ENDIF
Br,
Laxmi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes,
between IF and ENDIF you will only output text lines. If you want to have similar program logic working, then
- do this in the print program
or if the print program is a SAP standard then
- PERFORM (calling ABAP subroutines)
How to use the PERFORM in SAPscript, please see the help information on SAP help portal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.