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

line editing

Former Member
0 Likes
1,856

Hi Experts,

write : / 'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd

dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'.

in output its diplaying only up to some d's.

i need to break the line and to be displayed

Thanks and Regards,

Thirukumaran. R

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,781

Hi,

For splitting the complex line as yours, please check the link given below:

[Splitting complex line|;Hope it helps you.

Thanks,

Sarita Singh

14 REPLIES 14
Read only

Former Member
0 Likes
1,781

Hi,

Increase the line-size count in the report statement. The maximum line size is 1023. You can not display more than that in a single line



REPORT ZABC line-size 1023.

write : / 'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd',
'dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'.

Regards,

Vik

Read only

0 Likes
1,781

thanks for reply, but i need

LOOP AT IT_TEXT INTO WA_TEXT.

on CHANGE OF wa_text-tdformat.

if wa_text-tdformat = 'AS'.

CONCATENATE lv_text wa_text-tdline into lv_text.

endif.

endon.

ENDLOOP.

write : lv_text.

i need lv_text to be displayed in 3 lines.

Thanks and Regards,

Thirukumaran. R

Read only

0 Likes
1,781

do one thing.

after concatenate

CONCATENATE lv_text wa_text-tdline into lv_text.

s1 = strlen ( lv_text ).

if s1 > 255

shift it to 255 chars into another variable.

Read only

0 Likes
1,781

Hi,

Well in that case try something like this,



data: v_len type i.
DATA: NEWLINE(2) TYPE X VALUE '0D0A'

LOOP AT IT_TEXT INTO WA_TEXT.
on CHANGE OF wa_text-tdformat.
if wa_text-tdformat = 'AS'.
CONCATENATE lv_text wa_text-tdline into lv_text.
v_len = strlen( lv_text ).
if v_len > 255.
CONCATENATE lv_text+0(100) lv_text+101(100) lv_text+201(100)  into lv_text seperated by NEWLINE.
endif.
endon.
ENDLOOP.

write : lv_text.

I have just concatenated using offsets with sample lengths. You can change it according to your requirement

Regards,

Vik

Read only

0 Likes
1,781

thanks for ur valuable reply, in data decalarations, it's giving some error message, for new line .

Thanks and Regards,

Thirukumaran. R

Read only

0 Likes
1,781

Hi for New line data declaration is wrong,

Thanks and Regards,

Thirukumaran. R

Read only

0 Likes
1,781

Expecting reply

Read only

0 Likes
1,781

Hi,

I think the error is with respect to the length of the newline variable. Change it to 4 and check.



data: v_len type i.
DATA: NEWLINE(4) TYPE X VALUE '0D0A'.
 
LOOP AT IT_TEXT INTO WA_TEXT.
on CHANGE OF wa_text-tdformat.
if wa_text-tdformat = 'AS'.
CONCATENATE lv_text wa_text-tdline into lv_text.
v_len = strlen( lv_text ).
if v_len > 255.
CONCATENATE lv_text+0(100) lv_text+101(100) lv_text+201(100)  into lv_text seperated by NEWLINE.
endif.
endon.
ENDLOOP.
 
write : lv_text.

Regards,

Vik

Read only

Former Member
0 Likes
1,781

REPORT zsomu_sdn_test LINE-SIZE 1023.

Write: 'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'.

Read only

Former Member
0 Likes
1,782

Hi,

For splitting the complex line as yours, please check the link given below:

[Splitting complex line|;Hope it helps you.

Thanks,

Sarita Singh

Read only

Former Member
0 Likes
1,781

Hi Thiru,

Try this.

data name TYPE string.

name = 'dddddddddd' & 'dddddddd'.

WRITE name.

This should work.

Thank You,

Gajendra.

Read only

Former Member
0 Likes
1,781

Iam sorry i got your question wrong. Ignore my previous reply.

Thnak You,

Gajendra.

Read only

Former Member
0 Likes
1,781

Iam sorry i got your question wrong. Ignore my previous reply.

Thnak You,

Gajendra.

Read only

Former Member
0 Likes
1,781

HI,

With you REORT statement you can mention Line-Size

and Line-Count.

Line-size determine If the LINE-SIZE specification is missing,

the line length corresponds to the current screen width.The

system field SY-LINSZ contains the current line size for

generating lists. The maximum width of a list is 1023 characters.

Line-count determines Creates a report list with n lines per page,

of which m lines are reserved for the END-OF-PAGE processing.

If you omit the "(m)", the default value 0 applies. The system field

SY-LINCT contains the current number of lines per page for generating lists.

If the LINE-COUNT specification is missing, the number of lines per page is

calculated dynamically from the number of lines actually output on this page.

Hope it helps

Regards

Mansi