on 11-19-2010 10:44 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
from subroutine itself u can split and send back to your script.
Regards,
karthikeyan ks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.