06-04-2008 12:54 PM
I am implementing MB_MIGO_BADI and calling a screen with an additional field not standard to migo.
When the posting was successfull I save the field to the mseg table. When debugging is activated (only a breakpoint), my code gets run and everything works fine. But when I delete the breakpoint, it doesn't work. I've tried commit work and to write to the it_mseg table. The commit work does not work and the it_mseg table is somehow locked to changes.
Can someone pleaaaase help.
06-04-2008 1:09 PM
06-04-2008 1:09 PM
06-04-2008 1:13 PM
HI.
Refer this code.
Data: c_x TYPE c VALUE 'X',
IF sy-subrc = 0.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' " call FM to Commit the DataBase work.
EXPORTING
wait = c_x.
ENDIF.
Reward all helpfull answers.
Regards.
Jay
06-05-2008 9:51 AM
Thank you very much. The wait thing did the trick. It seems the commit from the program wasn't completed before I call my code.