cancel
Showing results for 
Search instead for 
Did you mean: 

Find Source Batch No based on Target Batch No. (MSEG-CHARG --> MSEG-WEMPF)

0 Kudos

Hi,

I have a requirement to find source batch number by providing Target batch number.

MSEG Table  provide -> below details.

Batch Number (MSEG-CHARG);  Plant (MSEG-MATNR); Movement Type (MSEG-BWART) to get Source Batch Number (MSEG-WEMPF).

Could anyone please suggest is there any standard program/function module to get Source Batch Number by providing Target Batch Number details.

Thanks in advance,

Ashok

Accepted Solutions (1)

Accepted Solutions (1)

JL23
Active Contributor
0 Kudos

just use MB56 transaction

0 Kudos

Hi Juergen,

Thanks for sharing the transaction code - MB56. 


I am looking for MB56 information in a table like structure, where every Batch No. have corresponding Receiving Batch (MSEG-WEMPF). 

Based on the above information would like create a extractor in ECC system and pull this data into BW system.

Regards,

Ashok

JL23
Active Contributor
0 Kudos

There is a table from where the transaction MB56 takes its information: CHVW

Answers (1)

Answers (1)

former_member233510
Active Contributor
0 Kudos

Please write a query using transaction SQVI with table MSEG. Additionally check FM MB_READ_GOODS_MOVEMENT.

Note: MSEG-WEMPF is not the batch number, it is the goods recipient field.

You've to pass MSEG-MBLNR and get MSEG-CHARG & MSEG-UMCHA.