2012 Aug 01 10:41 AM
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.
2012 Aug 01 11:04 AM
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, 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.
2012 Aug 01 10:52 AM
Remove the WITH HEADER LINE addition in IT_FCAT and check.
Use work area for assigning values.
Thanks,
Shambu
2012 Aug 01 10:56 AM
if i remove WITH HEADER LINE i am getting another error saying use WITH HEADER LINE with HOTSPOT
2012 Aug 01 10:58 AM
2012 Aug 01 11:02 AM
i had used work area only before. Even that doesn't work. I am getting the same error.
2012 Aug 01 11:01 AM
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.
2012 Aug 01 11:04 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |