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: 

Conversion of type "h" to type "g" is not supported.

shiz0frenik
Participant
0 Kudos

Conversion of type "h" to type "g" is not supported.
it arizes when i try to add LVC_T_SCOL in my structure and it work well without it.
I use method "gc_alv_table->display( )." of salv table displaying.

LKGJHU02 - point of the mistake. How to fix that and is it possible to colorize rows in salv table the other way.

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor

For SALV, see demo program SALV_DEMO_TABLE_COLUMNS.

(Program to generate demo data: BCALV_GENERATE_ALV_T_T2)

6 REPLIES 6

Sandra_Rossi
Active Contributor
0 Kudos

For CL_GUI_ALV_GRID, see the demo program BCALV_TEST_GRID.

(Program to generate demo data: BCALV_GENERATE_ALV_T_T2)

0 Kudos

its not a salv table

I'm not sure that many people want to play guessing games. Maybe you should provide all your information

0 Kudos

i ve got an salv table and it displays well after i use "gc_alv_table-display( ). "if i add lvc_t_scol in my structure i m getting conversion mistake. I know, i can colorize with "set_table_for_first_display" and calling a new screen. But is it possible to do it without calling a new screen and overriding layout? And how adding an lvc_t_scol calls an
date type conversion? Also i need to colorize rows,not columns

0 Kudos

Sorry. You don't have to convert anything, you just need to tell SALV that this component of type LVC_T_SCOL is the one to be used for the color (SALV doesn't understand implicitly that a component of type LVC_T_SCOL is the one to be used for the colors). See my other answer for SALV.

Yes you can change the color without need to recreate your SALV instance and without need to call a new screen.

Sandra_Rossi
Active Contributor

For SALV, see demo program SALV_DEMO_TABLE_COLUMNS.

(Program to generate demo data: BCALV_GENERATE_ALV_T_T2)