Skip to Content
0
Former Member
May 03, 2012 at 10:15 AM

FM Inside Loop - Lock Issue

115 Views

Hi all,

I am using a FM to assign Revision level to many materials - REVISION_LEVEL_INSERT - I believe this is not BAPI as its not Remote enabled .

Problem is only first record is getting updated . Even though FM returns success message for all the remaining records its not updating in Table .

Loop ...FM

FM call

if sy-subrc eq 0

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'X'

* IMPORTING

* RETURN =

.

endif

endloop...

Did i miss anything here. I guess I am not committing it properly or Object(Change Number ) Locked and so further records did not update ..Help please.

Thanks,

Srini.