Posted: Mon Dec 22, 2008 11:54 am Post subject: BAPI_DOCUMENT_GETLIST
BAPI_DOCUMENT_GETLIST - Find Document
You can use this method to find a document and select a list of documents. A table containing the document data is
You can use the "MAXROWS" parameter to restrict the number of selected documents in the hit list.
**... List of selected documents
DATA: LT_DOC_DATA LIKE BAPI_DOC_DRAW OCCURS 0 WITH HEADER LINE,
**... Value range for document number
LT_DOCNR_SEL LIKE BAPI_DOC_SELNR OCCURS 0 WITH HEADER LINE,
**... Bapi return structure
LS_RETURN LIKE BAPIRET2,
**... Max. number of data records that are returned
LF_MAXROWS LIKE BAPI_DOC_AUX-MAXROWS,
**... Number of data records (number of records in the hit list)
MESSAGE ID '26' TYPE 'E' NUMBER '000'
LOOP AT LT_DOC_DATA.
You can use the following data as search criteria:
Document number (as value range from ... to ...)
Work station application
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.