Fonction SAP CACS_GET_CONTRACTS - Selection of Active Commission Contracts

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
IT_BU_PARTNER CACS_TT_BU_PARTNER h 10 Business Partner Data
IT_CTRTB_IDS CACS_TT_CTRTBUID h 20 Table Type for Contract IDs
IV_APPL CACSAPPL C 6 Commission Application Identification
IV_CLC_TIMESTAMP CACSBUSITIME N 14 X Effective Validity (Time Stamp YYYY.MM.DD hh:mm:ss)
IV_KNW_TIMESTAMP CACSTECHTIME N 14 X Technical Validity (Time Stamp: YYYY.MM.DD hh:mm:ss)
IV_TBMAXSEL TBMAXSEL I 4 200 X Maximum Number of Selected Entries

Paramètre Reférence Type Long. Description
ET_CTRTBU_ID CACS_TT_CTRTBU_EVALPM h 97 Commission Contract Data

Functionality
An RFC-compliant function module for determining all active commission c
ontracts for specified commission contract partners and for checking orsearching for commission contracts. The function module works like asearch help, in other words it does not trigger any exceptions and itcan process wild card characters in commission contract IDs. You canenter a parameter to restrict the number of commission contractsselected.
The function module contains a customer enhancement: Business Transactio
n Event (BTE) CACS0002.
It is not suitable for mass processing or for use in performance-critica
l areas.
Import parameters:
IV_APPL: commission application for which the determination is to
be carried out. No existence check is carried out. This parameter ismandatory.
IV_CLC_TIMESTAMP: effective time of access; this is filled with t
he current time stamp (UTC using GET TIME STAMP) if it is initial.
IV_KNW_TIMESTAMP: technical time of access; this is filled with t
he current time stamp (UTC using GET TIME STAMP) if it is initial.
IT_BU_PARTNER: table of commission contract partners The function
module determines all active commission contracts for each commissioncontract partner specified at the given (technical or effective) time.The contracts are only output if the user has a display authorization.
IT_CTRTB_IDS: table with IDs of commission contracts. For each co
mmission contract ID in the table, the FM checks whether an activeversion of the contract exists and, if so, determines the correspondingcommission contract partner (business partner). You can also use wildcard characters '*' and '+' to specify the contract ID. The contractsare only output if the user has display authorization.
If both import tables are empty, the contract transfers all the active c
ommission contracts in the system at the specified time.
IV_TBMAXSEL: specifies the maximum number of commission contracts
that the FM is to select. The actual number of commission contractsthat is output may be smaller if the current user has no displayauthorization for contracts.
Export parameters
ET_CTRTBU_ID: table of type CACS_TT_CTRTBU_EVALPM, defined in the
Data Dictionary. The table contains, in addition to the contract IDs,the version of the commission contract that is valid at the specifiedtime, the commission contract partner and, as additional information, adescription that can be filled by Business Transaction Event PRCACS0002.

Further information
See also the documentation of Business Transaction Event (BTE) PRCACS000
2 and function modules CACS_SAMPLE_PRC_0002 and CACS_CTRST_DESCRIPT_GET.

773585CORR:Conv. original master data function modules of FS-CS