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

Spliting text into different lines for String type field?

Former Member
0 Likes
2,561

Hi,

In BADI I have EV_CUSTOMER_INFO Exporting parameter with type string. I want to send text message to this parameter with multiple lines.

How do I can send?

I have text with more than 250 chars, I want to split the text in multiple lines and sent to BADI. Right now its displaying in one single line.

Can any one help me..

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,789

Hi,

Use the fn. mod RKD_WORD_WRAP and give the delimiter value.

You can split the text into multiple line.

Regards

Deepu.

Reward points if this is helpful.

10 REPLIES 10
Read only

Former Member
0 Likes
1,790

Hi,

Use the fn. mod RKD_WORD_WRAP and give the delimiter value.

You can split the text into multiple line.

Regards

Deepu.

Reward points if this is helpful.

Read only

0 Likes
1,789

sorry I hope I didnt put my question clearly.

I need to send the text to the BADI parameter (BADI paramter has type string) .

This FM only splits the text right. But I have to send the text to BADI with diff lines.

And also this is for SRM.

Thanks a lot.

Read only

Former Member
0 Likes
1,789

Hi,

Try this..

CONCATENATE 'FIRST LINE' 'SECOND LINE' SEPARATED BY

CL_ABAP_CHAR_UTILITIES=>CR_LF.

Sorry if this is not working..

Thanks,

Naren

Read only

Former Member
0 Likes
1,789

Hi,

Please check my reply.

Thanks,

Naren

Read only

0 Likes
1,789

Hi Naren thanks for the answer,

I put the code .. but in out still its displaying all the text in single line.

I used the code in my BADI like this ..

CONCATENATE TEXT-001 TEXT-002 TEXT-003 into EV_CUSTOMER_INFO SEPARATED BY CL_ABAP_CHAR_UTILITIES=>CR_LF.

when I c in debug mode it is separating with ## for each text. But out put is still in single line.

Read only

Former Member
0 Likes
1,789

Hi,

Is the output capable of displaying multiple lines..Is the output displayed in a text editor??

Thanks,

Naren

Read only

0 Likes
1,789

Out put field id declared in BADI like this

EV_CUSTOMER_INFO Exporting Type STRING Customer Output Information

Its a string.

So is it possible to split the text?

Thanks.

Read only

Former Member
0 Likes
1,789

Hi,

The output I was mentioning is not the output parameter...I am mentioning the screen fiel that the string is getting displayed..

Is that Screen capable of displaying multiple lines..Are you displaying the values in text editor container??

Thanks,

Naren

Read only

0 Likes
1,789

Hi Naren,

sorry.. Yes the screen is capable of displaying multiple lines.. It is displaying in browser after registration process is complete.

Read only

0 Likes
1,789

Is it possible we can do it from carriage return functionality?

If so And what is the carriage return character for text ?

Thanks.