CDS pluginCDS plugintypeInstalls into a CAP project and extends the runtime. CAP loads it through cds.requires or the plugin hook.See every one →What this type is →independently maintainedindependently maintainedoriginPublished by one person or a small company outside SAP. Says nothing about quality; the readings say that.See every one →

sap-cap-sdm-plugin

A CAP Node.js plugin that maps annotated CDS entities to SAP Document Management and exposes CMIS and repository-administration clients, in an early release.

Facts

Latestv1.3.1ReleasedLast pushLicenceMIT

Where it sits

Lives in
Provides
AttachmentsCAPAttachmentscapabilityStoring a file somebody uploaded next to the record it belongs to, and getting it back out — where the bytes actually live, who may read them, and what the UI shows while they are being scanned.
Flavors
Requires
@sap/cds^7.6.3@sap/cdsartifactThe peer range, as published.SAP Document Management service, integration optionSAP Document Management service, integration optionartifactNamed as a dependency in its documentation.

Who is behind it

Vinícius BarrionuevoVinícius BarrionuevoPersonMaintains this
In the atlas: maintains 1, contributes to 1, wrote 1
@vneecious
maintainerKazuhiko TakataPersonContributes to this
In the atlas: contributes to 1, wrote 3
@kaztakata
Lochner LouwPersonContributes to this
In the atlas: contributes to 1
@llouw
2 contributors

Before choosing this

Signals

RepositoryArchivedThe declared repository is archived

GitHub reports the repository as archived. The package may remain installable, but its source is no longer open for normal maintenance.

Conditions

LicenceSAP Developer License Agreement 3.2 CAP§ 1, 2, 3A cds-plugin is used with SAP CAP materials, or an artifact is explicitly identified as a CAP plugin or application.
  • § 1 License. Productive customer applications are limited to SAP BTP or another SAP-licensed platform, and mass extraction to a non-SAP product is restricted except where solely required for SAP interoperability.
  • § 2 Intellectual Property. The agreement retains SAP's rights in the covered materials and limits making APIs, tools or software available to third parties, while preserving ownership of customer applications subject to SAP's underlying rights.
  • § 3 Artificial Intelligence Training. The agreement prohibits use of the covered materials and customer applications for training artificial-intelligence models or systems.
SAP Developer License Agreement 3.2 CAP →
PracticalFunctional boundary

For versioned or thumbnail-enabled repositories, or bulk upload and download, the README labels this an “early release” and lists those features as unsupported.

What it declares

Every artifact

Type
CDS plugin
Origin
Independently maintained

As a CDS plugin

Declared for
^7.6.3
Distributed through
npm

For attachments

Supports
Versioned repositories
Storage target
SAP Document Management via destination and repository ID
property statedstated nonot said

Connections2

Install

npm add sap-cap-sdm-plugin

Derived from the package name. No recipe recorded; the README has the configuration.

Learn more1

Readings
  1. Presenting sap-cap-sdm-plugin: Effortless Integration Between CAP (Node.js) and DMSVinícius Barrionuevo, SAP Community

Where it sits in your app

Download
Your CAP applicationYour SAP BTP subaccountdocumentedrequiressap-cap-sdm-plugin, modulesap-cap-sdm-pluginSAP Document Management service, integration option, service instanceSAP DocumentManagementservice,integration option
SAPnot SAP's, or the project's owndocumented only

README

quoted from vneecious/sap-cap-sdm-plugin under MIT, read
vneecious/sap-cap-sdm-plugin/README.mdOn GitHub

SAP CAP SDM Plugin

A plugin made for SAP Cloud Application Programming (CAP) projects, aimed at effortless integration with SAP Document Management Service (SDM). Achieve smooth connections in a 'CAP-ish' style, solely utilizing CDS Annotations. This makes your DMS integrations simpler and more intuitive.

Project Overview

sap-cap-sdm-plugin is a CDS plugin that provides integration to the SAP Document Management service specifically for CAP projects.

Requirements

To use the all-in-one features provided by this plugin, you'll need a paid instance of the SAP Document Management service.

