cancel
Showing results for 
Search instead for 
Did you mean: 

Upload to DMS

Former Member
0 Kudos


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

Accepted Solutions (0)

Answers (1)

Answers (1)

christoph_hopf
Advisor
Advisor
0 Kudos

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

Former Member
0 Kudos

Hallo

I tried what you suggested and BAPI_DOCUMENT_GETDETAIL2

returns documentfiles.

Interesting enough it returns two rows but I only

inserted one row. THe first row seems partially filled out.

Apropos, I am using using the app server at all.

Regardss

yuval

Former Member
0 Kudos

HI

If I omit the the insert statement

CV04N shows two lines:

the first line holds no appl and is unlocked

the second line shows thew app. and the status is locked.

Any idea why I get two lines ?

regards

yuval