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

Display MIGO using BDC

Former Member
0 Likes
1,709

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,408

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

Read only

0 Likes
1,408

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

Read only

0 Likes
1,408

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

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,408

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

Read only

0 Likes
1,408

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

Read only

0 Likes
1,408

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

Read only

0 Likes
1,408

Hi Prabhu,

Can I pass delivery note number to standard MIGO using MIGO_DIALOG function module?

Regards,

Sibinraj