‎2011 Sep 20 6:52 PM
Hi Experts,
While using BDC method to call MIGO, I am not getting desired output.
Find below the code snippet.
clear bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'GODYNPRO-ACTION'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'GODYNPRO-ACTION'.
bdcdata_wa-fval = 'A01'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'BDC_CURSOR'.
bdcdata_wa-fval = 'GODYNPRO-REFDOC'.
append bdcdata_wa to bdcdata_tab.
clear bdcdata_wa.
bdcdata_wa-fnam = 'GODYNPRO-REFDOC'.
bdcdata_wa-fval = 'R01'.
append bdcdata_wa to bdcdata_tab.
call transaction 'MIGO' using bdcdata_tab options from opt .
I am getting MIGO screen but Reference document type is not getting displayed properly.
Regards,
Sibinraj
‎2011 Sep 20 7:12 PM
Hi
The code snippet given in thread is not complete. When I recorded I am getting many values and other details.
Please do a recording again for the transaction code
Shiva
‎2011 Sep 20 7:53 PM
Hi Shiva,
Actually I pasted code for only 2 filed values with which I want MIGO to be displayed.While executing my program I am getting MIGO with following selections
A01 Goods Receipt
R01 ' ' here it should be Purchase Order.Instead it is showing blank and hence I could not get desired output.
If the user selects A01 R01 using MIGO, everything is working fine.If he selects any other selection criteria,system will show the last selection as default value.
Can I set MIGO as default using Goods Receipt against Purchase Order always when I execute MIGO Tcode?
Regards,
Sibinraj
‎2011 Sep 20 8:00 PM
Hi
Try below code and change accordingly
perform bdc_dynpro using 'SAPLMIGO' '0001'.
perform bdc_field using 'BDC_OKCODE'
'=OK_GO'.
perform bdc_field using 'GODYNPRO-ACTION'
'A01'.
perform bdc_field using 'GODYNPRO-REFDOC'
'R01'.
perform bdc_field using 'GODEFAULT_TV-BWART'
'101'.
perform bdc_field using 'BDC_CURSOR'
'GODYNPRO-PO_NUMBER'.
perform bdc_field using 'GOHEAD-BLDAT'
'20.09.2011'.
perform bdc_field using 'GOHEAD-BUDAT'
'20.09.2011'.
perform bdc_field using 'GOHEAD-WEVER'
'1'.
perform bdc_dynpro using 'SAPLMIGO' '0001'.
perform bdc_transaction using 'MIGO'.
Shiva
‎2011 Sep 21 4:46 AM
Hi,
MIGO is an Enjoy Transaction. You should not use BDC method to call it . Check the function module MIGO_DIALOG to call it. Please search for the function, you will get some examples.
Regards
Kesav
‎2011 Sep 21 6:11 AM
Hi Keshav,
I also want to pass delivery Note number to MIGO.
I used the following code using MIGO_DIALOG but delivery note number is getting displayed
SUBMIT MB_CALL_MIGO_DIALOG
WITH I_ACTION = 'A01'
WITH I_REFDOC = 'R01'
WITH I_EBELN = w_po
WITH I_LIFSNR = 'DEL001''
AND RETURN.
CALL FUNCTION 'MIGO_DIALOG'
EXPORTING
I_ACTION = 'A01'
I_REFDOC = 'R01'
I_EBELN = w_po
I_LIFSNR = 'DEL001''
EXCEPTIONS
ILLEGAL_COMBINATION = 1
OTHERS = 2.
Regards,
Sibinraj
‎2011 Sep 21 6:45 AM
Hi Sibinraj,
can you please have a look at MIGO transactin first , before you any more questions abt it .
A01-->GR
A04-->Display
R01-->PO
R04/05->for i/o delivery
regards
‎2011 Sep 21 7:20 AM
Hi Prabhu,
Can I pass delivery note number to standard MIGO using MIGO_DIALOG function module?
Regards,
Sibinraj