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

ALV OOPS - Displaying ALV Header

Former Member
0 Likes
1,987

Hi Freinds,

I am working on with ALV-OOPS,i just want to know the follwoing things as given below using OOPS ALV

1) Interactive report what are the asosciated methods.

2) Displaying header for ALV in OOPS.

Can you help me on it.

Regards

Dinesh

Hi Freinds,

I am working on with ALV-OOPS,i just want to know the follwoing things as given below using OOPS ALV

1) Interactive report what are the asosciated methods.

2) Displaying header for ALV in OOPS.

Can you help me on it.

Regards

Dinesh

4 REPLIES 4
Read only

Former Member
0 Likes
1,428

Hi Dinesh,

What do you mean by Associated Methods in Interactive Reports?

In OOPS - ALV, you need to create a Custom Container. You then pre-fill the data in the internal table and then finally displaying it in the Report or Normal Dynpro Programming.

Yes. You can display Headers in OOPS ALV. Scan the forum for multiple sample codes and examples. You need to fill the field GRID_TITLE in the ALV Layout Structure - LVC_S_LAYO. This will display the Title.

Hope this will help.

Thanks,

Samantak

Edited by: Samantak Chatterjee on Jun 9, 2010 8:52 PM

Read only

Former Member
0 Likes
1,428

Search for SALV_DEMO* in your SAP system to find all your answers.

Read only

Former Member
0 Likes
1,428

Hi Vinay,

For creating OOPs ALV u need to folleow these steps..

1) Create a custom container and name it

2) Create a reference variable for CL_GUI_CUSTOM_CONTAINER then create a object for this and pass the container name

3) Create a reference variable for CL_GUI_ALV_GRID then create object for this and pass container as parent to this.

And also we can print Headers and footers by using Events like....

1) Print_Top_Of_Page

2) Print_End_Of_Page

u have handle these events thru SET HANDLER

For dispalying the output u have to use the methods like...

SET_TABLE_FOR_FIRST_DISPALY

Hope u understood....

Regards

Hari

Read only

Former Member
0 Likes
1,428

Hello Vinayak,

What I understand from you following question is

1-AXSN2P: CCinvoice RFC handling of accrual tax u2013 11th Jun

How you can catch values those are selected when you double click any row from alv.

You need to write event handler class for handling event DOUBLE_CLICK.

For OOPS - ALV you can use either event handling for double click or enabling hot spot.

Refer to [SAP help on registering double click event |http://help.sap.com/saphelp_47x200/helpdata/en/0a/b552f7d30911d2b467006094192fe3/frameset.htm] for more details.

In both cases you have to use different ALV methods like get_current_cell, get_selected_cells, get_selected_cells_id, get_selected_columns, get_selected_rows to get values from the ALV.

Enjoy SAP!,

-Augustin.