cancel
Showing results for 
Search instead for 
Did you mean: 

how to split the standard text in to two lines

Former Member
0 Kudos

Hi all,

I have created standard text in two lines as given below where as i am getting output in one line.

But i need it in two lines.

Ex.

standard text: sap

development network.

output displaying:sap development network

my requirment. sap

development network.

waiting for your reply.

Suresh

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

i have used the new-line command in between the texts.now it gets solved.

Former Member
0 Kudos

use this fm CALL FUNCTION 'RKD_WORD_WRAP' and pass the aribles...

Former Member
0 Kudos

Hi,

While creating standard text

Goto change editor....

Check your given text is two lines or as a continuous text.

Give Enter After sap and write development network.

to new line

former_member181995
Active Contributor
0 Kudos

Just Copy-Paste below code snipped and Execute:

REPORT test.

data:string type string VALUE 'A surprise visit by US President George Bush to Iraq has been overshadowed by an incident in which two shoes were thrown at him during a news conference'.

data:itab TYPE STANDARD TABLE OF SWASTRTAB WITH HEADER LINE.

CALL FUNCTION 'SWA_STRING_SPLIT'

EXPORTING

input_string = string

MAX_COMPONENT_LENGTH = 10

* TERMINATING_SEPARATORS =

* OPENING_SEPARATORS =

tables

string_components = itab.

LOOP AT itab.

WRITE:/ itab-STR.

ENDLOOP.

former_member223537
Active Contributor
0 Kudos
data : lv_text1(50) type c,
         lv_text2(50) type c.


move : lv_final+0(50) to lv_text1,
          lv_final+51(50) to lv_text2.

Best regards,

Prashant