SAP Function BAPI_CTRACDOCUMENT_GETDETAIL - BAPI: FI-CA Read Document Detail Data

Parameter Reference Type Length Default Optional Text
DETAILTYPE BAPICTRACAUX-DOC_STRUKTUR C 1 ' ' X Document details output format
DOCUMENTNUMBER BAPIDFKKKO-DOC_NO C 12 Document Number

Parameter Reference Type Length Text
DOCUMENTHEADER BAPIDFKKKO u 231 Document Header
RETURN BAPIRET2 u 548 Confirmations

Parameter Reference Length Optional Text
EXTENDPARTNERPOSITIONS BAPIDFKKOPL 107 X Line items (extras in logical view)
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancements
GENLEDGERPOSITIONS BAPIDFKKOPK 519 X Line items (offsetting items)
PARTNERPOSITIONS BAPIDFKKOP 1010 X Line items (open items)
POSITIONCURRENCIES BAPIDFKKOPCUR 28 X Parallel currencies for company codes
POSITIONLOCKS BAPIDFKKLOCKS 135 X Locks on open items
REPETITIONPOSITIONS BAPIDFKKOPW 128 X Line items (repetition specifications)

Functionality
Reads data from a contract accounts payable and receivable document.Items can be output in either a logical or physical view. Locks andparallel currencies from the document can also be read.

Further information
Online documentation (Contract Accounts Payable and Receivable -Document - Display)

Description
Document header data.

Description
The return code of the method. If the parameters do not contain amessage code, the message was successful.

Value range
The most important messages are as follows:
E >BAPI 004 Formal error in parameters
E >0 127 No authorization
E >4 Error during reading of the document
E >BAPI 008 Error during ISO conversion

Description
How the document is to be ouput:

  • Physical structure

  • Logically, repetition items are simulated as partner items

  • Logically, as above, whereby the open items are also cumulated
  • Description
    Number of document that is to be read.

    Description
    Supplements for contract account items for reading the logicalstructure of the document.

    Description
    Parameters for transferring customer-defined data. This data isautomatically transferred from the customer-defined enhancements to SAPtables as part of the 'BAPI Table Extensions'.

    Value range
    The following BAPI table extensions exist:
    BAPI_TE_DFKKKO for structure DFKKKO
    BAPI_TE_DFKKOP for structure DFKKOP
    BAPI_TE_DFKKOPK for structure DFKKOPK
    For more information, see the documentation for structure BAPIPAREX.

    Description
    Items for G/L accounts.

    Description
    Items for contract accounts. These items can also be statistical.

    Description
    Parallel currencies for company codes. These currencies are assigned toparallel amounts in items that contain these company codes.

    Description
    Process blocks for contract account items. The key "LOCK_OBJECT"consists of DOC_NO(12), REP_ITEM(3), ITEM(4), SUB_ITEM(3).

    Description
    Repetition specifications for statistical items for contract accounts.