05-23-2006 2:02 PM
hi!
i tried to use this bapi and change the status of existing document.
i imported the type, number, version, part, and the internal and extternal status.
i also entered this values to documentdata and documentdatax.
also in table documentfiles i entered these values.
i keep getting an error generation not supported for change object.
does any one knows what it means?
yifat
05-23-2006 2:07 PM
Based on the Customization we can control this.
For Eg. If the status is released then you cant go back to IN WORK.
So we can define all these setting in SPRO.
Try CV02N for the same Document and try to change the status.
IF it works then you can also try
BAPI_DOCUMENT_SETSTATUS to change the status of Document.
Dont forget to use commit work after execution of BAPI.
you can also try Tcode SWO1 ansd Business Object DRAW and there are lot of methods [BAPIs] for Documents.
Awards points if it helps you.
Regards
Aman
Under SPRO check Cross application COmponents ->Document management system
Message was edited by: Amandeep Singh
05-23-2006 2:10 PM
Hi,
Did you check the example in the FM documentation. And also read the FM documentation.it is well documented.
can you show your code...
Regards
vijay