SAP Function BAPI_CTRACCONTRACTACCOUNT_GOI1 - BAPI: FI-CA Read open items

Parameter Reference Type Length Default Optional Text
CLEARINGCURRENCY BAPIDFKKCL-CURRENCY C 5 X Clearing Currency
CLEARINGCURRENCYISO BAPIDFKKCL-CURRENCY_ISO C 3 X Clearing currency ISO
CLEARINGDATE BAPIDFKKCL-DOC_DATE D 8 SY-DATUM X Clearing Date
ENQUEUE BAPIFLAG u 1 X Lock Items
WITHOUT_BUSINESS_LOCKS BAPIFLAG u 1 X Do Not Read Processing Locks

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548 Confirmations

Parameter Reference Length Optional Text
AMOUNTSELECTIONS BAPIFKKOPSELNUM 66 X Additional selections for currency and amounts
CLEARINGRESTRICTIONS BAPIAGRTAB 1 X Transfer of Clearing Restrictions
EXTENSIONIN BAPIPAREX 990 X Customer Enhancements - Import
EXTENSIONOUT BAPIPAREX 990 X Customer Enhancements - Export
ITEMCURRENCIES BAPIDFKKOPCUR 28 X Parallel currencies for company codes
MAINSELECTIONS BAPIFKKOPSELHEAD 46 Main Selections
OPENITEMS BAPIDFKKCL 1500 Selected open items
VALUESELECTIONS BAPIFKKOPSELTXT1 104 X Additional selections - text values


trados = docu -> fi -> fica

Functionality
This method provides a list of all items currently open. The mainselections are business partner, contract account, and contract. You canenter additional selections in the parameters ValueSelectionsandAmountSelections. The items are converted into the clearingcurrency ifthis is specified in the interface.

Notes
You can use this list in the BAPI ClearOpenItems once you
have added theclearing amounts.
trados = docu -> fi -> fica

Description
Return code of the method. If the parameter does not contain a messagecode, the method was successful.

Value range
The most important messages:
E >BAPI 013 ... 018 Formal error in parameter
E >0 127 No authorization
E >BAPI 008 Error in ISO conversion
E B1 500 Error in ISO conversion
E >4 >0 Error reading open items

Description
If you fill this parameter, this currency is set as the transactioncurrency in the open items and the amounts are translated intotransaction currency.

Description
ISO code for clearing currency.

Description
Date for which the exchange rate is required if you specified theclearing currency.
trados = docu -> fi -> fica

Description
If the indicator is set, the selected items are locked. This isnecessary, for example, if you want to transfer the items to the BAPIClearOpenItems.
trados = fi

Description
If the indicator is set, no processing locks (posting lock, dunninglock, and so on) are selected for items. This can improve theperformance of the BAPI. However, first consider whether you needinformation about locks to process the items.
trados = docu -> fi -> fica

Description
Additional selections to the main selections via currencies and amounts.If you do not enter amounts, only the currency is used for selection.Selections with the same number are link by 'and'; different numbers arelinked by 'or'.

Value range
The following fields are supported:
'CURRENCY', 'CURRENCY_ISO', 'AMOUNT', 'CLRG_CURR', 'CLRG_CURR_iso','AMOUNT_CLEAR', *'AMOUNT_LOC_CURR'.
trados = docu -> fi -> fica

Description
As standard, only open items without clearing restrictions are selected.If you also want to select open items with any clearing restrictions,you have to transfer these restrictions in the parameterClearingResctrictions.
trados = fi

Description
Parameter for the transfer of customer-defined data. This data isautomatically transferred to the customer-defined enhancements of SAPtables as part of BAPI Table Extensions.

Value range
BAPI table extension BAPI_TE_FKKOPSELTXT exists for the structureBAPIFKKOPSELTXT. Here you can transfer the selections according to thefields that are not supported in the parameter VALUESELECTIONS.
For more information, see the documentation for structure BAPIPAREX.
trados = fi

Description
Customer enhancements - export

Value range
Parameter for the transfer of customer-defined data. This data isautomatically transferred from the customer-defined enhancements of SAPtables as part of BAPI Table Extensions.

Default
BAPI table extension BAPI_TE_FKKCL exists for the structure BAPIDFKKCL.
For more information, see the documentation for structure BAPIPAREX.

Description
Currencies for company codes. Table where, for each company codecreated, the local currency is returned and, if there is one, thesecond and third local currency.
trados = docu -> fi -> fica

Description
Main selections for the items. Here you can select by business partner,contract account, and contract. You can specify additional selections inVALUESELECTIONS and AMOUNTSELECTIONS. The additional selections refer tothe main selection with the same selection number. You have to enter atleast one main selection, unless you select by 'DOC_NO', 'REF_DOC_NO','PAYMENT_ADVICE', 'PAYMENT_FORM_NUMBER', or 'PAYMENT_FORM_REF'.

Value range
The number of the selection must not be zero.

Notes
If you want to make several additional selections for a main selection,you have to enter the main selection several times with differentnumbers.
trados = docu -> fi -> fica

Description
Table with the selected open items. This table contains all fields forthe line item, as well as some additional fields for clearing. If thetable is empty and the message code is not set, no items were selected.
The transaction currency of the item is taken from the document. However
, if you require a translation, the clearing currency that you enter isset as the transaction currency, and the original transaction currencyis placed in the document currency of the open item. All associatedamounts are translated.
trados = docu -> fi -> fica

Description
Additional selections for main selection. For each selection, you haveto enter the field name and one or two values. Selections with the samenumber are linked by 'and'; different numbers are linked by 'or'. Youcannot use fields with a currency or amount here. You can only use afield once with any one selection number.

Value range
The following fields are supported:
*'DOC_NO', *'REF_DOC_NO', *'PAYMENT_ADVICE', *'PAYMENT_FORM_NUMBER',*'PAYMENT_FORM_REF', 'BUS_AREA', 'DOC_CAT', 'MAIN_TRANS', 'SUB_TANS','G_L_ACCT', 'STAT_KEY', 'DOC_DATE', 'POST_DATE', 'NET_DATE', 'DISC_DUE'
, 'DEFERRAL', 'GROUPING', 'CLEARDATE', 'CLEARDOCNO', 'CLEAR_REAS','REPET_GRP', 'COMP_CODE'.
With the fields selected you cannot use intervals for selection.