Purchase Order History Query

Hello,
Can I get a query where in against a Purchase Order, what are the different GRPO's made and against that GRPO the A/P invoice which were created?
Selection criteria will be PO Doc Number.
Kalli

Hi Kalli........
Please try this........
SELECT     
          T0.[DocNum] as 'PO NO', T0.[DocDate] as 'PO DATE',
          P1.[GRPODocNum] as 'GRPO NO',
          P1.[GRPODocDate] as 'GRPO DATE',
          P1.[INVOICENO] as 'INVOICE NO',
          P1.[INVOICEDATE] as 'INVOICE DATE',                    
          T0.[CardCode] as 'Party Code',
          T0.[CardName] as 'Name Of Party',T0.[DocStatus] as 'PO Status', T0.[VatSum],
          T0.[DocTotal] as 'Total Amount' , T0.[Comments] as 'Remarks',
IsNull(
Select  Sum(IsNull(VatSum,0))
From OPDN
Where DocEntry In (
Select Distinct DocEntry
from PDN1
Where BaseEntry=T0.DocEntry 
And BaseType=T0.ObjType
),0) +
IsNull(
Select Sum(IsNull(VatSum,0))
From OPCH T3
Where DocEntry In (
Select Distinct DocEntry
from PCH1
Where BaseEntry=T0.DocEntry And BaseType=T0.ObjType
),0) 'GR/INV TaxAmt',
IsNull(
Select  Sum(IsNull(DocTotal,0))
From OPDN
Where DocEntry In (
Select Distinct DocEntry
from PDN1
Where BaseEntry=T0.DocEntry  And BaseType=T0.ObjType
),0) +
IsNull(
Select Sum(IsNull(T3.DocTotal,0))
From OPCH T3
Where DocEntry In (
Select Distinct DocEntry
from PCH1
Where BaseEntry=T0.DocEntry And BaseType=T0.ObjType
),0) 'GR/INV Amt'  ,
(select DocTotal from OPCH where DOCENTRY= INVENTRY) 'INV Amt'
FROM OPOR T0
inner join (SELECT DISTINCT
               T2.DOCENTRY PODocEntry,
               T3.DOCENTRY INVEntry,
               (select DocNum from OPCH where DocEntry = T3.DOCENTRY) INVOICENO,
               (select DocDate from OPCH where DocEntry = T3.DOCENTRY) INVOICEDATE,
               T1.DocEntry GRPOEntry,
               T0.DocNum GRPODocNum,
               T0.DocDate GRPODocDate
               FROM OPDN T0 
               INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry
               INNER JOIN POR1 T2 ON (T2.DOCENTRY = T1.BASEENTRY AND T2.LINENUM = T1.BASELINE)
               INNER JOIN PCH1 T3 ON (T1.DOCENTRY = T3.BASEENTRY AND T1.LINENUM = T3.BASELINE)
               ) P1 on T0.docentry = P1.PODocEntry
WHERE (T0.[Series] ='10')
and (T0.[DocDate]>='[%0]' AND T0.[DocDate]<='[%1]')
order by T0.[DocNum]
Regards
Kamlesh

