Skip to Content
0
Former Member
Apr 23, 2007 at 07:30 AM

alv grid - call transaction 'ME22N' and reflect the change made in alv grid

374 Views

Hi,

<u>Scenario</u>

I have an alv list which has fields Purchase document no. (EBELN) and Item delivery date (EINDT). EBELN field is hot spot enabled. when i click on that transaction 'ME22' is called. I have done this using USER_COMMAND subroutine.the code is given.

----


  • FORM USER_COMMAND *

----


  • ........ *

----


  • Call transaction ME22N on clicking Document number *

----


FORM USER_COMMAND USING F_UCOMM LIKE SY-UCOMM

I_SELFIELD TYPE SLIS_SELFIELD.

DATA: F_SUBRC LIKE SY-SUBRC,

s_arseg like G_T_PORD. "the internal table used is G_T_PORD

CASE F_UCOMM.

WHEN '&IC1'.

IF i_selfield-fieldname = 'EBELN'.

READ TABLE G_T_PORD INDEX i_selfield-tabindex INTO s_arseg.

SET PARAMETER ID 'BES' FIELD s_arseg-ebeln.

CALL TRANSACTION 'ME22N' AND SKIP FIRST SCREEN.

ENDIF.

ENDCASE.

endform.

<u>Requirement</u>

After calling the transaction, If the user changes the Item delivery date (EINDT) at the ME22 transaction screen, the new date needs to be reflected in the ALV grid.

Plz help it is very urgent.