on 03-10-2014 8:10 AM
Hi
To upload a doc to dms I am using
CVAPI_DOC_CREATE
insert DRAW from ls_draw.
CVAPI_DOC_CHECKIN
Afterward, to create an object link tab, I use the FM:
BAPI_DOCUMENT_CHANGE2
If I try to omit the insert statement, then BAPI_DOCUMENT_CHANGE2
raises an exception
id: 26 message 269: "Status can only be set when all originals are stored."
I also checked the database after calling CVAPI_DOC_CREATE.
The line is created.
My question : is it possible to omit the insert statement?
Is it necessary?
Thank you for your help
regards
yuval
Hi Yuval,
based on the mentioned error message I think that you have added an original file during the document creation phase but you did not enter a storage category as well. So in this case the file remains checked out. If you use also a storage category value then the file should be checked in as well and the mentioned error will not appear anymore.
Before you use BAPI_DOCUMENT_CHANGE2, do you read the existing data with BAPI_DOCUMENT_GETDETAIL2? If yes, is there some data available in table DOCUMENTFILES?
Because this would indicate that you have an original which should be or is stored in the content server.
For further advice it would be great to have some screenshots of the data you use in the CVAPI and BAPI modules.
Best regards,
Christoph
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.