I'm searching for an ABAP-Coder with skills in Dynpro-Development Controls like "HTML-Viewer-Control".
At the moment, I need a changing of a simple code-snippet:
DATA: html TYPE w3htmltab.
DATA: lf_html TYPE string.
CONCATENATE
'looooooooooooooooooooooooooooooong text row1'
'llllllllllllllllloooooooooooooong text row2'
'llllllllllllllllllllllllllllllllllllllllllllloooooooooooooooooooooonnnnnnnnnnnnnnnngggggggggggggggggtext row3'
INTO lf_html SEPARATED BY space".
DATA subrc TYPE c VALUE 'X'.
DATA len TYPE i.
DATA line TYPE char255.
WHILE subrc = 'X'.
len = strlen( lf_html ).
IF len > 72.
line = lf_html+0(72).
APPEND line TO html.
SHIFT lf_html BY 72 PLACES.
ELSE.
line = lf_html.
APPEND line TO html.
CLEAR subrc.
ENDIF.
CLEAR line.
ENDWHILE.
You have to modify the while-loop to following:
I wanna append each new line after the " "-tag, not after 70 chars.
At the end, the and should be deleted from the string.