Posted: Mon Dec 22, 2008 1:54 am Post subject: BAPI_DOCUMENT_CHANGE
BAPI_DOCUMENT_CHANGE - Change document
Functionality
You can use this method to change documents.
You can also check the original application files (1 and 2) into the SAP database, vault, or archive at the same time.
Limitations:
Additional files are not supported Long texts for object links are not supported Value assignments for the object
links are not supported Mass check-ins are not supported
Code:
**..... Document data
DATA: ls_doc LIKE bapi_doc_draw.
**..... Indicator for relevancy to change
ls_docx LIKE bapi_doc_drawx,
**..... Bapi return structure
ls_return LIKE bapiret2.
**.... Originals that are checked in at the same time
DATA: lt_files LIKE bapi_doc_files OCCURS 0 WITH HEADER LINE,
**.... Descriptions
lt_drat LIKE bapi_doc_drat OCCURS 0 WITH HEADER LINE,
**.... Object links
lt_drad LIKE bapi_doc_drad OCCURS 0 WITH HEADER LINE.
IF ls_return-type CA 'EA'.
ROLLBACK WORK.
MESSAGE ID '26' TYPE 'I' NUMBER '000'
WITH ls_return-message.
ELSE.
COMMIT WORK.
ENDIF.
Notes
Apart from the document data, the follwoing data can be changed:
Object links
Classifications and characteristic value assignments
Language-dependent document descriptions
Document long texts
Document structures
Originals (1 and 2)
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.