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: 

simulate the TC MB31 WITH BAPI_GOODSMVT_CREATE?

Former Member
0 Kudos

Hi

Someone have an example for bapi: BAPI_GOODSMVT_CREATE, for transaction MB31, movement type 101, with production order.

Best Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi

give the reguler goods mvt header data to the goodsmvtheader table.

give 02 as a goodssmvtcode field.

then give material, plant, stge_loc, move_type, order_id, order_into, ENTRY_QNT data to the Goodsmvtitem table.

Regards

Usman

3 REPLIES 3

Former Member
0 Kudos

hi

good

go through this code

CALL FUNCTION 'BAPI_GOODSMVT_CREATE'

EXPORTING

goodsmvt_header = gmove_header

goodsmvt_code = gmove_code

IMPORTING

goodsmvt_headret = headret

materialdocument = matdoc

matdocumentyear = docyear

TABLES

goodsmvt_item = gmove_line

return = return.

COMMIT WORK AND WAIT.

ENDAT.

ENDLOOP.

go through this example link

http://sap4.com/wiki/index.php?title=BAPI_GOODSMVT_CREATE&printable=yes

thanks

mrutyun^

Former Member
0 Kudos

hi

give the reguler goods mvt header data to the goodsmvtheader table.

give 02 as a goodssmvtcode field.

then give material, plant, stge_loc, move_type, order_id, order_into, ENTRY_QNT data to the Goodsmvtitem table.

Regards

Usman

0 Kudos

while the caller only transfer the data of production order and relevant qty, what other data must be specified ?

thanks!