SAP R/3 форум ABAP консультантов
Russian ABAP Developer's Club

Home - FAQ - Search - Memberlist - Usergroups - Profile - Log in to check your private messages - Register - Log in - English
Blogs - Weblogs News


Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI
View previous topic :: View next topic  
Author Message

Joined: 01 Sep 2007
Posts: 1637

PostPosted: Mon Dec 22, 2008 11:25 am    Post subject: BAPI_DOCUMENT_CHECKIN2 Reply with quote

BAPI_DOCUMENT_CHECKIN2 - Check in document

You can use a function module to check in a document into an archive, a vault, or into the R/3 Database. You can
also check in originals "DOCUMENTFILES" at the same time.
Optional you can also set the following data when you check in a document:
Status with log entry Revision level Change number

Additional files are supported only as interface parameters for future development.

**..... 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-documentversion,
lf_status LIKE bapi_doc_draw-statusextern,

**.... Bapi-Return structure
ls_return LIKE bapiret2.

**.... Originals
DATA: lt_files LIKE bapi_doc_files2 OCCURS 0 WITH HEADER LINE.


** Allocate document data
lf_doctype = 'DRW'.
lf_docnumber = '4711'.
lf_docversion = '00'.
lf_docpart = '000'.
lf_status = 'RE'.

** Check in original 1 into R/3 Database
REFRESH lt_files.
CLEAR lt_files.

lt_files-storagecategory = 'R/3 SYSTEM'. " Storage = R/3-DB
lt_files-docfile = 'c:\temp\drawing1.dwg'. " Original file
APPEND lt_files.

** Check in document
EXPORTING: documenttype = lf_doctype
documentnumber = lf_docnumber
documentpart = lf_docpart
documentversion = lf_docversion
hostname = ''
statusintern = ''
statusextern = lf_status
statuslog = ''
IMPORTING: return = ls_return
TABLES: documentfiles = lt_files.

** Error occured ??
IF ls_return-type CA 'EA'.
WITH ls_return-message.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Russian ABAP Developer's Club Forum Index -> Interfaces | Интерфейсы -> BAPI All times are GMT + 4 Hours
Page 1 of 1

Jump to:  
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.