Skip to Content

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

SAP Script IF ELSE Check


I am adding a condition in the script. IF ELSE condition. The condition happens to be longer than the line size of the editor. It comes to the next line and the other.

When my script run, it checks the condition only on the first line and the rest is not checked and printed as text. I mean the whole condition gets printed as text.

Can anyone help me out with this.

How shall I modify the script so that the whole text is treated as a condition and not the text.

Thanks in advance,

Useful answers will be rewarded with points.



Former Member
Former Member replied

Hi ,

even i faced the same problem.

As script doent check the very long conditions (more than 1 line)

The solution which i adopted is :

Call the Perform Routine from ur script and with in SE38 editor, u have to mention all ur If.........else conditions.

witth in this condition pass the Flag to the variable .



gv_x = 'X'.


gv_x = ' '.


Now u can use this flag variable in the script editor to check whther it has passed IF condition , or ELSE Condition.

Revrt back if nay issues,



0 View this answer in context

Helpful Answer

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