forsap-s4hana-private-simulator
A CAP project standing in for S/4HANA Private Edition OData APIs on localhost, serving API_BUSINESS_PARTNER's A_Supplier entity over OData V4 and, through an adapter, V2.
Development against an S/4HANA API without an S/4HANA system to reach. It serves V4 from CAP and V2 through @cap-js-community/odata-v2-adapter@cap-js-community/odata-v2-adapterExposes a CAP service as OData V2 for clients that cannot move to V4.community org, cap, so a consumer built for either protocol has something to talk to. One entity so far; the README is in Portuguese.
Facts
Where it sits
Who is behind it
In the atlas: maintains 1, contributes to 1@vcd94xt10zmaintainer
What it declares
Every artifact
- Type
- Sample
- Origin
- Independently maintained
- Runtime
- Node.js
As a sample
- Form
- A reference application
Connections
Running the whole stack on a laptop against real bindings
Exposes a CAP service as OData V2
Download
Install
npm add forsap-s4hana-private-simulatorDerived from the package name. No recipe recorded; the README has the configuration.
README
quoted from vcd94xt10z/forsap-s4hana-private-simulator under MIT, readforsap-s4hana-private-simulator
Simulador local de APIs OData do SAP S/4HANA Private Edition, iniciado com a API API_BUSINESS_PARTNER e a entidade A_Supplier.
Pré-requisitos
- Node.js 22+
- SAP CDS Development Kit 10+
Instalação
npm install
Execução
npm run watch
Endpoints atuais
OData V4 do CAP:
http://localhost:4004/odata/v4/API_BUSINESS_PARTNER/A_Supplier
OData V2 compatível com a URL da API standard:
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/$metadata
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier
Exemplos:
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier?$select=Supplier,SupplierName
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier?$filter=SupplierName eq 'Fornecedor ABC'
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier?$filter=contains(SupplierName,'ABC')&$select=Supplier,SupplierName
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier?$orderby=SupplierName asc&$top=3
http://localhost:4004/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_Supplier?$inlinecount=allpages
O endpoint V2 é implementado diretamente no mesmo servidor HTTP e acessa o banco SQLite. Ele não faz uma chamada HTTP para o endpoint V4.
History
v0.1.0
Details
Sources
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
History in the atlas
- First seen.
For your agent
- Ref
artifact:vcd94xt10z-forsap-s4hana-private-simulator- JSON
- /artifacts/vcd94xt10z-forsap-s4hana-private-simulator.json
- MCP
- Connecting an agent