cancel
Showing results for 
Search instead for 
Did you mean: 

Changes SAP SCRIPT

arsul_parshuram
Participant
0 Kudos

Dear All,

i have write subrutine program as per requirement it is working fine.

Now my problem is when i am passing variable value by using IF conditions it is not work there is 6 if conditions

this is my script code.

/: IF &V_BSART& EQ 'PA' OR &V_BSART& EQ 'PC' OR

/= &V_BSART& EQ 'PE' OR &V_BSART& EQ 'PF' OR

/= &V_BSART& EQ 'PD'

/: ELSEIF &V_EKORG& EQ '1501' OR

/= &V_EKORG& EQ '1504' OR &V_EKORG& EQ '150'

/: ELSEIF &V_WERKS& EQ '1511'

/= OR &V_WERKS& EQ '1541' OR &V_WERKS& '1531'

/= OR &V_WERKS& '1512'

above code is not working proper.

Please help on this.

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

Use '=' instead of '/='.

Regards,

Kiran

former_member777515
Participant
0 Kudos

You can use Page Left/Right (Shift+F8) to allow more codes to be entered in a single line as well.

naresh_bammidi
Contributor
0 Kudos

HI ,

Change the command '/=' to '='.Then this code will work fine.

With regards

Naresh Bammidi

kesavadas_thekkillath
Active Contributor
0 Kudos

/=

This will not be recognized in case of commands.

Check like


/: IF &V_BSART& EQ 'PA' OR &V_BSART& EQ 'PC' OR
= &V_BSART& EQ 'PE' OR &V_BSART& EQ 'PF' OR
= &V_BSART& EQ 'PD'
/: ELSEIF &V_EKORG& EQ '1501' OR
= &V_EKORG& EQ '1504' OR &V_EKORG& EQ '150'
/: ELSEIF &V_WERKS& EQ '1511'
= OR &V_WERKS& EQ '1541' OR &V_WERKS& '1531'
= OR &V_WERKS& '1512'