Installation & Setup

1. Installation

Install the plugin using npm with the following command:

npm install sap-cap-sdm-plugin
2. Configuration

Include the plugin in the cds.requires section of your package.json:

"cds": {
    "requires": {
        "sap-cap-sdm-plugin": {
            "impl": "sap-cap-sdm-plugin",
            "settings": {
                "destination": "<YOUR_SDM_DESTINATION_NAME>",
                "repositoryId": "<YOUR_REPOSITORY_ID>"
            }
        }
    }
},
3. Entity Creation

Set up your entity with the @Sdm.Entity annotation. Link your entity properties to CMIS properties using the @Sdm.Field annotations:

service SampleService {
    @cds.persistence.skip
    @Sdm.Entity
    entity Files {
        key id           : String      @Sdm.Field      : { type : 'property', path : 'cmis:objectId' };
            name         : String      @Sdm.Field      : { type : 'property', path : 'cmis:name' };
            content      : LargeBinary @Core.MediaType : contentType  @Core.ContentDisposition.Filename : name;
            contentType  : String      @Core.IsMediaType
                                       @Sdm.Field      : { type : 'property', path : 'cmis:contentStreamMimeType' };
            createdBy    : String      @Sdm.Field      : { type : 'property', path : 'cmis:createdBy' };
            creationDate : Date        @Sdm.Field      : { type : 'property', path : 'cmis:creationDate' };
    }
}
4. Get Started

After setting up, check your configuration to make sure everything is okay.

Additional Features

  1. File URL

Obtain a direct URL to the document by specifying type: 'link' within the @Sdm.Field annotation.

    url: String @Sdm.Field : { type : 'link' };
  1. CMIS Client

If the entity annotations don't meet your needs, you can use the CMIS Client to implement your own logic.

This service follows the specs of SAP Document Management Service, Integration Options - CMIS from SAP Business Accelerator Hub.

Usage:
const client = await cds.connect.to('cmis-client');
// create a folder in root
await client
  .createFolder('your_repository_id', 'folder_name')
  .execute(destination);

Check test/cmis for more examples.

  1. SDM Administrative Operations

There's also a service for admin tasks, like adding a new repository. This service comes from the Document Management Service, Integration Options - AdminAPI.

Usage:
const admin = await cds.connect.to('sdm-admin');

// add a new repository
await admin.onboardARepository({
  repository: {
    displayName: 'sdm-plugin',
    description: 'sdm-plugin',
    repositoryType: 'internal',
    isVersionEnabled: 'false',
  },
});

Check test/admin for more examples.

Limitations

This is an early release, so some SAP DMS features are not yet supported, including:

  • Repositories with isVersionEnabled set to true;
  • Repositories with isThumbnailEnabled set to true;
  • Bulk upload;
  • Bulk download;
MIT, read

History

Latest

v1.3.1

