Skip to Content
Jan 15, 2020 at 07:35 PM

Running BAPI in background job with submit program showing entry is locked by user

904 Views Last edit Jan 15, 2020 at 07:35 PM 2 rev

Hi Experts,

Code for MIGO Check function is written in method line_modify using BAPI_RESERVATION_CHANGE creates locked entries in SM12

SM12 entries created by above code

Post function code is written in method POST_Document shows reservation is locked user USXXXX.

Same BAPI_RESERVATION_CHANGE is also called in Submit Program to update reservation after change.

Just to avoid commit BAPI_Commit in BADI, I have created this Submit program.

But when I run the same BAPI in background showing reservation entry is locked but in foreground it runs correctly.

Please help, Thanks in advance!




line-modify.jpg (180.2 kB)
sm12.jpg (26.3 kB)