Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Appending some specific row of data in final internal table

Former Member
0 Kudos

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

1 REPLY 1

saranwin
Contributor
0 Kudos

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