SAP Function BAPI_CTRACDOCUMENT_TRANSFER - BAPI: Transfer of Open FI-CA Items

Parameter Reference Type Length Default Optional Text
BUSINESS_AREA BAPIRFKU1-BUS_AREA C 4 X Target Business Area
COMP_CODE BAPIRFKU1-COMP_CODE C 4 X Target Company Code
CURRENCY BAPIRFKU1-CURRENCY C 5 X Currency Key
DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Number of a Contract Accounts Receivable and Payable Document
DOC_TYPE BAPIRFKU1-DOC_TYPE C 2 X Document Type
FIKEY BAPIRFKU1-FIKEY C 12 X Reconciliation Key for General Ledger
FROM_BUSPARTNER BAPIDFKKOP-BUSPARTNER C 10 X Source Business Partner Number
FROM_CONTRACT BAPIDFKKOP-CONTRACT C 20 X Source Contract Number
FROM_CONT_ACCT BAPIDFKKOP-CONT_ACCT C 12 X Source Contract Account Number
POSTING_DATE BAPIRFKU1-POST_DATE D 8 X Posting Date in the Document
REF_CONTRACT BAPIRFKU1-REF_CONTRACT C 20 X Additional reference information
REF_DOC_NO BAPIDFKKKO-REF_DOC_NO C 16 X Reference Document Number (External Document Number)
SUB_APPLICATION BAPIRFKU1-SUB_APPLICATION C 1 X Subapplication in Contract Accounts Receivable and Payable
TO_BUSPARTNER BAPIDFKKOP-BUSPARTNER C 10 X Target Business Partner Number
TO_CONTRACT BAPIDFKKOP-CONTRACT C 20 X Target Contract Number
TO_CONT_ACCT BAPIDFKKOP-CONT_ACCT C 12 Target Contract Account Number
TRANSFER_REAS BAPIRFKU1-TRANSFER_REAS C 2 X Transfer Reason

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Return Parameters

Parameter Reference Length Optional Text
CREATEDDOCS BAPIDFKKDOC 12 X Documents Created
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements - Import
OPENITEMS BAPIDFKKCL 1500 X Open Items

Functionality
This BAPI can be used to transfer open FI-CA items (cf. transactionFP40).
The following options are available for selecting the items to betransferred:

  • Specifying the document number (using the parameter documentnumber

  • )
    • Specifying the official document number (using the parameter
    • ref_doc_no)
      • Specifying business partner, contract account, and/or contract (using
      • parameters from_buspartner, from_cont_acct,from_contract)
        • Specifying the open items explicitly (using the parameter openitems

        • )
          The BAPI GetOpenItems for object type CA_CONTACC can beused to fill the parameters openitems.
          If the selection is not made using the document number (using theparameter documentnumber), then the value "SPACE" needs to beentered in this parameter.
          A contract account needs to be specified for the target in the transfer(using the parameter to_cont_acct). As an additional option, acontract can also be specified (using the parameter to_contract).
          Posting areas 1055 and 1057 are applied to determine proposal values forthe new FI-CA document. However, the values can be overwritten byexplicit specification of the parameter in the interface.
          The resulting FI-CA document is returned in the parametercreateddocs. Several documents can be created by using theofficial document numbering.

          Notes
          For more information on transferring open items, see the onlinedocumentation on transaction FP40.

          Description
          BAPI return value. If the parameter has no message code, the method wassuccessful.

          Description
          Business area to be posted to.

          Default
          You post to the business area of the original document.

          Description
          Company code to which the new document is to be poted.

          Value range
          You can only change the company code for payments on account.

          Default
          You post to the company code of the original document.

          Description
          Transaction currency of transfer document

          Default
          If no currency key is specified, the default value from posting area1055 is read.

          Description
          Number of document to be transferred

          Description
          Document type of transfer document

          Default
          If no document type is specified, the default value from posting area1055 is read.

          Description
          Reconciliation key for transfer document

          Default
          If no reconciliation key is specified, the reconciliation key isdetermined using event 1113.

          Description
          Number of the business partner whose open items are to be transferred.

          Description
          Number of contract whose open items are to be transferred.

          Description
          Number of contract account whose open items are to be transferred.

          Description
          Posting date of transfer document

          Default
          If no posting date is specified, the current date is used.
          trados = docu -> fi -> fica

          Description
          The additional reference specification of a document contains additionalinformation about the contract. This information is different for eachindustry.

          Default
          The additional reference specification is taken from the originaldocument.

          Description
          Reference number of document to be transferred

          Default
          ########################################################################
          ###########

          Description
          Number of the business partner that is the target of the transfer.

          Description
          Number of the contract that is the target of the transfer.

          Description
          Number of the contract account that is the target of the transfer.

          Description
          Key for the business transaction that led to the transfer.

          Default
          If you do not specify a transfer reason, the default value from postingarea 1057 is read.

          Description
          Table of FI-CA document number for transfer documents

          Description
          Table of open items to be transferred