Skip to Content
0
Former Member
Oct 31, 2012 at 04:24 AM

CONCATENATE statement last comma is coming... how to solve this

1883 Views

Dear Guru...................

first i use this statement. in output display senthil,mohan,ram,

After ram one comma is coming,


CONCATENATE gs_final-rel_code_desc gs_t16fd-frgct ','INTO gs_final-rel_code_desc SEPARATED BY space.

output : senthil,mohan,ram,

Then i use this statement now also last comma is coming.

if gs_final-rel_code_desc is INITIAL.

gs_final-rel_code_desc = gs_t16fd-frgct.

ELSE .

CONCATENATE gs_final-rel_code_desc gs_t16fd-frgct ','INTO gs_final-rel_code_desc SEPARATED BY space.

endif.

Ple guru help me and solve this problem.