Skip to Content
0
Former Member
Nov 22, 2008 at 08:20 AM

how to insert data from itab to another itab ?

26 Views

Hi.

Now, I have one PR which generates a lot of PO.

Each PR number has one or more PO number.

ITAB_EBAN has field BANFN, EBELN.

ITAB_EKPO had fields EBELN, EBELP, BANFN.

How do i insert the ekpo-ebelp into the itab_eban from itab_ekpo for each eban-banfn? One line of eban-banfn record maybe have a lot of ekpo-ebeln and ekpo-ebelp. So what should i do in order to make sure the record is displayed correctly? By duplicate the row of data inside itab_eban, so that each eban-banfn can have many ekpo-ebeln or ekpo-ebelp?

Thanks in advance.