Ansicht
Dokumentation
BAPI_DOCUMENT_GETLIST - Find Document
rdisp/max_wprun_time - Maximum work process run time SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3upThis documentation is copyright by SAP AG.
Functionality
You can use this BAPI to find one or more documents.
The result is a list of documents that match the selection criteria.
You can use the following data as search criteria:
- Document type
- Document number (as a value range from ... to ...)
- Document part
- Document version
- Description
- User
- Authorization group
- Laboratory/office
- Change number
- Deletion indicator
- Data carrier
- CAD indicator
- Application
- Document status
You can use the MAXROWS parameter to restrict the hit list of documents selected. As a result, it may be the case that not all the document info records in the system that match the selection criteria are displayed.
The number of records actually found is returned in parameter #FOUNDROWS#.
BAPI_DOCUMENT_GETLIST2 contains further selection criteria.
Example
Example program
***********************************************************************
**Declare variables
***********************************************************************
DATA: lf_documentversion LIKE bapi_doc_draw-documentversion.
DATA: ls_return LIKE bapiret2,
lf_foundrows LIKE bapi_doc_aux-maxrows.
DATA: lt_documentlist LIKE bapi_doc_draw occurs 0 with header line.
***********************************************************************
**Assign data
************************************************************************
lf_documentversion = '10'.
*********************************************************************
**Call BAPI
**********************************************************************
CALL FUNCTION 'BAPI_DOCUMENT_GETLIST'
EXPORTING
DOCUMENTVERSION = lf_documentversion
IMPORTING
RETURN = ls_return
FOUNDROWS = lf_foundrows
TABLES
documentlist = lt_documentlist.
Parameters
AUTHORITYGROUPCADINDICATOR
DATACARRIER
DELETEINDICATOR
DESCRIPTION
DOCNUMBERSELECTION
DOCUMENTLIST
DOCUMENTPART
DOCUMENTTYPE
DOCUMENTVERSION
ECNUMBER
FOUNDROWS
LABORATORY
LANGUAGE
LANGUAGEISO
MAXROWS
RETURN
STATUSEXTERN
STATUSINTERN
USERNAME
WSAPPLICATION
Exceptions
Function Group
CVBAPIROGBILLS - Synchronize billing plans RFUMSV00 - Advance Return for Tax on Sales/Purchases
This documentation is copyright by SAP AG.
Length: 5354 Date: 20240523 Time: 102156 sap01-206 ( 47 ms )