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: 

How to clear the Custom Container ( ALV ) in Module pool

Former Member
0 Kudos

Hi all

I have created a module pooljust like a report..

First screen is selection parameter and second screen is the report... I have placed 2 custom container and have added 2 ALV control in that...

But Based on the parameter , iam not able to change the contents of the ALV ...

How to do that....I am not able to clear the ALV ie the custom container....

Can anyone help me in this...

Cheers

Christina

1 ACCEPTED SOLUTION

Former Member
0 Kudos

FREE <container>

2 REPLIES 2

Former Member
0 Kudos

FREE <container>

Former Member
0 Kudos

Hi,

We need to use FREE statement.

please do this way:

For

form exit_program .

call method cc1->free.

call method cc2->free.

call method cc3->free.

call method cc4->free.

call method cl_gui_cfw=>flush.

if sy-subrc <> 0.

call function 'POPUP_TO_INFORM'

exporting

titel = lv_repid

txt1 = 'Error in Flush'(500)

txt2 = sy-subrc.

.

endif.

endform. " exit_program

-


module user_command_0100 input.

case sy-ucomm.

when 'BACK'.

perform exit_program.

set screen '0'.

when 'EXIT' or 'CANC'.

perform exit_program.

leave program.

endcase.

endmodule. " USER_COMMAND_0100 INPUT

&----


thanx.