<?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 interactive reporing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053579#M423666</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you pls give me solution for the below problem. I am new to this field.&lt;/P&gt;&lt;P&gt;I am using table &amp;lt;b&amp;gt;VBAK&amp;lt;/b&amp;gt; and internal table &amp;lt;b&amp;gt;i_vbak&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select&amp;lt;/b&amp;gt;: VBELN, ERDAT, NETWR, VTWEG, SPART, KUNNR, KOSTL AUART, PS_PSP_PNR.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select-options&amp;lt;/b&amp;gt;: VBELN, KUNNR, ERDAT.&lt;/P&gt;&lt;P&gt;I need to do following task:&lt;/P&gt;&lt;P&gt;1.Use AT USER-COMMAND&lt;/P&gt;&lt;P&gt;2.Use HIDE statement after write statement&lt;/P&gt;&lt;P&gt;3.Use GUI Status and add Button &amp;#145;DISP - Display Sales Order&amp;#146;&lt;/P&gt;&lt;P&gt;4.Call Transaction VA03 to display Sales Order when a valid line is highlighted and DISP button is clicked&lt;/P&gt;&lt;P&gt;5.Display Error Message to select a Valid line when other lines are selected&lt;/P&gt;&lt;P&gt;AT LINE SELECTION to display the row, column and screen number when a line is double-clicked.&lt;/P&gt;&lt;P&gt;I was able to make basic list. But I couldn&amp;#146;t make the interactive list. And one more problem I am having is that&amp;#133;I have total 7 fields to display&amp;#133;but I could make seven heading for that. I can successfully adjust 6. Can you suggest something for that also pls. &lt;/P&gt;&lt;P&gt;If you want I can show my code for basic report list.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks in advance.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Mar 2007 21:11:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-11T21:11:43Z</dc:date>
    <item>
      <title>interactive reporing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053579#M423666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you pls give me solution for the below problem. I am new to this field.&lt;/P&gt;&lt;P&gt;I am using table &amp;lt;b&amp;gt;VBAK&amp;lt;/b&amp;gt; and internal table &amp;lt;b&amp;gt;i_vbak&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select&amp;lt;/b&amp;gt;: VBELN, ERDAT, NETWR, VTWEG, SPART, KUNNR, KOSTL AUART, PS_PSP_PNR.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Select-options&amp;lt;/b&amp;gt;: VBELN, KUNNR, ERDAT.&lt;/P&gt;&lt;P&gt;I need to do following task:&lt;/P&gt;&lt;P&gt;1.Use AT USER-COMMAND&lt;/P&gt;&lt;P&gt;2.Use HIDE statement after write statement&lt;/P&gt;&lt;P&gt;3.Use GUI Status and add Button &amp;#145;DISP - Display Sales Order&amp;#146;&lt;/P&gt;&lt;P&gt;4.Call Transaction VA03 to display Sales Order when a valid line is highlighted and DISP button is clicked&lt;/P&gt;&lt;P&gt;5.Display Error Message to select a Valid line when other lines are selected&lt;/P&gt;&lt;P&gt;AT LINE SELECTION to display the row, column and screen number when a line is double-clicked.&lt;/P&gt;&lt;P&gt;I was able to make basic list. But I couldn&amp;#146;t make the interactive list. And one more problem I am having is that&amp;#133;I have total 7 fields to display&amp;#133;but I could make seven heading for that. I can successfully adjust 6. Can you suggest something for that also pls. &lt;/P&gt;&lt;P&gt;If you want I can show my code for basic report list.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Thanks in advance.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Mar 2007 21:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053579#M423666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-11T21:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: interactive reporing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053580#M423667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Please refer to the below programs that will help you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEMO_LIST_INTERACTIVE_1&lt;/P&gt;&lt;P&gt;DEMO_LIST_INTERACTIVE_2&lt;/P&gt;&lt;P&gt;DEMO_LIST_INTERACTIVE_3&lt;/P&gt;&lt;P&gt;DEMO_LIST_INTERACTIVE_4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 05:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053580#M423667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T05:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: interactive reporing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053581#M423668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try copying the below program &lt;/P&gt;&lt;P&gt;and create two GUI status with name 'PURCHASEMENU' and 'PURCHASEMENU1' .. and there you are with the solution....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign the points if solved your probelm&lt;/P&gt;&lt;P&gt;&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; Report  Z4SANINTERACTIVE&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;REPORT  Z4SANINTERACTIVE no standard page heading message-id z4.&lt;/P&gt;&lt;P&gt;tables: ekko, ekpo, konv, makt, T001, lfa1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1.&lt;/P&gt;&lt;P&gt;  parameters: v_CCode like ekko-bukrs memory id BUK obligatory.&lt;/P&gt;&lt;P&gt;  select-options: v_PDate for ekko-bedat,&lt;/P&gt;&lt;P&gt;                  v_POrg for ekko-Ekorg memory id EKO,&lt;/P&gt;&lt;P&gt;                  v_PONum for ekko-Ebeln memory id BES.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_CheckBx.&lt;/P&gt;&lt;P&gt;data: v_counter type i.          " variable to check how much time program has readline from the output list.&lt;/P&gt;&lt;P&gt;data: v_TotalVal like ekpo-netwr.  " to sum total value in local currency&lt;/P&gt;&lt;P&gt;data: v_date(10).&lt;/P&gt;&lt;P&gt;data: v_CBValue type konv-kawrt.&lt;/P&gt;&lt;P&gt;data: v_CValue type konv-kwert.&lt;/P&gt;&lt;P&gt;data: begin of it_POdata occurs 0,        " This table stores all the Purchase Order in the selected Range&lt;/P&gt;&lt;P&gt;        Bukrs like ekko-Bukrs,      " Company Code&lt;/P&gt;&lt;P&gt;        Ebeln like ekko-Ebeln,      " Purchase Order Number&lt;/P&gt;&lt;P&gt;        Bedat like ekko-bedat,      " Posting Date&lt;/P&gt;&lt;P&gt;        Ekorg like ekko-Ekorg,      " Purchasing Organization&lt;/P&gt;&lt;P&gt;        Bsart like ekko-Bsart,      " Doc Type&lt;/P&gt;&lt;P&gt;        Lifnr like ekko-Lifnr,      " Vendor Number.&lt;/P&gt;&lt;P&gt;        knumv like ekko-knumv,      " Number of Document Condition    " This is the Common field between Ekko and konv(Condition Document)&lt;/P&gt;&lt;P&gt;        end of it_POdata.&lt;/P&gt;&lt;P&gt;data: it_POdata1 like it_POdata occurs 0 with header line.     " This Table is used to Store the Secondary List as the First internal&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;table is used to retrieve purchase order number including knumv&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_TotalVal occurs 0,                          " Table used to store all the selected purchase order and calculate&lt;/P&gt;&lt;P&gt;        Ebeln like ekpo-Ebeln,      " Purchase Order Number   " Total Value in Currency.&lt;/P&gt;&lt;P&gt;        ebelp like ekpo-ebelp,      " Item no.&lt;/P&gt;&lt;P&gt;        netwr like ekpo-netwr,      " Net Order Value.&lt;/P&gt;&lt;P&gt;      end of it_TotalVal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: Begin of it_PODetail occurs 0,              " Table used to store Purchase order detail used in Final list display&lt;/P&gt;&lt;P&gt;         Ebeln like ekpo-Ebeln,      " Purchase Order Number.&lt;/P&gt;&lt;P&gt;         Ebelp like ekpo-ebelp,      " Item Number,&lt;/P&gt;&lt;P&gt;         matnr like ekpo-matnr,      " Material Number&lt;/P&gt;&lt;P&gt;         menge like ekpo-menge,      " Quantity&lt;/P&gt;&lt;P&gt;         meins like ekpo-meins,      " Unit of Measurement&lt;/P&gt;&lt;P&gt;       end of it_PODetail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it_DocumentDetail occurs 0,                    " This Table is used to Retrieve the information with Reference to&lt;/P&gt;&lt;P&gt;          knumv like konv-knumv,      " Number of Document Condition  " P/O and knumv  used in Final List&lt;/P&gt;&lt;P&gt;          kposn like konv-kposn,      " Condition Item Number&lt;/P&gt;&lt;P&gt;          kschl like konv-kschl,      " Condition type&lt;/P&gt;&lt;P&gt;          kbetr like konv-kbetr,      " Rate(Amount or Percentage)&lt;/P&gt;&lt;P&gt;          kwert like konv-kwert,      " Condition Value&lt;/P&gt;&lt;P&gt;          kawrt like konv-kawrt,      " Condition Base Value&lt;/P&gt;&lt;P&gt;      end of it_DocumentDetail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen.&lt;/P&gt;&lt;P&gt;  perform validate_CompCode.      " This Function Validates Company Code if it Exist in its Master File.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;set pf-status 'PURCHASEMENU'.     " This Menu Displays The Execute Button.&lt;/P&gt;&lt;P&gt;perform Pouplate_it_POdata.       " This Function Populates all the P/O Selected in range.&lt;/P&gt;&lt;P&gt;perform display_BasicList.        " This Display Basic List including Check Boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*at selection-screen output.&lt;/P&gt;&lt;P&gt;*get parameter id 'BUK' field v_CCode.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.                " This Event is Trigerred at Final list selection as only case 2 is handled.&lt;/P&gt;&lt;P&gt;      CASE SY-LSIND.&lt;/P&gt;&lt;P&gt;        WHEN 2.&lt;/P&gt;&lt;P&gt;            perform display_FinalHeader.  " This will display the header info&lt;/P&gt;&lt;P&gt;            perform display_FinalData.    " This uses it_DocumentDetail table to display Final List&lt;/P&gt;&lt;P&gt;      ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT USER-COMMAND.&lt;/P&gt;&lt;P&gt;CASE SY-UCOMM.&lt;/P&gt;&lt;P&gt;  WHEN  'EXT1'.&lt;/P&gt;&lt;P&gt;            SET SCREEN 0.&lt;/P&gt;&lt;P&gt;            LEAVE SCREEN.&lt;/P&gt;&lt;P&gt;  WHEN 'EXE1'.&lt;/P&gt;&lt;P&gt;            CASE SY-LSIND.&lt;/P&gt;&lt;P&gt;              WHEN 1.&lt;/P&gt;&lt;P&gt;                set pf-status 'PURCHASEMENU1'.&lt;/P&gt;&lt;P&gt;                refresh it_POdata1.        " This Store all the Selected Purchase Order&lt;/P&gt;&lt;P&gt;                do v_counter times.&lt;/P&gt;&lt;P&gt;                    read line sy-index field value v_checkBx it_POdata-Ebeln it_POdata-lifnr it_POdata-Bsart v_Date.  "it_POdata-bedat.&lt;/P&gt;&lt;P&gt;                 if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;                   exit.&lt;/P&gt;&lt;P&gt;                 endif.&lt;/P&gt;&lt;P&gt;                 if v_checkBx = 'X'.&lt;/P&gt;&lt;P&gt;                    it_POdata1-Ebeln = it_POdata-Ebeln.&lt;/P&gt;&lt;P&gt;                    it_POdata1-lifnr = it_POdata-lifnr.&lt;/P&gt;&lt;P&gt;                    it_POdata1-Bsart = it_POdata-Bsart.&lt;/P&gt;&lt;P&gt;                    it_POdata1-bedat = v_date. "it_POdata-bedat.&lt;/P&gt;&lt;P&gt;                    append it_POdata1.&lt;/P&gt;&lt;P&gt;                 endif.&lt;/P&gt;&lt;P&gt;                enddo.&lt;/P&gt;&lt;P&gt;                sort it_POdata1.&lt;/P&gt;&lt;P&gt;                select Ebeln ebelp netwr from ekpo into table it_TotalVal    " This will Store all the net price for all the item&lt;/P&gt;&lt;P&gt;                        for all Entries in it_POdata1                        " including the p/o number to sum up later on.&lt;/P&gt;&lt;P&gt;                        Where Ebeln = it_POdata1-Ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                sort it_TotalVal.&lt;/P&gt;&lt;P&gt;                perform display_SecondaryList.  " This will display selected purchase order including Total Value in Local Currency&lt;/P&gt;&lt;P&gt;            ENDCASE.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;top-of-page.&lt;/P&gt;&lt;P&gt;perform display_Header.&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;                                        Function are Written here&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;form validate_CompCode .&lt;/P&gt;&lt;P&gt;    select single * from T001 where Bukrs = v_CCode.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      message e046.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " validate_CompCode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_Header .&lt;/P&gt;&lt;P&gt;    Write:/ 'RAPIDIGM(INDIA) LTD',50 'LIST OF PO PRICING',70 'DATE',78 sy-datum.&lt;/P&gt;&lt;P&gt;    if sy-lsind = 1.&lt;/P&gt;&lt;P&gt;        Write:/50 'SECONDARY LIST', 70 'PAGE: ',78 sy-pagno.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;        Write:/50 'BASIC LIST ', 70 'Page: ',78 sy-pagno.&lt;/P&gt;&lt;P&gt;        Write:/ 'Display Basic List for Purchase Order'.&lt;/P&gt;&lt;P&gt;        Write:/ 'Developer : Sanjay Yesi'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;endform.                    " display_Header&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form Pouplate_it_POdata .&lt;/P&gt;&lt;P&gt;  select M&lt;SUB&gt;Bukrs M&lt;/SUB&gt;Ebeln M&lt;SUB&gt;Bsart M&lt;/SUB&gt;Bedat M&lt;SUB&gt;ekorg M&lt;/SUB&gt;lifnr M~knumv into corresponding fields of table it_POdata from ekko as M&lt;/P&gt;&lt;P&gt;   where M&lt;SUB&gt;Bukrs = v_CCode and M&lt;/SUB&gt;ekorg in v_POrg and M&lt;SUB&gt;Bedat in v_PDate and M&lt;/SUB&gt;Ebeln in v_PONum.&lt;/P&gt;&lt;P&gt;endform.                    " Pouplate_it_POdata&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_BasicList .&lt;/P&gt;&lt;P&gt;    Write:/ 'Check', 15 'P/O NUM', 35 'POSTING', 50 'PO ORG ',60 'DOC',75 'VENDOR NO/'.&lt;/P&gt;&lt;P&gt;    WRITE:/35 'DATE',60 'TYPE',75 'NAME'.&lt;/P&gt;&lt;P&gt;    Write:/.&lt;/P&gt;&lt;P&gt;    v_counter = 8.&lt;/P&gt;&lt;P&gt;    LOOP AT IT_PODATA.&lt;/P&gt;&lt;P&gt;      add 1 to v_counter.&lt;/P&gt;&lt;P&gt;      perform get_VendorName.&lt;/P&gt;&lt;P&gt;      v_Date = it_POdata-Bedat.&lt;/P&gt;&lt;P&gt;      Write:/ v_CheckBx as checkbox,15 IT_PODATA-ebeln,35 IT_PODATA-Bedat,50 IT_PODATA-Ekorg, 60 IT_PODATA-Bsart,&lt;/P&gt;&lt;P&gt;            75 IT_PODATA-lifnr, lfa1-name1.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " display_BasicList&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form display_SecondaryList .&lt;/P&gt;&lt;P&gt;    PERFORM display_Header.&lt;/P&gt;&lt;P&gt;    Write:/ 'P/O NUM', 20 'VENDOR CODE', 60 'PO',70 'PO DATE',90 'TOTAL VALUE IN'.&lt;/P&gt;&lt;P&gt;    WRITE:/20 'NAME',60 'TYPE',90 'LOCAL CURRENCY'.&lt;/P&gt;&lt;P&gt;    Write:/.&lt;/P&gt;&lt;P&gt;    LOOP AT it_POdata1.&lt;/P&gt;&lt;P&gt;        read table it_POdata with key Ebeln = it_POdata1-Ebeln. " Used Just to Print Date Properly&lt;/P&gt;&lt;P&gt;        perform get_VendorName.&lt;/P&gt;&lt;P&gt;        perform get_TotalVal.&lt;/P&gt;&lt;P&gt;        Write:/ it_POdata1-Ebeln,20 it_POdata1-lifnr,lfa1-name1,60 it_POdata1-Bsart,70 it_POdata-bedat,90 v_TotalVal.&lt;/P&gt;&lt;P&gt;        HIDE: it_POdata1-Ebeln , it_POdata-BEDAT.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endform.                    " display_SecondaryList&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_VendorName .&lt;/P&gt;&lt;P&gt;    select single * from lfa1 where lifnr = IT_PODATA1-lifnr.&lt;/P&gt;&lt;P&gt;endform.                    " get_VendorName&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form get_TotalVal .&lt;/P&gt;&lt;P&gt;    v_TotalVal = 0.&lt;/P&gt;&lt;P&gt;    loop at it_TotalVal where Ebeln = it_POdata1-Ebeln.&lt;/P&gt;&lt;P&gt;       v_TotalVal = v_TotalVal + it_TotalVal-netwr.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;endform.                    " get_TotalVal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_FinalHeader .&lt;/P&gt;&lt;P&gt;    Write:/ 'PRICING DETAILS OF PURCHASE ORDER NUMBER:',50 it_POdata1-Ebeln.&lt;/P&gt;&lt;P&gt;    Write:/ 'POSTING DATE:',20 IT_PODATA-BEDAT.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;    WRITE:/2 'ITEM NO',15 'MATERIAL',40 'QTY',55 'UOM',65'&amp;lt;--&lt;DEL&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="---------" /&gt;CONDITION DETAILS--&lt;P&gt;&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt;&amp;gt;'.&lt;/P&gt;&lt;P&gt;    WRITE:/65 'Type',83 'Rate',100 'Base',117 'Condition'.&lt;/P&gt;&lt;P&gt;    Write:/100 'Value',117 'Value'.&lt;/P&gt;&lt;P&gt;    uline.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " display_FinalHeader&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display_FinalData .&lt;/P&gt;&lt;P&gt;          sort it_POdata.&lt;/P&gt;&lt;P&gt;           read table it_POdata with key Ebeln = it_POdata1-ebeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate Purchase Order detail for Item Number and Material Number.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           select Ebeln ebelp matnr menge meins into corresponding fields of table it_PODetail from ekpo where ebeln = it_POdata1-ebeln.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Populate Document detail table with respect to Purchase Order Master&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           select knumv kposn kschl kbetr kwert kawrt into corresponding fields of table it_DocumentDetail from konv&lt;/P&gt;&lt;P&gt;                 where  knumv = it_POdata-knumv.&lt;/P&gt;&lt;P&gt;            sort it_PODetail.&lt;/P&gt;&lt;P&gt;            sort it_DocumentDetail.&lt;/P&gt;&lt;P&gt;            loop at it_PODetail.      " Based on how many Items are there in Detail File&lt;/P&gt;&lt;P&gt;            Write:/2  it_PODetail-Ebelp,15 it_PODetail-matnr,32 it_PODetail-menge,55 it_PODetail-meins.&lt;/P&gt;&lt;P&gt;                loop at it_DocumentDetail where kposn = it_PODetail-Ebelp .   " Many conditions are there per Item&lt;/P&gt;&lt;P&gt;                    Write: 65 it_DocumentDetail-kschl,75 it_DocumentDetail-kbetr,90 it_DocumentDetail-kawrt,&lt;/P&gt;&lt;P&gt;                          110 it_DocumentDetail-kwert.&lt;/P&gt;&lt;P&gt;                    Write:/.&lt;/P&gt;&lt;P&gt;                  v_CBValue = v_CBValue + it_DocumentDetail-kawrt.&lt;/P&gt;&lt;P&gt;                  v_CValue = v_CValue + it_DocumentDetail-kwert.&lt;/P&gt;&lt;P&gt;                endloop.&lt;/P&gt;&lt;P&gt;            uline at 65(62).&lt;/P&gt;&lt;P&gt;            Write:/75 'Item Total',90 v_CBValue, 110 v_CValue.&lt;/P&gt;&lt;P&gt;            uline.&lt;/P&gt;&lt;P&gt;            v_CBValue = 0. v_CValue = 0.&lt;/P&gt;&lt;P&gt;            endloop.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " display_FinalData&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2007 06:01:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interactive-reporing/m-p/2053581#M423668</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-12T06:01:13Z</dc:date>
    </item>
  </channel>
</rss>

