Creating an AOT on Delivery-Batch level
My current client requires to create Application Objects in ECC (and send those over to create EHs on EM side) dependent on the batches on the Deliveries (table LIPS, field CHARG).
So whenever a Delivery is Post Goods Issued, the Appl. Object Type should be triggered and create one AO for each batch of each material (field MATNR). Is that possible? There are 2 tables (main and master) which control the number of AOs that are created but if I select the Delivery_Item as the main table it would only create AOs/EHs on the delivery line item level. But there could and will be multiple batches for each line item which should create multiple AOs/EHs.
Since the FDA is pulling products from the trucks for closer inspection based on that batch no. all events should be reported on that level.
Is there any user exit we could use because this is the only area where we cannot even code an extractor?
Your help is greatly appreciated!!!
i think this is only possible if you replace the standard BADI implementation /SAPTRX/LE_SHIPPING with an own one. Don’t forget to disable the standard one afterwards.
You need a Business Process Type where you add a table for the batches that you must fill in your new BADI implementation. This table must contain a line for every batch. This new table you can use as main table in the AOT Customizing.
If there is line for every batch in the table your extractor would be called for every line and you can create an AOT for every batch. You must also find a unique AOID for the Evcent Handler. To create the AOID you can use the AOID extractor.
Master table can stay empty or maybe the delivery item. I’m not really familiar with batches so i cannot say how the structure for the batch table should look like. But maybe it is suffiecient if it has only a few fields like BATCH_ID, MATNR and DEL_NO, DEL_ITEM. All other information you need can be read in your extractor from the the standard delivery tables.
Performance could be an issue here if there are many batches in a delivery item.