Skip to Content

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

IF Stmt - Syntax Error

Hi,

Can you please tell me how to write the follwing stmt. It is giving syntax error.

IF VBAK-ERNAM = 'BATCHUSER'

OR VBAK-ERNAM = 'REDDYV'

NO_ORDER1 = NO_ORDER1 + 1.

ELSE.

NO_ORDER2 = NO_ORDER2 + 1.

ENDIF.

Thanks

Veni.

Tags:
replied

IF VBAK-ERNAM = 'BATCHUSER'

OR VBAK-ERNAM = 'REDDYV'<b>.</b>

NO_ORDER1 = NO_ORDER1 + 1.

ELSE.

NO_ORDER2 = NO_ORDER2 + 1.

ENDIF.

And VBAK defined in TABLES statment.

0 View this answer in context

Helpful Answer

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