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

How to submit MIGO standard program?

Former Member
0 Likes
1,916

Dear all:

Can anyone tell me how to using SUBMIT to call standard program 'MIGO'?

if SUBMIT is not possible, any other ways? Except BDC.

thanks in advance.

Monson

Message was edited by:

monson

10 REPLIES 10
Read only

Former Member
0 Likes
1,440

Hi ,

Check the Help of the Submit command to get more information , you have options to pass the selection screen parameters , export the list to memory and many other features.

I dont think there is any other way than Submit / Call Transaction and BCD.

Also you can check if there is a BAPI which can retreive the same information.

Regards

Arun

Read only

Former Member
0 Likes
1,440

MIGO is a transaction. Do you want to create GR documents? You can use BAPI BAPI_GOODSMVT_CREATE.

Read only

0 Likes
1,440

yes, I just want to call standard program '' SAPLMIGO'', anyone can tell me how to call, thanks.

Read only

0 Likes
1,439

If you want to display any document using MIGO, in report output (if you double click on GR document no and it should display GR document using MIGO), here is the code -

call function 'MIGO_GR_CREATE'

exporting

i_action = 'A04'

i_refdoc = 'R02'

i_skip_first_screen = 'X'

i_okcode = 'OK_GO'

i_mblnr = i_item-mblnr

i_mjahr = i_item-gjahr.

If this is not your requirement, please tell me what are you looking for?

Read only

0 Likes
1,439

Hi,

SUBMIT SAPLMIGO VIA SELECTION-SCREEN.

Read only

0 Likes
1,439

Thanks for your help.

The requirement is : the customer want to using MIGO to goods receipt,and generate Material Doc,and the PO number and item should be the input i have put in the screen.

So i want to call standard program 'SAPMIGO' and pass some parameters to this, if you would like ,please add me msn: 1234ming@163.com

or g-talk monson.chen@gmail.com, thanks.

Read only

0 Likes
1,439

I believe you have PO and Line item no on screen. customer will press button "Post GR" which should create a GR document for the specified PO Line item.

In that case why don't you use BAPI BAPI_GOODSMVT_CREATE to post GR documents?

Read only

0 Likes
1,439

BAPI_GOODSMVT_CREATE will serve your purpose.

this BAPI creates a material document ie a good receipt which creates an entry in the table MKPF (Material Document Header)

You need not call the standard program SAPMIGO to create a GR(goods receipt)

this BAPI will create a GR for your PO and Item given in the selection screen.

See its documentation of how to use it, its easy and understandable.

Regards

Gopi

Read only

0 Likes
1,439

thanks for everyone.

the customer wants to do something as MIGO, and can change some thing such as quantity and others than to do GR. that is to say, they want to run this program in front ground. i knwo BAPI and other goods move ment can server this purpose, thanks in advance.

Read only

Former Member
0 Likes
1,439

Hi Monson,

Instead of MIGO can you try MB1A for GI

Regards,

Prabhu Rajesh