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: 

Going forward - pl. help ASAP

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

Hi Dinesh

But pl. tell me where I should put this line .PAI /PBO ?

0 Kudos

solved it myself