‎2007 May 14 11:11 AM
Problem with user exit,
i am using component PPCO0007 for saving data entered in customer screen at process order creation(COR1).
I want to save data entered in customer tab into batch master(MSC2N).
The problem is while i try to save data using BAPI_BATCH_CHANGE/CREATE called from code at PPCO0007-include, the batch is under lock by transaction COR1.
I am trying to use the BAPI inside a Z-Function module, i tried to call this FM in update task or as background task as a separate unit, but it doesnt update.
Can someone suggest any alternative user exit for this. Or the way to use the Function module to update details for batch.
Thanks,
Sandeep
‎2007 May 14 3:03 PM
Hello,
you can't update the batch during process order creation.
Please check the two following enhancements:
SAPLV01Z,
SAPLV1ZN
(or even MBCFC003)
rgds,
JP
‎2007 May 25 11:47 AM
I created a Update Function module and called the same in update task.
I copied over the BAPI_BATCH_CHANGE and removed call to 'transaction_end' from it as it was calling a commit work and which was causing problems while saving process order.
So this helped and i was able to update batch master while at creating process order itself.
Thanks to everyone who scratched their brains for me.....specially to Pete!