09-15-2008 2:39 PM
Hi all,
We have a scenario where we have the invoice details in one internal table T_VBRP and order details in T_VBAP.
There are few line items in the T_VBAP which is not invoiced, so there is no mapping for that order line item to the invoice table T_VBRP. Technically, some POSNR of the table T_VBAP is not mapped to the AUPOS of table T_VBRP for the same sales order and for the same invoice.
Could you please suggest how to add those line items under the same order and the same invoice.
Thanks,
Sanjeet
09-15-2008 2:46 PM
Hi,
Loop at T_VBRP.
loop at t_vbap where vbeln eq lt_vbrp-vbeln. ( There should be some common fields in both the tables )
Here you pass the value to final internal table lt_final.
endloop.
endloop.
Regards,
Saran