2013 Dec 10 12:41 PM
Hi experts;
this is table control on screen and I need the concatenate that data to string.. (((like this = T016+L001+L001-0053+T016+L001)))
I need help !!!
Thanks all for support.. !!!
2013 Dec 10 12:51 PM
Hi Erman,
Try like this:
DATA array TYPE string.
LOOP AT brtab INTO brtab_wa.
IF sy-tabix = 1.
CONCATENATE array Devre INTO array.
ELSE.
CONCATENATE array Devre INTO array SEPARATED BY '+'.
ENDIF.
CLEAR brtab_wa.
ENDLOOP.
2013 Dec 10 12:48 PM
Hi Erman,
You can take a variable and then loop on the internal table .Then CONCATENATE the value of the first coloumn in to the variable.
Regards,
Santanu.
2013 Dec 10 12:51 PM
Hi Erman,
Try like this:
DATA array TYPE string.
LOOP AT brtab INTO brtab_wa.
IF sy-tabix = 1.
CONCATENATE array Devre INTO array.
ELSE.
CONCATENATE array Devre INTO array SEPARATED BY '+'.
ENDIF.
CLEAR brtab_wa.
ENDLOOP.
2013 Dec 10 5:38 PM
Hello,
try this..
Data lv_array type string.
loop at lt_br into ls_br.
if lv_array is initial.
concatenate ' ' ls_br-devre into lv_array.
else.
concatenate lv_array ls_br-devre into lv_array separated by '+'.
endif.
endloop.