Application Development and Automation 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: 
Read only

Control statement is too long is SAPSCRIPT, Help!

Former Member
0 Likes
945

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
Read only

Former Member
0 Likes
791

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
Read only

Former Member
0 Likes
791

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

Read only

0 Likes
791

you meant I have to do like this:

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

= OR a = '3'

/: (do whatever here...)

/: ENDIF

Read only

0 Likes
791

yes thats what i meant.

Read only

0 Likes
791

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!

Read only

Former Member
0 Likes
792

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

Read only

0 Likes
791

Hi Stu Murray, your solution works thanks!