Skip to Content
0
Former Member
Apr 09, 2008 at 06:11 AM

Sapscript If Cond

25 Views

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