Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documents are saving in HANA DB , but not in SAP DMS #82

Open
mkannan6 opened this issue Dec 27, 2024 · 0 comments
Open

Documents are saving in HANA DB , but not in SAP DMS #82

mkannan6 opened this issue Dec 27, 2024 · 0 comments

Comments

@mkannan6
Copy link

mkannan6 commented Dec 27, 2024

I am working on an SAP CAP entity using the Attachments module from @cap-js/sdm. Here is my entity definition:

using {Attachments} from '@cap-js/sdm';
entity Request : managed {
key ID : String;
documents : Composition of many Attachments;
}

I created a non-versioned repository using the standard DMS API and added the following configuration in the cds.requires section of the package.json file:

"sdm": {
"settings": {
"repositoryId":
}
}

When I make a POST request to this entity, for example:

{
ID: "I001",
documents: [
{
"filename": "data.pdf",
"content": "JSdfsf=" // base64
}
]
}

the content and filename are stored directly in HANA Cloud, but they are not stored in the DMS repository.

I am facing two issues:

Should I manually delete the content stored in the HANA table?
What could be the reason why the data is not being stored in the DMS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant