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: 

alv write

Former Member
0 Kudos
68

hi,

i am using ALV_COMMENTARY_WRITE and wont on double click to tu put contain

of alv_grid line e.g field kunnr in LISTHEADER-info.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
46

Hi Nick,

i do it on this way:

DATA: KUNNR LIKE VBAK-KUNNR.

IF R_UCOMM EQ '&IC1' AND SY-SUBRC = 0.

*

KUNNR = itab-KUNNR. "KUNNR from your table

*

...

ENDIF.

...

CLEAR LS_LINE.

LS_LINE-TYP = 'S'.

LS_LINE-KEY = 'Kunde'.

LS_LINE-INFO = KUNNR.

APPEND LS_LINE TO GT_LIST_TOP_OF_PAGE.

*

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

*

Hope i can help you

Regards, Dieter

3 REPLIES 3

Former Member
0 Kudos
47

Hi Nick,

i do it on this way:

DATA: KUNNR LIKE VBAK-KUNNR.

IF R_UCOMM EQ '&IC1' AND SY-SUBRC = 0.

*

KUNNR = itab-KUNNR. "KUNNR from your table

*

...

ENDIF.

...

CLEAR LS_LINE.

LS_LINE-TYP = 'S'.

LS_LINE-KEY = 'Kunde'.

LS_LINE-INFO = KUNNR.

APPEND LS_LINE TO GT_LIST_TOP_OF_PAGE.

*

CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'

EXPORTING

IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.

*

Hope i can help you

Regards, Dieter

former_member188685
Active Contributor
0 Kudos
46

Hi,

what i understood from your question...

<i>is it possible to double click on the line which is there in top_of_page using the alv_comentry_write ex. kunnr</i>

Not possible.

Regards

vijay

Former Member
0 Kudos
46

Hi,

ALV_COMMERNARY_WRITE is only output header info. on alv output.

You`d like raise a detail list on an event, then use CALLBACK USER COMMAND in the alv grid parameter. Assign a form routine to this parameter and this routine should have a standard interface. For further reference refer to the documentation of REUSE_ALV_GRID_DISPLAY.

Reward if helpful.

Regards