<?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 ALV format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044050#M1501095</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Generally the order of fields in the alv report is same as that of the internal table.If you want to have your specific order then you need to make your own field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BUILD_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-TABNAME = 'Y78EMP'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'EMP_ID'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '1'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'LAST_NAME'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '2'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'FIRST_NAME'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '3'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR WA_FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Col_pos parameter of the fiield catalog gives the column position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you need to pass the this field catalog name in the IT_FIELDCAT parameter of REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rahuljn on Jul 21, 2010 3:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Jul 2010 09:01:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-21T09:01:09Z</dc:date>
    <item>
      <title>regarding ALV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044049#M1501094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to generate a withholding tax report with following format. i populated two internal tables for vendor information and withholding tax information. but cannot bring the format like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vendor 	10000012	Vendor Name	ABC Traders		&lt;/P&gt;&lt;P&gt;Document No 	Document Date	Posting Date	Withholding Tax Code	Withholding Tax Base Amount	Withholding Tax Amount&lt;/P&gt;&lt;P&gt;50000010	12.06.2010	12.06.2010	A2	10000	100&lt;/P&gt;&lt;P&gt;50000011	17.06.2010	17.06.2010	A5	42500	425&lt;/P&gt;&lt;P&gt;50000012	28.06.2010	28.06.2010	A5	81569	815.69&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone help me how i can generate this format? can anyone provide me any sample code for that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 08:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044049#M1501094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T08:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: regarding ALV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044050#M1501095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Generally the order of fields in the alv report is same as that of the internal table.If you want to have your specific order then you need to make your own field catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM BUILD_FIELDCATALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-TABNAME = 'Y78EMP'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'EMP_ID'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '1'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'LAST_NAME'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '2'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-FIELDNAME = 'FIRST_NAME'.&lt;/P&gt;&lt;P&gt;     WA_FIELDCATALOG-COL_POS = '3'.&lt;/P&gt;&lt;P&gt;     APPEND  WA_FIELDCATALOG TO FIELDCATALOG.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CLEAR WA_FIELDCATALOG.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Col_pos parameter of the fiield catalog gives the column position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And you need to pass the this field catalog name in the IT_FIELDCAT parameter of REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rahuljn on Jul 21, 2010 3:23 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 09:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044050#M1501095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T09:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: regarding ALV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044051#M1501096</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 the examples provided in SAP itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tcode - SE38 ---&amp;gt; BCALV_TEST_HIERSEQ_LIST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also check other programs with BCALV*&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jul 2010 09:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv-format/m-p/7044051#M1501096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-21T09:13:35Z</dc:date>
    </item>
  </channel>
</rss>

