‎2015 Apr 08 11:38 PM
Hi All,
I am using the BAPI BAPI_OUTB_DELIVERY_CHANGE to do the batch split in delivery.
I was able to use the BAPI successfully but my concern is to where to use the BAPI.
Current Scenario :
A background job is being used to create the delivery for the consignment orders. And a separate job is being used to do the PGI for them.
Requirement :
I want that this BAPI should be called as soon as delivery is saved so that the batch split is done. BAPI should be automatically called as delivery is created using a background job and client does not want to use any separate transaction code to execute the program i developed to do the batch splitting.
I am not sure if i can use any User exit where i can write my code to achieve this as it has to be called after the delivery is saved.
My Approach:
What i am planning to schedule a background job which will trigger this Z program which further picks the delivery created on the current system date and do the batch splitting for them. I am not confident about this as there are already background jobs scheduled for Delivery creation and PGI so I do not want to conflict with them.
Please suggest if anyone can help me with this.
Thanks,
Prateek
‎2015 Apr 09 1:37 AM
Prateek,
Make your PGI job a two step process. The first step in the job would be perform the batch split and the second step would be to perform the PGI.
Do note that if the first step fails for some reason, the PGI process will happen.
Vikram.M
‎2015 Apr 09 1:37 AM
Prateek,
Make your PGI job a two step process. The first step in the job would be perform the batch split and the second step would be to perform the PGI.
Do note that if the first step fails for some reason, the PGI process will happen.
Vikram.M