Application Development and Automation 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: 
Read only

BAPI BAPI_MATPHYSINV_CREATE is not working

Former Member
0 Likes
613

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.

1 REPLY 1
Read only

Former Member
0 Likes
364
  • 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.