on 11-17-2008 11:30 AM
Hi All,
i need a query.
Can you please provide the solution.
if we have to check the condition like
IF NAST-VSTAT = 0 AND
( IF EKKO-BSART = 'NB' OR IF &EKKO-BSART& = 'FO' ).
-
Do this.
else.
-
do this.
endif.
How we will write in sap script.
Thank u.
In SAP Script
/: IF NAST-VSTAT = 0 AND
/: ( IF EKKO-BSART = 'NB' OR IF &EKKO-BSART& = 'FO' ).
AB -
Do this.
/: else.
AH -
do this.
/: endif.
AB and AH are paragaraph formats...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you cannot break one statement into more lines in SAPScript, so the solutions provided by others won't work.
I think there are two options:
1. Check if one line is long enough for the IF.. condition (there are options Left/Right to double the line length)
2. If the above still does not help you have to break your statement into several IFs:
/: IF NAST-VSTAT = 0.
/: IF IF EKKO-BSART = 'NB' OR IF &EKKO-BSART& = 'FO' .
AB -
Do this #1.
/: else.
AH -
do this #2.
/: endif.
AH -
do this #2.
/: endif.
bad thing is that the do this #2 has to be duplicated
sol
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In SAP Script
/: IF &NAST-VSTAT& = 0 AND
/: ( &EKKO-BSART& = 'NB' OR &EKKO-BSART& = 'FO' ).
AB -
Do this.
/: else.
AH -
do this.
/: endif.
AB and AH are paragaraph formats...
try this once other wise use flags to make it simple ok.. all the best.
ur's
GSANA
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.