Similar Messages

  • Purchase Order History Reports

    Is there any standard SAP report to mass query Purchase Order History on several POs.
    I can go to ME23N and see the PO history one-by-one, but trying to see if there is a report out there. I am basically looking for follwoing three things from a given PO:
    1.  How much GR/IR was booked against that PO
    2.  How much amount was vouched by AP
    3.  How much subsequent adjustments, if any, were made to the PO
    Thanks,
    Meet

    Check in MM area,
    This is for CO-FI
    Regards,

  • Purchase order history : hide column 'Amount'

    Hi,
    On purchase order history, i want hide column 'Amount'.
    This column must be always hide.
    Have you a solution for this ???
    Regards.

    Hi,
    Check User Role , and then remove the authorization for Activity "09" or open purchase order history and then hidden the price by using layout option anf then from manage layout ,set the layout as in "Default"
    User can able to change this layout ,then restrict all users with below mentioned authorization control.
    Object to control layout for specific user as follows
    Object-'S_ALV_LAYO' and 'ACTVT' -23.
    Hope this will resolve your query.
    Regards,
    Sandesh Sawant

  • ME23N purchase order history - add new fields (not in layout)

    Hello,
    I would like to expand the layout of Purchase order history (ME23N).
    I would like to add the field MKPF-BKTXT into the purchase order history for more information.
    Who can help? - Thank you.  - Dietlinde

    Hello,
    You might have to enhance the column set of the layout..I am not sure if it could be done.. but that's the way to go.. You might want to confirm this from your technical team.
    Good Luck!!

  • Report to display "Purchase Order History"

    Hi all,
    Can any one solve my problem, i need to create a report on Purchase Order History. So can any one tell, from which infoprovider i can generate this report or is there any standard report for this in SAP BW.
    Thanks in Advance,
    Regards,
    Ramakrishna Kamurthy
    +91-9963101073

    Try with 0PUR_C01 and 0PUR_C03
    Jayasudha

  • Purchase Order History as a Report?

    Hi,
    I would like to follow the amounts of purchase orders, relevant goods receipt amounts and so on as shown in purchase order history on PO. But I need it as a report which could be seen as ALV type, and easily exported to excel.
    Is there such a standart report that I could follow purchase order-goods receipt quantities?
    Thanks in advance
    Irem

    hi,
    use MC$G - Puchasing values
    And MC$I - Puchasing quantities
    Or use ME87 - Aggregate PO history
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on May 13, 2009 12:57 PM

  • Payment document in purchase order history

    hi friends,
                    Customer requirement is to add the payment document(F-53) in the purchase order history in me23n along with GR no. and Invoice no... Is it possible?
                                             thank you
    Edited by: SUJITH BABU KURIAN on Feb 5, 2010 3:39 PM

    Hi,
    No its not possible to update std. Purchase Order history tab with vendor payment which is done via FI. 
    Std. Purchase Order History will be updated only with MM component docs which has a reference to PO.
    I think you may have to develop some custom reports to track the same.
    Thanks & Regards,

  • Accounting document number display in purchase order history tab

    Is it possible to display the accounting document number in the purchase order history tab?  Currently it is displaying material document number for Good receipts and LIV (logistic invoice verification) document number for Invoice receipts against material document number colmn.  We can get to the accounting document number by drilling into the LIV document number.  We are looking for a way to display the accounting document number in the display screen of purchase order history tab instead of drilling down. 
    Is there an option to display accounting document number of the MIRO posting in ME23N , purchase order history tab?
    Truly appreciate any help in this regard.

    Thanks for the response.

  • Purchase Order History Program - not working properly

    Dear friends
    i am developing purchase order history program in ALV,
    which shows the report of purchase order status
    i.e (fields as below).
    document no
    PO date
    line item
    material number
    material name
    purchase org
    plant
    purchase group
    orderd quantity
    ordered amount
    delivered quantity
    delivered amount
    to be delivered quantity
    to be delivered amount
    invoice quantity
    invoice amount
    to be invoiced quantity
    to be invoiced amount
    how to test from me23n
    open me23n
    enter PO number
    press status tab
    you can get some fields for verification..
    the problem is
    i can get all the details correctly except delivered amount and to be delivered amount
    it works fine in both ( material purchase order and service purchase order )
    sometimes i am getting incorrect values in service purchase order specifically in delivered amount and to be delivered amount
    why i am getting these incorrect values ??
    only couple of POs generate these things.
    i am getting these values from EKBE table and using proper filtration like movement type and etc...
    if anyone can resolve ... would be appreciable
    avirat.

    Hi,
    for getting proper Po History you need to select PO's details from EKKO table and
    Header details from CHANGEDOCUMENT_READ_HEADERS based on the details got from this FM pass
    to the FM CHANGEDOCUMENT_READ_POSITIONS and get proper details.
    This is the logic used by the standard program also to get the PO History.
    Hope this helps.
    Regards
    Bikas

  • Purchase Order history is not updated with Invoice number

    Hello Experts ,
    Please suggest some inputs/solution for my problem.
    Scenarios is :
    PO --> SO --> Invoice
    I am creating the invoice with the medium EDI , when I click on Save button IDOC is generated with the message " IDoc 'xxxxxxxxxxxxx' was created and forwarded for transmission " and it showing the status as 03 i.e, The IDoc was sent to an R/3 System or an external program via a transactional RFC ...but the problem is if I got to the Purchase Order history Its not updated with the Invoice number.
    What could be the problem , please suggest.

    Hi!
    I'm not sure, in which process you link PO and SO. There are some different ways, which are totally different scenarios - if you need help here, describe more detailed.
    Your invoice is probably only created with reference to SO, so check the invoice itself. In this case also the SO history should include the invoice.
    Regards,
    Christian

  • Mass display or print Purchase Order History

    Instead of checking your Purchase Order History one at a time, you can now mass display or print them with this customized abap report.
    Mass display or print Purchase Order History
    You can request report by :
    1.  Change date
    2.  User Name
    3.  Purchase Order Number
    4.  Vendor Code
    Written by : SAP Basis, ABAP Programming and Other IMG Stuff
                 http://www.sap-img.com
    REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
                     LINE-COUNT 065(001)
                     MESSAGE-ID VR.
    TABLES: DD04T,
            CDHDR,
            CDPOS,
            DD03L,
            DD41V,
            T685T,
            VBPA,
            TPART,
            KONVC,
            EKKO.
    SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
                    XNAME  FOR CDHDR-USERNAME,
                    XEBELN FOR EKKO-EBELN,
                    XLIFNR FOR EKKO-LIFNR.
    SELECTION-SCREEN SKIP.
    TEXT-001 - Sorting Sequence
    SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
    PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
                SNAME  RADIOBUTTON GROUP R1,
                SOBID  RADIOBUTTON GROUP R1.
    SELECTION-SCREEN END OF BLOCK BLK1.
    DATA: WFLAG,
          WCHANGENR LIKE CDHDR-CHANGENR.
    DATA: INDTEXT(60) TYPE C.
    DATA: BEGIN OF ICDHDR OCCURS 50.
            INCLUDE STRUCTURE CDHDR.
    DATA: END OF ICDHDR.
    DATA: BEGIN OF ICDSHW OCCURS 50.
            INCLUDE STRUCTURE CDSHW.
    DATA: END OF ICDSHW.
    DATA: BEGIN OF EKKEY,
            EBELN LIKE EKET-EBELN,
            EBELP LIKE EKET-EBELP,
            ETENR LIKE EKET-ETENR,
          END OF EKKEY.
    DATA: BEGIN OF ITAB OCCURS 50,
            BEGIN OF EKKEY,
              EBELN LIKE EKET-EBELN,
              EBELP LIKE EKET-EBELP,
              ETENR LIKE EKET-ETENR,
            END OF EKKEY,
            CHANGENR LIKE CDHDR-CHANGENR,
            UDATE    LIKE CDHDR-UDATE,
            UTIME    LIKE CDHDR-UTIME,
            USERNAME LIKE CDHDR-USERNAME,
            CHNGIND  LIKE CDSHW-CHNGIND,
            FTEXT    LIKE CDSHW-FTEXT,
            OUTLEN   LIKE CDSHW-OUTLEN,
            F_OLD    LIKE CDSHW-F_OLD,
            F_NEW    LIKE CDSHW-F_NEW,
          END OF ITAB.
    DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
    FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
    SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
                             LIFNR IN XLIFNR.
      CLEAR CDHDR.
      CLEAR CDPOS.
      CDHDR-OBJECTCLAS = 'EINKBELEG'.
      CDHDR-OBJECTID   = EKKO-EBELN.
      PERFORM GETCHGDOCS.
    ENDSELECT.
    IF SUDATE = 'X'.
      SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSEIF SNAME = 'X'.
      SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
                   EKKEY-ETENR.
    ELSE.
      SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
    ENDIF.
    LOOP AT ITAB.
      CLEAR: INDTEXT, EKKEY.
      CASE ITAB-CHNGIND.
        WHEN 'U'.
            INDTEXT(50) = ITAB-FTEXT.
            INDTEXT+51  = TEXT-020.
            CONDENSE INDTEXT.
        WHEN 'D'.
            INDTEXT = TEXT-021.
        WHEN 'E'.
            INDTEXT(5) = ITAB-FTEXT.
            INDTEXT+51 = TEXT-021.
            CONDENSE INDTEXT.
          WHEN 'I'.
            INDTEXT = TEXT-022.
        ENDCASE.
        RESERVE 4 LINES.
        IF WCHANGENR NE ITAB-CHANGENR.
          WCHANGENR = ITAB-CHANGENR.
          EKKEY = ITAB-EKKEY.
          WRITE:/ ITAB-UDATE UNDER 'Change Date',
                  ITAB-UTIME UNDER 'Time',
                  ITAB-USERNAME UNDER 'User Name',
                  ITAB-EKKEY-EBELN UNDER 'PO No',
                  ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ELSEIF ITAB-EKKEY NE EKKEY.
          WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
                  ITAB-EKKEY-ETENR UNDER 'Sch No',
                  INDTEXT     UNDER 'Changes'.
        ENDIF.
        CASE ITAB-CHNGIND.
          WHEN 'U'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
            WRITE: / TEXT-023  UNDER 'Changes',
                     <F_OLD>.
            WRITE: / TEXT-024 UNDER 'Changes',
                     <F_NEW>.
          WHEN 'E'.
            ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
            WRITE: TEXT-023 UNDER 'Changes',
                   <F_OLD>.
        ENDCASE.
        SKIP.
    ENDLOOP.
    TOP-OF-PAGE.
    WRITE:/ SY-DATUM,SY-UZEIT,
           50 'P U R C H A S E  O R D E R   H I S T O R Y',
          120 'Page', SY-PAGNO.
    WRITE: / SY-REPID,
             60 'Purchase Orders Changes'.
    SKIP.
    ULINE.
    IF SUDATE = 'X'.
      WRITE:/001 'Change Date',
             014 'Time',
             024 'User Name',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ELSEIF SOBID = 'X'.
      WRITE:/001 'PO No',
             013 'Item',
             020 'Sch No',
             028 'Change Date',
             041 'Time',
             051 'User Name',
             065 'Changes'.
    ELSE.
      WRITE:/001 'User Name',
             015 'Change Date',
             028 'Time',
             038 'PO No',
             050 'Item',
             057 'Sch No',
             065 'Changes'.
    ENDIF.
    ULINE.
    FORM GETCHGDOCS.
      CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
           EXPORTING
                DATE_OF_CHANGE    = CDHDR-UDATE
                OBJECTCLASS       = CDHDR-OBJECTCLAS
                OBJECTID          = CDHDR-OBJECTID
                TIME_OF_CHANGE    = CDHDR-UTIME
                USERNAME          = CDHDR-USERNAME
           TABLES
                I_CDHDR           = ICDHDR
           EXCEPTIONS
                NO_POSITION_FOUND = 1
                OTHERS            = 2.
      CHECK SY-SUBRC EQ 0.
      DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
      CHECK NOT ICDHDR[] IS INITIAL.
      LOOP AT ICDHDR.
        CHECK ICDHDR-UDATE IN XUDATE.
        CHECK ICDHDR-USERNAME IN XNAME.
        CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
                     EXPORTING  CHANGENUMBER       = ICDHDR-CHANGENR
                     IMPORTING  HEADER             = CDHDR
                     TABLES     EDITPOS            = ICDSHW
                     EXCEPTIONS NO_POSITION_FOUND  = 1
                                OTHERS             = 2.
        CHECK SY-SUBRC EQ 0.
        LOOP AT ICDSHW.
          CHECK ICDSHW-TEXT_CASE EQ SPACE.
          MOVE-CORRESPONDING ICDSHW TO ITAB.
          MOVE-CORRESPONDING ICDHDR TO ITAB.
          MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
          APPEND ITAB.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.
    END OF PROGRAM

    Hi,
    copied from          http://www.sap-img.com/mm001.htm

  • Goods Receipt value in Purchase Order History

    Hi Experts,
    I raised a PO with Account Assignment category as "K" for 100 quantity with a value of 1000.
    GR non-valuated option is ticked in "Delivery" tab in line items.
    When posted a GR for 25 NUmbers the Purchase Order History is updated with "0,00" in Amount column.
    If this is because of GR Non-valuated option used then please let me know where the amount with correct value is stored in Database tables.
    Note: I have use only GR Non-valuated option.
    I want to know where the correct value of the stock received is stored.
    Regards,
    Nani.

    Hi
    By assigning K you will have 3 things in default unless uou change them manually. 1.  Goods receipt , 2. GR Non-valuated, Invoice receipt.
      When you do a GR then this account gets posted against the G/L you have assigned manually at PO or against the the acct. modifier VBR in OBYC, that is it is consumed directly. So you will not have any stock valuation like raw or other materials.
    Now when you carry out Invoice verification you get the postings regularised against the acct assignment object(K) and the vendor outstanding/GR/IR account.
    Once IV is done you can check the details of your posting.
    Regards

  • In Purchase order history is not showing the Reversal of goods price

    Hello friends,
    I have created a PO , for that i have done the GR and invoice. Now i want to reverse the goods using MType-102, for that i have created the credit memo .
    I have done the reverse GR ,But in Purchase order history the For the GR reversed doc, its showing the price as 0.
    Pl help me out .

    Hi,
    If your forward 101 material document is with price and it is showing in PO history and your reverse 102 material document is not with price in PO history , check the accounting document of 102 and if it is with price , then PO history is not properly updated.also check table EKBE and if po history is not properly updated , check for a relevant note and apply.
    Regards,

  • Pass values to OAF search page (View Purchase Order History)

    I need to call a OAF page from a PO Approval Notification. I need to call page View Purchase Order History (func:ICX_PO_REVISIONS).
    I am able to create the URL (using function FND_RUN_FUNCTION.get_run_function_url) and when I click on the link it opens the page fine, but it’s a page that contains simple search region and I need to populate the Operating Unit and PO Number fields (I can easily get from the PO) of the search fields, this will allow the user to just click the go button.
    Is it possible using the function FND_RUN_FUNCTION.get_run_function_url and passing parameters (field values) or setting the URL to JSP:/OA_HTML/OA.jsp?OAFunc=ICX_PO_REVISIONS&akRegionApplicationId=177&addBreadCrumb=Y&CorePO=Y and then passing the parameters?
    How would you achieve this if possible, call the page and populate the search field values? It does not seem to work, I have been able to pass paramaters to an OAF page that does not contain a simple search region to return results.
    Function paramaters:
    FND_RUN_FUNCTION.get_run_function_url (
    p_function_id => 3101,
    p_resp_appl_id => 201,
    p_resp_id => 50598, -- MS Purcahsing Superuser
    p_security_group_id => 0,
    p_parameters => 'PoNum=' || l_document_id || '&' || 'retainAM=Y' || '&' || 'addBreadCrumb=Y',
    p_override_agent => NULL,
    p_org_id => 101,
    p_lang_code => NULL,
    p_encryptParameters => FALSE);
    Thanks,
    Shaun

    What I found is there are 2 variables SiteName and SiteName1, if you use SiteName1 then it shows proper value as a site description. I replaced SiteName with SiteName1 and it works. This might help to all who are like me and trying Tutorial example.
    I am not sure how many may have tried OAF - Tutorial examples. They are really complicated and not easy and in most cases they are not coming out in first try but if you really try then it will give lot of understanding.

  • Purchase order History

    Hi..
         Iam trying to display the Purchase order History using BAPI_PO_GETDETAIL function module... and my code is
    data : i_ekko type table of ekko,
           i_ekko_wa like line of i_ekko.
    parameters : p_vendor like ekko-lifnr,
                 p_po     like ekko-ebeln.
    select * from ekko into corresponding fields of table i_ekko where lifnr = p_vendor and ebeln = p_po.
    loop at i_ekko into i_ekko_wa.
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
      EXPORTING
        PURCHASEORDER                    =  '4500017124'
       ITEMS                            = 'X'
    *   ACCOUNT_ASSIGNMENT               = ' '
    *   SCHEDULES                        = ' '
       HISTORY                          = 'X'
    *   ITEM_TEXTS                       = ' '
    *   HEADER_TEXTS                     = ' '
    *   SERVICES                         = ' '
    *   CONFIRMATIONS                    = ' '
    *   SERVICE_TEXTS                    = ' '
    *   EXTENSIONS                       = ' '
    * IMPORTING
    *   PO_HEADER                        =
    *   PO_ADDRESS                       =
    * TABLES
    *   PO_HEADER_TEXTS                  =
    *   PO_ITEMS                         =
    *   PO_ITEM_ACCOUNT_ASSIGNMENT       =
    *   PO_ITEM_SCHEDULES                =
    *   PO_ITEM_CONFIRMATIONS            =
    *   PO_ITEM_TEXTS                    =
    *   PO_ITEM_HISTORY                  =
    *   PO_ITEM_HISTORY_TOTALS           =
    *   PO_ITEM_LIMITS                   =
    *   PO_ITEM_CONTRACT_LIMITS          =
    *   PO_ITEM_SERVICES                 =
    *   PO_ITEM_SRV_ACCASS_VALUES        =
    *   RETURN                           =
    *   PO_SERVICES_TEXTS                =
    *   EXTENSIONOUT                     =
    endloop.
      Iam not getting the output ... It doesnt show errors..
    Regards,
    Abaper.

    where is the displaying PO code???
    check your code once again...
    look at this example...
    report  zbapi_1.
    data: begin of i_poitem occurs 0.
          include structure bapiekpo.
    data: end of i_poitem.
    parameters p_ebeln like ekko-ebeln default '4500012164'.
    call function 'BAPI_PO_GETDETAIL'
      exporting
        purchaseorder                    = p_ebeln
      ITEMS                            = 'X'
      ACCOUNT_ASSIGNMENT               = ' '
      SCHEDULES                        = ' '
      HISTORY                          = ' '
      ITEM_TEXTS                       = ' '
      HEADER_TEXTS                     = ' '
      SERVICES                         = ' '
      CONFIRMATIONS                    = ' '
      SERVICE_TEXTS                    = ' '
      EXTENSIONS                       = ' '
    IMPORTING
      PO_HEADER                        = PO_HEADER
      PO_ADDRESS                       = PO_ADDRESS
      tables
      PO_HEADER_TEXTS                  = PO_HEADER_TEXTS
        po_items                         = i_poitem.
      PO_ITEM_ACCOUNT_ASSIGNMENT       = PO_ITEM_ACCOUNT_ASSIGNMENT
      PO_ITEM_SCHEDULES                = PO_ITEM_SCHEDULES
      PO_ITEM_CONFIRMATIONS            = PO_ITEM_CONFIRMATIONS
      PO_ITEM_TEXTS                    = PO_ITEM_TEXTS
      PO_ITEM_HISTORY                  = PO_ITEM_HISTORY
      PO_ITEM_HISTORY_TOTALS           = PO_ITEM_HISTORY_TOTALS
      PO_ITEM_LIMITS                   =
      PO_ITEM_CONTRACT_LIMITS          =
      PO_ITEM_SERVICES                 =
      PO_ITEM_SRV_ACCASS_VALUES        =
      RETURN                           =
      PO_SERVICES_TEXTS                = .
      EXTENSIONOUT                     = EXTENSIONOUT
    loop at i_poitem.
    write :/ 'PONUMBER    = ' ,  i_poitem-po_number color col_heading,
           / 'ITEM = ' , i_poitem-po_item,
           / 'MATERIAL NAME = ' , i_poitem-material,
           / 'MATERIAL = ' , i_poitem-pur_mat,
           / 'CHANGED ON = ', i_poitem-changed_on,
           / 'SHORT TEXT = ' , i_poitem-short_text,
           / 'COMPANY CODE = ' , i_poitem-co_code,
           / 'PLANT = ' , i_poitem-plant,
           / 'MATERIAL GROUP = ' , i_poitem-mat_grp,
           / 'QUANTITY = ' , i_poitem-quantity left-justified,
           / 'UNIT = ' , i_poitem-unit,
           / 'NET PRICE = ' , i_poitem-net_price left-justified.
    uline.
    endloop.
    Edited by: Venkat Appikonda on Mar 7, 2009 11:57 AM

Maybe you are looking for