Skip to Content
0
Former Member
Sep 12, 2007 at 04:51 AM

Going forward - pl. help ASAP

19 Views

Hi everyone !

I have no screens in my prg. I am using OOPS ALV.

I am able to go forward from selection screen to 9001 to 9002 screens.

But when I go back to 9001 from 9002, when I select different set of materials in 9001 and hit on one button which takes forward to 9002 its not going anywhere, i am still in the same screen 9001.

PBO

IF g_custom_container IS INITIAL.

PERFORM create_and_init_alv_9001.

ELSE.

CALL METHOD g_grid->refresh_table_display.

CALL METHOD cl_gui_cfw=>flush.

ENDIF.

PAI

MODULE pai_9001 INPUT.

save_ok = ok_code.

CLEAR ok_code.

CASE save_ok.

WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.

LEAVE TO SCREEN 0.

CALL METHOD g_grid->free.

FREE g_grid.

WHEN 'DEMD'.

PERFORM get_selected_line .

ENDCASE.

CLEAR save_ok.

ENDMODULE. " PAI_9001 INPUT

My Observation - when v come back to 9001 from 9002 in PBO g_custom_container IS not INITIAL so its going to else part and clearing its not taking forward.

Pl. kindly help me out.