<?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: About alvs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144830#M747545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from the documentation of that FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supports the creation of the field catalog for the ALV function modules&lt;/P&gt;&lt;P&gt;based either on a structure or table defined in the ABAP Data&lt;/P&gt;&lt;P&gt;Dictionary, or a program-internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program-internal table must either be in a TOP Include or its&lt;/P&gt;&lt;P&gt;Include must be specified explicitly in the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variant based on a program-internal table should only be used for&lt;/P&gt;&lt;P&gt;rapid prototyping since the following restrictions apply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Performance is affected since the code of the table definition must&lt;/P&gt;&lt;P&gt;always be read and interpreted at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Dictionary references are only considered if the keywords LIKE or&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE (not TYPE) are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog contains more than 90 fields, the first 90 fields&lt;/P&gt;&lt;P&gt;are output in the list by default whereas the remaining fields are only&lt;/P&gt;&lt;P&gt;available in the field selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog is passed with values, they are merged with the&lt;/P&gt;&lt;P&gt;'automatically' found information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the Field Catalog.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'CARRID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'CONNID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'FLDATE' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'BOOKID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'LUGWEIGHT' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'WUNIT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build Layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f9300_build_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*display report&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;is_layout = gv_layout1&lt;/P&gt;&lt;P&gt;it_fieldcat = git_fieldcatalog[]&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF. " IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM field_catalog USING xv_fieldname TYPE slis_fieldname.&lt;/P&gt;&lt;P&gt;DATA: gv_colpos TYPE i,&lt;/P&gt;&lt;P&gt;git_fieldcatalog TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog TYPE LINE OF slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;gv_layout1 TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_colpos = gv_colpos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog-col_pos = gv_colpos.&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog-fieldname = xv_fieldname.&lt;/P&gt;&lt;P&gt;APPEND lwa_fieldcatalog TO git_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR lwa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " field_catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_layout .&lt;/P&gt;&lt;P&gt;gv_layout1-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-zebra = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-group_change_edit = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-f2code = 'DISPLAY'.&lt;/P&gt;&lt;P&gt;ENDFORM. " build_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvgrid_basic.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvgrid_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simple program here in this link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Dec 2007 04:30:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-28T04:30:25Z</dc:date>
    <item>
      <title>About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144825#M747540</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;&lt;/P&gt;&lt;P&gt;can any one explain brifely REUSE_ALV_FIELDCATALOG_MERGE.&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;Regrds,&lt;/P&gt;&lt;P&gt;phani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 07:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144825#M747540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T07:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144826#M747541</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;"REUSE_ALV_FIELDCATALOG_MERGE" is used to create a field catalog for the ALV. The input to this FM can be either an internal table or a dictionary structure/table/table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the documentation in SE37 for a detailed explanation .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 08:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144826#M747541</guid>
      <dc:creator>sharat_chandra</dc:creator>
      <dc:date>2007-12-27T08:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144827#M747542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;there are 3 ways of preparing the fieldcatalog internal table.&lt;/P&gt;&lt;P&gt;&amp;gt;manual way&lt;/P&gt;&lt;P&gt;&amp;gt;semiautomatic&lt;/P&gt;&lt;P&gt;&amp;gt; automatic(REUSE_ALV_FIELDCATALOG_MERGE)&lt;/P&gt;&lt;P&gt;let us consider we have output internal table.&lt;/P&gt;&lt;P&gt;if all the fields of output internal table are from only one database table.&lt;/P&gt;&lt;P&gt;then we can use REUSE_ALV_FIELDCATALOG_MERGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144827#M747542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144828#M747543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;phani!&lt;/P&gt;&lt;P&gt;field catalog can be build in three ways&lt;/P&gt;&lt;P&gt;1)manually&lt;/P&gt;&lt;P&gt;2)automatically&lt;/P&gt;&lt;P&gt;3)semi-automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;manually u can build by using type-pool SLIS&lt;/P&gt;&lt;P&gt;automatically by using FM REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;semi-automatically by using FM&lt;/P&gt;&lt;P&gt;LVC_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if fields of internal table from different tables u have to use type pool SLIS to build field catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if internal table fields are from single database table there is no need to build field catalog manually in that scenario u can use function maodule REUSE_ALV_FIELDCATALOG_MERGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dont forget to reward&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nagesh.Paruchuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144828#M747543</guid>
      <dc:creator>paruchuri_nagesh</dc:creator>
      <dc:date>2007-12-27T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144829#M747544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The function REUSE_ALV_FIELDCATALOG_MERGE is used for retrieve a catalog from a table defined in DDICT. Then you can modify it as you want. You can see an example in BALV* programs demos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It supports the creation of the field catalog for the ALV function modules&lt;/P&gt;&lt;P&gt;based either on a structure or table defined in the ABAP Data&lt;/P&gt;&lt;P&gt;Dictionary, or a program-internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program-internal table must either be in a TOP Include or its&lt;/P&gt;&lt;P&gt;Include must be specified explicitly in the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variant based on a program-internal table should only be used for&lt;/P&gt;&lt;P&gt;rapid prototyping since the following restrictions apply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Performance is affected since the code of the table definition must&lt;/P&gt;&lt;P&gt;always be read and interpreted at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Dictionary references are only considered if the keywords LIKE or&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE (not TYPE) are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog contains more than 90 fields, the first 90 fields&lt;/P&gt;&lt;P&gt;are output in the list by default whereas the remaining fields are only&lt;/P&gt;&lt;P&gt;available in the field selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog is passed with values, they are merged with the&lt;/P&gt;&lt;P&gt;'automatically' found information.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;in the program J_1AINFG is called as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' =20&lt;/P&gt;&lt;P&gt;EXPORTING =20&lt;/P&gt;&lt;P&gt;i_internal_tabname =3D TABLEINT&lt;/P&gt;&lt;P&gt;i_structure_name =3D 'J_1AIFALVHDR' =20&lt;/P&gt;&lt;P&gt;CHANGING =20&lt;/P&gt;&lt;P&gt;ct_fieldcat =3D i_fieldcat[]. =20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where i_structure name is defined in DDICT. Then you can add, delete, or modify masks, lengths, etc. properties of fields in this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a program if u need to add lot of fields&lt;/P&gt;&lt;P&gt;LOOP AT i_fieldcat INTO wa_fieldcat. =20&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE wa_fieldcat TO wa_auxfieldcat. =20&lt;/P&gt;&lt;P&gt;CASE wa_fieldcat-col_pos. =20&lt;/P&gt;&lt;P&gt;WHEN 27. =20&lt;/P&gt;&lt;P&gt;CLEAR wa_fieldcat. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-fieldname =3D 'COEFIC1'. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-tabname =3D g_tabname_header. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-col_pos =3D 27. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_s =3D 'Coef.Per.'. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_m =3D 'Coefic.Per=EDodo'. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-seltext_l =3D 'Coeficiente del Per=EDodo'. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-outputlen =3D 9. =20&lt;/P&gt;&lt;P&gt;wa_fieldcat-just =3D 'R'. =20&lt;/P&gt;&lt;P&gt;APPEND wa_fieldcat TO auxcatalogo. =20&lt;/P&gt;&lt;P&gt;ADD 1 TO wa_auxfieldcat-col_pos. =20&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 10:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144829#M747544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-27T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144830#M747545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is from the documentation of that FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Supports the creation of the field catalog for the ALV function modules&lt;/P&gt;&lt;P&gt;based either on a structure or table defined in the ABAP Data&lt;/P&gt;&lt;P&gt;Dictionary, or a program-internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program-internal table must either be in a TOP Include or its&lt;/P&gt;&lt;P&gt;Include must be specified explicitly in the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variant based on a program-internal table should only be used for&lt;/P&gt;&lt;P&gt;rapid prototyping since the following restrictions apply:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Performance is affected since the code of the table definition must&lt;/P&gt;&lt;P&gt;always be read and interpreted at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;o Dictionary references are only considered if the keywords LIKE or&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE (not TYPE) are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog contains more than 90 fields, the first 90 fields&lt;/P&gt;&lt;P&gt;are output in the list by default whereas the remaining fields are only&lt;/P&gt;&lt;P&gt;available in the field selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field catalog is passed with values, they are merged with the&lt;/P&gt;&lt;P&gt;'automatically' found information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create the Field Catalog.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'CARRID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'CONNID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'FLDATE' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'BOOKID' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'LUGWEIGHT' .&lt;/P&gt;&lt;P&gt;PERFORM field_catalog USING 'WUNIT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build Layout&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM f9300_build_layout.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*display report&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;is_layout = gv_layout1&lt;/P&gt;&lt;P&gt;it_fieldcat = git_fieldcatalog[]&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&lt;/P&gt;&lt;P&gt;IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF. " IF sy-subrc 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM field_catalog USING xv_fieldname TYPE slis_fieldname.&lt;/P&gt;&lt;P&gt;DATA: gv_colpos TYPE i,&lt;/P&gt;&lt;P&gt;git_fieldcatalog TYPE slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog TYPE LINE OF slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;gv_layout1 TYPE slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gv_colpos = gv_colpos + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog-col_pos = gv_colpos.&lt;/P&gt;&lt;P&gt;lwa_fieldcatalog-fieldname = xv_fieldname.&lt;/P&gt;&lt;P&gt;APPEND lwa_fieldcatalog TO git_fieldcatalog.&lt;/P&gt;&lt;P&gt;CLEAR lwa_fieldcatalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. " field_catalog&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_layout .&lt;/P&gt;&lt;P&gt;gv_layout1-colwidth_optimize = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-zebra = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-group_change_edit = 'X'.&lt;/P&gt;&lt;P&gt;gv_layout1-f2code = 'DISPLAY'.&lt;/P&gt;&lt;P&gt;ENDFORM. " build_layout&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/reporting/alv/alvgrid_basic.htm" target="test_blank"&gt;http://www.sapdev.co.uk/reporting/alv/alvgrid_basic.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simple program here in this link&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Dec 2007 04:30:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144830#M747545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-28T04:30:25Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144831#M747546</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;read this brief docu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B. REUSE_ALV_FIELDCATALOG_MERGE: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This function module is used to populate a fieldcatalog which is essential to display the data in ALV. If the output data is from a single dictionary table and all the columns are selected, then we need not exclusively create the field catalog. Its enough to mention the table name as a parameter(I_structure_name) in the REUSE_ALV_LIST_DISPLAY. But in other cases we need to create it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important parameters are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Export:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. I_program_name : report id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. I_internal_tabname : the internal output table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;c. I_inclname : include or the report name where all the dynamic forms are handled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Changing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ct_fieldcat : an internal table with the type SLIS_T_FIELDCAT_ALV which is declared in &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the type pool SLIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 10:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144831#M747546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T10:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: About alvs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144832#M747547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;normally we can generate field catalog by our self by&lt;/P&gt;&lt;P&gt;using structure 'slis_fieldcat_alv'&lt;/P&gt;&lt;P&gt;which have fields like fieldname , itabname, edit, do_sum...etc.&lt;/P&gt;&lt;P&gt;here we r generating work area and appending to internal table of type 'slis_t_fieldcat_alv' to format the data output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. But instead of above u can also generate fieldcatalog by using function module 'REUSE_ALV_FIELDCATALOG_MERGE' HERE &lt;/P&gt;&lt;P&gt;U R PASSING TWO PARAMETERS to this FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie.&lt;/P&gt;&lt;P&gt;IMPORT&lt;/P&gt;&lt;P&gt;   u r internal table&lt;/P&gt;&lt;P&gt;EXPORT&lt;/P&gt;&lt;P&gt;   fieldcatalog internal table of type slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here output of this consist field catalog itab with format of data to display on grid or list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can directly pass to FM&lt;/P&gt;&lt;P&gt;REUSE_ALV_GRID_DISPLAY or  REUSE_ALV_LIST_DISPLAY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2008 06:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-alvs/m-p/3144832#M747547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-02T06:19:37Z</dc:date>
    </item>
  </channel>
</rss>

