08-28-2006 3:15 PM
Hi,
I have a requirement that is i have to display the output in a tabstrip (with two tabs).
The data should be displayed in the tabs using alv.
This report is already with intractive as per req i need to change it to alv.
Plz give me a solution.
Thanks,
sri
08-28-2006 3:31 PM
Hi,
it is in fact very simple. I assume you´re working with SAP Dialog programming and in your main screen (let´s say 0100) you have to create a Tabstrip control with 2 tabs. In each tab you assign a subscreen for data display (your ALVs). These subscreens are named, let´s say, 0200 and 0300.
When creating a single ALV tree, somewhere you call it like this:
CALL SCREEN 0100.
The screen 0100 has 2 events (PBO & PAI) and in PBO you design the ALV like this:
data: mycontainer TYPE REF TO cl_gui_custom_container,
CREATE OBJECT mygrid
EXPORTING i_parent = mycontainer.
CALL METHOD mygrid->set_table_for_first_display
CHANGING
it_outtab = mytable[]
it_fieldcatalog = field_catal[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
well, working with a tabstrip control, you call screen 0200 for your ALV tree1 and 0300 for ALV tree2 in the same way.
For creating the tabstrip control there´s a wizard that performs the task for you.
08-28-2006 4:11 PM
05-09-2007 7:09 AM