Application Development 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: 

Set default options for MIGO transaction

former_member202335
Participant
0 Kudos

Hi,

I have created a transaction which contains the material document as one of the fields. My requirement is to display the material document in the MIGO transaction when the user clicks on the material document.

In order to achieve this, I wrote the following 2 lines of code: -

SET PARAMETER ID 'MBN' FIELD lx_header_scr-gmvt_num.

CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.

As can be seen in the first line of code, I am setting the material document number in the MIGO transaction using the parameter ID. However, on the left of the text box where the material document is populated in the MIGO transaction, there are 2 drop-down lists whose values are supposed to be 'Display' and 'Material Document' respectively. However, I don't see any parameter ID attached to these fields. Is there any other way to set them to values specified?

PLEASE REPLY ASAP! THIS IS URGENT!

Thanks and regards,

Divyaman

1 REPLY 1

former_member202335
Participant
0 Kudos

Hi,

Thanks! I managed to resolve the problem. The following function module can be called to call the MIGO transaction to display material documents.

CALL FUNCTION 'MIGO_DIALOG'

EXPORTING

i_action = 'A04'

i_refdoc = 'R02'

i_notree = 'X'

i_skip_first_screen = 'X'

i_okcode = 'OK_GO'

i_mblnr = lx_header_scr-gmvt_num

i_mjahr = lx_header_scr-gmvt_year

EXCEPTIONS

illegal_combination = 1

OTHERS = 2.

Regards,

Divyaman