Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

conversion of individual characters to a word

experts,

how can i convert individual characters to a word.

once i execute the following code , list gets generated.

when i select any one line on the list all the characters

combinedly should be selected and not individual characters

get highlighted.

sample ex is as follows :

REPORT ZSTRINGTABLE.

types : begin of ty,

word type char9,

end of ty.

data itab type standard table of ty initial size 0.

DATA : L TYPE I,M TYPE I,N TYPE I,P TYPE I.

data : w type char50,A TYPE CHAR9..

w = 'ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ'.

L = STRLEN( W ).

M = L DIV 9.

N = L MOD 9.

IF L <> 0.

P = M + 1.

ENDIF.

DO P TIMES.

A = W+0(9).

APPEND A TO ITAB.

CLEAR A.

W = W+9.

ENDDO.

LOOP AT ITAB INTO A.

WRITE :/ A.

ENDLOOP.

thanks in advance.

Tags:
Not what you were looking for? View more on this topic or Ask a question