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

Header ALV double click

Pcu318
Explorer
0 Likes
1,120

Hi all,

I have an ALV with a header. I need call a form when double click on a field of header.

How can I do?

Thanks a lot.

Paola

Hi all,

I have an ALV with a header. I need call a form when double click on a field of header.

How can I do?

Thanks a lot.

Paola

4 REPLIES 4
Read only

VijayaKrishnaG
Active Contributor
0 Likes
1,040

Hi Paola,

If it is developed using classes, there are classes and events for handling the same. Please do search in the forum. I believe there are many threads on the same.

Regards,

Vijay

Read only

0 Likes
1,040

Hi Vijay,

I 've already implemented the double click for alv using classes,

but I have no idea which is the correct classe for catch the double click in the header.


Thanks anyway.

Paola

Read only

former_member653066
Participant
0 Likes
1,040

hi paola,

can you little bit explore.

what you want to do if you double click on header??

some more clarification is needed..

BR.

mahesh

Read only

0 Likes
1,040

Hi Mahesh,

now, when you click on a row of ALV, I perform this code:

CLASS event_class IMPLEMENTATION.

   METHOD handle_double_click.

      DATA : ls_dd02l LIKE LINE OF gt_zob_dibapdf.

      READ TABLE gt_zob_dibapdf INDEX e_row-index INTO ls_dd02l.

      IF sy-subrc EQ 0.

        DATA: zz_comp(18).

        MOVE LS_DD02L-ZDB_MAT TO zz_comp.

        CLEAR t_spart.

        SELECT SINGLE spart INTO t_spart FROM

                mara WHERE matnr = zz_comp.

        MOVE '\\obdoc\ARX_Connettori\Hvr.Af.ViewdocWS.exe' TO programma.

        MOVE zz_comp TO commandline.

        PERFORM query USING programma.

        PERFORM execute USING programma.

     ENDIF.

  ENDMETHOD.



I need, to do the same thing when you click on  "materiale" in the header of ALV.

But I need to receive the material code from the header and perfrom my form.


thank you very much.

Paola