Fonction SAP BAPI_PLANNEDORDER_GET_DETAIL - Get details for planned order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
PLANNEDORDER BAPI_PLDORD-PLDORD_NUM C 10 Planned order number

Paramètre Reférence Type Long. Description
CAPACITYHEADERDATA1 BAPI_KBKO u 83 Capacity header data (detailed scheduling)
CAPACITYHEADERDATA2 BAPI_KBKO u 83 Capacity header data (rate-based scheduling)
CAPACITYHEADERDATA3 BAPI_KBKO u 83 Capacity header data (rough-cut scheduling)
HEADERDATA BAPIPLAF_E1 u 747 Header data
RETURN BAPIRETURN1 u 470 Completion confirmations

Paramètre Reférence Long. Facultatif Description
CAPACITYDATA1 BAPI_PLDORDCAPA_E1 103 X Capacity data (detailed scheduling)
CAPACITYDATA2 BAPI_PLDORDCAPA_E1 103 X Capacity data (rate-based scheduling)
CAPACITYDATA3 BAPI_PLDORDCAPA_E1 103 X Capacity data (rough-cut scheduling)
COMPONENTSDATA BAPI_PLDORDCOMP_E1 300 X Material component data

Functionality
This method can be used to obtain the details of a planned order. Thedetails include the header data, material components, capacity headerdata, capacity data. Please note that this method reads data from thedatabase. This means that you will not be able to obtain the detailedinformation of a planned order that is not saved yet to the database.For example, if you have just created a planned order with methodPlannedOrder.Create, you can only getthe details of this planned order after saving it to the database usingsuch method as CommitWork.
To help you understand how the method can be used, test transaction"MDBA" is available. It has integrated all 6 planned order methods intoa transaction to deal with planned orders.
For more information, please refer to the program documentation on thistransaction. The name of the program is 'MDBAPI01'.

Notes

Authorization checks:
The following authorization objects are checked with the activity A(Display):

  • M_PLAF_ORG

  • M_LFPL_ORG

  • You can find more information in the parameter documentation of theparameters below.

    Confirmations:
    Messages are received back in the parameter 'Return'. You can findreturn values and their meaning in this parameter documentation.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity header data of the planned order if detailedscheduling data exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity header data of the planned order if rate-basedscheduling data exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity header data of the planned order if rough-cutscheduling data exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the header data of the planned order.

    Description
    INCLUDE BAPI_TABLE

    Value range

    Error messages

    Type ID Number Message
    E 61 003 Planned order & does notexist
    E 61 400 No authorization for & in plant and mrp controller

    Success messages

    Type ID Number Message

    Description
    You can find information on the meaning of the planned order number inthe data element documentation:
    planned order number
    INCLUDE BAPI_KEYFIELD

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity data of the planned order if detailedscheduling exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP Dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity data of the planned order if rate-basedscheduling exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP Dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the capacity data of the planned order if rough-cutscheduling exists.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP Dictionary.

    Description
    When the system has found the planned order in question and obtainedthe details to export to the calling system, this parameter will befilled with the material components data of the planned order ifmaterial components exist.
    You can find information on the meaning of individual parameter fieldsin the corresponding data element documentation in the ABAP Dictionary.

1075141BAPIs valid for usage with AFS6.0