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

CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY

Former Member
0 Likes
1,102

Hi,

i am trying to display the output in ALV using Class cl_gui_alv_grid and cl_gui_custom_container and i have used 4 tables to fetch and display the data so what should be the structure name I_STRUCTURE_NAME = ' ' in CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY. I did the coding as

CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_STRUCTURE_NAME = ' '

CHANGING

IT_OUTTAB = it_data.

Manoj

Hi,

i am trying to display the output in ALV using Class cl_gui_alv_grid and cl_gui_custom_container and i have used 4 tables to fetch and display the data so what should be the structure name I_STRUCTURE_NAME = ' ' in CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY. I did the coding as

CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY

EXPORTING

I_STRUCTURE_NAME = ' '

CHANGING

IT_OUTTAB = it_data.

Manoj

6 REPLIES 6
Read only

vinod_vemuru2
Active Contributor
0 Likes
965

Hi,

Before starting the development, i suggest you to go through some examples provided by SAP.

eg: report BCALV_GRID_DEMO.

Search in se38 with BCALV*.

you have to pass fieldcatelog when your output table contains fields from different tables.

Thanks,

Vinod.

Read only

Former Member
0 Likes
965

Hi,

It is not needed to pass value for this parameter, just final internal table is required to be passed to

IT_OUTTAB.

But if you still wish to use it, declare it of type DD02L-TABNAME.

Regards,

Abhijeet Kapgate

Read only

Former Member
0 Likes
965

Hi,

As Abhihjeet has already mentioned, this parameter is not mandatory, however, if you still wish to use it, you can create a Z structure with the fields that you require for display in the output and pass that structure name to this parameter.

It's a good practice to have a Z structure declared for your ALV output display especially if it has currency or qualtity fields.

Regards,

Aparna Alashe.

Read only

Former Member
0 Likes
965

Hi Manoj,

Check the below thread.

[http://wiki.sdn.sap.com/wiki/display/ABAP/7stepstocreateOOPS+ALV]

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
965

You can aslo use the field catalouge, if you are interested in a sturcture then create it in se11 and use it.

Read only

Former Member
0 Likes
965

Hi Manoj,

Check the link below. Its very useful for ALV OOPS.

[OOPS ALV|http://help-abap.blogspot.com/search/label/OO%20ALV]