Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8944

Re: string Concatenate issue

$
0
0

Try this code :

 

REPORT YTEST.
data gt_tab type table of string.
data gs_tab type string.
data result type string.
data length type i.
gs_tab = 'Hello'. append gs_tab to gt_tab.
gs_tab = 'Hello How'. append gs_tab to gt_tab.
gs_tab = 'Hello How Are'. append gs_tab to gt_tab.
gs_tab = 'Hello How Are You'. append gs_tab to gt_tab.

loop at gt_tab into gs_tab.
  if result is INITIAL.
    result = gs_tab.
  else.
    length = strlen( result ).
    CONCATENATE result gs_tab+length into result.
  endif.
  clear gs_tab.
endloop.
write : / result.

 

Regards,

Gagan


Viewing all articles
Browse latest Browse all 8944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>