cancel
Showing results for 
Search instead for 
Did you mean: 

How to change batch master data after material movement?

former_member425698
Discoverer
0 Kudos

Dear All,

I need to modify an existing batch master data after the material movement is posted.

Specifically I have to overwrite the value in field MCH1-LIFNR which is automatically updated by the system when a GR (101) to a purchasing document is posted.

I cannot identify any user exit that could be used for this purpose.

Thank you in advance for any support you can provide!

Kind regards,

Marcin Kania

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

If i dont misunderstand you you dont want that system automatically gives batch number during GR 101 or for some other movements

You can control via

SPRO>Logistics - General>Batch Management>Define Batch Creation for Goods Movements

choose 101 or the one you need and you can change it as you desire from the options

Best regards

P.S:And if you need a user exit for control:

you can use ZXMBCU02 include for this aim

JL23
Active Contributor
0 Kudos

Why dont you just use MSC2N ?

Or do you use this field for a different purpose than the vendor number?

former_member425698
Discoverer
0 Kudos

I need this update to be done automatically after each 101 movement.

JL23
Active Contributor
0 Kudos

I understand this, but SAP automatically updates this field with the vendor number when you do a GR in reference to a PO. Do you use this field for a different content?

former_member425698
Discoverer
0 Kudos

The user requirement is to have this field updated only when the first GR is posted (receipt from the external supplier). The problem is that whenever the batch is transferred between plants / storage locations via STO, the vendor field in the batch master is automatically updated with the supplying plant vendor number. Therefore I look for a way to overwrite this number each time with the original (external) vendor number.

For some (organizational) reasons I cannot use a characteristic in the batch class to keep this data.