cancel
Showing results for 
Search instead for 
Did you mean: 

Attachments in SAP DMS via SAP Portal

amit_maheshwari2
Contributor
0 Kudos

Hi Experts,

We are facing the issue while upload of the documents in SAP DMS via portal.

As part of the custom development, we have created functionlaity in SAP Portal to upload the documents which get stored as attachments in SAP DMS.

When the document is selected from SAP Portal and submitted, it creates DIR in SAP DMS and attach the document to DIR in SAP DMS.

We are using the below mentioned logic to achieve the same:

1) The document (Format - pdf,jpg) is selected in SAP Portal.

2) Once submitted, the DIR is created in SAP DMS.

3) The document attachement is getting converted to binary via java code and passed to SAP as byte format.

4) Then we are using CVAPI_DOC_CHECKIN method to check-in the document.

The document is getting check-in successfully and the document is opening but there is no data populated. For jpg, the mesage appears as "No Preview is available". For pdfs, the message appears as "Data is corrupted. Unable to open."

It looks that the document has got corrupted while check-in.

Please let us know whether we have followed right approach to check-in the document from SAP Portal.

Please suggest if there is another way in which we can check-in the document from the SAP Portal.

Thanks for your help.

Regards

Amit

Accepted Solutions (1)

Accepted Solutions (1)

amit_maheshwari2
Contributor
0 Kudos

HI All,

This issue is resolved. The binary format conversion using Java was not correct.

Once we have got the right binary format conversion, the documents are successfully checked-in.

Cheers

A

Answers (1)

Answers (1)

former_member186852
Contributor
0 Kudos

Hi Amit,

Can u provide code and steps .??

please do the needful.

<removed by moderator>

Thanks & Regards,

Meghal Shah

Message was edited by: Oxana Noa Zubarev