Fonction SAP BAPI_FTR_CREATEFROMDATA - Create financial transaction

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
COMPANYCODE BAPI2042-COMPANY_CODE C 4 Company Code
FOREIGNEXCHANGE BAPI2042_MAINTAIN_FX u 278 X Structure: Forex Transaction Attributes
MONEYMARKET BAPI2042_MAINTAIN_MM u 268 X Structure: Money Market Transaction Attributes
PRODUCTTYPE BAPI2042-PRODUCT_TYPE C 3 Product Type

Paramètre Reférence Type Long. Description
COMPANYCODE BAPI2042-COMPANY_CODE C 4 Company Code
RETURN BAPIRET2 u 548 Confirmations
TRANSACTION BAPI2042-TRANSACTION C 13 Financial Transaction Number

Exception Description
ERROR

Functionality
You can use this method to create a new transaction.
You fill the parameter structure according to product category. You canfind out how product categories and parameter structures are assigned inthe documentation for the single parameters.
You can only successfully create a security if the data transferredfulfills certain consistency requirements. Otherwise the data isrejected.

Notes
INCLUDE BAPI_RET

Further information
You can find more information in the SAP Library underTreasury-->Treasury Management (TR-TM) -->Money Market-->Trading andTreasury-->Treasury Management (TR-TM) -->Foreign Exchange --> Trading
in the following sections:

  • Processing a Fixed-Term Deposit

  • Processing Deposit at Notice

  • Creating Commercial Paper

    • Creating a Spot/Forward Transaction

    • Editing Standard Options

    • Editing an Exotic Option

    • Editing an Order
    • Description
      Parameter for transferring the company code for the business objecttransaction (BUS2042) methods.
      INCLUDE BAPI_KEYFIELD

      Description
      If an error occurs, this parameter contains the error number and textonce the method returns to the program calling it up. If there are noerrors, the parameter is left blank.

      Description
      Parameter for transferring the transaction number for the BAPI methodsof the business object transaction (BUS2042). After successfulcompletion of the CreateFromData method, this parameter contains thenumber of the transaction created.
      INCLUDE BAPI_KEYFIELD

      Description
      Parameter for transferring the company code for the business objecttransaction (BUS2042) methods.
      INCLUDE BAPI_KEYFIELD

      Description
      Import parameter for transferring the characteristic of a foreignexchange transaction.
      This parameter is only evaluated by the CreateFromData method ifproduct category 600 (foreign exchange) has been assigned inCustomizing for the product type entered.
      INCLUDE BAPI_DATAELEMENT

      Description
      Import parameter for transferring the characteristic of a money markettransaction.
      This parameter is only evaluated by the CreateFromData method if thefollowing product categories have been assigned in Customizing for theproduct type entered:

      • 510 (fixed-term deposit)

      • 520 (deposit at notice)

      • 530 (commercial paper)

      • INCLUDE BAPI_DATAELEMENT

        Description
        Import parameter for transferring the product type of a transaction.
        The product category defined in Customizing determines which parameterstructure contains the relevant data.
        You can find more information about the meaning of the product typefields in the following data element documentation:
        Product type
        Transaction type
        Entered by
        Entry date
        Business partner