Display GR In MIGO
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.
READ TABLE it_list INTO wa_list INDEX rs_selfield-tabindex.
SET PARAMETER ID: 'MBN' FIELD wa_list-mblnr.
CALL TRANSACTION 'MIGO'.
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.
Edited by: Sai Mohan Das on Sep 13, 2008 10:55 AM
Sanket Mahajan replied
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.