cancel
Showing results for 
Search instead for 
Did you mean: 

regarding line feed in sap script

Former Member
0 Kudos

hi

i had a long if statement.

it is extending more than one line.

IF &REGUH-RZAWE& = '2' AND ( &REGUH-LAUFI0(1)& EQ 'E' OR &REGUH-LAUFI0(1)& EQ 'G' )

IF i use '=' Extended line the statement in that line is printing as it is.

If i use '/:' this command even for the next line it works fine

what i s the correct procedure

Accepted Solutions (0)

Answers (7)

Answers (7)

Former Member
0 Kudos

commands are written /:

= - extended line applies to text values and variable display in the output.

former_member186052
Active Participant
0 Kudos

Hi,

When I had a similar issue I tried many possibilities, but some how nothing worked.

So I used PERFORM <SUBROUTINE> IN PROGRAM <ROUTINE PROGRAM> USING <FIELD> CHANGING <FIELD> END PERFORM.

I passed the fields required under USING <Field1>  USING <field2> ..... USING <Field n> and the fields in which i should get output under CHANGING <FIELD1> CHANGING <FIELD2>....... CHANGING <FIELD N>.

and once i received the fields i just displayed them as required.

Regards,

-Sandeep

Michał_B
Explorer
0 Kudos

Hi Guys!

I've tested it (it is really better then giving just assumptions). Only solution is the one from KK: use SHIFT+F8 - it will give You one extra line to continue Your command (but only one).

If You try to use next line SAPScript will interpret only first line of Your command, no mater which line type will You select for second line. Example:

/: IF &VBDKA-VKORG& EQ '0001'

/: AND &NAST-SPRAS& EQ 'DE'

In this case SAPScript will omit what is in second line and it will do whatever is inside this IF for every language. Whats more: If second line type is ' ' or '=', then You will get a printout of fixed text >> AND &NAST-SPRAS& EQ 'DE' <<

BR, Michał

Former Member
0 Kudos

Hi

If your statement is extending more than one line ,then just give 'space' instead of '/: 'in the tag for the next line .

Reward if it works.

anitha

Former Member
0 Kudos

Hi,

Have You used Periods '.' at the end of If and Endif statements.

Just try it.

regards,

sg

Former Member
0 Kudos

Hi,

U can continue in the same line itself by pressing SHIFT+F8

If u want it in the next line then u can give space in the tag column.

Hope it helps.

Regards,

KK

Former Member
0 Kudos

hi ,

use '=' Extended line.

it is the best method.

PLEASE REWARD IF USEFUL..

THANKS,

GUPTA

Edited by: gupta pullipudi on Apr 23, 2008 8:35 PM

Former Member
0 Kudos

if i am using ' =' its not working

since is is a part of command if should i use '/:'

that is what i want