SAP Function /SAPHT/MESZLAUZ_RDMOVE - Read the transaction status and validate movement.

Parameter Reference Type Length Default Optional Text
I_CHARG MCH1-CHARG C 10
I_DM07M DM07M u 2456
I_MATNR MARA-MATNR C 18
I_MKPF MKPF u 290
I_MSEG MSEG u 1156
I_VM07M VM07M u 875
I_WERKS MCHA-WERKS C 4 X
I_XMKPF_MBLNR MKPF-MBLNR C 10 X Number of material document
I_XMKPF_MJAHR MKPF-MJAHR N 4 X Year of material document
SMBLN_FLAG C C 0 X Used to set mseg-smbln if batch exists

Parameter Reference Type Length Text
I_MKPF MKPF u 290
I_MSEG MSEG u 1156

Parameter Reference Type Length Default Optional Text
BATHDR MBCFC003 u 125

Description
During the transaction MBSU (Doing a Goods Receipt in Reference to aMaterial Document number) if the receiving batch exists then we need toset the MSEG-SMBLN field. This will help to track the Batch Genealogy.By setting the SMBLN_FLAG = 'X' we can avoid having to overwrite theexisting Batch Characterisitcs by exiting back to the calling programonce the MSEG-SMBLN field has been set.

Default