‎2009 Aug 20 1:45 PM
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
‎2009 Aug 20 2:12 PM
‎2009 Aug 20 2:02 PM
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
‎2009 Aug 20 2:13 PM
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
‎2009 Aug 20 2:22 PM
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.
‎2009 Aug 20 2:34 PM
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
‎2009 Aug 21 5:40 AM
thanks for ur valuable reply, in data decalarations, it's giving some error message, for new line .
Thanks and Regards,
Thirukumaran. R
‎2009 Aug 21 6:20 AM
Hi for New line data declaration is wrong,
Thanks and Regards,
Thirukumaran. R
‎2009 Aug 21 7:25 AM
‎2009 Aug 25 5:32 AM
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
‎2009 Aug 20 2:09 PM
REPORT zsomu_sdn_test LINE-SIZE 1023.
Write: 'ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd'.
‎2009 Aug 20 2:12 PM
‎2009 Aug 20 2:42 PM
Hi Thiru,
Try this.
data name TYPE string.
name = 'dddddddddd' & 'dddddddd'.
WRITE name.
This should work.
Thank You,
Gajendra.
‎2009 Aug 20 2:44 PM
Iam sorry i got your question wrong. Ignore my previous reply.
Thnak You,
Gajendra.
‎2009 Aug 20 3:03 PM
Iam sorry i got your question wrong. Ignore my previous reply.
Thnak You,
Gajendra.
‎2009 Aug 21 5:46 AM
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