Automatically Create New Batch Numbers for Inbound Deliveries in SAP ERP

  • by V. Krishna Anaparthi, Process Architect, SAP Labs India Pvt. Ltd.
  • Christian Butzlaff, Senior Director, Value Prototyping, SAP
  • February 11, 2013

This technical enhancement can be used to automatically create a new batch number using inbound deliveries from SAP SNC.

This BAdI takes the material number, plant, and storage location values from the inbound DESADV IDoc. The module BAPI-BATCH_CREATE is used to create the batch. The module now returns the newly created batch number, which is then added to the inbound delivery runtime data. This ensures that the batch is available, once the inbound delivery is created on the database.

To see this enhancement in context as part of an integrated batch management system in SAP SNC, see Krishna and Christian’s article, "Increase Productivity by Enabling Integrated Batch Management with Suppliers using SAP SNC."

The code included with this article was developed primarily for demonstration purposes. Therefore no error handling has been incorporated. You should use discretion when using this code in your implementation.

V. Krishna Anaparthi

V. Krishna Anaparthi has vast experience in the field of enterprise consulting. Playing the roles of project manager and solution architect, he is instrumental in the successful implementation of multiple SAP projects across the consumer goods, pharmaceutical, and high-tech industries. He is currently serving as the process architect at SAP Labs India Pvt. Ltd. and is a part of the SAP Business By Design development team.

Krishna holds an MBA from NITIE, Mumbai, India. He has PMP, CPIM, and CSCP certifications and is proficient in supply chain and project management processes.

See more by this author

Christian Butzlaff

Dr. Christian Butzlaff is responsible for SAP Value Prototyping services at SAP America. Before that he held various positions in the SAP Development Organization. In particular, he was Development Manager for SAP Supply Network Collaboration (SAP SNC). In his current role he works with customers on prototype engagements, for example, in the area of SAP Integrated Business Planning.

Christian holds a PhD from the University of Hamburg, Germany. He is PMI certified and is currently pursuing a specialization in machine learning.


See more by this author


No comments have been submitted on this article. 

Please log in to post a comment.

To learn more about subscription access to premium content, click here.