Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Batch Data Saving at Process Order creation - User exit issue

Former Member
0 Likes
888

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

2 REPLIES 2
Read only

Former Member
0 Likes
542

Hello,

you can't update the batch during process order creation.

Please check the two following enhancements:

SAPLV01Z,

SAPLV1ZN

(or even MBCFC003)

rgds,

JP

Read only

0 Likes
542

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!