Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Grouping the logical expressions in IF condition is not working

Hi Experts,

My requirement is to group the logical expressions in IF condition like the below

I tried it like

IF ( &NAST-KSCHL& = 'ZBE0' OR &NAST-KSCHL& = 'ZBEC' ) AND ( &VBDKR-SPRAS& <> 'F' )

code...

ELSEIF

Code....

ELSE

code...

ENDIF

But the system is showing the grouping in the IF condition is wrong. The problem is i am not supposed to break that AND condition and put it as another IF inside the first IF condition.

Pls provide your valuable inputs.

Thanks,

Srinivas

Former Member
Not what you were looking for? View more on this topic or Ask a question