Skip to Content
0
Former Member
Jun 09, 2008 at 04:44 PM

Fill final internal table.

28 Views

hi,

1.I extracted the delivery document no from NAST table based on output type.

2.extracted delivery doc no, kunag(sold-to-party), kunnr (ship-to-party) and sdabw (process indicator) from

LIKP table into table IT_likp based on delivery doc no.

3. extracted kunnr,name1, ort01, tel.ph no, postalcode,address from KNA1 table into it_kna1 , for all entries in it_likp.

Now my requirement is i want fill my final internal table from these two tables.

final IT structure is : vbeln, likp-kunag(sold-to-party), name1,tel ph no, address, likp-kunnr(ship-to-party),name1, tel ph no,address.

Now the condition is if likp-sdabe = SH , in this case only we fill the ship-to-part details, if the condition is false we don't fill ship-to-party details.

but in both cases we must fill remaining(sold-to-party details) all fields.

Can any one please help me for filling the final table.

thanks in advance.