Fonction SAP BAPI_PLANNEDORDER_GET_DET_LIST - Get detailed planned order list

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
SELECTIONCRITERIA BAPIPLAF_I3 u 159 Selection criteria for planned orders

Paramètre Reférence Type Long. Description
RETURN BAPIRETURN1 u 470 Completion confirmations

Paramètre Reférence Long. Facultatif Description
DETAILEDLIST BAPIPLAF_E1 747 List of planned orders with header data

Functionality
This method can be used to obtain a "detailed" list of planned ordersthat are selected using the selection criteria given as an importparameter to the method.
Please note that only the planned orders that are saved in the databasewill be selected.
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 V(Change):

  • 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
    INCLUDE BAPI_TABLE

    Value range

    Error messages

    Type ID Number Message
    E 61 092 Please specify at least onerestriction
    E 61 402 No authorization for &
    E MD 130 You do not have thenecess.authorization for this function (see long txt)
    E MD 212 Please enter a planningscenario
    E 61 453 Enter plant
    E 61 509 Enter material
    E 61 041 No planned orders exist forselected criterion

    Success messages

    Type ID Number Message
    S MD 655 & planned orders have beenselected

    Default

    Description
    You can use this parameter to specify selection criterias to selectplanned orders. There are certain restrictions for specifying selectioncriterias as listed below:

    • At least one selection criteria has to be specified

    • A plant has to be specified if you use a material as the selection
    • criteria
      • A plant has to be specified if you use a MRP controller as the
      • selection criteria
        • Both a plant and a material has to be specified if you use a production
        • version as the selection criteria
          • You must specify a planning scenario number if you enter 'X' in the
          • Simulative_ord indicator.

            Description
            If one or more planned orders are selected with the selection criteriathat you had given by the import parameter, you will have a list ofplanned orders in this parameter. Not only the planned order number butalso the header data of each planned order will be shown in each lineof the list. You can find information on the meaning of individualparameter fields in the corresponding data element documentation in theABAP dictionary.