‎2007 Sep 24 4:11 AM
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
‎2007 Sep 24 4:15 AM
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
‎2007 Sep 24 4:17 AM
MIGO is a transaction. Do you want to create GR documents? You can use BAPI BAPI_GOODSMVT_CREATE.
‎2007 Sep 24 5:01 AM
yes, I just want to call standard program '' SAPLMIGO'', anyone can tell me how to call, thanks.
‎2007 Sep 24 5:05 AM
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?
‎2007 Sep 24 5:14 AM
‎2007 Sep 24 5:35 AM
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.
‎2007 Sep 24 5:37 AM
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?
‎2007 Sep 24 5:57 AM
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
‎2007 Sep 24 6:08 AM
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.
‎2007 Sep 24 5:48 AM
Hi Monson,
Instead of MIGO can you try MB1A for GI
Regards,
Prabhu Rajesh