Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

bapi_document_change2

Former Member
0 Kudos

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

2 REPLIES 2

Former Member

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

former_member188685
Active Contributor
0 Kudos

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