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: 

TOOLTIP problem with GRID_DISPLAY

Former Member
0 Kudos

Hi,

i will test tooltip and write this:

TABLES: MARA.

TYPE-POOLS: SLIS.

*

TYPES: BEGIN OF GS_ITAB,

MATNR LIKE MARA-MATNR,

MATKL LIKE MARA-MATKL,

CLR_F TYPE SLIS_T_SPECIALCOL_ALV,

END OF GS_ITAB.

*

DATA: GT_ITAB TYPE TABLE OF GS_ITAB.

DATA: WA_ITAB TYPE GS_ITAB.

*

DATA: GS_LAYOUT TYPE SLIS_LAYOUT_ALV.

DATA: GT_FIELDCAT TYPE TABLE OF SLIS_FIELDCAT_ALV.

DATA: WA_FIELDCAT TYPE SLIS_FIELDCAT_ALV.

DATA: GT_EXC TYPE TABLE OF SLIS_QINFO_ALV.

DATA: WA_EXC TYPE SLIS_QINFO_ALV.

DATA: WA_CLR_F TYPE SLIS_SPECIALCOL_ALV.

START-OF-SELECTION.

SELECT * FROM MARA UP TO 20 ROWS.

CLEAR: WA_ITAB.

MOVE-CORRESPONDING MARA TO WA_ITAB.

WA_CLR_F-FIELDNAME = 'MATNR'.

WA_CLR_F-COLOR-COL = 6.

WA_CLR_F-COLOR-INT = 0.

WA_CLR_F-COLOR-INV = 0.

APPEND WA_CLR_F TO WA_ITAB-CLR_F.

APPEND WA_ITAB TO GT_ITAB.

ENDSELECT.

GS_LAYOUT-COLTAB_FIELDNAME = 'CLR_F'.

*

CLEAR WA_FIELDCAT.

WA_FIELDCAT-REF_TABNAME = 'MARA'.

WA_FIELDCAT-REF_FIELDNAME = 'MATNR'.

WA_FIELDCAT-FIELDNAME = 'MATNR'.

WA_FIELDCAT-TABNAME = 'IT_ITAB'.

APPEND WA_FIELDCAT TO GT_FIELDCAT.

CLEAR WA_FIELDCAT.

WA_FIELDCAT-REF_TABNAME = 'MARA'.

WA_FIELDCAT-REF_FIELDNAME = 'MATKL'.

WA_FIELDCAT-FIELDNAME = 'MATKL'.

WA_FIELDCAT-TABNAME = 'IT_ITAB'.

APPEND WA_FIELDCAT TO GT_FIELDCAT.

WA_EXC-TYPE = CL_SALV_TOOLTIP=>C_TYPE_COLOR.

WA_EXC-VALUE = '600'.

WA_EXC-TEXT = 'Farbe 600'.

APPEND WA_EXC TO GT_EXC.

CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'

  • CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

IS_LAYOUT = GS_LAYOUT

IT_FIELDCAT = GT_FIELDCAT

IT_EXCEPT_QINFO = GT_EXC

TABLES

T_OUTTAB = GT_ITAB

EXCEPTIONS

PROGRAM_ERROR = 1

OTHERS = 2.

when i use 'REUSE_ALV_LIST_DISPLAY' it does, what i want,

but when i use 'REUSE_ALV_GRID_DISPLAY' i don't get the tooltip.

Any idea, what mistake i do? For both i use the same code, only i comment the CALL-statement.

Regards, Dieter

6 REPLIES 6

former_member188685
Active Contributor
0 Kudos

Check this if you are on above 4.7 , then check this program

BCALV_DEMO_TOOLTIP

0 Kudos

Hi Yash,

i get my information from BCALV_DEMO_TOOLTIP.

When i test this report and set GRID, i don't get tooltip on color-col,

but when i set LIST, i get it,

Wy?

Regards, Dieter

0 Kudos

Hi Dieter,

To view the tooltip of the ALV Grid display we need to put the sap GUI into accessibilty mode. To change the GUI into accessible mode , go to windows -> control panel -> SAP Configuration. In the pop up ,check the 'Use accessiblity mode'.

once the accessibilty mode is set you run the report again and you can see the tooltip for the GRID.

Regards,

Christina.

0 Kudos

Hi Christina,

thanks for your answer. Now it works like i want, but the problem is, that we don't use this

mode, we prefer streamline mode.

I think, i don't use toolkit and i will find another way to give the information,

because the most of our user don't use accessibilty mode.

Thanks again.

Regards, Dieter

0 Kudos

Hi Dieter,

Did you find any solution to ur prob?

I am also facing the same problem. Is there any other way to show the tooltip text for the particular columns in ALV grid?

rgds

Madhuri

former_member181962
Active Contributor
0 Kudos

Hi Dieter,

The export/import parameters if the two FunctionModules are totally different and it doesn't siffice to just comment/uncomment the call function statement.

Anyhow, i doubt if we can get a tool tip in LIST display though.

Regards,

Ravi Kanth Talagana