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

ALV Interactive report using Factory method (CL_SALV)

Former Member
0 Likes
11,636

Hi,

I am trying to create a ALV interactive report using class CL_SALV_Table and Factory Method.

In this ALV report ,if I click on a perticular field then detail should be appear in another ALV and again if I click a perticular field then details should be appear in another ALV[3rd layer] .

Please,guide me how can I approach to accomplish this.

if possible kindly provide sample code.

Hi,

I am trying to create a ALV interactive report using class CL_SALV_Table and Factory Method.

In this ALV report ,if I click on a perticular field then detail should be appear in another ALV and again if I click a perticular field then details should be appear in another ALV[3rd layer] .

Please,guide me how can I approach to accomplish this.

if possible kindly provide sample code.

6 REPLIES 6
Read only

pokrakam
Active Contributor
5,104

People who use their real names get more answers.

Read only

Former Member
0 Likes
5,104

Get the ALV instance from the ALV Factory method(LO_ALV)

From the ALV instance call method LO_ALV->GET_EVENT( )

Create event handlers for the events such as DOUBLE_CLICK(SET HANDLER lo_event_handler->on_double_click)

Read only

0 Likes
5,104

Hi Subhashini..thanks to guide.

If possible,can you provide sample code for this..so that it would be easy to understand for me.

Read only

5,104

Some Suggestions :

  • SALV-Tutorials : link
  • Check the "SALV*DEMO*" Example Reports in your SAP System (such as "SALV_DEMO_TABLE_EVENTS" for the different Events that can be called) ...
Read only

amy_king
Active Contributor
5,104

Hi Ravi,

Take a look at program SALV_DEMO_TABLE_COLUMNS for working examples of both hotspot and hyperlink columns which the user may click to fire an event.

If you intend the 3 "layers" of ALV to appear on the screen at the same time, take a look at class CL_GUI_SPLITTER_CONTAINER or class CL_GUI_EASY_SPLITTER_CONTAINER.

Cheers,

Amy