Fonction SAP CACS_GET_PARTNERS_OF_CONTRACTS - Determines Contract Partner for Specified Commission Contracts

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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)

Paramètre Reférence Type Long. Description
ET_CTRTBU_BUPA CACS_TT_BUPA_EVALPM h 96 Commission Contract Data with Existence Indicator

Functionality
An RFC-compliant function module for determining commission contracts pa
rtners for specified commission contracts.
This function module contains a customer enhancement: Business Transacti
on 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_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).
Export parameters:
ET_CTRTBU_BUPA: table of type CACS_TT_BUPA_EVALPM, defined in the
Data Dictionary. The table contains an entry for each entry in theimport parameter IT_CTRTB_IDS. The table has the following columns:

  • CTRTBU_ID: contract ID

  • RC: the RC return value can accept the following values:

  • RC = 0,,Active version of commission contract exists at th
    e time specified
    RC = 4,,Active version of commission contract does not exi
    sts at the time specified
    RC = 7,,User is not authorized to display the contract
    • GPART: business partner number of the commission contract partner

    • DESCR_LONG: this field contains the information determined by
      >BTE PRCACS0002. If you have not defined a function module for thisevent, the field is filled with the description of the standard contractfor the commission contract.
      Exceptions:
      NO_INPUT is triggered if the transferred table of contract IDs is blank.

      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