Fonction SAP BAPI_CTRACPSOBJECT_EXISTCHECK - PSCD: Check BAPI Existence of Contract Object

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
CTRACCOUNTTYPE BAPI_CTRACPSOBJECT_ACCOUNT-CTRACCOUNTTYPE C 2 X BAPI Accounting Data: Contract Account Category
PARTNER BAPI_CTRACPSOBJECT_ACCOUNT-PARTNER C 10 X BAPI Accounting Data: Business Partner
PSOBJECTGUID BAPI_CTRACPSOBJECT_HEAD-PSOB_GUID C 32 X GUID of a Contract Object (CHAR Format)
PSOBJECTKEY BAPI_CTRACPSOBJECT_HEAD-PSOBJECTKEY C 20 BAPI Header Data: Contract Object Key
XOBSOLETE BAPI_CTRACPSOBJECT_ADMIN-XOBSOLETE C 1 SPACE X Check Obsolete Contract Account Data Also?

Paramètre Reférence Type Long. Description
PSOBJECTEXIST BAPI_CTRACPSOBJECT_EXIST u 2 BAPI Existence Check Data for Contract Object

Paramètre Reférence Long. Facultatif Description
RETURN BAPIRET2 548 X Return Parameter

Functionality
With this method you can check whether a contract object exists in thesystem. The result of the check is returned via the PSOBJECTEXIST
structure. Alternatively, the transferred Returncode can beevaluated.
As well as key field PSOBJECTKEY a business partner/contractaccount type combination can be specified so that you check whethersuch assigned records exist.

Example

Notes

Description
The result of the check is displayed in this export parameter. You cansee if a certain contract object, or a (triple) combination of contractobject - business partner - contract account category exists in thesystem.

Description
In this import parameter, enter the contract accountcategory of a contract object to be checked.

Description
If you enter a business partner in this importparameter, you can determine that the selection of the contract objectto be checked is restricted to this contract object-business partnercombination.

Description
In this import parameter, you enter the GUID of the contract object tobe checked.

Description
In this import parameter, enter the key of the contract object that isto be checked.

Description
You can use this import parameter to define whether contract accountdata flagged as obsolete should be included in the existence check. Tobe able to do this, you need authorization for authorization objectF_KK_SOND with activity 24.

Default
By default, the parameter is not set; as such, obsolete contractaccount data is not included.
INCLUDE BAPI_TABLE OBJECT DOKU ID TX