Posted: Mon Dec 22, 2008 11:30 am Post subject: BAPI_DOCUMENT_CHECKOUTVIEW2
BAPI_DOCUMENT_CHECKOUTVIEW2 - Check out document for display
Functionality
You use this function module to check out originals of a document and available dokument structures for display.
The function module BAPI_DOCUMENT_CHECKOUTVIEW has been enhanced to allow checking out document
types that have two originals allocated to them.
The parameter DOCUMENTFILE controls which original you want to check out.
You can decide with the switch GetStructure whether an available document structure can also be checked out. The
application (DOCUMENTFILE-WSAPPLICATION) is also available as a selection criterion. The table
DocumentStructure is used to define which documents of the structure you want to check out (certain documents
can already have been checked out in the current status).
Only consistent documents in a table are checked out.
If no entry is made the function module checks out all documents of the structure for display.
Restrictions:
Additional files are supported only as interface parameters for future developments.
Code:
**..... Document key
DATA: lf_doctype LIKE bapi_doc_draw-documenttype,
lf_docnumber LIKE bapi_doc_draw-documentnumber,
lf_docpart LIKE bapi_doc_draw-documenttype,
lf_docversion LIKE bapi_doc_draw-documenttype,
lf_pathname LIKE bapi_doc_draw-docfile1,
**.... Bapi-Returnstruktur
ls_return LIKE bapiret2.
**.... Originals that were checked out
DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE.
DATA: ls_documentfile LIKE bapi_doc_files2.
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.