<?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: Regarding a standard program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-a-standard-program/m-p/2812258#M657471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is a perform routine AUSTAB_AUSGEBEN in the program RMCS0LIS, if you go thru the following piece of code in that Perform routine (at line number 378) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT AUS_S000.
  CHECK &amp;lt;AUSTAB_GLOBAL&amp;gt;-FLG_AUSBLENDEN = FALSE.

  AUSTAB_TABIX = SY-TABIX.
  PERFORM COLOR_TAB_LESEN USING &amp;lt;AUSTAB_GLOBAL&amp;gt;-COLOR_ID.
  PERFORM SPALTENANFANG_AUSGEBEN USING TRUE.
  PERFORM KENNZAHLENZEILE_AUSGEBEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is used for ur output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that its simple u have to do replace the loop with the following piece of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: wa_layout type lvc_s_layo.

** Create the Container
  create object wl_ref_container
        exporting
          container_name    = w_container.
** Create the Grid object
  create object w_grid
    exporting
      i_parent          = wl_ref_container
    exceptions
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      others            = 5.
  check sy-subrc = 0.
** Layout
  wa_layout-zebra = c_check.
  wa_layout-stylefname = 'STYLO'.
** display ALV
  if w_sale = c_check.

    call method w_grid-&amp;gt;set_table_for_first_display
      exporting
        is_layout                     = wa_layout
      changing
        it_outtab                     = &amp;lt;b&amp;gt;AUS_S000&amp;lt;/b&amp;gt;
        it_fieldcatalog               = t_fcat
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
    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.
  else.
    call method w_grid-&amp;gt;set_table_for_first_display
      exporting
        is_layout                     = wa_layout
      changing
        it_outtab                     = t_likp
        it_fieldcatalog               = t_fcat
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
    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.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;remember to create the fieldcatalog equivalent to the Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Sep 2007 14:01:31 GMT</pubDate>
    <dc:creator>former_member480923</dc:creator>
    <dc:date>2007-09-26T14:01:31Z</dc:date>
    <item>
      <title>Regarding a standard program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-a-standard-program/m-p/2812257#M657470</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;I have got a requirement in which i need to add 5 new fields to the standard program RMCB0300. The present program is written in ALV classes . Our requiement is to make that program in to totally to ALV grid. I need the code if any one send me the code for this.We need to add  5 new fields apart from the old strategy. Please send me the code . I am new to this ABAP-Object oriented approach. Definetely this is a very cruicial issue for me in the project. Nothing more than that is to be changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Want more details i will send you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards...&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Sep 2007 10:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-a-standard-program/m-p/2812257#M657470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-21T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding a standard program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-a-standard-program/m-p/2812258#M657471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;there is a perform routine AUSTAB_AUSGEBEN in the program RMCS0LIS, if you go thru the following piece of code in that Perform routine (at line number 378) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT AUS_S000.
  CHECK &amp;lt;AUSTAB_GLOBAL&amp;gt;-FLG_AUSBLENDEN = FALSE.

  AUSTAB_TABIX = SY-TABIX.
  PERFORM COLOR_TAB_LESEN USING &amp;lt;AUSTAB_GLOBAL&amp;gt;-COLOR_ID.
  PERFORM SPALTENANFANG_AUSGEBEN USING TRUE.
  PERFORM KENNZAHLENZEILE_AUSGEBEN.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This table is used for ur output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that its simple u have to do replace the loop with the following piece of code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  data: wa_layout type lvc_s_layo.

** Create the Container
  create object wl_ref_container
        exporting
          container_name    = w_container.
** Create the Grid object
  create object w_grid
    exporting
      i_parent          = wl_ref_container
    exceptions
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      others            = 5.
  check sy-subrc = 0.
** Layout
  wa_layout-zebra = c_check.
  wa_layout-stylefname = 'STYLO'.
** display ALV
  if w_sale = c_check.

    call method w_grid-&amp;gt;set_table_for_first_display
      exporting
        is_layout                     = wa_layout
      changing
        it_outtab                     = &amp;lt;b&amp;gt;AUS_S000&amp;lt;/b&amp;gt;
        it_fieldcatalog               = t_fcat
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
    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.
  else.
    call method w_grid-&amp;gt;set_table_for_first_display
      exporting
        is_layout                     = wa_layout
      changing
        it_outtab                     = t_likp
        it_fieldcatalog               = t_fcat
      exceptions
        invalid_parameter_combination = 1
        program_error                 = 2
        too_many_lines                = 3
        others                        = 4.
    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.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;remember to create the fieldcatalog equivalent to the Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope That Helps&lt;/P&gt;&lt;P&gt;Anirban M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2007 14:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-a-standard-program/m-p/2812258#M657471</guid>
      <dc:creator>former_member480923</dc:creator>
      <dc:date>2007-09-26T14:01:31Z</dc:date>
    </item>
  </channel>
</rss>

