cancel
Showing results for 
Search instead for 
Did you mean: 

How to add newline in sapscript

Former Member
0 Kudos

I have sapscript which get po item text from subrountine program.

/: DEFINE &INFORECORDNOTE& = ''

/: PERFORM GET_INFO_RECORD_NOTE IN PROGRAM ZMM_NCLUDE

/: USING &EKPO-EBELN&

/: USING &EKPO-EBELP&

/: CHANGING &INFORECORDNOTE&

/: ENDPERFORM

/: IF &INFORECORDNOTE& <> ''

/ ,,,,&INFORECORDNOTE&

/: ENDIF

Because the po item's Info record note can include new line, how can i add new line into &INFORECORDNOTE& from abap rountine program. So that the sapscript can break into new line and then start with 4 tags. Thanks!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

i think you can add another line by giving another out parameter (changing)

and passin the second line from the sub routine..

or if you have the inforecord text id you can use include text.

Former Member
0 Kudos

but it can be a lot of line, it unpredictable, so i don't know how many out parameter i necessary to add

Former Member
0 Kudos

did you try using the include command. for including the texts

Former Member
0 Kudos

could you explain more, Thanks

Former Member
0 Kudos

i guess that you might be using raed text in you perform.

instead use use the comtrol command

/: INCLUDE &TEXTNAME& ID &ID& PRAGRAPH &PRAgraph Format&

Former Member
0 Kudos

i don't know how to use the control command, i am using "READ_TEXT" FM to retrieve the po text, what is the meaning of "&TEXTNAME&", is it the tablename? the &ID& means the field id? Thanks!