<?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: DD_STYLE_TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013006#M712026</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your update.&lt;/P&gt;&lt;P&gt;I need only Heading at heading level of the  grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wan to display grid, as well i need to display heading with bold on top of the Gird&lt;/P&gt;&lt;P&gt;like in DD_STYLE_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whenever i am trying like in DD_STYLE_TABLE the HTML container is overlapping with GRID container.&lt;/P&gt;&lt;P&gt;Will you pls let me know how to rectify it  and also let me  in  DD_STYLE_TABLE&lt;/P&gt;&lt;P&gt;how to call the internal table data instead of text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 15:06:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T15:06:57Z</dc:date>
    <item>
      <title>DD_STYLE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013003#M712023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will anybody let me know how to use DD_STYLE_TABLE with Grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like how to display the alv grid display with bold text by using the methods&lt;/P&gt;&lt;P&gt;used in DD_STYL_TABLE program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused with the both, will anybody let me know how to display the alv grid &lt;/P&gt;&lt;P&gt;with bold heading&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 22:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013003#M712023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-27T22:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: DD_STYLE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013004#M712024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don' think you will be able to use the concept of dynamic documents within the ALV Grid. You have to use a different Control for showing any text using DD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;aj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Oct 2007 23:13:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013004#M712024</guid>
      <dc:creator>former_member195698</dc:creator>
      <dc:date>2007-10-27T23:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: DD_STYLE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013005#M712025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Madhavi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at the sample report ZUS_SDN_ALV_CELL_STYLE_1. Different styles can be assigned using different INT4 values for the style, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* 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'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the "code value" for &amp;lt;b&amp;gt;BOLD &amp;lt;/b&amp;gt;was taken from 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="97657"&gt;&lt;/A&gt;&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>Sun, 28 Oct 2007 20:37:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013005#M712025</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-10-28T20:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: DD_STYLE_TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013006#M712026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your update.&lt;/P&gt;&lt;P&gt;I need only Heading at heading level of the  grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wan to display grid, as well i need to display heading with bold on top of the Gird&lt;/P&gt;&lt;P&gt;like in DD_STYLE_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whenever i am trying like in DD_STYLE_TABLE the HTML container is overlapping with GRID container.&lt;/P&gt;&lt;P&gt;Will you pls let me know how to rectify it  and also let me  in  DD_STYLE_TABLE&lt;/P&gt;&lt;P&gt;how to call the internal table data instead of text.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 15:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dd-style-table/m-p/3013006#M712026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T15:06:57Z</dc:date>
    </item>
  </channel>
</rss>

