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: 

Display GR In MIGO

Former Member
0 Kudos

Hi,

I need to call transaction MIGO from a report, I'm using the following code

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

DATA: lt_seltab TYPE STANDARD TABLE OF rsparams WITH HEADER LINE.

CASE r_ucomm.

WHEN '&IC1'.

CLEAR: wa_list.

READ TABLE it_list INTO wa_list INDEX rs_selfield-tabindex.

SET PARAMETER ID: 'MBN' FIELD wa_list-mblnr.

CALL TRANSACTION 'MIGO'.

ENDCASE.

ENDFORM. " USER_COMMAND

When the user double clicks on the list the the control is transfered to MIGO with mblnr set in its input field. The user has to manually press enter key to to display the GR document.

How to automate the 'press enter process' in my code.

I assume SKIP FIRST SCREEN is not applicable in case of MIGO.

Regards,

Sai.

Edited by: Sai Mohan Das on Sep 13, 2008 10:55 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Sai,

I dont have an idea for MIGO but i did same thing for FB03 tcode

In that i m setting few more fields like ,

SET PARAMETER ID 'BLN' FIELD VALUE1. " for belnr

SET PARAMETER ID 'BUK' FIELD CODE-LOW. " for company code

SET PARAMETER ID 'GJR' FIELD TIT_DETAIL-GJAHR. " for year

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

U try like this , Hope your problem will solve.

And if u got success by other way tell me the same.

Regards,

Sanket.

1 REPLY 1

Former Member
0 Kudos

Hi Sai,

I dont have an idea for MIGO but i did same thing for FB03 tcode

In that i m setting few more fields like ,

SET PARAMETER ID 'BLN' FIELD VALUE1. " for belnr

SET PARAMETER ID 'BUK' FIELD CODE-LOW. " for company code

SET PARAMETER ID 'GJR' FIELD TIT_DETAIL-GJAHR. " for year

CALL TRANSACTION 'FB03' AND SKIP FIRST SCREEN.

U try like this , Hope your problem will solve.

And if u got success by other way tell me the same.

Regards,

Sanket.