Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Back button

brent_morrison
Explorer
0 Kudos
56

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?

3 REPLIES 3

Former Member
0 Kudos
35

Check the parameters passed to the FM RS_HDSYS_CALL_TC_VARIANT like the mode of call.

Hope this helps.

Thanks

Balaji

Former Member
0 Kudos
35

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.

Former Member
0 Kudos
35

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).