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: 

ALV tab strip tree and container

Former Member
0 Kudos

Hi Gurus,

i have a requirement , in which a list of records are displayed as tree ALV at output and when user clicks on any of the records then in the bottom of the screen , it should display its item detials as tab strip in the same screen ( i mean the reords which are initially diplayed and the tabstrip in the same screen) , initailly i should not get the tabstrip after double clicking only it should disply at bottom. this is achieved using OOPS ABAP....Pleas e help me on this......or any demo program.

Thanks and regards,

Rajesh.

4 REPLIES 4

JerryWang
Advisor
Advisor
0 Kudos

Hello Rajesh,

Generally speaking, if you want to display records and record detail in the same screen, you can use docking container or splitter container.

How to find sample code & report for the two?

1. SE38, menu Enviroments->Examples->Controls Examples

2. workbench Demos->Controls->Container Controls->Splitter container and docking containers. From there you can see the source code of the two.

In order to fulfill your requirement, you can use following code:

CALL METHOD splitter->get_container

EXPORTING row = 1

column = 1

RECEIVING container = container_1.

CALL METHOD splitter->get_container

EXPORTING row = 2

column = 1

RECEIVING container = container_2.

and put your record ALV into container_1 and put detail ALV into container2. Once you click hotspot in ALV in container1, you have to implement event handler so that the detailed information of the selected record is displayed in ALV2. You can refer to this PDF about how to achieve it, in SDN there is also lots of article to guide you.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d97...

Best Regards,

Jerry

Former Member
0 Kudos

Hi jerry,

thanks for your reply .here second container may not work, bacause i have to use a tabstrip , and in that i need to call my subscrrens.

Thanks

Rajesh

MarcinPciak
Active Contributor
0 Kudos

Don't know if I follow. You need an ALV in top screen part and in bottom part (after double click on ALV record) a tabstrip with details of that selected record on it. Is that right?

If so, follow these steps:

- create main screen 100 to hold two subscreens (top one 101 (which holds ALV) and bottom one 102)

- in 102 create tapstrip and all field you need there to show youe details

- create dummy subscreen (empty one 103)

- create two subscreen areas in main screen (top and bottom one)

- initially display top 101 in top area and 103 in bottom part

- handle double click event for ALV -> here set bottom part to hold 102 subscreen (your tabstrp will show with details)

This is pretty much how collapsible areas work in SAP. Whenever you expand such area there is placed a subscreen with certain content on it, when you compress it, the blank screen is just dispalyed instead. Refer t-code BIBS -> Collapsible Area .

Regards

Marcin

Former Member
0 Kudos

Hi Marcin,

thanks for you suggestion ,i tried this but i am unable to achieve my Functionality , Please let me know if any other solutions or standard program which supports this functionality.

Thanks,

Rajesh.