‎2010 Mar 10 3:25 AM
Hi Expert,
I encountered a problem where i debug and check there is a return message indicated that the physical document is generated but when i use MI02 to check the physical document generated by the BAPI, it is not in the system. Can anyone who use that BAPI before show me the coding on it?
Thanks.
‎2010 Mar 10 6:38 AM
switch to the local update task
SET UPDATE TASK LOCAL.
CALL FUNCTION 'BAPI_MATPHYSINV_CREATE'
EXPORTING
head = wa_head
MAX_ITEMS =
TABLES
items = it_items
return = it_return
.
execute the database updates and wait until they are done
COMMIT WORK AND WAIT.