Fonction SAP BS01_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
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 Order header data

Paramètre Reférence Long. Facultatif Description
EXTENSIONOUT BAPIPAREX 990 X Customer enhancements for export
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 BSMMESLL 731 X Services
PO_ITEM_SERVICES_TEXTS BAPIESLLTX 158 X Long Texts for Service Line
PO_ITEM_SRV_ACCASS_VALUES BAPIESKL 58 X Value/link to service account assignment
PO_ITEM_TEXTS BAPIEKPOTX 153 X Texts for Item
RETURN BAPIRETURN 452 X Confirmations

Functionality
You can use this method to display detail data for a purchase order.

Notes
Transfer
You can use the input parameters to define whether, in addition to theheader data (document type, purchasing group etc.), you also want todisplay information, for example, on the items, release, accountassignment, texts and service items.
The parameters for this additional information are not set by default,in other words, only the header data is returned.
You can use these parameters you can scale both the volume of data andthe system performance.
Return
The header data is returned in parameter PO_HEADER and the
address data for the vendor in parameter PO_ADRESS. The data isreturned in the appropriate tables depending on the import parametersthat have been set.
Return messages
INCLUDE BAPI_RET

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

Description
This parameter contains the purchase order header data.
INCLUDE BAPI_DATAELEMENT

Description
If you set the indicator, account assignment data is also transferred,for example, the cost center.

Description
If you set the indicator, the texts for the purchase order header arereturned.

Description
If you set this indicator, the purchase order history is also returned.

Description
If you ste the indicator, the item data is also returned, for example,material, purchasing group and plant.

Description
If you set the indicator, the texts for the purchase order item arealso returned.

Description
INCLUDE BAPI_KEYFIELD

Description
If you set this indocator, the schedule line data is also returned, forexample, the delivery date.

Description
If you set this indicator, the service data and limits are alsoreturned (if they exist).

Description
If you set this indicator, long texts for service data are alsoreturned.
If you have defined the customer fields in the table ESLL, you can readthe data in these fields with this parameter.

Description
The table contains the texts for the purchase order header.
INCLUDE BAPI_DATAELEMENT

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

Description
The table contains account assignment data for the purchase order item.
INCLUDE BAPI_DATAELEMENT

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

Description
The table cointains purchase order history data.
INCLUDE BAPI_DATAELEMENT

Description
The table contains the totals for the purchase order history.
INCLUDE BAPI_DATAELEMENT

Description
The table contains limits for the purchase order.
INCLUDE BAPI_DATAELEMENT

Description
The table contains the schedule lines for the purchase order item.
INCLUDE BAPI_DATAELEMENT

Description
The table contains the services and the outline layouts for thepurchase order.
INCLUDE BAPI_DATAELEMENT

Description
The table contains the long text for the service line:

  • text type LTXT for long text in field TEXT_ID

  • the actual text lines in field TEXT_LINE

  • The package number (PCKG_NO) forms the link to the service line forwhich the text is to be read.

    Description
    The table contains the values for the account assignments on servicelevel and a link to the complete account assignemnt for the PO item(table PO_ITEM_ACCOUNT_ASSIGNMENT). The actual accountassignment data (cost center etc.) is stored in the account assignemnttable PO_ITEM_ACCOUNT_ASSIGNMENT.

    Description
    The table contains the item texts.
    INCLUDE BAPI_DATAELEMENT

    Description
    INCLUDE BAPI_TABLE

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