Skip to Content
0
Former Member
Dec 06, 2006 at 02:53 PM

looping problem

23 Views

Hallow I wont omit comma from word I have a table with company name and not all company with comma so I wont to ask if company name first latter=(") comma do the loop

And if not don’t do it

This is my table

LOOP AT itab1.

SPLIT itab1 AT ',' INTO:

itab-osek_morsh

itab-company_name

itab-company_code.

APPEND itab.

ENDLOOP.

LOOP AT itab.

len = STRLEN( itab-company_name ).

len = len - 1.

itab-company_name = itab-company_name(len).

MODIFY itab INDEX sy-tabix TRANSPORTING company_name.

ENDLOOP.