2009 Feb 25 9:35 AM
What is the correct syntax for something like follows
IF &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' AND &VBRP-FKIMG& = '0'The item category could be G2W or L2W and Billed Qty = 0
2009 Feb 25 9:43 AM
Hello,
IF &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' AND &VBRP-FKIMG& = '0'
check below.
try with this
IF ( &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' ) AND &VBRP-FKIMG& = '0'.
added brakets for that OR condition
please let me know is this correct ot not
Thank u,
santhosh
What is the correct syntax for something like follows
IF &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' AND &VBRP-FKIMG& = '0'The item category could be G2W or L2W and Billed Qty = 0
2009 Feb 25 9:43 AM
Hello,
IF &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' AND &VBRP-FKIMG& = '0'
check below.
try with this
IF ( &VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W' ) AND &VBRP-FKIMG& = '0'.
added brakets for that OR condition
please let me know is this correct ot not
Thank u,
santhosh
2009 Feb 25 10:19 AM
IF &VBRP-FKIMG& = ' 0' AND (&VBRP-PSTYV& = 'G2W' OR &VBRP-PSTYV& = 'L2W')Is there something wrong with that piece of code. It is acting funny.
2009 Feb 25 10:24 AM
Hi
The SAPSCRIPT sees the value of a variable using the output format, so that explains as u need to insert
IF &VBRP-FKIMG& = ' 0'instead of
IF &VBRP-FKIMG& = '0'Max
2009 Feb 25 10:37 AM
I finally decide to move the entire logic to the driver program itself. Having multiple conditions does not seem to work in Sapscripts for some reason. A single IF seems to work fine but ANDs ORs seem to behave strangely every now and then. Not sure why.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |