I am trying to call a custom screen when a user clicks on a hotspot in an ALV grid (reuse_alv_grid_display). I want specific values from the row that has been selected by the user to be displayed in the fields of the custom screen.
form handle_user_command using r_ucomm like sy-ucomm
rs_selfield type slis_selfield.
CASE r_ucomm.
when '&IC1'.
if rs_selfield-fieldname = 'SEL'.
READ TABLE it_zcnclog into wa_zcnclog INDEX rs_selfield-tabindex.
SET PARAMETER ID 'MAT' FIELD wa_zcnclog-material.
Call SCREEN '1001'.
If I replace the custom transaction with a standard SAP transaction then values are shown on the standard transaction's screen but otherwise it doesn't. I have checked the SET/GET parameter checkboxes and also checked the TPARA table for the entries but no luck.
Thanks for the help.
The custom transaction that you're calling needs the MEMORY ID value set in the parameter declaration.
PARAMETER: matnr type mara-matnr MEMORY ID MAT.
If the transaction you are calling is a classic dynpro transaction, you need to edit the element attributes of the field and add the MEMORY ID and the SET & GET Parameter boxes.