<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: alv - bold in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114803#M739602</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to define  wa_fieldcatalog-emphasize  value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE_FIELDCAT-EMPHASIZE = 'C710'. "Column colur, Bold and Inverse off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="34394"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2007 19:30:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-21T19:30:20Z</dc:date>
    <item>
      <title>alv - bold</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114802#M739601</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ALL&lt;/P&gt;&lt;P&gt;i want to write fields (text) in bold. What is the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 19:18:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114802#M739601</guid>
      <dc:creator>former_member329386</dc:creator>
      <dc:date>2007-11-21T19:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: alv - bold</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114803#M739602</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to define  wa_fieldcatalog-emphasize  value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LINE_FIELDCAT-EMPHASIZE = 'C710'. "Column colur, Bold and Inverse off&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below thread.&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="34394"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 19:30:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114803#M739602</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-21T19:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: alv - bold</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114804#M739603</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps the following sample report &amp;lt;b&amp;gt;ZUS_SDN_ALV_CELL_STYLE_1&amp;lt;/b&amp;gt; may be of interest for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp; Report  ZUS_SDN_ALV_CELL_STYLE_1
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;
*&amp;amp;
*&amp;amp;---------------------------------------------------------------------*

REPORT  zus_sdn_alv_cell_style_1.


TYPE-POOLS: abap.



TYPES: BEGIN OF ty_s_outtab.
INCLUDE TYPE knb1.
TYPES:   celltab   TYPE lvc_t_styl.  " cell style
TYPES: END OF ty_s_outtab.
TYPES: ty_t_outtab    TYPE STANDARD TABLE OF ty_s_outtab
                      WITH DEFAULT KEY.


DATA:
  gs_layout          TYPE lvc_s_layo,
  gs_variant         TYPE disvariant,
  gt_fcat            TYPE lvc_t_fcat.


DATA:
  gt_outtab          TYPE ty_t_outtab.



START-OF-SELECTION.


  SELECT        * FROM  knb1 UP TO 100 ROWS
    INTO CORRESPONDING FIELDS OF TABLE gt_outtab
         WHERE  bukrs  = '1000'.


  PERFORM set_layout_and_variant.
  PERFORM set_cell_style.


  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'
    EXPORTING
      i_structure_name                  = 'KNB1'
*     I_BACKGROUND_ID                   = ' '
      i_grid_title                      = 'Cell Styles'
*     I_GRID_SETTINGS                   =
      is_layout_lvc                     = gs_layout
*     it_fieldcat_lvc                   =
*     IT_EXCLUDING                      =
*     IT_SPECIAL_GROUPS_LVC             =
*     IT_SORT_LVC                       =
*     IT_FILTER_LVC                     =
*     IT_HYPERLINK                      =
*     IS_SEL_HIDE                       =
*     I_DEFAULT                         = 'X'
      i_save                            = 'A'
      is_variant                        = gs_variant
    TABLES
      t_outtab                          = gt_outtab
    EXCEPTIONS
      program_error                     = 1
      OTHERS                            = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.




END-OF-SELECTION.





*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SET_LAYOUT_AND_VARIANT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM set_layout_and_variant .

  CLEAR: gs_layout,
         gs_variant.

  gs_layout-cwidth_opt = abap_true.
  gs_layout-stylefname = 'CELLTAB'.


  gs_variant-report = syst-repid.
  gs_variant-handle = 'STYL'.

ENDFORM.                    " SET_LAYOUT_AND_VARIANT

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  SET_CELL_STYLE
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*  --&amp;gt;  p1        text
*  &amp;lt;--  p2        text
*----------------------------------------------------------------------*
FORM set_cell_style .
* define local data
  CONSTANTS:
    lc_style_bold             TYPE int4  VALUE '00000121',
    lc_style_red              TYPE int4  VALUE '00000087',
    lc_style_cursive          TYPE int4  VALUE '00008700',
    lc_style_underline_faint  TYPE int4  VALUE '00008787',
    lc_style_underline        TYPE int4  VALUE '00008707',
    lc_style_underline_red    TYPE int4  VALUE '00008007'.

  DATA:
    ls_outtab        TYPE ty_s_outtab,
    ls_style         TYPE lvc_s_styl,
    lt_celltab       TYPE lvc_t_styl.


  CLEAR: ls_style.
  ls_style-fieldname = 'BUKRS'.
  ls_style-style     = lc_style_bold.
  INSERT ls_style INTO TABLE lt_celltab.
*
  CLEAR: ls_style.
  ls_style-fieldname = 'KUNNR'.
  ls_style-style     = lc_style_red.
  INSERT ls_style INTO TABLE lt_celltab.
*
  CLEAR: ls_style.
  ls_style-fieldname = 'ERDAT'.
  ls_style-style     = lc_style_cursive.
  INSERT ls_style INTO TABLE lt_celltab.
*
  CLEAR: ls_style.
  ls_style-fieldname = 'ERNAM'.
  ls_style-style     = lc_style_underline.
  INSERT ls_style INTO TABLE lt_celltab.



  ls_outtab-celltab = lt_celltab.
  MODIFY gt_outtab FROM ls_outtab
    TRANSPORTING celltab
  WHERE ( bukrs = '1000' ).


ENDFORM.                    " SET_CELL_STYLE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2007 21:21:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-bold/m-p/3114804#M739603</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-11-21T21:21:30Z</dc:date>
    </item>
  </channel>
</rss>

