当前位置:网站首页>Introduction to sap s/4hana OData mock service
Introduction to sap s/4hana OData mock service
2022-07-02 18:42:00 【Hua Weiyun】

OData Mock Service
This repository also contains a simple, based on Node.js Server for , It represents the... In the branch simulation server OData Simulate server . The server can be accessed without SAP S/4HANA Test the system in the case of SAP S/4HANA Cloud SDK Of SAP S/4HANA Integration features . The server hosts a OData v2 Simulation services , The service imitates to some extent SAP S/4HANA Cloud Business partners API.
If nothing is available SAP S/4HANA System , The simulation server can be used as SAP S/4HANA Cloud SDK An alternative to simple tests and experiments . It is tailored to the examples in this book . This page explains how to run the simulation server and how to integrate it into the test of the sample application .
Be careful : The server has no security measures . Running the server is at your own risk , And only for experiments . Do not use the server to store any personal data - Use only false data .
How to run the server
After cloning this repository , Please check the branch Emulation Server . perhaps , Download this The archive And extract it to your local computer . All of the following steps should be performed in the folder where you check out or extract the simulation server code .
Before starting the impersonation server , You need to manually transfer the business partner OData Metadata of the service EDMX Put the document in the folder business-partner And prepare documents :
go to SAP API Business partners in the business center API Description of .
Click sign in and sign in with your credentials ( You may need to register in advance ).
Click the details tab , Then click download specification and select EDMX.
The download will be named API_BUSINESS_PARTNER.edmx The file is stored in a subfolder of the impersonation server folder business-partner in .
Open the file in a text editor API_BUSINESS_PARTNER.edmx And find the containing EntityType Name=“A_BusinessPartnerType” The line of . Here it is EntityType in , Include in </Key> Add the following two lines after the line of :
<Property Name="YY1_AddrLastCheckedOn_bus" Type="Edm.DateTime" Precision="0" sap:display-format="Date" sap:label="Addresses Last Checked On"/><Property Name="YY1_AddrLastCheckedBy_bus" Type="Edm.String" MaxLength="50" sap:label="Addresses Last Checked By"/>When the simulation server is ready , You can on your local computer (http://localhost:3000) or SAP Cloud Platform, Cloud Foundry Run the simulation server on , As described in either of the following two parts .
Launch the mock server
npm install
npm start
Wait until you see the output Mock The server has started . stay http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER Access simulation OData service ( No credentials are required ). This should have the following output .
{"d":{"EntitySets":["A_BusinessPartner","A_BusinessPartnerAddress"]}}To view a sample response from a business partner , Please visit http://localhost:3000/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner.
边栏推荐
- QT official example: QT quick controls - Gallery
- Responses of different people in technology companies to bugs | daily anecdotes
- 昨天阿里学长写了一个责任链模式,竟然出现了无数个bug
- Another double non reform exam 408, will it be cold? Software College of Nanchang Aviation University
- @Component 拿不到dao层
- NM01-独立于总线协议的NM模块功能概述与API定义
- Unity learning shader notes [81] simple color adjustment post-processing (brightness, saturation, contrast)
- [Yugong series] July 2022 go teaching course 001 introduction to go language premise
- Pychar modify pep8 e501 line too long > 0 characters
- 【Oracle 期末复习】表空间、表、约束、索引、视图的增删改
猜你喜欢

夜神模擬器+Fiddler抓包測試App

Pychar modify pep8 e501 line too long > 0 characters

Web版3D可视化工具,程序员应该知道的97件事,AI前沿论文 | 资讯日报 #2022.07.01

呆错图床系统源码图片CDN加速与破J防盗链功能

Wechat applet video sharing platform system graduation design completion (7) Interim inspection report

NVIDIA graphics card failed to initialize nvml driver/library version mismatch error solution

任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过

Leetcode interview question 17.01 Addition without plus sign

Leetcode interview question 16.15 Abacus wonderful calculation

The text editor hopes to mark the wrong sentences in red, and the text editor uses markdown
随机推荐
Leetcode(154)——寻找旋转排序数组中的最小值 II
初夏,开源魔改一个带击杀音效的电蚊拍!
【愚公系列】2022年07月 Go教学课程 001-Go语言前提简介
如何优雅的写 Controller 层代码?
Yesterday, Alibaba senior wrote a responsibility chain model, and there were countless bugs
[Northwestern Polytechnic University] information sharing of the first and second postgraduate examinations
Qt官方示例:Qt Quick Controls - Gallery
Steamos 3.3 beta release, steam deck Chinese keyboard finally came
In early summer, Kaiyuan magic changed an electric mosquito racket with killing sound effect!
Export Excel files using npoi
Architecture design - ID generator "suggestions collection"
昨天阿里学长写了一个责任链模式,竟然出现了无数个bug
Troubleshooting ideas that can solve 80% of faults
Which securities company has a low, safe and reliable online account opening commission
Paddlepaddle 28 build an automatic coder based on convolution
Wechat applet video sharing platform system graduation design completion (5) assignment
Tower safety monitoring system unattended inclination vibration monitoring system
Leetcode 面试题 16.11. 跳水板
C语言中函数参数传递的三种方式
NM02-独立于总线协议的NM模块调用序列图及代码解释