11-22-2012 11:01 AM
Hi everyone...
I am working on module pool in which i have to populate some tab according to checkbox selected(this part is completed) and each tab i have to show record using alv.
show i created custom control in each tab screen. but when i am hiding the tab still alv is visible, so how i will hide this screen.
i attached 2 pics(t1.jpg, t2.jpg) which will give u an idea.
t1.jpg -- when checkbox is selected and tabs are dispalyed
t2.jpg -- when i unchecked all chekbox and tabs are unvisible but ALV (whis is inside the custom container) is still visible.
11-22-2012 11:35 AM
hi,
I hope you have created three subscreen for different tabs , say 100 for tabstrip screen.when checkbox selects it will open respective subscreens(tabs) withinn subscreen tabs you have used alv display.
if its checked tabstrip is displayed,if not it wont display tabstrip Bcz you have used condition to call screen 100 but at the end grid display happening.
Might be your not checking Checked data(CHECKBOX) while displaying alv grid.
attach your code,,,so that we can help you.
Regards.
Lingaraj.
11-22-2012 11:11 AM
HI Jyotirmaya,
I thought you wrote the code for a custom container outside in the condition you can write the code based on the condition like
if C1= 'X'.
Custom container
Endif.
Like that i am not sure please try like above and let me know if its not working...
11-22-2012 11:14 AM
In thePBO Where you will have Set_table_for_first_display.
Put a condition like this
If Checkbox1 is not Initial or Checkbox2 is not Initial or Checkbox3 is not Initial.
If G_Grid is intial.
Create object for Grid and container and then Set table for display.
else.
refresh table display.
endif.
endif.
hope this helps
11-22-2012 11:29 AM
how to refresh table dispaly, pls need the code bit confuse !!!!
container1 TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid,
11-22-2012 11:35 AM
hi,
I hope you have created three subscreen for different tabs , say 100 for tabstrip screen.when checkbox selects it will open respective subscreens(tabs) withinn subscreen tabs you have used alv display.
if its checked tabstrip is displayed,if not it wont display tabstrip Bcz you have used condition to call screen 100 but at the end grid display happening.
Might be your not checking Checked data(CHECKBOX) while displaying alv grid.
attach your code,,,so that we can help you.
Regards.
Lingaraj.
11-22-2012 11:52 AM
yes i checking the condition
if chkbox = 'X'.
Create object for Grid and container and then Set table for display.
else
??????
endif.
what should i write in place of ???? show that container will hide.
thanks!!
11-22-2012 12:11 PM
in the ??? Place use the below methods.
* Refresh the Table Display
CALL METHOD G_GRID->REFRESH_TABLE_DISPLAY.
* Leave Containter
CALL METHOD G_CONT->FREE( ).
Clear G_GRID.
Hope This solves
11-22-2012 12:29 PM
i got answer to my problem with help from expert especially Venkat.
thanks guys.
i closing this thread.
05-06-2014 2:03 PM