I have a problem with insertion the record in Z table in the BADI, I need to save the document that just to created but it is not saving. If I put the break point in the badi, the record it was saved normally, when I comment the brek point, the record it is not saving. I tried to put the time wait, example : "do 40 times" but nothing. My last attempt it was create a F.M to insert the records and I use the "COMMIT WORK AND WAIT" "SET UPDATE TASK LOCAL" , nothing.
How can I save the records in Z table on this badi ??