Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Control statement is too long is SAPSCRIPT, Help!

Former Member
0 Kudos

How do I add return line in the IF statement of SAP Script.

/: IF a = '1' OR a = '2'

?? OR a = '3'

/: ENDIF

What is the command line in the ?? Thanks!

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Or you could simply write on one line using the toggle left / right option...

If using the SAPScript setting for the Graphical PC editor is not set. When editing the window select menu option

Edit -> Page Left/Right

That wil allow you to continue typing on the same line...

Regards

Stu

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

you can use the = extended line option . or else you can put every thing in one line.

/: IF a = '1' OR a = '2' OR a = '3'

/: ENDIF

0 Kudos

you meant I have to do like this:

/: IF a = '1' OR a = '2'

= OR a = '3'

/: (do whatever here...)

/: ENDIF

0 Kudos

yes thats what i meant.

0 Kudos

I don't know the reason why

/: IF a = '1' OR a = '2'

= OR a = '3'

/: (do whatever here...)

/: ENDIF

does not work. Anyway, Thanks for your help!

Former Member
0 Kudos

Hi,

Or you could simply write on one line using the toggle left / right option...

If using the SAPScript setting for the Graphical PC editor is not set. When editing the window select menu option

Edit -> Page Left/Right

That wil allow you to continue typing on the same line...

Regards

Stu

0 Kudos

Hi Stu Murray, your solution works thanks!