cancel
Showing results for 
Search instead for 
Did you mean: 

SAPScript: Linebreak in Perform respond

Former Member
0 Kudos

Hi experts,

i want to poll some strings using a perform and put this text in a sapscript variabel and print it on the form. Is there some kind of control character i can submit within the string to force sapscript doing a linebreak at this point. For example:

Submitted String:

"This is a text (br) where there are (br) several linebreaks"

On the form:

This is a text

where there are

several linebreaks

This would help me a lot. Can anybody help me?

Thanks a lot in advance and a nice weekend

Kind regards, Matthew

Edited by: matthew c. on Nov 19, 2010 11:44 AM

Edited by: matthew c. on Nov 19, 2010 11:45 AM

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member585060
Active Contributor
0 Kudos

Hi,

You can do in the below way

1) Declare a character field of required length.

2) Populate the required text to be printed on Sapscript.

3) Use RKD_WORD_WRAP to split the word at specified width, it will split the word equally into an internal table.

4) Create a text Element in Sapscript.

5) Loop the table from above and write the text on Sapscript calling the above Text element.

Note:- the above specified function splits only a word of length 255, if the text is morethan 255 you have to use the logic of above function module.

Regards

Bala Krishna

Former Member
0 Kudos

hi ,

from subroutine itself u can split and send back to your script.

Regards,

karthikeyan ks,