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

HOW TO WRITE MULTI LINE IF CONDITION IN SCRIPT EDITIOR

Former Member
0 Likes
581

Hi

I have a IF condition like this.

/: IF bwart = '301' and bwart = '303' and bwart = '304' and bwart = '305' and bwart = '306'

  • ----

  • ----

/: endif

Like this , I have many AND conditions in the IF.

But , In Script Editor , It is allowing only 72 characters.

I extended this SHIFT-F8 to get more characters.

Even, My IF condition is not fitting in one line.

How to write this IF in Script

Thanks

Hi

I have a IF condition like this.

/: IF bwart = '301' and bwart = '303' and bwart = '304' and bwart = '305' and bwart = '306'

  • ----

  • ----

/: endif

Like this , I have many AND conditions in the IF.

But , In Script Editor , It is allowing only 72 characters.

I extended this SHIFT-F8 to get more characters.

Even, My IF condition is not fitting in one line.

How to write this IF in Script

Thanks

2 REPLIES 2
Read only

Former Member
0 Likes
538

You have to do two times, otherwise write a perform and do all the necessary coding in that and send back the required value to script editor. This is better to understand and for future changes.

Read only

Former Member
0 Likes
538

Hi:

Its advisable to make entire calculation in se38 under subrountine, which should be called in Script.

Syntax in a form window:

/: PERFORM <form> IN PROGRAM <prog>

/: USING &INVAR1&

/: USING &INVAR2&

......

/: CHANGING &OUTVAR1&

/: CHANGING &OUTVAR2&

......

/: ENDPERFORM

Coding of the calling ABAP program:

REPORT XXXXX.

FORM <XXXX> TABLES IN_PAR STUCTURE ITCSY

OUT_PAR STRUCTURE ITCSY.

endform.

Regards

Shashi