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 write

Former Member
0 Likes
459

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
Read only

Former Member
0 Likes
437

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
Read only

Former Member
0 Likes
438

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

Read only

Former Member
0 Likes
437

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

Read only

Former Member
0 Likes
437

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