Fonction SAP BAPI_CTRACCONTRACTACCOUNT_CREA - BAPI: FI-CA Create Contract Account

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CTRACCREATEINFO BAPIFKKVKCI u 45 Basic Data for Contract Account
CTRACDETAIL BAPIFKKVKI u 35 Partner-Independent Data

Paramètre Reférence Type Long. Description
CONTRACTACCOUNT BAPIFKKVK-CONT_ACCT C 12 Contract Account Number

Paramètre Reférence Long. Facultatif Description
CTRACLOCKDETAIL BAPIFKKVKLOCKSI 87 X Lock on Contract Account
CTRACPARTNERDETAIL BAPIFKKVKPI 498 Partner-Specific Data
EXTENSIONIN BAPIPAREX 990 Customer Enhancements
RETURN BAPIRET2 548 Confirmations

Functionality
You can use this function module to create a contract account. At leastone business partner must be assigned to the account. Locks areoptional.
The "Return" parameter can supply more than one message numbersimultaneously.

Notes
User exit 9501 is called up where additional data can be determined.
The BAPI uses the concept of customer enhancements with "BAPI Table
Extensions", for which the "BAPI_TE_FKKVKI" and "BAPI_TE_FKKVKPI"
structures can be used.

Description
New contract account number that can be entered or generated.

Description
Basic data for the new contract account. The contract account number isgenerated if the field is empty. The Business partner must be containedin the CTRACPARTNERDETAIL parameters. 'APPL_AREA' must be the currentapplication area.

Description
General data on the account, valid for all partners.

Description
Data on process locks. This data is partner-dependent. In the "Create"method, only the "PROCESSING_MODE" 01 (create) is permitted. Valid"LOCK_TYPE" is "02" for contract account.

Description
Partner-dependent data for the account, each line representing apartner. Some account categories permit several business partners. Apartner must be the account holder.

Description
Parameter for transferring custom-specific data. These are transferredautomatically into the customer-specific enhancements of SAP tables aspart of the 'BAPI Table Extensions'.

Value range
The following BAPI Table Extensions exist:

  • BAPI_TE_FKKVKI for structure FKKVK_S_DI

  • BAPI_TE_FKKVKPI for structure FKKVKP_S_DI

  • For more information, see the documentation for structure BAPIPAREX.

    Description
    The return code of the method. If the parameters do not contain amessage code, the method was successful. As these parameters are atable they can contain multiple return codes simultaneously.

    Value range
    The most important messages are as follows:
    E >BAPI 009 010 Formal error in the lock table
    E >3 012 014 ... Incorrect data for new contract account
    E >3 080 ... 087 Incorrect data for locking