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: 

Batch selection by sales order

Former Member
0 Kudos

I need to write a query to extract matnr werks charg from mcha based on sales order number entered

also write a query to extract matnr werks charg from mcha based on delivery note entered

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Megan,

Get the batch number from VBAP table VBAP-CHARG

Pass this batch number to MCHA table MCHA-CHARG and get the information you need. hope this helps.

2 REPLIES 2

Former Member
0 Kudos

Hi,

for first user VBAK, VBAP, MCHA with VBELN on VBAK and VBAP and MATNR for VBAP ans MCHA,

For delivery use LIKP, LIPS, MCHA,

regards, Dieter

Former Member
0 Kudos

Hi Megan,

Get the batch number from VBAP table VBAP-CHARG

Pass this batch number to MCHA table MCHA-CHARG and get the information you need. hope this helps.