Notes
Bug Fixes
  • Add 'sdm-admin' to initializePlugin (b117cd4)
  1. v1.3.0

    Notes
    Bug Fixes
    • add SetContentStream and fix type type for cancelCheckOut (a0b4001)
    • remove redundent fields (864a49f)
    Features
    • Add getAllVersions for objects with version control (ad3f13f)
  2. v1.2.7

    Notes
    Bug Fixes
    • cmis-client: there's no need for encoding query statemet (a753d1f)
    • handlers: Improve detection of media property name (306ead0)
    • lib/util: Replace deprecated @sap-cloud-sdk/core with @sap-cloud-sdk/connectivity (b722bc8)
  3. v1.2.6

    Notes
    Bug Fixes
    • cmis-client: Adjust handling for potentially encoded or unencoded queries (bca299b)
  4. v1.2.5

    Notes
    Bug Fixes
    • cmis-client: prevent URI encoding for directoryPath parameter (#20) (260f844)
  5. v1.2.4

    Notes
    Bug Fixes
    • Change proposal to deel with 1 to many Association and Draft (#17) (34bfd92)
  6. v1.2.3

    Notes
    Bug Fixes
    • handlers: post files from inner cap method (i.e cql) (14f721a)
  7. v1.2.2

    Notes
    Bug Fixes
    • cds-plugin: return on read requests (b6f5d70)
  8. v1.2.1

    Notes
    Bug Fixes
    • Association to one @Sdm.Entity (8f988f3)
    • one to one association (ee24a06)
    • one to one association (454a751)
  9. v1.2.0

    Notes
    Bug Fixes
    • replacing SdmAdmin service by sdm-admin (7f989b9)
    • upgrade @sap/cds dependency (c9eeafb)
    Features
    • cmis-client: generic request builders (f3b7bbc)
  10. v1.1.0

    Notes
    Bug Fixes
    • SdmAdmin: listrepositories must return only arrays (f6c2253)
    Features
    • replacing sap-cloud-cmis-client for a internal srv cmis-client (12278dd)
  11. v1.0.1

    Notes
    Bug Fixes
  12. v1.0.0

    Notes
    Features
0downloads per week, npm
Weekly downloads for sap-cap-sdm-plugin26 complete calendar weeks from 2026-04-27 to 2026-10-25; the latest total is 0.27 Apr – 3 May: 34 May – 10 May: 3911 May – 17 May: 3218 May – 24 May: 1525 May – 31 May: 41 Jun – 7 Jun: 278 Jun – 14 Jun: 515 Jun – 21 Jun: 2222 Jun – 28 Jun: 1629 Jun – 5 Jul: 56 Jul – 12 Jul: 2413 Jul – 19 Jul: 020 Jul – 26 Jul: 1827 Jul – 2 Aug: 33 Aug – 9 Aug: 1510 Aug – 16 Aug: 1617 Aug – 23 Aug: 424 Aug – 30 Aug: 1031 Aug – 6 Sept: 57 Sept – 13 Sept: 1814 Sept – 20 Sept: 621 Sept – 27 Sept: 2628 Sept – 4 Oct: 25 Oct – 11 Oct: 1212 Oct – 18 Oct: 119 Oct – 25 Oct: 0
Attachments
  1. SAP Document Management service, integration optionAPIs and a UI5 component for document management in apps
  2. cap-attachments-plusCAP Node.js attachments plugin with database or cloud storage
  3. com.sap.cds:cds-feature-attachmentsCAP Java attachments with database storage and an Object Store module
  4. com.sap.cds:sdmCAP Java plugin for attachments in SAP Document Management
  5. @cap-js/attachmentsCAP Node.js attachments with database, S3, Azure or GCP storage
  6. @cap-js/sdmCAP attachments stored in an SAP Document Management repository
  7. @sap/cdsCAP Node.js runtime
  8. @tklein1801/cap-js-attachmentsCAP Node.js attachments plugin with Object Store and malware scanning

Details

Sources5
npm registrydiscovered herechecked
The discovery passdiscovered herechecked
npm registry, sap-cap-sdm-pluginversion, releases, installschecked
github.com/git+https://github.com/vneecious/sap-cap-sdm-plugin.gittree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.

Compatibility and provenance
declared for^7.6.3
latestv1.3.1
first release
releases and cadence13, ~10d median
discovered vianpm registry, The discovery pass
first seen in the atlas
ecosystem and domaincap, data-and-persistence
Flavors1
Node.js
“Include the plugin in the `cds.requires` section of your `package.json`:” — vneecious/sap-cap-sdm-plugin — READMEchecked
Contributors2

From the repository’s contributor list, .

History in the atlas3
  1. Maps CDS entity fields to CMIS properties with @Sdm.Entity and @Sdm.Field. It exposes CMIS and repository-administration clients for operations beyond those annotations.
  2. Connects a CAP project to SAP Document Management, written before the official @cap-js/sdm existed and built on the author's earlier CMIS client.
  3. First seen.
For your agent
Ref
artifact:vneecious-sap-cap-sdm-plugin
JSON
/artifacts/vneecious-sap-cap-sdm-plugin.json
MCP
Connecting an agent