2010 May 25 4:34 PM
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.
2010 May 26 4:26 AM
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.
Best Regards,
Jerry
2010 May 26 6:48 AM
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
2010 May 26 7:50 AM
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
2010 May 26 2:19 PM
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.