Fonction SAP CACS_PS_CTRT_GRP_RFC - Check: Is Commission Contract a Group Contract?

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
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_CTRTBU_ID CACS_CTRTBU_ID C 20 Commission Contract Number
IV_KNW_TIMESTAMP CACSTECHTIME N 14 X Effective Validity (Time Stamp YYYY.MM.DD hh:mm:ss)

Paramètre Reférence Type Long. Description
ES_CACS_PS_GRP CACS_PS_GRP u 49 Assignment of Group Contract to Partnership
E_ERROR BOOLEAN_FLG C 1 Boolean Variables (X=true, space=false)
E_NOT_FOUND BOOLEAN_FLG C 1 Boolean Variables (X=true, space=false)

Functionality
This RCF-compliant function module determines whether the specifiedcommission case is a groupcontract with regard to the Partnerships functionality. Ifthis is the case, the information is returned in the structureES_CACS_PS_GRP.
The module differentiates between two cases where the meaning of thereturn parameters is different.
Parameter IV_CLC_TIMESTAMP is transferred (initial or filled with avalue). In this case a test is first run with parametersIV_CLC_TIMESTAMP and IV_KNW_TIMESTAMP as to whether the commissioncontract is valid with regard to ICMperiod management. Thestandard contract and the contract type are determined. Then the systemchecks if the contract is a group contract.
In this case the values of the return parameters mean the following:
E_ERROR: If this field has the value X, an (unspecified)error has occurred in one of the described tests. Other parametersshould not be evaluated in this case.
E_NOT_FOUND: If this parameter has the value X, the commissioncase was not found.
If the two parameters E_ERROR and E_NOT_FOUND are initial and the return
structure ES_CACS_PS_GRP is not initial, the contract is a groupcontract and the related contract bundle can be taken from this structure (field CTRTBDL_ID).If the structure ES_CACS_PS_GRP is initial, the contract is not a groupcontract.
If one of the two fields IV_CLC_TIMESTAMP and IV_KNW_TIMESTAMP isinitial, it is filled with the current time-spot (UTC).
Parameter IV_CLC_TIMESTAMP is not trnasferred on callup. In thiscase very few checks are carried out.
If the field E_ERROR is not initial, an (unspecified) error has occurred
.
If ES_CACS_PS_GRP is not initial and the meaning of the fields is the sa
me as before, it is still a group contract.
However if the structure is initial, either it is not a group contract o
r the contract was not found.
Parameter IV_KNW_TIMESTAMP is ignored in this case.