Skip to Content

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

How to use IF ELSE statement in Script

Hi,

I am trying to write a If condition in script as below

/: IF &QALS-ANZGEB& = 1

S1 Sample Size,,1

/: ELSEIF &QALS-ANZGEB& > 1 AND &QALS-ANZGEB& <= 15

S1 Sample Size,,2

/:ELSE

S1 Sample size,,3

ENDIF

But only the statement after ELSE is executed ..Can you please tell me whats the error in the above.

I tired using '1' but still sample size 3 is printed.

Former Member
Former Member replied

Hi,

Here below is very useful link related to writing a perform routine.

[http://wiki.sdn.sap.com/wiki/display/Snippets/Callingasub-routineinSAP+scripts]

Pls learn, understand and implement...

Close this thread if your purpose is resolved...

Rgs,

Lokesh.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question