Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BATMAS03 idoc..not extending Batch to plant

Hi SAP experts,

I am using BATMAS03 idoc (BATMAS message type) for one of our legacy to SAP interface. If we pass a new batch, plant, storage location, material number, Date of Mfr, SLED, etc, system will create this batch master in SAP (similar to tcode msc1n). If we send a pre-existing batch and other concerned fields, it will update the current batch with the new values (similar to msc2n).

Now I have a situation..batch X is already created in SAP in a plant A, either through msc1n directly or through a previous BATMAS interface. Now, if I send a BATMAS interface for same batch X, but plant B with other details, I was expecting that batch would get generated (extended) to plant B as I am passing all the needed fields. However, what I am seeing is, the idoc fails with an error that material / batch is not existing in plant B. So, instead of triggering a msc1n (to create the batch under new plant B), it is kind of going into msc2n and failing, because it doesnt find the batch extended to the plant B.

My question is -> whether this is standard behaviour for BATMAS03 idoc? is there any field in idoc which can indicate 'batch creation' versus 'updation'? Or is there any other idoc type I should use? Or,will this need some kind of ABAP enhancement? Pls advise/ share your thoughts.

Regards. Pankaj

Former Member
Not what you were looking for? View more on this topic or Ask a question