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

ERROR in creating a HOTSPOT

Former Member
0 Likes
1,116

Hi,

I have created a HOTSPOT for the field MAT_NO but i am getting an error message which i am not able to resolve. Guys please help me out here.

this is how the declaration part looks like.

TYPE-POOLS : slis.

   DATA : it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,

         wa_fcat LIKE LINE OF it_fcat.

this is where i have created HOTSPOT.

wa_fcat-fieldname =  'MAT_NO'.

   wa_fcat-seltext_m = 'MAT_NO'.

   wa_fcat-col_pos = '1'.

   it_fcat-hotspot = 'X'.

   APPEND wa_fcat TO it_fcat.

I have called a function,

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

  EXPORTING

    IT_FIELDCAT                       = IT_FCAT

   TABLES

     t_outtab                          = ITAB.


Kindly check with the ERROR message.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,079

Hi, Just make the below change.

replace IT_FCAT by IT_FCAT[] and check.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

  EXPORTING

    IT_FIELDCAT                       = IT_FCAT[]

   TABLES

     t_outtab                          = ITAB.

Hi,

I have created a HOTSPOT for the field MAT_NO but i am getting an error message which i am not able to resolve. Guys please help me out here.

this is how the declaration part looks like.

TYPE-POOLS : slis.

   DATA : it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE,

         wa_fcat LIKE LINE OF it_fcat.

this is where i have created HOTSPOT.

wa_fcat-fieldname =  'MAT_NO'.

   wa_fcat-seltext_m = 'MAT_NO'.

   wa_fcat-col_pos = '1'.

   it_fcat-hotspot = 'X'.

   APPEND wa_fcat TO it_fcat.

I have called a function,

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

  EXPORTING

    IT_FIELDCAT                       = IT_FCAT

   TABLES

     t_outtab                          = ITAB.


Kindly check with the ERROR message.

6 REPLIES 6
Read only

Former Member
0 Likes
1,079

Remove the WITH HEADER LINE addition in IT_FCAT and check.

Use work area for assigning values.

Thanks,

Shambu

Read only

0 Likes
1,079

if i remove WITH HEADER LINE i am getting another error saying use WITH HEADER LINE with HOTSPOT

Read only

0 Likes
1,079

Instead of

it_fcat-hotspot = 'X'.

use

wa_fcat-hotspot = 'X'.

Read only

0 Likes
1,079

i had used work area only before. Even that doesn't work. I am getting the same error.

Read only

Former Member
0 Likes
1,079

Dear Sanjeeth,

  wa_fcat-fieldname =  'MAT_NO'.

   wa_fcat-seltext_m = 'MAT_NO'.

   wa_fcat-col_pos = '1'.

   it_fcat-hotspot = 'X'.

   APPEND wa_fcat TO it_fcat.

where        it_fcat-hotspot = 'X'.


is creating error ,

   correct statement :


   wa_fcat-hotspot = 'X'.   

Regards,

Jwalant.

Read only

Former Member
0 Likes
1,080

Hi, Just make the below change.

replace IT_FCAT by IT_FCAT[] and check.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

  EXPORTING

    IT_FIELDCAT                       = IT_FCAT[]

   TABLES

     t_outtab                          = ITAB.