Fonction SAP BAPI_SRM_DOC_GETLIST - Determine List of Documents

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
MAX_HITS BAPISRMDOC-MAX_HITS I 4 X Maximum No. of Hits to be Delivered
RMS_ID BAPISRMDOC-RMSID C 32 Records Management System ID
SPS_ID BAPISRMDOC-SPSID C 32 Element Type

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 Return Code

Paramètre Reférence Long. Facultatif Description
PROPERTY_SELECTION BAPIPROPQY 577 X Properties of Document to Be Searched
RESULTING_LIST BAPIDOCTAB 552 List of Documents Found

Functionality
Returns a list of documents that have specific attribute values.
Which documents are listed is determined in the table parameterPROPERTY_SELECTION.

Description
Result of BAPI call

Description
Maximum number of hits to be returned.

Description
ID of the Records Management System (RMS) whose records are to beproduced in a list.

Description
Element type of the records to be listed.

Description
In this table, you can enter document attribute values to restrict thesearch.
The table has the following columns:

  • PROPNAME

  • In this column you enter the name of the attribute.
    The attributes of a document are determined by a PHIO class definedin the content model. You can look these up in the Document ModelingWorkbench (transaction DMWB). Here, you can view the attributes of adocument that can be assigned values in the BAPI for a search, on the"Instance Attributes" tab page. You can double click on every attributeto navigate to the corresponding data element and its related domains.You can use this method to determine the data type of an attribute.
    • SIGN

    • OPTION

    • PROPVA_LO

    • PROPVA_HI

    • Caution: Attribute values must be entered in their internal SAP format.
      The decisive factors are the data type of the domains and any relevantconversion routines (see also the comments for the field PROPNAME).

      Example
      Find all documents created by user MEIER between July 1 and July 31,2001whose descriptions contain the word "record".
      PROPNAME    SIGN  OPTION  PROPVA_LO       PROPVA_HI
      --------------------------------------------------------
      CREATED_BY  I     EQ      MEIER
      CREATED_AT  I     BT      20010701000000  20010731235959
      DESCRIPTION I     NP      *Record*

      Description
      This table contains the list of all records found.
      The following are returned for each record: Internal ID (columnOBJECTID), storage location (column DOCCLASS), unique ID, record number(column DOCUMENTID), and description (column DESCR).