‎2008 Mar 20 5:37 PM
I am calling transaction IW29 using function RS_HDSYS_CALL_TC_VARIANT from a screen in a Z program. The problem is when I am in IW29 and I click the 'Back' button it will not take me back to the Z screen. It will only take me back to the SAP main screen. Does anyone know how I can get it to go back to the previous screen?
‎2008 Mar 21 3:39 AM
Check the parameters passed to the FM RS_HDSYS_CALL_TC_VARIANT like the mode of call.
Hope this helps.
Thanks
Balaji
‎2008 Mar 21 3:58 AM
Hi,
After call transaction ,Pick the sy-ucom 'BACK'
Call transaction ..........
IF sy-subrc eq 0.
DATA ref1 TYPE REF TO cl_gui_alv_grid.
IF sy-ucomm eq 'BACK'. " here write the function code of back
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
e_grid = ref1.
CALL METHOD ref1->check_changed_data.
CALL METHOD ref1->refresh_table_display.
LEAVE TO SCREEN 0.
ENDIF.
ENDif.
‎2008 Mar 24 12:07 PM
for this do coding fo back button like:
when back
call screen.
(where screen is d screen you actually want to call n not the main SAP screen).