Skip to Content
0
Former Member
Jul 27, 2010 at 11:59 AM

Call Transaction with MIGO

1593 Views

Hi All,

I am facing the problem while calling the MIGO Transaction for Transfer Posting from the ALV Grid.

Below is the Code.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

I_CALLBACK_PROGRAM = G_REPID

I_GRID_TITLE = G_TITLE

I_CALLBACK_USER_COMMAND = 'UCOMM'

IS_LAYOUT = G_LAYOUT

IT_FIELDCAT = GIT_FIELDCAT

I_SAVE = 'A'

TABLES

T_OUTTAB = GIT_ALV[]

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

FORM UCOMM USING P_R_UCOMM LIKE SY-UCOMM

P_RS_SELFIELD TYPE SLIS_SELFIELD.

CASE P_R_UCOMM.

WHEN '&IC1'.

IF P_RS_SELFIELD-FIELDNAME EQ 'STRNUM'.

CLEAR : GWA_ALV.

READ TABLE GIT_ALV INTO GWA_ALV WITH KEY STRNUM = P_RS_SELFIELD-VALUE.

SET PARAMETER ID 'BWA' FIELD GWA_ALV-BWART.

SET PARAMETER ID 'MAT' FIELD GWA_ALV-MATNR.

SET PARAMETER ID 'WRK' FIELD GWA_ALV-WERKS.

SET PARAMETER ID 'LAG' FIELD GWA_ALV-LGORT.

CALL TRANSACTION 'MIGO' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

ENDFORM. "ucomm

MIGO is opened up but without the following parametes being set.

Please suggest.

Regards

Shruti