Fonction SAP BAPI_CTRACPSOBJECT_GETLIST - PSCD: Read BAPI Contract Object List

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAXROWS BAPI_CTRACPSOBJECT_ADMIN-MAXROWS I 4 50 X Maximum Number of Lines of Hits
PSOBJECTKEY_LAST BAPI_CTRACPSOBJECT_ADMIN-PSOBJECTKEY_LAST C 20 X Last Contract Object with Reading by Block
XACCOUNTINGDATA BAPI_CTRACPSOBJECT_ADMIN-XFELD C 1 SPACE X Output Business Partner/Contract Account Reference
XBLOCKWISE BAPI_CTRACPSOBJECT_ADMIN-XBLOCKWISE C 1 SPACE X Read Contract Objects by Block
XOBSOLETE BAPI_CTRACPSOBJECT_ADMIN-XOBSOLETE C 1 SPACE X Read Obsolete Contract Account Data Also?

Paramètre Reférence Long. Facultatif Description
CTRACCOUNTSELECTION BAPIDPSOB_BP_ACC_ACCOUNT 27 X BAPI Ranges Structure for Contract Object Contract Account
CTRACCOUNTTYPESELECTION BAPIDPSOB_BP_ACC_ACCOUNTTYPE 7 X BAPI Ranges Structure for Contract Object Contract Account Category
EXTENSIONIN BAPIPAREX 990 X Reference Structure for BAPI Parameter ExtensionOut
EXTENSIONOUT BAPIPAREX 990 X Reference Structure for BAPI Parameter ExtensionOut
PARTNERSELECTION BAPIDPSOB_BP_ACC_PARTNER 23 X BAPI Ranges Structure for Contract Account Business Partner
PSLEGACYOBJECT3SELECTION BAPIDPSOB_BP_ACC_LEGACYOBJECT 53 X BAPI Ranges Structure for Old System Accounting Data
PSLEGACYOBJECTSELECTION BAPIDPSOB_PSLEGACYOBJECT 53 X BAPI Ranges Structure for Contract Object of Old System
PSOBJECTGUIDSELECTION BAPIDPSOB_PSOB_GUID 67 X BAPI Ranges Structure for the Contract Object GUID
PSOBJECTLIST BAPI_CTRACPSOBJECT_LIST 250 BAPI List of Contract Objects
PSOBJECTSELECTION BAPIDPSOB_PSOBJECTKEY 43 X BAPI Ranges Structure for Contract Object Key
PSOBJECTTYPESELECTION BAPIDPSOB_PSOBJECTTYPE 11 X BAPI Ranges Structure for Contract Object Type
RETURN BAPIRET2 548 Return Parameter

Functionality
With this method you have a list of all contract objects .
As well as the number, the type, name and old contract object numberare also displayed.
Provided that you have set the indicator variable XPARTNERDATA,all assigned business partner/contract account type combination foreach contract object are displayed at the same time.
The following values can be taken into account for data selection:

  • Contract object number

  • Contract object category

  • Old contract object number

  • Also, if XPARTNERDATA was set:
    • Assigned business partner

    • Assigned contract account category

    • Assigned contract account
    • Example

      Notes
      BAPI uses the customer enhancement concept with 'BAPI table extensions'for which structures BAPI_TE_DPSOB and
      BAPI_TE_DPSOB_BP_ACC can be used.
      Customer enhancement P540 is called so you can check datatransferred to BAPI or determine additional data if necessary.
      Customer enhancement P545 is called at the end of the method inorder to make entries in fields in the output extension.
      There is an overview of all customer enhancements in Customizing, underFinancial Accounting -> Contract accounts receivable and payable->Program enhancements ->Define customer-specific function modules.

      Description
      In this import parameter, you can limit the contract object display bydefining a maximum number of lines in the output list.

      Default
      The standard output list has 50 lines.

      Description
      If you use the BAPI for reading the contract objects by block (s.parameter XBLOCKWISE), you can specify the key of the lastcontract object read here.

      Description
      With this import parameter, you can define whether the contract objectaccounting data that belongs to it should be included in the selectionof contract objects. If this parameter is set to active, the resultslist will contain the corresponding business partner and contractaccount categories which fulfil the selection criteria as well as thecontract object keys found.
      All selection criteria that refers explicitly to the contract objectaccounting data will only be included if this parameter is set to activebecause only then are the selection results affected by the assignedbusiness partners and contract account categories.

      Default
      Accounting data is not included in the selection by default.

      Description
      You can use this parameter to define whether the contract objects shouldbe read by block. You should use parameter PSOBJECTKEY_LAST forthis.

      Description
      You can use this import parameter to define whether contract accountdata flagged as obsolete should also be read. To be able to do this, youneed special authorization for authorization object F_KK_SONDwith activity 24.

      Default
      By default, the parameter is not set; as such, obsolete contract accountdata is not regarded.

      Description
      In this table, you can define the interval of the contract objects to bedisplayed by entering the upper and lower limit of the contract accountsconcerned.

      Description
      In this table, you can determine the interval of the contract objectsto be displayed by entering the upper and lower limit of the contractobject types concerned.

      Description
      In this table, you can transfer data using customer enhancement P540.This data can, for example, be included in another data preparation ofthe contract objects to be displayed.

      Description
      In this table, data can be displayed using customer enhancement P545
      that you can use for another customer-specific data preparation ofthe contract object list to be displayed.

      Description
      In this table, you can determine the interval of the contract objectsto be displayed by entering the upper and lower limit of the businesspartner concerned.

      Description
      In this table, you can define the interval of the contract objects to bedisplayed by entering the upper and lower limit of the old
      accounting data concerned.

      Description
      In this table, you can determine the interval of the contract objectsto be displayed by entering the upper and lower limit of the oldobject key concerned.

      Description
      In this table you can define an interval or a list of contract objectsto be issued by entering the upper/lower limit or list of affectedcontract object keys.

      Description
      The result list of the contract object selection is displayed in thistable.
      INCLUDE BAPI_DATAELEMENT OBJECT DOKU ID TX

      Description
      In this table, you can determine the interval of the contract objectsto be displayed by entering the upper and lower limit of the contractobject keys concerned.

      Description
      In this table, you can determine the interval of the contract objectsto be displayed by entering the upper and lower limit of the contractobject types concerned.
      INCLUDE BAPI_TABLE OBJECT DOKU ID TX