Fonction SAP BAPI_INTERNALORDER_CREATE - Create Internal Order From Transferred Data

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
I_MASTER_DATA BAPI2075_7 u 423 Master Data Used to Create Order
TESTRUN BAPI0012_GEN-TESTRUN C 1 X Switch to Simulation Session for Write BAPIs

Paramètre Reférence Type Long. Description
E_MASTER_DATA BAPI2075_2 u 447 Master Data For The Created Order
ORDERID BAPI2075_2-ORDER C 12 Order Number

Paramètre Reférence Long. Facultatif Description
EXTENSIONIN BAPIPAREX 990 X Customer Enhancement Entry Parameters
RETURN BAPIRET2 548 X Table With Return Information
SRULES BAPI2075_6 173 X Settlement Rules From Which Order Was Created

Functionality
This method enables you to create an internal order. You can transfermaster data as well as settlement rules.
Orders from categories "01" and "02" are created. You can transferalmost all fields that can be filled in online transactions.

  • "Old" order status management fields are not supported.

  • Fields from the "Settlement to one receiver" group frame are not
  • supported.
    • Investment management fields are also not supported.

    • You cannot transfer settlement parameters such as the settlement
    • profile. SAP recommends that you preset these in the order type.
      • You do not need to specify an account assignment category to the
      • settlement rules. The system derives these from the fields of eachsettlement rule.

        Notes
        You can preallocate master data fields in the order type, or set themas being not ready for entry. You can do this by using customizing.Fields that are not ready for entry are not filled. They are filledwith the values of a model order (if existing) or stay blank. You cantransfer the data wish to use to create an order with, in theI_MASTER_DATA structure. The system compares the values fromI_MASTER_DATA and E_MASTER_DATA. If there are differences, it displaysan information message.
        You can return messages using the RETURN parameters. Return values andtheir meanings are listed in the parameter documentation. Not allwarning and information messages displayed in the online transactionare contained in RETURN.
        You require the same authorizations as you do for creating an order inthe online transaction. Generally speaking, the method should be thesame as the online transaction.
        The method does not carry out a COMMIT.
        If in doubt about which field in the import structre corresponds towhich field in the online transaction, use F1 to display the technicalinformation of the screen field. You can find the field name (which isusually used in BAPI structures also) by looking under "Extras ->Default field name" in the data element.

        Description
        Return structure that contains the master data of the order created.

        Description
        Order number of the internal order created.

        Description
        Master data of internal order to be created. The data transferred inthis structure is used to create an internal order. Any default valuesfor fields ready for input are overwritten. Only the values that do notcorrespond to the initial value are taken into consideration.

        Description
        General documentation for the TESTRUN parameter

        Description
        You can use this parameter to transfer user-defined fields from theorder master records. However, no fields are supported that are updatedin user-defined tables. Only the user-defined fields created within theframework of the SAP enhancement COOPA003 that are updatedautomatically in table AUFK are supported. This means you must use thetable extension BAPI_TE_AUFK.
        The enhancement COOPA_01 includes the function moduleEXIT_SAPLRKIO_001, in which checks of the user-defined fields can beimplemented.
        The documentation to the structure BAPIPAREX that this parameter isbased on contains more information about the use of this parameter.

        Description
        This parameter is used to return information about any errors that canpossibly occur when creating an order master record.

        Description
        In this table data used to generate distribution rules can betransferred.

546743BAPI_INTERNALORDER_CREATE: No SR created from strategy
1648523BAPI_INTERNALORDER_CREATE CI_AUFK: Gepackte Felder
1613985Creating internal order: Functional area from resp. cost ctr
961227Settlement rule from BAPI_INTERNALORDER_CREATE incorrect
1166092BAPI_INTERNALORDER_CREATE: Packed fields
1030775Internal order: Automatic generation of settlement rule
946495DBM: Generating settlement rule automatically
992880BAPI_INTERNALORDER_CREATE: Transfer EXTENSIONIN fields
967485Internal order: Automatic generation with BAPI
872180BAPI_INTERNALORDER_CREATE: EXTENSIONIN fields moved
367820INFO: KO01 Create Internal Order: Transfer default values
503993Claim: Settlement rule not taken from strategy sequence
372928BAPI_INTERNAL_ORDER_CREATE: values from order type
353492BAPI_INTERNALORDER... exception/message handling