I am developing a custom program to delete Physical Inventory Document (standard transaction MI02). I am calling Function Module MB_PHYSICAL_INVENTORY in loop to delete multiple Physical Inventory Documents. But variable EIN_BELEG is not getting cleared after the first call to the FM. How can I clear the buffer values after the first function call.
Note: I have already tried
COMMIT WORK AND WAIT.
CALL FUNCTION 'BUFFER_REFRESH_ALL'.
CALL FUNCTION 'CKML_BUFFER_REFRESH_ALL'.
CALL METHOD PO_BUFFER_REFRESH.