SAP Function BAPI_PO_GETDETAIL1 - Detail Information for a Purchase Order

Parameter Reference Type Length Default Optional Text
ACCOUNT_ASSIGNMENT BAPIMMPARA-SELECTION C 1 SPACE X Account Assignment Data
DELIVERY_ADDRESS BAPIMMPARA-SELECTION C 1 SPACE X Delivery address
HEADER_TEXT BAPIMMPARA-SELECTION C 1 SPACE X Header Txt
INVOICEPLAN BAPIMMPARA-SELECTION C 1 SPACE X Invoicing Plan
ITEM_TEXT BAPIMMPARA-SELECTION C 1 SPACE X Item Text
PURCHASEORDER BAPIMEPOHEADER-PO_NUMBER C 10 Purchasing Document Number
SERIALNUMBERS BAPIMMPARA-SELECTION C 1 SPACE X Serial Numbers
SERVICES BAPIMMPARA-SELECTION C 1 SPACE X External Service Data
VERSION BAPIMMPARA-SELECTION C 1 SPACE X Version Management

Parameter Reference Type Length Text
POEXPIMPHEADER BAPIEIKP u 7 Foreign Trade: Export/Import: Header Data
POHEADER BAPIMEPOHEADER u 369 Purchase Order Header Data

Parameter Reference Length Optional Text
ALLVERSIONS BAPIMEDCM_ALLVERSIONS 233 X Version Data
EXTENSIONOUT BAPIPAREX 990 X ExtensionOut
INVPLANHEADER BAPI_INVOICE_PLAN_HEADER 107 X Invoicing Plan: Header Data
INVPLANITEM BAPI_INVOICE_PLAN_ITEM 119 X Invoicing Plan: Item Data
POACCOUNT BAPIMEPOACCOUNT 423 X Account Assignment Fields
POADDRDELIVERY BAPIMEPOADDRDELIVERY 1322 X Addresses for Inward Delivery (Item)
POCOMPONENTS BAPIMEPOCOMPONENT 172 X BAPI Structure for Components
POCOND BAPIMEPOCOND 176 X Conditions (Items)
POCONDHEADER BAPIMEPOCONDHEADER 176 X Conditions (header)
POCONFIRMATION BAPIEKES 128 X Vendor Confirmation
POCONTRACTLIMITS BAPIESUCC 90 X Communication Structure: Contract Limits
POEXPIMPITEM BAPIEIPO 45 X Foreign Trade: Item Data
POHISTORY BAPIEKBE 485 X Purchase Order History
POHISTORY_MA BAPIEKBE_MA 128 X Transfer Structure for Purchase Order History Account Assignment Level
POHISTORY_TOTALS BAPIEKBES 200 X Purchase Order History - Totals
POITEM BAPIMEPOITEM 1230 X Purchase Order Item
POLIMITS BAPIESUHC 103 X External Services: Limits
POPARTNER BAPIEKKOP 14 X Partner
POSCHEDULE BAPIMEPOSCHEDULE 171 X Delivery Schedule
POSERVICES BAPIESLLC 636 X Communication Structure: Create Service Line
POSHIPPINGEXP BAPIMEPOSHIPPEXP 196 X Export Structure for Shipping Data
POSRVACCESSVALUES BAPIESKLC 40 X External Services: Account Assignment Distribution for Service Lines
POTEXTHEADER BAPIMEPOTEXTHEADER 153 X Header Texts
POTEXTITEM BAPIMEPOTEXT 153 X Item Texts
RETURN BAPIRET2 548 X Return Parameter(s)
SERIALNUMBER BAPIMEPOSERIALNO 100 X Serial Numbers in Purchase Order BAPIs

Functionality
The function module BAPI_PO_GETDETAIL1 enables you to display detailedinformation on a purchase order. The BAPI uses the technology availablein the Enjoy purchase order (transaction ME23N).
The import field PONUMBER must be populated.

