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

Help!!! which BAPI function can run 'MIGO'

Former Member
0 Likes
868

Thanks experts!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
776

i just want to run tcode 'MIGO' by program, but FM 'BAPI_GOODSMVT_CREATE' seems not surport this. There are diffrent between 'MIGO' & 'MB01', isn't it?

6 REPLIES 6
Read only

Former Member
0 Likes
776

Hi,

Check:

BAPI_GOODSMVT_CANCEL Reverse goods movements with MB_CANCEL_GOODS_MOVEMENT

BAPI_GOODSMVT_CREATE Post goods movements with MB_CREATE_GOODS_MOVEMENT

BAPI_GOODSMVT_GETDETAIL Display details for material document

BAPI_GOODSMVT_GETITEMS Display detailed list of material documents

Regards

Subramanian

Read only

Former Member
0 Likes
776

> Thanks experts!

but BAPI_GOODSMVT_CREATE can only used for these 6 transactions:

MB01

MB31

MB1A

MB1B

MB1C

MB11

sourse code: SELECT SINGLE * FROM T158G WHERE GMCODE = GOODSMVT_CODE.

IF SY-SUBRC <> 0.

...................

ENDIF.

Read only

0 Likes
776

what else do you want?? you can do everything with goods movement create. Read the doc of the BAPI, there are diff ways for each thing...like GI with or w/o reservation etc. To the best of my knowledge it covers everything.

Read only

Former Member
0 Likes
777

i just want to run tcode 'MIGO' by program, but FM 'BAPI_GOODSMVT_CREATE' seems not surport this. There are diffrent between 'MIGO' & 'MB01', isn't it?

Read only

0 Likes
776

Yes there is a difference. MIGO was essentially an amalgamation of a few different transactions and I think bapi_goodsmvt_create can do exactly these transactions which fall under migo (again, I am not 100% sure about the latter part). So in essence MIGO has much more functionality than say MB01. Hence the answer to your question is no they are not same.

And what exactly are you not able to do by the bapi in question?

Message was edited by:

Ramkumar Venkatasubramanian

Read only

Former Member
0 Likes
776

appreciate