Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9071

Re: Selecting one cell in the display mode in ALV GRID control

$
0
0

Hi,

You can try this to highlight a particular column you want.

 

Suppose you got a method called fieldcatalog in a class definition.

 

fieldcatalog IMPORTING   tablename   TYPE lvc_tname  

                                          fieldname   TYPE lvc_fname
                                          emphasize    TYPE lvc_emphsz
                  EXPORTING   t_fieldcat TYPE lvc_t_fcat.

 

In class implementation.

 

METHOD fieldcatalog4.                          

    x_fieldcat4-fieldname = fieldname.
    x_fieldcat4-tabname   = tablename.
    x_fieldcat4-emphasize = emphasize.
    APPEND x_fieldcat4 TO t_fieldcat4.
    CLEAR: x_fieldcat4.
ENDMETHOD.

 

Calling the method.

 

 

  CALL METHOD obj->fieldcatalog
    EXPORTING
      fieldname   = 'Fieldname'
      tablename   = 'Internal_Table'
      emphasize   = 'X'
    IMPORTING
      t_fieldcat = t_fieldcat.

 

In Reuse_alv_grid_display.

Pass t_fieldcat

it_fieldcatalog               = t_fieldcat

 

This will highlight the only column you want to highlight.

Regards


Viewing all articles
Browse latest Browse all 9071

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>