Further information
Authorization
When an Enjoy purchase order is created (activity 03), the followingauthorization objects are checked:

  • M_BEST_BSA Document type in purchase order

  • M_BEST_EKG Purchasing group in purchase order

  • M_BEST_EKO Purchasing organization in purchase
  • order
    • M_BEST_WRK Plant in purchase order

    • Import parameters
      The BAPI can return specific detailed information at header and itemlevel. For this purpose, the following import parameters are available:
      • AccountAssignment (account assignment data)

      • ItemText (item texts)

      • HeaderText (header texts)

      • DeliveryAddress (delivery address)

      • Version (version data)

      • Services (service data)

      • Export parameters
        • POHeader (header information)

        • POExpImpHeader (foreign trade data at header level)

        • Table parameters
          • PoItem (item data)

          • PoAddrDelivery (delivery address)

          • PoSchedule (schedule line data)

          • PoAccount (account assignment data)

          • PoCondHeader (header conditions)

          • PoCond (item conditions)

          • PoLimits (limit data)

          • PoContractLimits (contract limit data)

          • PoServices (service data)

          • PoSrvAccEssValues (account assignment specification for services and/or
          • limits)
            • PoTextHeader (header texts)

            • PoTextItem (item texts)
            • Description
              Foreign trade data for the purchase order header.

              Description
              This parameter contains the header data of the purchase order, whichincludes information about status, conditions, and currency of thedocument.
              If you have activated the PSM, US Federal Government - GeneralFunctions 2 (PSM_USFED_CI_2) business function, with the "park andhold" function, this parameter also contains the information as towhether the purchase order is on hold, parked, or saved completely.

              Description
              Via this parameter, account assignment data can be requested forall existing PO items.

              Value range
              The account assignment data is returned if the parameter is populatedwith X.

              Default
              In the standard system, the parameter is set to space, meaning that noaccount assignment data is returned.

              Description
              Via this parameter, the delivery addresses for all PO items canrequested.

              Value range
              The delivery address information is returned if the parameter ispopulated with X.

              Default
              In the standard system, the parameter is set to space, meaning that nodelivery address data is returned.

              Description
              Via this parameter, purchase order header texts can be requested.

              Value range
              The header texts are returned if the parameter is populated with X
              .

              Default
              In the standard system, the parameter is set to space, meaning that noheader texts are returned.

              Description
              The parameter determines whether or not invoicing plan data is to bereturned to the calling (invoking) instance.

              Value range
              The parameter can have the following statuses:

              • ' ' No invoicing plan data is returned

              • 'X' Invoicing plan data is returned
              • Default
                In the standard system, the parameter is not active.

                Description
                Via this parameter, item texts can be requested for all items ofthe purchase order

                Value range
                The item texts are returned if the parameter is populated with X.

                Default
                In the standard system, the parameter is set to space, meaning that noitem texts are returned.

                Description
                The PONUMBER field contains the unique number of the purchase order.This field must be populated with a value to obtain a result.

                Description
                Defines whether or not the BAPI is to return the serial numbers.

                Value range
                The parameter can have the following statuses:

                • ' ' No serial numbers are returned

                • 'X' Serial numbers are returned
                • Default
                  In the standard system, the parameter is not active. This means that noserial numbers are returned to the invoker.

                  Description
                  Via this parameter, service data can be requested for all POitems.

                  Value range
                  The service data is returned if the parameter is populated with X
                  .

                  Default
                  In the standard system, the parameter is set to space, meaning that noservice data is returned.

                  Description
                  Via this parameter, the version data for the PO can be requested.

                  Value range
                  The version data is returned if the parameter is populated with X
                  .

                  Default
                  In the standard system, the parameter is set to space, meaning that noversion data is returned.

                  Description
                  Version data.

                  Description
                  Extensionout.

                  Description
                  General invoicing plan data.

                  Description
                  Invoicing plan item data (dates/times, amounts, and percentages).

                  Description
                  Account assignment fields.

                  Description
                  Delivery addresses.

                  Description
                  Subcontracting components.

                  Description
                  Item conditions.

                  Description
                  Header conditions.

                  Description
                  Vendor confirmation.

                  Description
                  Contract limits.

                  Description
                  Foreign trade: item data.

                  Description
                  Purchase order history.

                  Description
                  Purchase order history - totals.

                  Description
                  Purchase order item data.

                  Description
                  External service: limits.

                  Description
                  Partner.

                  Description
                  Delivery schedule lines.

                  Description
                  Service line.

                  Description
                  Shipping data.

                  Description
                  Account assignment distribution among service lines.

                  Description
                  Header texts.

                  Description
                  Item texts.

                  Description
                  Return parameter.
                  INCLUDE MMPUR_604_BAPI_SERNO OBJECT DOKU ID TX

582221FAQ: BAPIs for purchase orders
1075141BAPIs valid for usage with AFS6.0
1055723BAPI_PO_GETDETAIL1: No messages in RETURN parameter