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

Triggering program form(subroutine) from MIGO using output types gives lock issue with Bapi_sag_change

0 Likes
421

Hi,

On creating the GR from MIGO tcode, based on the quantity check i am updating the field ELIKZ using BAPI_SAG_CHANGE.

And updation logic is written in a zprogram using with in FORM XXXXX...ENDFORM XXXXX. ( FORM XXXXX is configured in the output type ).

So the problem i am facing is on creation of the first GR with scheduling agreement number GR is posted successfully and under the output tab the i can see the green icon.

But on creation of the second GR with same scheduling agreement its showing red icon. The following is the error message " User locked the scheduling agreement ...."

I even tried using dequeue fm and transaction commit, but it didnt work. Please let me know how to over come the lock issue.

Thanks & regards,

Manojkumar K

1 REPLY 1
Read only

0 Likes
365

Solved it myself....

Regards,

Manoj