on 04-09-2008 7:11 AM
Hi all,
I am geting a problem in Sapscript IF condition.
My current Scenario like this...
If Tax code of Line item equal to W1 or W2 or W3 and Billing document equal to ZGG2 or ZGRE or ZEFV or ZEF2 or G2 or ZB2C and Ship-to-Party Country equal to CH then display footer Z_ADRS_EDG_CH.
i develop my code like this way...
/:IF &V_MWSKZ& EQ 'W1' OR &V_MWSKZ& EQ 'W2' OR &V_MWSKZ& EQ 'W3'
/:IF &VBDKR-FKART& EQ 'ZGG2' OR &VBDKR-FKART& EQ 'ZGRE' OR &VBDKR-FKART& EQ 'ZEFV' OR &VBDKR-FKART& EQ 'ZEF2' OR &VBDKR-FKART& EQ 'G2' OR &VBDKR-FKART& EQ 'ZB2C'
/:IF &VBDKR-LAND1_WE& = 'CH'
/:INCLUDE Z_ADRS_EDG_CH OBJECT TEXT ID ADRS LANGUAGE DE
/:ENDIF
/:ENDIF
/: ENDIF
But the current problem is that i wants to put all the billing condition in a single line , but is not taking ...
i used '=' but is print that line in output....Please suggest
Hi,
Press SHIFT+F8
After /:IF &VBDKR-FKART& EQ 'ZGG2' OR &VBDKR-FKART& EQ 'ZGRE' OR &VBDKR-FKART& EQ 'ZEFV' OR &VBDKR-FKART& EQ 'ZEF2'
regards
Sandipan
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 your statement needs be put in oneline.
For this you write how much statement is fit in the line till visible and After end of the line place the cursor and press shift+F8.
2.write remainig conditions and come back .Then it will fit in one line.
3.Don't use =,use EQ.
Eg:/:IF &VBDKR-FKART& EQ 'ZGG2' OR &VBDKR-FKART& EQ 'ZGRE' OR &VBDKR-FKART& EQ 'ZEFV' OR &VBDKR-FKART& EQ 'ZEF2' OR &VBDKR-FKART& EQ 'G2' OR &VBDKR-FKART& EQ 'ZB2C'
Regards,
If helpful reward with points(Don't forget).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Moni
I think you must not have tried this one.
When you reach the end of line in the Sap script editor press 'shift+F8' it will take you to the continum of the line..
Hope..it will work....
Reward if useful
Cheers
Anup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
After you reach the end of the line press shift+F8 and the line will be extended.
Or else just call a subroutine and so all your condition checks there and then pass a flag back. This will be much easier.
Regards,
Narendra.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.