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: 

Table VAPMA - Sales Index: Order Items by Material

Former Member
0 Kudos

Hi , Can we always use table VAPMA instead of a join on VBAK and VBAP.

Does this table contain all the sales order items? When I did a "Number of entries" for table vbap and vapma, there is a slight difference in numbers.

How is this table updated?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Your sales orders can contain line items that have materials in them and/or line items that have text or service items in them. VAPMA stores only the line items with material in them. VBAP stores all the sales order line items. So if you have a material number and you want to know all the sales orders that have this material, then VAPMA is good, but if you don't know the material number and/or you want all the line items of a sales order, then VBAP is the best place.

So, in short, VAPMA and VBAP can have different number of records but VBAP should always have more than VAPMA.

2 REPLIES 2

Former Member
0 Kudos

VAPMA can be used if you do not know the order number, but know the material number, or any other field on the index.

Former Member
0 Kudos

Your sales orders can contain line items that have materials in them and/or line items that have text or service items in them. VAPMA stores only the line items with material in them. VBAP stores all the sales order line items. So if you have a material number and you want to know all the sales orders that have this material, then VAPMA is good, but if you don't know the material number and/or you want all the line items of a sales order, then VBAP is the best place.

So, in short, VAPMA and VBAP can have different number of records but VBAP should always have more than VAPMA.