Fonction SAP BAPI_PO_GETDETAIL - Display Purchase Order Details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ACCOUNT_ASSIGNMENT BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Account Assignment Data
CONFIRMATIONS BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Confirmations
EXTENSIONS BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Customer's Own Fields
HEADER_TEXTS BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Header Texts
HISTORY BAPIMMPARA-SELECTION C 1 SPACE X Also Provide PO History
ITEMS BAPIMMPARA-SELECTION C 1 'X' X Also Provide Item Data
ITEM_TEXTS BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Item Texts
PURCHASEORDER BAPIEKKO-PO_NUMBER C 10 Purchase Order Number
SCHEDULES BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Schedule Lines
SERVICES BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Services and Limits
SERVICE_TEXTS BAPIMMPARA-SELECTION C 1 SPACE X Also Provide Service Texts

Paramètre Reférence Type Long. Description
PO_ADDRESS BAPIADDRESS u 1243 Ordering Address Data
PO_HEADER BAPIEKKOL u 472 PO Header Data

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameters EXTENSIONIN/EXTENSIONOUT
PO_HEADER_TEXTS BAPIEKKOTX 148 X PO Header Texts
PO_ITEMS BAPIEKPO 1361 X Purchase Order Items
PO_ITEM_ACCOUNT_ASSIGNMENT BAPIEKKN 401 X Account Assignment Data for Item
PO_ITEM_CONFIRMATIONS BAPIEKES 128 X Confirmations for Item
PO_ITEM_CONTRACT_LIMITS BAPIESUC 152 X Limits with Contract Reference
PO_ITEM_HISTORY BAPIEKBE 485 X PO History for Item
PO_ITEM_HISTORY_TOTALS BAPIEKBES 200 X PO History for Item: Totals
PO_ITEM_LIMITS BAPIESUH 159 X Limits
PO_ITEM_SCHEDULES BAPIEKET 108 X Schedule Lines for Item
PO_ITEM_SERVICES BAPIESLL 717 X Services
PO_ITEM_SRV_ACCASS_VALUES BAPIESKL 58 X Value/Link to Service Account Assignment
PO_ITEM_TEXTS BAPIEKPOTX 153 X Texts for Item
PO_SERVICES_TEXTS BAPIESLLTX 158 X Long Texts for Service Line
RETURN BAPIRETURN 452 X Return Messages

Functionality
This method enables you to list the detailed data on a purchase order.

Notes
The following authorization objects are checked with the activity 03(Display):

  • 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

    • Transfer
      The import parameters allow you to specify whether you wish to displayinformation pertaining to the items, the release process, accountassignment, texts, and service items in addition to the header data(document type, purchasing group, etc.).
      The parameters for this additional information are not set by default(i.e. only the header data is returned).
      These parameters allow you to influence both the volume of data andsystem performance.
      Return
      The header data is returned in the parameter PoHeader and thevendor's address data in the parameter PoAddress. The data isreturned in the relevant tables in dependence on the import parametersset.
      Return messages
      INCLUDE BAPI_RET

      Description
      The table contains the address data for the purchase order.
      INCLUDE BAPI_DATAELEMENT

      Description
      The parameter contains the PO header data.
      INCLUDE BAPI_DATAELEMENT

      Description
      If you set the indicator, account assignment data will also be returned(e.g. the cost center).

      Description
      If you set the indicator, confirmation data will also be returned.

      Description
      If you set the indicator, the PO header texts will also be returned.

      Description
      If you set the indicator, the PO history will also be returned.

      Description
      If you set the indicator, the item data will also be returned (e.g.material, purchasing group, plant).

      Description
      If you set the indicator, the PO item texts will also be returned.

      Description
      INCLUDE BAPI_KEYFIELD

      Description
      If you set the indicator, the schedule line data will also be returned(e.g. the delivery date).

      Description
      If you set the indicator, service data and any existing limits willalso be returned.

      Note:
      This data will only be returned if you also set the Itemsindicator.

      Description
      If you set this indicator, the long texts for service and outline lineswill also be returned.

      Note:
      The long texts are only returned if you also set the Items andServices indicators.

      Description
      The table contains the texts pertaining to the PO header.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the item data of the purchase order.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the account assignment data pertaining to the POitem.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains purchase order confirmation data.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the limits in the purchase order that relate to acontract.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the PO history data.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the totals for the PO history.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the limits set in the purchase order.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the delivery schedule lines for the PO item.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the services and service specification outlines ofthe purchase order.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the values of the account assignments at servicelevel and a link to the overall account assignment data of the PO item(table PoItemAccountAssignm). The actual account assignment data(cost center etc.) is stored in the account assignment tablePoItemAccountAssignm.

      Description
      The table contains the item texts.
      INCLUDE BAPI_DATAELEMENT

      Description
      The table contains the outline and service texts.
      INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX LANGUAGE EN

      Description
      INCLUDE BAPI_TABLE

      Value range
      Type,,ID,,Number,,Message
      E,,W5,,033,,You have no authorization to display this purchase
      ,,,,,,order
      I,,W5,,034,,No texts available for purchase order item & &
      I,,W5,,035,,No header texts available for purchase order &
      E,,W5,,107,,Purchasing document & does not exist

582221FAQ: BAPIs for purchase orders
1523312Remote function calls of SUS via PI (Process Integration)
827614Vendor product number truncated with backend PO
539978Automatic generation of BAPI test data directory
892570BAPI_PO_GETDETAIL: BAPI_TE_PO_ITEM_ACCOUNT w/o SERIAL_NO
373190BAPI_PO_GETDETAIL: Not available functions
375886BAPI: Error analysis for BAPIs in purchasing
373361ME21: Requisitioner (EKPO-AFNAM) does not exist