<?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: sy-repid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239737#M482787</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Page break in ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the option of Grouping to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort-spos = '10'.
SORT-FIELDNAME = 'Years'.
SORT-TABNAME = 'DATA_TAB2'.
sort-UP = 'X'.
sort-subtot = 'X'.
SORT-GROUP = '* '.
APPEND SORT. CLEAR SORT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for page break in terms of printing operation for new page option, then ALV grid function module has following option -&lt;/P&gt;&lt;P&gt;Function Module - REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;Option from function module: IS_PRINT&lt;/P&gt;&lt;P&gt;NO_NEW_PAGE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many options available in IS_PRINT. You can use them as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 May 2007 06:43:17 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2007-05-10T06:43:17Z</dc:date>
    <item>
      <title>sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239732#M482782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all &lt;/P&gt;&lt;P&gt;how to trigger the page break in in alv on particular condition.and how to change the font color in alv&lt;/P&gt;&lt;P&gt;what is the difference betweeen sy_repid,sy-cprog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:28:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239732#M482782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T06:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239733#M482783</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;check this link for System fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:34:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239733#M482783</guid>
      <dc:creator>Santosh_Kezkhepatmelathil</dc:creator>
      <dc:date>2007-05-10T06:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239734#M482784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-REPID / SY-CPROG&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-REPID is the Name of the current ABAP program, SY-CPROG is he name of the current program OR the name of the calling program within a procedure (perform externaly, call function)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:35:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239734#M482784</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-05-10T06:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239735#M482785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Sy-REPID  - Report ID, what we give in SE38 tcode.&lt;/P&gt;&lt;P&gt;SY-CPROG - It is the calling Program Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't change the FONT  of the fields in ALV report.&lt;/P&gt;&lt;P&gt;for coloring the ALV fields see the doc;&lt;/P&gt;&lt;P&gt;1. add one more field to ur final internal table say COLOR(4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. in layout wa_layout-style_fname = 'COLOR'. " if its grid&lt;/P&gt;&lt;P&gt;wa_layout-style_fieldname = 'COLOR'. "if its list&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. read table itab index 3.&lt;/P&gt;&lt;P&gt;itab-color = 'C410'. &lt;/P&gt;&lt;P&gt;modify itab index 3 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. see program SHOWCOLO for all color codes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Add a field of data type CHAR(3) to the internal output table.&lt;/P&gt;&lt;P&gt;2. Enter the color code in the appropriate field of the row to be colored in the internal&lt;/P&gt;&lt;P&gt;output table:&lt;/P&gt;&lt;P&gt;Code: 'Cxy'&lt;/P&gt;&lt;P&gt;C = Color (all codes begin with 'C')&lt;/P&gt;&lt;P&gt;x = color number ('1' - '9')&lt;/P&gt;&lt;P&gt;y = highlight ('0' = off, '1' = on)&lt;/P&gt;&lt;P&gt;3. Assign the internal output table color code field name to the IS_LAYOUT importing&lt;/P&gt;&lt;P&gt;structure IS_LAYOUT-INFO_FIELDNAME field and pass this structure in the ALV call&lt;/P&gt;&lt;P&gt;interface. &lt;/P&gt;&lt;P&gt;To enable row coloring, you should add an additional field to your list data table. It should be of character type and length at least 4. This field will contain the color code for the row. So, let&amp;#146;s modify declaration of our list data table &amp;#147;gt_list&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should fill the color code to this field. Its format will be the same as explained before at section C.6.3. But how will ALV Grid know that you have loaded the color data for the row to this field. So, you make it know this by passing the name of the field containing color codes to the field &amp;#147;INFO_FNAME&amp;#148; of the layout structure.&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;ps_layout-info_fname = &amp;lt;field_name_containing_color_codes&amp;gt;. &amp;#147;e.g. &amp;#145;ROWCOLOR&amp;#146;&lt;/P&gt;&lt;P&gt;You can fill that field anytime during execution. But, of course, due to the flow logic of screens, it will be reflected to your list display as soon as an ALV refresh occurs.&lt;/P&gt;&lt;P&gt;You can color an entire row as described in the next section. However, this method is less time consuming.&lt;/P&gt;&lt;P&gt;Coloring Individual Cells&lt;/P&gt;&lt;P&gt;This is the last point about coloring procedures for the ALV Grid. The procedure is similar to coloring an entire row. However, since an individual cell can be addressed with two parameters we will need something more. What is meant by &amp;#147;more&amp;#148; is a table type structure to be included into the structure of the list data table. It seems strange, because including it will make our list data structure deep. But anyhow ALV Grid control handles this.&lt;/P&gt;&lt;P&gt;The structure that should be included must be of type &amp;#147;LVC_T_SCOL&amp;#148;. If you want to color the entire row, this inner table should contain only one row with field &amp;#147;fname&amp;#148; is set to space, some color value at field &amp;#147;col&amp;#148;, &amp;#147;0&amp;#148; or &amp;#147;1&amp;#148; at fields &amp;#147;int&amp;#148; (intensified) and &amp;#147;inv&amp;#148; (inverse).&lt;/P&gt;&lt;P&gt;If you want to color individual cells, then for each cell column, append a line to this inner table which also contains the column name at field &amp;#147;fname&amp;#148;. It is obvious that you can color an entire column by filling this inner table with a row for that column for each row in the list data table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:36:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239735#M482785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T06:36:57Z</dc:date>
    </item>
    <item>
      <title>Re: sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239736#M482786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;ALV grid color&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Define a column as follows in output table type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES : BEGIN OF ty_output.
