Application Development 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: 

MB_MIGO_BADI

teresa_vanrooyen
Explorer
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

put WAIT statement.

i think it should work.

3 REPLIES 3

Former Member
0 Kudos

put WAIT statement.

i think it should work.

Former Member
0 Kudos

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

teresa_vanrooyen
Explorer
0 Kudos

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.