<?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: help plz in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330267#M512658</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;ABAP is an event driven language.It executes based on the events.&lt;/P&gt;&lt;P&gt;Start-of-selection is used for retrieving the data from the tables.&lt;/P&gt;&lt;P&gt;End-Of-Selection is used to print the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u do not use any events then it is not a problem but if u use any of the events u should definitely use Start-of-selection or else it wont get triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the events is&lt;/P&gt;&lt;P&gt;1.Initialization&lt;/P&gt;&lt;P&gt;2.At Selection-screen&lt;/P&gt;&lt;P&gt;3.Start-of-selection&lt;/P&gt;&lt;P&gt;4.Top-of-page&lt;/P&gt;&lt;P&gt;5.End-of-page&lt;/P&gt;&lt;P&gt;6.End-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is another default event Load-of-program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roja Velagapudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Jun 2007 07:56:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-05T07:56:08Z</dc:date>
    <item>
      <title>help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330266#M512657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;why should we use start-of-selection and end of selection .&lt;/P&gt;&lt;P&gt;what may happen if i wouldnt use it.&lt;/P&gt;&lt;P&gt;when i should or shouldn't use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz tell me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 07:53:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330266#M512657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T07:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330267#M512658</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;ABAP is an event driven language.It executes based on the events.&lt;/P&gt;&lt;P&gt;Start-of-selection is used for retrieving the data from the tables.&lt;/P&gt;&lt;P&gt;End-Of-Selection is used to print the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u do not use any events then it is not a problem but if u use any of the events u should definitely use Start-of-selection or else it wont get triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The order of the events is&lt;/P&gt;&lt;P&gt;1.Initialization&lt;/P&gt;&lt;P&gt;2.At Selection-screen&lt;/P&gt;&lt;P&gt;3.Start-of-selection&lt;/P&gt;&lt;P&gt;4.Top-of-page&lt;/P&gt;&lt;P&gt;5.End-of-page&lt;/P&gt;&lt;P&gt;6.End-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is another default event Load-of-program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roja Velagapudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 07:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330267#M512658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T07:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330268#M512659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when do i use it .&lt;/P&gt;&lt;P&gt;somebody suggested me that if we have more selection statements then we have to use it otherwise if we have only one select stm means then it is not necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 07:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330268#M512659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T07:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330269#M512660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont think so.&lt;/P&gt;&lt;P&gt;Using the events depends on ur programming.&lt;/P&gt;&lt;P&gt;If u use atleast one event in ur report then u should definitely use Start-of-selection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:04:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330269#M512660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330270#M512661</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;&amp;lt;b&amp;gt;Start-of-Selection.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Here the program starts selecting values from tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Processing block is executed after processing the selection screen&lt;/P&gt;&lt;P&gt;2) All the data is selected in this block.&lt;/P&gt;&lt;P&gt;3) All the main processing on the data except for interactive reporting is handled in this block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;lt;b&amp;gt;REPORT&amp;lt;/b&amp;gt; statement always executes a START-OF-SELECTION implicitly. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consequently all processing logic between the REPORT statement and the next event keyword is automatically processed in the START-OF-SELECTION event. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;End-of-selection.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;After all the data has been selected this event writes the data to the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data which is selected and has been processed is printed to the screen in this block.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;List Processing&amp;lt;/b&amp;gt; happens in this block&lt;/P&gt;&lt;P&gt;1) Top-of-Page.&lt;/P&gt;&lt;P&gt;2) New-Page.&lt;/P&gt;&lt;P&gt;3) End-of-Page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events during List Processing&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Top-of-Page.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Triggered by the first write statement in the program&lt;/P&gt;&lt;P&gt;It is used to have a standard header in the program for all the pages.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE is only executed before outputting the first line on a new page &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;New-Page.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Can be used when one wants to display different data on different pages&lt;/P&gt;&lt;P&gt;Terminates the current page and continues output on a new page.&lt;/P&gt;&lt;P&gt;Will not trigger the Top-of-Page or End-of-Page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;End-of-Page.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;It is used to have a standard footer for all the pages.&lt;/P&gt;&lt;P&gt;Triggered by the program if the number of records exceed the line-count of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for more details refer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g" target="test_blank"&gt;http://www.sapmaterial.com/?gclid=CN322K28t4sCFQ-WbgodSGbK2g&lt;/A&gt;      (SAP link- helpful material )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;plz dont forget to reward points if helpful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:05:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330270#M512661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330271#M512662</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;Hi&lt;/P&gt;&lt;P&gt;See the sample code &lt;/P&gt;&lt;P&gt;report ZRGRIRNA no standard page heading&lt;/P&gt;&lt;P&gt;line-count 65&lt;/P&gt;&lt;P&gt;line-size 255&lt;/P&gt;&lt;P&gt;message-id mm.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;GR IR Detail Report *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : The output has to be displayed&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;in the ALV Grid format with the Selection *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;screen appearing on the output. In The Output *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Subtotals for Vendor, Plant, Period, Material,*&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Valuation Class, Purchase Order,Cost Center, *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Cost Element and Receipt Date are displayed *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;after sorting the data by same fields. *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration for Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: t001, " Company Codes&lt;/P&gt;&lt;P&gt;t001w, " Plants/Branches&lt;/P&gt;&lt;P&gt;lfa1, " Vendor Master&lt;/P&gt;&lt;P&gt;ska1, " GL Account Master&lt;/P&gt;&lt;P&gt;mara, " Material Master&lt;/P&gt;&lt;P&gt;mbew, " Material Valuation&lt;/P&gt;&lt;P&gt;ekko, " PO Header Data&lt;/P&gt;&lt;P&gt;cska, " Cost Elements&lt;/P&gt;&lt;P&gt;csks, " Cost Centers&lt;/P&gt;&lt;P&gt;bsis, " GL Accounts: Open Items Data&lt;/P&gt;&lt;P&gt;bkpf. " Accounting Doc: Header Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type-pools&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Type pools for ALV display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;type-pools : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Global variables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_repid like sy-repid,&lt;/P&gt;&lt;P&gt;g_exit type c,&lt;/P&gt;&lt;P&gt;g_events type slis_t_event,&lt;/P&gt;&lt;P&gt;g_list_top_of_page type slis_t_listheader,&lt;/P&gt;&lt;P&gt;g_exit_caused_by_caller,&lt;/P&gt;&lt;P&gt;g_exit_caused_by_user type slis_exit_by_user,&lt;/P&gt;&lt;P&gt;g_top_of_page type slis_formname value 'TOP_OF_PAGE',&lt;/P&gt;&lt;P&gt;g_variant like disvariant,&lt;/P&gt;&lt;P&gt;g_save.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration for Constants&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants : c_x type c value 'X', " Flag&lt;/P&gt;&lt;P&gt;c_c type c value 'C', " Flag&lt;/P&gt;&lt;P&gt;c_l type c value 'L', " Flag&lt;/P&gt;&lt;P&gt;c_a type c value 'A', " Line Type&lt;/P&gt;&lt;P&gt;c_h type c value 'H', " Dr/Cr&lt;/P&gt;&lt;P&gt;c_s type c value 'S', " Line Type&lt;/P&gt;&lt;P&gt;c_mkpf(4) type c value 'MKPF'. " Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration of Internal Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for BSIS Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_bsis occurs 0,&lt;/P&gt;&lt;P&gt;bukrs like bsis-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;hkont like bsis-hkont, " GR IR Account&lt;/P&gt;&lt;P&gt;gjahr like bsis-gjahr, " Fiscal Year&lt;/P&gt;&lt;P&gt;belnr like bsis-belnr, " Acc Document&lt;/P&gt;&lt;P&gt;buzei like bsis-buzei, " Item No&lt;/P&gt;&lt;P&gt;budat like bsis-budat, " Receipt Date(Posting)&lt;/P&gt;&lt;P&gt;monat like bsis-monat, " Period&lt;/P&gt;&lt;P&gt;end of i_bsis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for BSEG Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_bseg occurs 0,&lt;/P&gt;&lt;P&gt;bukrs like bsis-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;belnr like bsis-belnr, " Acc Document&lt;/P&gt;&lt;P&gt;buzei like bsis-buzei, " Item No&lt;/P&gt;&lt;P&gt;gjahr like bsis-gjahr, " Fiscal Year&lt;/P&gt;&lt;P&gt;shkzg like bseg-shkzg, " Dr/Cr Indicator&lt;/P&gt;&lt;P&gt;lifnr like bseg-lifnr, " Vendor Code&lt;/P&gt;&lt;P&gt;matnr like bseg-matnr, " Material No&lt;/P&gt;&lt;P&gt;ebeln like bseg-ebeln, " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp like bseg-ebelp, " PO Item&lt;/P&gt;&lt;P&gt;werks like bseg-werks, " Plant&lt;/P&gt;&lt;P&gt;menge like bseg-menge, " PO Quantity&lt;/P&gt;&lt;P&gt;meins like bseg-meins, " UOM&lt;/P&gt;&lt;P&gt;dmbtr like bseg-dmbtr, " Amount in Local Currency&lt;/P&gt;&lt;P&gt;wrbtr like bseg-wrbtr, " Amount in Trans.Currency&lt;/P&gt;&lt;P&gt;end of i_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for BKPF Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_bkpf occurs 0,&lt;/P&gt;&lt;P&gt;bukrs like bkpf-bukrs, " Company Code&lt;/P&gt;&lt;P&gt;belnr like bkpf-belnr, " Acc Document&lt;/P&gt;&lt;P&gt;gjahr like bkpf-gjahr, " Fiscal Year&lt;/P&gt;&lt;P&gt;waers like bkpf-waers, " Trans. Currency&lt;/P&gt;&lt;P&gt;awkey like bkpf-awkey, " Object Key&lt;/P&gt;&lt;P&gt;awtyp like bkpf-awtyp, " Reference Procedure&lt;/P&gt;&lt;P&gt;end of i_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for MSEG Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_mseg occurs 0,&lt;/P&gt;&lt;P&gt;mblnr like mseg-mblnr, " Material Document&lt;/P&gt;&lt;P&gt;mjahr like mseg-mjahr, " Fiscal Year&lt;/P&gt;&lt;P&gt;bwart like mseg-bwart, " Movement Type&lt;/P&gt;&lt;P&gt;matnr like mseg-matnr, " Material No&lt;/P&gt;&lt;P&gt;menge like mseg-menge, " PO Quantity&lt;/P&gt;&lt;P&gt;meins like mseg-meins, " UOM&lt;/P&gt;&lt;P&gt;end of i_mseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for MBEW Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_mbew occurs 0,&lt;/P&gt;&lt;P&gt;matnr like mbew-matnr, " Material No&lt;/P&gt;&lt;P&gt;werks like mbew-bwkey, " Plant&lt;/P&gt;&lt;P&gt;bklas like mbew-bklas, " Valuation Class&lt;/P&gt;&lt;P&gt;end of i_mbew.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for EKPO Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_ekpo occurs 0,&lt;/P&gt;&lt;P&gt;ebeln like ekpo-ebeln, " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp like ekpo-ebelp, " PO Item&lt;/P&gt;&lt;P&gt;matnr like ekpo-matnr, " Material No&lt;/P&gt;&lt;P&gt;txz01 like ekpo-txz01, " Material Text&lt;/P&gt;&lt;P&gt;end of i_ekpo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for EKKN Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_ekkn occurs 0,&lt;/P&gt;&lt;P&gt;ebeln like ekkn-ebeln, " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp like ekkn-ebelp, " PO Item&lt;/P&gt;&lt;P&gt;kostl like ekkn-kostl, " Cost Center&lt;/P&gt;&lt;P&gt;sakto like ekkn-sakto, " Cost Element&lt;/P&gt;&lt;P&gt;end of i_ekkn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal Table for LFA1 Table data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_lfa1 occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr, " Vendor&lt;/P&gt;&lt;P&gt;name1 like lfa1-name1, " Name&lt;/P&gt;&lt;P&gt;end of i_lfa1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Declaration of Output Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: begin of i_final occurs 0,&lt;/P&gt;&lt;P&gt;lifnr like lfa1-lifnr, " Vendor&lt;/P&gt;&lt;P&gt;werks like bseg-werks, " Plant&lt;/P&gt;&lt;P&gt;monat like bsis-monat, " Period&lt;/P&gt;&lt;P&gt;matnr like mara-matnr, " Material Number&lt;/P&gt;&lt;P&gt;bklas like mbew-bklas, " Val Class&lt;/P&gt;&lt;P&gt;ebeln like bseg-ebeln, " PO&lt;/P&gt;&lt;P&gt;kostl like ekkn-kostl, " Cost Center&lt;/P&gt;&lt;P&gt;sakto like ekkn-sakto, " Cost Element&lt;/P&gt;&lt;P&gt;budat like bsis-budat, " Rec. Date&lt;/P&gt;&lt;P&gt;name1 like lfa1-name1, " Vendor Name&lt;/P&gt;&lt;P&gt;belnr like bsis-belnr, " FI Document&lt;/P&gt;&lt;P&gt;bwart like mseg-bwart, " Movement Type&lt;/P&gt;&lt;P&gt;txz01 like ekpo-txz01, " Material Text&lt;/P&gt;&lt;P&gt;menge like bseg-menge, " Quantity&lt;/P&gt;&lt;P&gt;meins like bseg-meins, " UOM&lt;/P&gt;&lt;P&gt;dmbtr like bseg-dmbtr, " Local Amount&lt;/P&gt;&lt;P&gt;wrbtr like bseg-wrbtr, " Tran.Amount&lt;/P&gt;&lt;P&gt;waers like bkpf-waers, " Tran.Currency&lt;/P&gt;&lt;P&gt;status type c, " Material Status&lt;/P&gt;&lt;P&gt;end of i_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to hold field catgory data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: i_fldcat type slis_t_fieldcat_alv. " Table - field catgory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Internal table to hold Sort/Subtotals criteria data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: i_sort type slis_t_sortinfo_alv. " Table - sort/Subtotals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: x_layout type slis_layout_alv, " Structure-layout&lt;/P&gt;&lt;P&gt;x_fldcat like line of i_fldcat, " Structure-field catagory&lt;/P&gt;&lt;P&gt;x_sort like line of i_sort. " Structure-Sort/Subtotals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen : begin of block b1 with frame title text-000.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_bukrs like t001-bukrs obligatory, " Company Code&lt;/P&gt;&lt;P&gt;p_grira like ska1-saknr default '0241101000' obligatory. " Account&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options:&lt;/P&gt;&lt;P&gt;s_budat for bkpf-budat, " Posting Date&lt;/P&gt;&lt;P&gt;s_werks for t001w-werks, " Plant&lt;/P&gt;&lt;P&gt;s_lifnr for lfa1-lifnr, " Vendor&lt;/P&gt;&lt;P&gt;s_matnr for mara-matnr, " Material Number&lt;/P&gt;&lt;P&gt;s_kostl for csks-kostl, " Cost Center&lt;/P&gt;&lt;P&gt;s_kstar for cska-kstar, " Cost Element&lt;/P&gt;&lt;P&gt;s_ebeln for ekko-ebeln, " Purchase Order&lt;/P&gt;&lt;P&gt;s_monat for bsis-monat. " Period&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen skip.&lt;/P&gt;&lt;P&gt;parameters:&lt;/P&gt;&lt;P&gt;p_incmt as checkbox default 'X',&lt;/P&gt;&lt;P&gt;p_incnm as checkbox default 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Initialization&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;g_repid = sy-repid.&lt;/P&gt;&lt;P&gt;perform layout_init using x_layout.&lt;/P&gt;&lt;P&gt;perform eventtab_build using g_events[].&lt;/P&gt;&lt;P&gt;g_variant-report = g_repid.&lt;/P&gt;&lt;P&gt;g_save = 'A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;At selection screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Selection Screen Fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform validate_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read Data from Database Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform read_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of selection&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Build layout report layout.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform populate_layout_stucture.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Perform build_field_catalog and Sort Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform build_field_catalog.&lt;/P&gt;&lt;P&gt;perform build_sort_totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List Header for Top-Of-Page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform comment_build using g_list_top_of_page[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call list viewer function module&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;perform call_list_viewer .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;STRONG&gt;Form - Routines&lt;/STRONG&gt;**************************************&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : layout_init&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : Form to Build layout for list display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form layout_init using rs_layout type slis_layout_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rs_layout-detail_popup = c_x.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : Eventtab_build&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : Registration of events to happen during list display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form eventtab_build using rt_events type slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Registration of events to happen during list display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;data: ls_event type slis_alv_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_EVENTS_GET'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_list_type = 0&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;et_events = rt_events.&lt;/P&gt;&lt;P&gt;read table rt_events with key name = slis_ev_top_of_page&lt;/P&gt;&lt;P&gt;into ls_event.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move g_top_of_page to ls_event-form.&lt;/P&gt;&lt;P&gt;append ls_event to rt_events.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "eventtab_build&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : top_of_page&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form top_of_page.&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_COMMENTARY_WRITE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;I_LOGO = 'ENJOYSAP_LOGO'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;it_list_commentary = g_list_top_of_page.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form validate_screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Selection Screen fields&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form validate_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Company Code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t001.&lt;/P&gt;&lt;P&gt;if not p_bukrs is initial.&lt;/P&gt;&lt;P&gt;select single bukrs&lt;/P&gt;&lt;P&gt;into t001-bukrs&lt;/P&gt;&lt;P&gt;from t001&lt;/P&gt;&lt;P&gt;where bukrs eq p_bukrs.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Company Code'(012).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of GL Account (GR/IR)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear ska1.&lt;/P&gt;&lt;P&gt;if not p_grira is initial.&lt;/P&gt;&lt;P&gt;select saknr&lt;/P&gt;&lt;P&gt;into ska1-saknr&lt;/P&gt;&lt;P&gt;from ska1&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;where saknr eq p_grira.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid GR/IR Account'(013).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Vendor Code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear lfa1.&lt;/P&gt;&lt;P&gt;if not s_lifnr[] is initial.&lt;/P&gt;&lt;P&gt;select single lifnr&lt;/P&gt;&lt;P&gt;into lfa1-lifnr&lt;/P&gt;&lt;P&gt;from lfa1&lt;/P&gt;&lt;P&gt;where lifnr in s_lifnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Vendor'(001).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Plant Code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear t001w.&lt;/P&gt;&lt;P&gt;if not s_werks[] is initial.&lt;/P&gt;&lt;P&gt;select single werks&lt;/P&gt;&lt;P&gt;into t001w-werks&lt;/P&gt;&lt;P&gt;from t001w&lt;/P&gt;&lt;P&gt;where werks in s_werks.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Plant'(014).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Material Code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear mara.&lt;/P&gt;&lt;P&gt;if not s_matnr[] is initial.&lt;/P&gt;&lt;P&gt;select single matnr&lt;/P&gt;&lt;P&gt;into mara-matnr&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Material'(015).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Purchase Order&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear ekko.&lt;/P&gt;&lt;P&gt;if not s_ebeln[] is initial.&lt;/P&gt;&lt;P&gt;select single ebeln&lt;/P&gt;&lt;P&gt;into ekko-ebeln&lt;/P&gt;&lt;P&gt;from ekko&lt;/P&gt;&lt;P&gt;where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Purchase Order'(016).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Cost Center&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear csks.&lt;/P&gt;&lt;P&gt;if not s_kostl[] is initial.&lt;/P&gt;&lt;P&gt;select kostl&lt;/P&gt;&lt;P&gt;into csks-kostl&lt;/P&gt;&lt;P&gt;from csks&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;where kostl in s_kostl.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Cost Center'(017).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation of Cost Element&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear cska.&lt;/P&gt;&lt;P&gt;if not s_kstar[] is initial.&lt;/P&gt;&lt;P&gt;select kstar&lt;/P&gt;&lt;P&gt;into cska-kstar&lt;/P&gt;&lt;P&gt;from cska&lt;/P&gt;&lt;P&gt;up to 1 rows&lt;/P&gt;&lt;P&gt;where kstar in s_kstar.&lt;/P&gt;&lt;P&gt;endselect.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message e899 with 'Enter Valid Cost Element'(018).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "validate_screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp; Form read_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Data from the database Tables&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form read_data.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Accounting Documents for the GR/IR Account Entered on&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_bsis.&lt;/P&gt;&lt;P&gt;refresh i_bsis.&lt;/P&gt;&lt;P&gt;select bukrs " Company Code&lt;/P&gt;&lt;P&gt;hkont " GR IR Account&lt;/P&gt;&lt;P&gt;gjahr " Fiscal Year&lt;/P&gt;&lt;P&gt;belnr " Acc Document&lt;/P&gt;&lt;P&gt;buzei " Item No&lt;/P&gt;&lt;P&gt;budat " Receipt Date(Posting)&lt;/P&gt;&lt;P&gt;monat " Period&lt;/P&gt;&lt;P&gt;into table i_bsis&lt;/P&gt;&lt;P&gt;from bsis&lt;/P&gt;&lt;P&gt;where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;and hkont = p_grira&lt;/P&gt;&lt;P&gt;and budat in s_budat&lt;/P&gt;&lt;P&gt;and monat in s_monat .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;message i899 with 'No data found'(043).&lt;/P&gt;&lt;P&gt;g_exit = c_x.&lt;/P&gt;&lt;P&gt;stop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_bsis by bukrs hkont gjahr belnr buzei.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Vendor,PO,Material,Qty details from BSEG Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not i_bsis[] is initial.&lt;/P&gt;&lt;P&gt;clear i_bseg.&lt;/P&gt;&lt;P&gt;refresh i_bseg.&lt;/P&gt;&lt;P&gt;select bukrs " Company Code&lt;/P&gt;&lt;P&gt;belnr " Acc Document&lt;/P&gt;&lt;P&gt;buzei " Item No&lt;/P&gt;&lt;P&gt;gjahr " Fiscal Year&lt;/P&gt;&lt;P&gt;shkzg " Dr/Cr Indicator&lt;/P&gt;&lt;P&gt;lifnr " Vendor Code&lt;/P&gt;&lt;P&gt;matnr " Material No&lt;/P&gt;&lt;P&gt;ebeln " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp " PO Item&lt;/P&gt;&lt;P&gt;werks " Plant&lt;/P&gt;&lt;P&gt;menge " PO Quantity&lt;/P&gt;&lt;P&gt;meins " UOM&lt;/P&gt;&lt;P&gt;dmbtr " Amount in Local Currency&lt;/P&gt;&lt;P&gt;wrbtr " Amount in Trans.Currency&lt;/P&gt;&lt;P&gt;into table i_bseg&lt;/P&gt;&lt;P&gt;from bseg&lt;/P&gt;&lt;P&gt;for all entries in i_bsis&lt;/P&gt;&lt;P&gt;where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;and belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;and gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;and buzei = i_bsis-buzei&lt;/P&gt;&lt;P&gt;and lifnr in s_lifnr&lt;/P&gt;&lt;P&gt;and werks in s_werks&lt;/P&gt;&lt;P&gt;and matnr in s_matnr&lt;/P&gt;&lt;P&gt;and ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_bseg by bukrs belnr buzei gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Select the Trans.Currency from BKPF Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_bkpf.&lt;/P&gt;&lt;P&gt;refresh i_bkpf.&lt;/P&gt;&lt;P&gt;select bukrs " Company Code&lt;/P&gt;&lt;P&gt;belnr " Acc Document&lt;/P&gt;&lt;P&gt;gjahr " Fiscal Year&lt;/P&gt;&lt;P&gt;waers " Trans. Currency&lt;/P&gt;&lt;P&gt;awkey " Object Key&lt;/P&gt;&lt;P&gt;awtyp " Reference Procedure&lt;/P&gt;&lt;P&gt;into table i_bkpf&lt;/P&gt;&lt;P&gt;from bkpf&lt;/P&gt;&lt;P&gt;for all entries in i_bsis&lt;/P&gt;&lt;P&gt;where bukrs = p_bukrs&lt;/P&gt;&lt;P&gt;and belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;and gjahr = i_bsis-gjahr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort i_bkpf by bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Quantity and UOM of Material from MSEG Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not i_bkpf[] is initial.&lt;/P&gt;&lt;P&gt;clear i_mseg.&lt;/P&gt;&lt;P&gt;refresh i_mseg.&lt;/P&gt;&lt;P&gt;select mblnr " Material Document&lt;/P&gt;&lt;P&gt;mjahr " Fiscal Year&lt;/P&gt;&lt;P&gt;bwart " Movement Type&lt;/P&gt;&lt;P&gt;matnr " Material No&lt;/P&gt;&lt;P&gt;menge " PO Quantity&lt;/P&gt;&lt;P&gt;meins " UOM&lt;/P&gt;&lt;P&gt;into table i_mseg&lt;/P&gt;&lt;P&gt;from mseg&lt;/P&gt;&lt;P&gt;for all entries in i_bkpf&lt;/P&gt;&lt;P&gt;where mblnr = i_bkpf-awkey(10).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort i_mseg by mblnr mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Material And Description from EKPO Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_bseg[] is initial.&lt;/P&gt;&lt;P&gt;clear i_ekpo.&lt;/P&gt;&lt;P&gt;refresh i_ekpo.&lt;/P&gt;&lt;P&gt;select ebeln " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp " PO Item&lt;/P&gt;&lt;P&gt;matnr " Material No&lt;/P&gt;&lt;P&gt;txz01 " Material Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into table i_ekpo&lt;/P&gt;&lt;P&gt;from ekpo&lt;/P&gt;&lt;P&gt;for all entries in i_bseg&lt;/P&gt;&lt;P&gt;where ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;and ebelp = i_bseg-ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_ekpo by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Valuation Class from MBEW Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_mbew.&lt;/P&gt;&lt;P&gt;refresh i_mbew.&lt;/P&gt;&lt;P&gt;select matnr " Material No&lt;/P&gt;&lt;P&gt;bwkey " Plant&lt;/P&gt;&lt;P&gt;bklas " Valuation Class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into table i_mbew&lt;/P&gt;&lt;P&gt;from mbew&lt;/P&gt;&lt;P&gt;for all entries in i_bseg&lt;/P&gt;&lt;P&gt;where matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;and bwkey = i_bseg-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_mbew by matnr werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Cost Center and Cost Element of the PO from EKKN Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_ekkn.&lt;/P&gt;&lt;P&gt;refresh i_ekkn.&lt;/P&gt;&lt;P&gt;select ebeln " Purchase Order&lt;/P&gt;&lt;P&gt;ebelp " PO Item&lt;/P&gt;&lt;P&gt;kostl " Cost Center&lt;/P&gt;&lt;P&gt;sakto " Cost Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;into table i_ekkn&lt;/P&gt;&lt;P&gt;from ekkn&lt;/P&gt;&lt;P&gt;for all entries in i_bseg&lt;/P&gt;&lt;P&gt;where ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;and ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;and kostl in s_kostl&lt;/P&gt;&lt;P&gt;and sakto in s_kstar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_ekkn by ebeln ebelp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get the Vendor Name&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;clear i_lfa1.&lt;/P&gt;&lt;P&gt;refresh i_lfa1.&lt;/P&gt;&lt;P&gt;select lifnr " Vendor&lt;/P&gt;&lt;P&gt;name1 " Name&lt;/P&gt;&lt;P&gt;into table i_lfa1&lt;/P&gt;&lt;P&gt;from lfa1&lt;/P&gt;&lt;P&gt;for all entries in i_bseg&lt;/P&gt;&lt;P&gt;where lifnr = i_bseg-lifnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;sort i_lfa1 by lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Move the data to Final Output Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at i_bsis.&lt;/P&gt;&lt;P&gt;i_final-belnr = i_bsis-belnr. " FI Document&lt;/P&gt;&lt;P&gt;i_final-monat = i_bsis-monat. " Period&lt;/P&gt;&lt;P&gt;i_final-budat = i_bsis-budat. " Rec. Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Transaction Currency from BKPF Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_bkpf with key bukrs = i_bsis-bukrs&lt;/P&gt;&lt;P&gt;belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-waers = i_bkpf-waers. " Tran.Currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Movement Type for all Material Related&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Documents from MSEG Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if i_bkpf-awtyp = c_mkpf.&lt;/P&gt;&lt;P&gt;read table i_mseg with key mblnr = i_bkpf-awkey(10)&lt;/P&gt;&lt;P&gt;mjahr = i_bkpf-awkey+10(4).&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-bwart = i_mseg-bwart. " Movement Type&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read Vendor, Plant, PO Document, Local And Trans.Amounts&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from BSEG Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_bseg with key bukrs = i_bsis-bukrs&lt;/P&gt;&lt;P&gt;belnr = i_bsis-belnr&lt;/P&gt;&lt;P&gt;gjahr = i_bsis-gjahr&lt;/P&gt;&lt;P&gt;buzei = i_bsis-buzei&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-lifnr = i_bseg-lifnr. " Vendor&lt;/P&gt;&lt;P&gt;i_final-werks = i_bseg-werks. " Plant&lt;/P&gt;&lt;P&gt;i_final-ebeln = i_bseg-ebeln. " PO&lt;/P&gt;&lt;P&gt;i_final-dmbtr = i_bseg-dmbtr. " Local Amount&lt;/P&gt;&lt;P&gt;i_final-wrbtr = i_bseg-wrbtr. " Tran.Amount&lt;/P&gt;&lt;P&gt;i_final-menge = i_bseg-menge. " Quantity&lt;/P&gt;&lt;P&gt;i_final-meins = i_bseg-meins. " UOM&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;For Credit Indicator(SHKZG = H) amounts should be (-)ve&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if i_bseg-shkzg = c_h.&lt;/P&gt;&lt;P&gt;i_final-dmbtr = i_final-dmbtr * -1.&lt;/P&gt;&lt;P&gt;i_final-wrbtr = i_final-wrbtr * -1.&lt;/P&gt;&lt;P&gt;i_final-menge = i_final-menge * -1.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Material and its Description from EKPO Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_ekpo with key ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-matnr = i_ekpo-matnr. " Material Number&lt;/P&gt;&lt;P&gt;i_final-txz01 = i_ekpo-txz01. " Material Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate the Material Status depending on the Input Checkbox&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;On Selection Screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if not i_ekpo-matnr is initial.&lt;/P&gt;&lt;P&gt;i_final-status = c_x.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the PO related Cost Element and Cost Centers&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;from EKKN Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_ekkn with key ebeln = i_bseg-ebeln&lt;/P&gt;&lt;P&gt;ebelp = i_bseg-ebelp&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-kostl = i_ekkn-kostl. " Cost Center&lt;/P&gt;&lt;P&gt;i_final-sakto = i_ekkn-sakto. " Cost Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Valuation Class from MBEW Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_mbew with key matnr = i_bseg-matnr&lt;/P&gt;&lt;P&gt;werks = i_bseg-werks&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-bklas = i_mbew-bklas. " Val Class&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the Vendor Name from LFA1 Internal Table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;read table i_lfa1 with key lifnr = i_bseg-lifnr&lt;/P&gt;&lt;P&gt;binary search.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;i_final-name1 = i_lfa1-name1. " Vendor Name&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append i_final.&lt;/P&gt;&lt;P&gt;clear i_final.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort i_final by lifnr werks monat matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Depending on the check Box Selected display the data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if p_incmt = c_x and p_incnm ne c_x.&lt;/P&gt;&lt;P&gt;delete i_final where matnr eq space.&lt;/P&gt;&lt;P&gt;elseif p_incnm = c_x and p_incmt ne c_x.&lt;/P&gt;&lt;P&gt;delete i_final where matnr ne space.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. "Read Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : populate_layout_stucture&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : Populating the layout structure&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form populate_layout_stucture.&lt;/P&gt;&lt;P&gt;clear x_layout .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Layout properties&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;x_layout-zebra = c_x.&lt;/P&gt;&lt;P&gt;x_layout-detail_popup = c_x.&lt;/P&gt;&lt;P&gt;x_layout-detail_initial_lines = c_x.&lt;/P&gt;&lt;P&gt;x_layout-colwidth_optimize = c_x.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " populate_layout_stucture&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : build_field_catalog&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : Building the field catalog data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_field_catalog.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_program_name = g_repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'I_FINAL'&lt;/P&gt;&lt;P&gt;i_inclname = g_repid&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;ct_fieldcat = i_fldcat&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;others = 3.&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 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.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Getting the Header text for the coloums&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;loop at i_fldcat into x_fldcat where fieldname = 'LIFNR' or&lt;/P&gt;&lt;P&gt;fieldname = 'NAME1' or&lt;/P&gt;&lt;P&gt;fieldname = 'WERKS' or&lt;/P&gt;&lt;P&gt;fieldname = 'MONAT' or&lt;/P&gt;&lt;P&gt;fieldname = 'MATNR' or&lt;/P&gt;&lt;P&gt;fieldname = 'BKLAS' or&lt;/P&gt;&lt;P&gt;fieldname = 'EBELN' or&lt;/P&gt;&lt;P&gt;fieldname = 'KOSTL' or&lt;/P&gt;&lt;P&gt;fieldname = 'SAKTO' or&lt;/P&gt;&lt;P&gt;fieldname = 'BUDAT' or&lt;/P&gt;&lt;P&gt;fieldname = 'BELNR' or&lt;/P&gt;&lt;P&gt;fieldname = 'BWART' or&lt;/P&gt;&lt;P&gt;fieldname = 'TXZ01' or&lt;/P&gt;&lt;P&gt;fieldname = 'MENGE' or&lt;/P&gt;&lt;P&gt;fieldname = 'MEINS' or&lt;/P&gt;&lt;P&gt;fieldname = 'DMBTR' or&lt;/P&gt;&lt;P&gt;fieldname = 'WRBTR' or&lt;/P&gt;&lt;P&gt;fieldname = 'WAERS' or&lt;/P&gt;&lt;P&gt;fieldname = 'STATUS'.&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'LIFNR'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Vendor'(003).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Vendor'(003).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Vendor'(003).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Vendor'(003).&lt;/P&gt;&lt;P&gt;x_fldcat-inttype = c_c.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'NAME1'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Vendor Name'(002).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Vendor Name'(002).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Vendor Name'(002).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Vendor Name'(002).&lt;/P&gt;&lt;P&gt;x_fldcat-inttype = c_c.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Plant'(010).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Plant'(010).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Plant'(010).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Plant'(010).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'MONAT'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Period'(011).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Period'(011).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Period'(011).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Period'(011).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Material'(004).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Material'(004).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Material'(004).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Material'(004).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'BKLAS'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Valuation Class'(009).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Valuation Class'(009).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Valuation Class'(009).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Valuation Class'(009).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Purchase Order'(005).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Purchase Order'(005).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Purchase Order'(005).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Purchase Order'(005).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Cost Center'(006).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Cost Center'(006).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Cost Center'(006).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Cost Center'(006).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'SAKTO'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Cost Element'(007).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Cost Element'(007).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Cost Element'(007).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Cost Element'(007).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'BUDAT'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Receipt Date'(008).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Receipt Date'(008).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Receipt Date'(008).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Receipt Date'(008).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'BELNR'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Acc.Document'(100).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Acc.Document'(100).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Acc.Document'(100).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Acc.Document'(100).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'BWART'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Movement Type'(101).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Movement Type'(101).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Movement Type'(101).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Movement Type'(101).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'TXZ01'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Material Text'(102).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Material Text'(102).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Material Text'(102).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Material Text'(102).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'MENGE'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Quantity'(103).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Quantity'(103).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Quantity'(103).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Quantity'(103).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;x_fldcat-do_sum = c_x.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'MEINS'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'UOM'(104).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'UOM'(104).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'UOM'(104).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'UOM'(104).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'DMBTR'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Amount in Local Curr'(105).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Amount in Local Curr'(105).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Amount in Local Curr'(105).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Amount in Local Curr'(105).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;x_fldcat-do_sum = c_x.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'WRBTR'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Amount in Trans.Curr'(106).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Amount in Trans.Curr'(106).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Amount in Trans.Curr'(106).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Amount in Trans.Curr'(106).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;x_fldcat-do_sum = c_x.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'WAERS'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Trans.Currency'(107).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Trans.Currency'(107).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Trans.Currency'(107).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Trans.Currency'(107).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if x_fldcat-fieldname = 'STATUS'.&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_l = 'Material Status'(019).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_m = 'Material Status'(019).&lt;/P&gt;&lt;P&gt;x_fldcat-seltext_s = 'Material Status'(019).&lt;/P&gt;&lt;P&gt;x_fldcat-reptext_ddic = 'Material Status'(019).&lt;/P&gt;&lt;P&gt;x_fldcat-ddictxt = c_l.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify i_fldcat from x_fldcat index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " build_field_catalog&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : build_sort_totals&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : Building the Criteria for Sort/Subtotals&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form build_sort_totals.&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'LIFNR'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 1.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'WERKS'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 2.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'MONAT'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 3.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'MATNR'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 4.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'BKLAS'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 5.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'EBELN'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 6.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'KOSTL'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 7.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'SAKTO'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 8.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_sort-fieldname = 'BUDAT'.&lt;/P&gt;&lt;P&gt;x_sort-tabname = 'I_FINAL'.&lt;/P&gt;&lt;P&gt;x_sort-spos = 9.&lt;/P&gt;&lt;P&gt;x_sort-up = c_x.&lt;/P&gt;&lt;P&gt;x_sort-subtot = c_x.&lt;/P&gt;&lt;P&gt;append x_sort to i_sort.&lt;/P&gt;&lt;P&gt;clear x_sort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " build_sort_totals&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : comment_build&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : This form is used to display the Report Header(ALV)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;form comment_build using lt_top_of_page type&lt;/P&gt;&lt;P&gt;slis_t_listheader.&lt;/P&gt;&lt;P&gt;data: l_line type slis_listheader,&lt;/P&gt;&lt;P&gt;l_heading1 like rs38m-repti,&lt;/P&gt;&lt;P&gt;l_date(10), l_time(8).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear l_line.&lt;/P&gt;&lt;P&gt;l_heading1 = 'GR/IR DETAIL REPORT'(021).&lt;/P&gt;&lt;P&gt;g_repid = sy-repid.&lt;/P&gt;&lt;P&gt;write sy-uzeit to l_time.&lt;/P&gt;&lt;P&gt;write sy-datum to l_date.&lt;/P&gt;&lt;P&gt;l_line-typ = c_h.&lt;/P&gt;&lt;P&gt;move l_heading1 to l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear l_line.&lt;/P&gt;&lt;P&gt;l_line-typ = c_s.&lt;/P&gt;&lt;P&gt;concatenate 'System:'(023) sy-sysid&lt;/P&gt;&lt;P&gt;'Date:'(024) l_date&lt;/P&gt;&lt;P&gt;' Time:'(025)&lt;/P&gt;&lt;P&gt;l_time into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate 'Report:'(026) g_repid&lt;/P&gt;&lt;P&gt;' User:'(027) sy-uname into&lt;/P&gt;&lt;P&gt;l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;l_line-typ = c_a.&lt;/P&gt;&lt;P&gt;move 'SELECTION CRITERIA:'(028) to l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Company Code : '(029)&lt;/P&gt;&lt;P&gt;p_bukrs into l_line-info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' GR/IR Account: '(030)&lt;/P&gt;&lt;P&gt;p_grira into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Posting Date : '(032) s_budat-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_budat-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Plant : '(033) s_werks-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_werks-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate ' Vendor: '(034) s_lifnr-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_lifnr-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate ' Material: '(035) s_matnr-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_matnr-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Cost Center : '(036) s_kostl-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_kostl-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate ' Cost Element: '(037) s_kstar-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_kstar-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate ' Purchase Order: '(038) s_ebeln-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_ebeln-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Period : '(039) s_monat-low&lt;/P&gt;&lt;P&gt;' To: '(031) s_monat-high into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate ' Include Material Items: '(040)&lt;/P&gt;&lt;P&gt;p_incmt into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;concatenate ' Include Non-Material Items: '(041)&lt;/P&gt;&lt;P&gt;p_incnm into l_line-info.&lt;/P&gt;&lt;P&gt;append l_line to lt_top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form : call_list_viewer&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Description : This form is used to display the grid through ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form call_list_viewer.&lt;/P&gt;&lt;P&gt;&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 = g_repid&lt;/P&gt;&lt;P&gt;is_layout = x_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = i_fldcat[]&lt;/P&gt;&lt;P&gt;i_default = c_x&lt;/P&gt;&lt;P&gt;it_sort = i_sort[]&lt;/P&gt;&lt;P&gt;i_save = g_save&lt;/P&gt;&lt;P&gt;is_variant = g_variant&lt;/P&gt;&lt;P&gt;it_events = g_events[]&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;e_exit_caused_by_caller = g_exit_caused_by_caller&lt;/P&gt;&lt;P&gt;es_exit_caused_by_user = g_exit_caused_by_user&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = i_final&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 &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write: / 'Problem in calling the ALV report'(042).&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform. " call_list_viewer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330271#M512662</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-06-05T08:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330272#M512663</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;No mandatory, but a good idea, especially if using other events like AT SELECTION-SCREEN. If using these other events, you do need to have the START-OF-SELECTION event in order to fire your main line program, otherwise all of your main line code would be under the AT SELECTION-SCREEN event and would not be fired when you hit F8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Summarize, they are not mandatory by the syntax checker, but it is a good idea to use the START-OF-SELECTION event in your report programs, personally, I have never used the END-OF-SELECTION event in my report programs, I believe this is for when working with logical databases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you use start-of-selection to make a new code-section.&lt;/P&gt;&lt;P&gt;-&amp;gt;you must use it when you've used events like initialization or at selection-screen.&lt;/P&gt;&lt;P&gt;-&amp;gt; othw. your coding is processed in the earlier events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection is only used in reports with logical database (LDB) to close selection from DB.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a0735c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9a0735c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/important-abap-faq.htm" target="test_blank"&gt;http://www.sap-img.com/abap/important-abap-faq.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330272#M512663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330273#M512664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;     ths usesge of START-OF-SELECTION and END-OF-SELECTION depends on our requirements. the system defaultlt add START-OF-SELECTION event for every executable program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;under   START-OF-SELECTION event we genarally keep  SELECTION-STATEMENTS, because the basic list  genarated by START-OF-SELECTION event only. it is mandatory while we r working with INTERACTIVE REPORTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can also keep write statements under END-OF-SELECTION . whenever the control encounters the END-OF-SELECTION then only the workprocessor move from report to list processot to genarate list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&amp;amp;Regards,&lt;/P&gt;&lt;P&gt;Sudheer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330273#M512664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:14:17Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330274#M512665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;START-OF-SELECTION&amp;lt;/b&amp;gt; is not a mandatory statement. Just go through the statements from SAP documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;The REPORT statement always executes a START-OF-SELECTION implcitly. Consequently all processing logic between the REPORT statement and the next event keyword is automatically processed in the START-OF-SELECTION event. &lt;/P&gt;&lt;P&gt;Immediately afterwards, the system processes the statements that belong to an explicit START-OF-SELECTION block.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil Madhavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330274#M512665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: help plz</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330275#M512666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good question! Let me try to answer this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Statements that are not assigned to a processing block are never executed .&lt;/P&gt;&lt;P&gt;An exception to this are any non-declarative statements between the REPORT or PROGRAM statement and the first processing block, which are assigned to the default event START-OF-SELECTION if a program does not contain an explicit START-OF-SELECTION block, these statements form the entire START-OF-SELECTION block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Regarding START-OF-SELECTION event&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a START-OFSELECTION keyword is already included in your program, these statements are inserted at the beginning of this block. If the program does not contain any explicit event blocks, all nondeclarative statements are assigned to the default processing block START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you take an example below:&lt;/P&gt;&lt;P&gt;REPORT EVENT_TEST.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 1'.&lt;/P&gt;&lt;P&gt;FORM ROUTINE.&lt;/P&gt;&lt;P&gt;WRITE / 'Subroutine'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 2'.&lt;/P&gt;&lt;P&gt;PERFORM ROUTINE.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you cannot access the perform routine as it does not come under any event block. By default , REPORT EVENT_TEST and WRITE / 'Statement 1 form the first processing block whoch is start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if i modify this code to explicitly declare start-of-selection event then:&lt;/P&gt;&lt;P&gt;REPORT EVENT_TEST.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 1'.&lt;/P&gt;&lt;P&gt;FORM ROUTINE.&lt;/P&gt;&lt;P&gt;WRITE / 'Subroutine'.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 2'.&lt;/P&gt;&lt;P&gt;PERFORM ROUTINE.&lt;/P&gt;&lt;P&gt;WRITE / 'Statement 3'.&lt;/P&gt;&lt;P&gt;In this program, the START-OF-SELECTION processing block consists of all&lt;/P&gt;&lt;P&gt;statements except the FORM-ENDFORM block. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Regarding END-OF-SELECTION&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Mailny while using the logical databases , end-of-selection and get forms a kind of loop...endloop statement . see e.g below:&lt;/P&gt;&lt;P&gt;DATA: SPFLI_TAB TYPE SORTED TABLE OF SPFLI&lt;/P&gt;&lt;P&gt;WITH UNIQUE KEY CITYFROM CITYTO CARRID CONNID,&lt;/P&gt;&lt;P&gt;SPFLI_LINE TYPE SPFLI.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;WRITE 'Demo program for END-OF-SELECTION'.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;GET SPFLI FIELDS CARRID CONNID CITYFROM CITYTO.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING SPFLI TO SPFLI_LINE.&lt;/P&gt;&lt;P&gt;INSERT SPFLI_LINE INTO TABLE SPFLI_TAB.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;LOOP AT SPFLI_TAB INTO SPFLI_LINE.&lt;/P&gt;&lt;P&gt;WRITE: / SPFLI_LINE-CITYFROM,&lt;/P&gt;&lt;P&gt;SPFLI_LINE-CITYTO,&lt;/P&gt;&lt;P&gt;SPFLI_LINE-CARRID,&lt;/P&gt;&lt;P&gt;SPFLI_LINE-CONNID.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;This program fills a sorted table with data from the logical database in the GET&lt;/P&gt;&lt;P&gt;SPFLI event, and displays them in a list in the END-OF-SELECTIOn event.&lt;/P&gt;&lt;P&gt;In the reports without  a logical database , END-Of-SELECTION processing block , you will display all your data stpred in the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically END-OF-SELECTIOn is important if you have lists to display as then the control goes to the list processor and then it executes the events accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see the sap help for more info:&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/frameset.htm"&amp;gt;http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this could help you in your understanding .&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2007 08:48:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-plz/m-p/2330275#M512666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-05T08:48:34Z</dc:date>
    </item>
  </channel>
</rss>