INCLUDE STRUCTURE MARA.

TYPES :
* For cell coloring
cellcolor TYPE lvc_t_scol,
END OF ty_output.

data : w_cellcolor TYPE lvc_s_scol, "For cell color
* Final output table
itab2 TYPE STANDARD TABLE OF ty_output,
wa2 TYPE ty_output,
w_layout TYPE lvc_s_layo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;2. Colouring cell&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLEAR wa2.
READ TABLE itab2 INTO wa2 INDEX 7.
IF sy-subrc EQ 0.
w_cellcolor-fname = 'ERSDA'.
w_cellcolor-color-col = '7'.
w_cellcolor-color-int = '1'.
w_cellcolor-color-inv = '1'.
APPEND w_cellcolor TO wa2-cellcolor.
MODIFY itab2 FROM wa2 TRANSPORTING cellcolor WHERE matnr = wa2-matnr.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;3. cell color&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;w_layout-ctab_fname = 'CELLCOLOR'."For cell coloring&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;4. in display&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD o_grid-&amp;gt;set_table_for_first_display
EXPORTING
* I_STRUCTURE_NAME = 'MARA'
IS_VARIANT = w_variant
I_SAVE = 'A'
it_toolbar_excluding = i_exclude
is_layout = w_layout
CHANGING
it_outtab = itab2
it_fieldcatalog = i_fieldcat.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:38:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239736#M482786</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-05-10T06:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: sy-repid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239737#M482787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Page break in ALV&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the option of Grouping to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more details, read the documentation of the data element SLIS_CTRLS, which is used for the structure field slis_sortinfo_alv-group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;slis_sortinfo_alv is the line type of the parameter IT_SORT of the FM REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use '*' as the value for slis_sortinfo_alv-group, it will initiate a page break and if you use 'UL', the ALV will use Underline to differentiate between the group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort-spos = '10'.
SORT-FIELDNAME = 'Years'.
SORT-TABNAME = 'DATA_TAB2'.
sort-UP = 'X'.
sort-subtot = 'X'.
SORT-GROUP = '* '.
APPEND SORT. CLEAR SORT.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are looking for page break in terms of printing operation for new page option, then ALV grid function module has following option -&lt;/P&gt;&lt;P&gt;Function Module - REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;Option from function module: IS_PRINT&lt;/P&gt;&lt;P&gt;NO_NEW_PAGE = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many options available in IS_PRINT. You can use them as per your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 06:43:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-repid/m-p/2239737#M482787</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-05-10T06:43:17Z</dc:date>
    </item>
  </channel>
</rss>

