‎2006 Feb 10 8:23 AM
Hi all,
I am using alv grid to display a report.
As I click one of the radio button One report should be displayed.When we click another button another set of report should be displayed. Each report uses different itab.
I need to commonize the use of the fn REUSE_ALV_BLOCK_GRID_DISPLAY.
I dont want to use the same fn again but with different itab name.
Regards,
Priya
‎2006 Feb 10 8:26 AM
U can achieve the same using Tabstrip.
Here is the code sample
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/abap-co... code sample for tab strip in alv.pdf
Goto downloads > codesample > webas > then select the download button near webas and then a page will open in that u search for <b>ABAP Code Sample for TabStrip in ALV</b>.
Hope this helps u.
‎2006 Feb 10 9:00 AM
Hi Priya,
follow these steps
just declare one variable to dynamically pass itab name and pass that in the function module on the basis of the radio button u selected
small ex
case sy-ucomm.
when radbutt1 = 'x'.
dynitab = itab1.
when radbutt2 = 'x'.
dynitab = itab2.
end case
and in the grid func module pass like this
T_OUTTAB = dynitab.---dynamic itab
Reward points if it help u
Regards,
<i><b>Sri</b></i>
‎2006 Feb 10 9:15 AM
Hello Priya,
I had a similar task earlier!
Do u have to change the field catalog dynamically?
‎2006 Feb 13 9:31 AM
HI BR AND SRI,
Thanks for the reply,
I have to declare the dynitab of what type.
Also my field catalog is to be changed dynamically.
Please help me to do so.
Thanks,
Priya
‎2006 Feb 13 9:46 AM
Hello Priya,
Call this FM 'REUSE_ALV_LIST_LAYOUT_INFO_SET'
and set the
slis_selfield-refresh = 'X'
Do this activity in the "user_command" routine of the ALV.
When you are dynamically changing the Fieldcatalog, hide the fields which you do not want based on the condition.
Thanks,
Bharadwaj
‎2006 Feb 15 5:35 AM