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: 

display the output in tabstrip with alv grid using tabbed blocks

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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.

0 Kudos

Thanks alonso,

You gave me good stuff.....

Thanking you,

srik

0 Kudos

Its Very Helpful.

Thanks to you.