Skip to Content
0
Apr 02, 2014 at 06:06 PM

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

56 Views

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