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: 

add hotspot in ALV GRID header

former_member537489
Participant
0 Kudos
267

Dear sirs,

I am using fm REUSE_ALV_COMMENTARY_WRITE to display some information in ALV grid : REUSE_ALV_GRID_DISPLAY.

no user command is available there.

how can I do that?

Thanks,

Roxani

7 REPLIES 7

former_member191735
Active Contributor
0 Kudos
152

Have you seen the documentation of these two FM's?

In reuse_alv***** fm

you can use field catalog type slis_t_fieldcat_alv to set hotspot and

I_CALLBACK_USER_COMMAND is there to handle the event.

This thread will be locked before you even see this. Better check the demo programs.... BCALV_DEMO*

0 Kudos
152

@Sampath Kumar -does FM REUSE_ALV_COMMENTARY_WRITE use the field catalog?

Rob

0 Kudos
152

Hi Rob,

yes you are right, no field catalog is used in REUSE_ALV_COMMENTARY_WRITE.

is there any other way?

Thank you,

Roxani

0 Kudos
152

Hi Roxani,

May I ask what is the purpose of your requirement? Depending on that I can suggest to create the ALV with an Object Oriented approach and for the header use class CL_DD_DOCUMENT.

Regards,

Ernesto.

0 Kudos
152

Hi Ernesto,

They need to double click to header information to call a transaction.

For now I just gave them solution in doulble clicking one of the items in the records of the table underneath.

how if this CL_DD_DOCUMENT work? should I change the DISPLAY GRID FM?

Thanks,

Roxani

0 Kudos
152

Hi,

I usually clicked a row or a field and then called a Transaction. I think that is the best solution. Anyway, CL_DD_DOCUMENT allows you to add several objects to the header, like a URL for example, but you'll have to rebuild your ALV. Another one, that you can try is Class CL_DD_BUTTON_ELEMENT to add a button. This last one I haven't used it yet.

Why it has to be the title and not a button added to the toolbar?

Regards,

Ernesto.

0 Kudos
152

Hi Ernesto,

the header should display a contract account number , hich in double click should call transaction fpl9.

so it would be great if I could display this field as hotspot.

is there any functionality like that in CL_DD_DOCUMENT ?

Thanks,

Roxani