Application Development and Automation 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: 
Read only

Multiple ALV Reports --

Former Member
0 Likes
715

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

6 REPLIES 6
Read only

Former Member
0 Likes
686

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.

Read only

Former Member
0 Likes
686

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>

Read only

Former Member
0 Likes
686

Hello Priya,

I had a similar task earlier!

Do u have to change the field catalog dynamically?

Read only

0 Likes
686

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

Read only

0 Likes
686

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

Read only

0 Likes
686

Hi,

I