Fonction SAP BAPI_CTRACCONTRACTACCOUNT_CH1 - BAPI: FI-CA Change Contract Account

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUSINESSPARTNER BAPIFKKVKCI-BUSPARTNER C 10 Business Partner Number
CONTRACTACCOUNT BAPIFKKVK-CONT_ACCT C 12 Contract Account Number
CTRACDETAIL BAPIFKKVKI u 35 Partner-independent data
CTRACDETAILX BAPIFKKVKIX u 1 Changes to partner-independent data
TESTRUN BAPICTRACAUX-TESTRUN C 1 X Switch to Simulation Mode for Write BAPIs
VALIDFROM BAPICTRACAUX-VALID_FROM C 10 X Validity date of changes

Paramètre Reférence Long. Facultatif Description
CTRACCHARGESDISCOUNTS BAPIFKKVKP_CHGDISCI 55 X Individual Charges/Discounts
CTRACCHARGESDISCOUNTSX BAPIFKKVKP_CHGDISCIX 6 X Changes to Individual Charges and Discounts
CTRACCORRRECEIVER BAPIFKKVKCORRI 74 X Alternative Correspondence Recipients
CTRACLOCKDETAIL BAPIFKKVKLOCKSI1 86 X Lock on contract account
CTRACPARTNERDETAIL BAPIFKKVKPI1 723 X Partner-specific data
CTRACPARTNERDETAILX BAPIFKKVKPI1X 86 X Changes to partner-specific data
CTRACTAXEXEMPTION BAPIFKKVKTAXI 44 X Tax Exemption
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements
RETURN BAPIRET2 548 Confirmations

Functionality
Using this method you can carry out the following in the contractaccount:

  • Change or insert partners

  • Delete or insert locks

  • The 'Return' parameter can deliver several message numberssimultaneously.

    Notes
    Event 9502 is called where additional data can be determined.

    Further information
    Documentation (Contract Account -> Change).

    Description
    Business partner must already be assigned to the contract account.

    Description
    Number of the contract account that is to be changed.

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

    Description
    Select the fields that were changed in the "CtrAcDetail" parameter.

    Description
    Standardized BAPI Test Run parameter.
    trados = docu -> fi -> fica

    Description
    Changes to the contract account usually take effect immediately. However
    , if you do not want the changes to take effect until some time in thefuture, enter the date when you want the changes to be activated here.

    Description
    Contract account: individual charges and discounts

    Description
    This parameter contains the same field names as the parameterCTRACCHARGESDISCOUNTS. For each field that you want to supply with a v
    alue in the structure CTRACCHARGESDISCOUNTS, you have to enter an X forthe corresponding field in this structure.
    This is necessary in order to be able to also use the value SPACE.

    Description
    Alternative correspondence recipient for contract account

    Description
    Data for process locks. This data is partner-dependent. In the "Change"method, only the "PROCESSING_MODE" "I" (Insert) or "D" is allowed. For_he contract account, "02" is the valid 'LOCK_TYPE'.

    Description
    Partner-specific account data. Each line contains the data for onebusiness partner. The LINE_NUMBER field provides the connection betweenthe data and the transfer rules. The transfer rules are contained inthe change structure. Here it is specified for each field, whether thedata is to be transferred or not. You can also assign new partners tothe contract account. In this case the LINE_NUMBER field in the changestructure remains blank.

    Description
    Select the fields that were changed in the "CtrAcPartnerDetail"parameter. The link is realized in the "LINE_NUMBER" field.

    Description
    Contract account: Tax exemptions

    Description
    Parameters for transferring customer-defined data.
    These are transferred to the customer-defined enhancements of the SAPtables automatically as part of '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 of the structureBAPIPAREX.

      Further notes
      Make sure that all fields in the extension structure are used - incontrast to the standardized parameters in which the fields to be usedhave to be selected in a change structure. Therefore, fields that arenot to be changed must not be empty; they must contain the value thatthey had before the change, or alternatively the character '/'.

      Description
      Methos return code. If the parameter does not contain a message code,the method was successful. As the parameter is a table, it can containmore than one return code at the same time.

      Value range
      The most important messages:
      E >BAPI 000 001,,Formal error in change parameter
      E >BAPI 002 003,,Formal error in any other parameter
      E >3 001 601,,Incorrect data for contract account
      E >3 080 ... 087,,Incorrect data for lock