09-12-2007 5:51 AM
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.
09-12-2007 6:48 AM
Yes your observation is correct .
also make the container free by using this method
call method g_custom_container ->free.
This will work .
Please reward if useful.
09-12-2007 7:45 AM
Hi Dinesh
But pl. tell me where I should put this line .PAI /PBO ?
09-18-2007 6:31 AM