简体   繁体   English

s4sdk openSAP开发扩展课程-未创建地址-模拟服务器日志中没有放置操作

[英]s4sdk openSAP develop extension Course - Address not created - no put operation in mock server log

I have created mock server and it shows GET operation selecting all partners and will get a partner by id. 我已经创建了模拟服务器,它显示了选择所有伙伴的GET操作,并将通过ID获得一个伙伴。 If I click on the Add address button there is no put or post operation in the log file. 如果单击添加地址按钮,则日志文件中没有放置或发布操作。 Mock server log: 模拟服务器日志:

Request: GET /sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner(BusinessPartner='1003764')?$select=BusinessPartner,CreationDate,FirstName,IsFemale,IsMale,LastName,to_BusinessPartnerAddress/AddressID,to_BusinessPartnerAddress/BusinessPartner,to_BusinessPartnerAddress/CityName,to_BusinessPartnerAddress/Country,to_BusinessPartnerAddress/HouseNumber,to_BusinessPartnerAddress/PostalCode,to_BusinessPartnerAddress/StreetName&$expand=to_BusinessPartnerAddress&$format=json Reading business partner 1003764 请求:GET / sap / opu / odata / sap / API_BUSINESS_PARTNER / A_BusinessPartner(BusinessPartner ='1003764')?$ select = BusinessPartner,CreationDate,FirstName,IsFemale,IsMale,LastName,to_BusinessPartnerAddress / AddressID,to_BusinessPartnerAddress / BusinessPartnerCentry / BusinessPartner,to_BusinessPartner to_BusinessPartnerAddress /国家/地区,to_BusinessPartnerAddress /门牌号,to_BusinessPartnerAddress /邮政编码,to_BusinessPartnerAddress / StreetName&$ expand = to_BusinessPartnerAddress&$ format = json读取业务伙伴1003764

Log from application 从应用程序登录

12:51:35.357 [http-bio-8080-exec-10] ERROR com.sap.cloud.sdk.odatav2.connectivity.ODataQuery - Successfully connected to destination service. 12:51:35.357 [http-bio-8080-exec-10]错误com.sap.cloud.sdk.odatav2.connectivity.ODataQuery-成功连接到目标服务。

Am I missing a setting? 我是否缺少设置?

You can implement an add functionality for a Business Partner Address in the following way: 您可以通过以下方式为业务伙伴地址实现添加功能:

 BusinessPartnerAddress addressToCreate = BusinessPartnerAddress.builder()
            .businessPartner(businessPartnerId)
            .streetName("someStreet")
            .build();

 new DefaultBusinessPartnerService()
            .createBusinessPartnerAddress(addressToCreate)
            .execute();

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Cloud Foundry 中部署 s4sdk 应用程序时出现问题 - Problem deploying s4sdk application in Cloud Foundry 如何使用 SAP S4SDK/CAPM 为我的用户分配角色? - How do I assign roles to my user with SAP S4SDK/CAPM? 带有S / 4HANA Cloud SDK的REST:Tomee原型项目在POST / PUT / DELETE上返回禁止的403 - REST with S/4HANA Cloud SDK: Tomee archetype project returns 403 forbidden on POST/PUT/DELETE 使用IP地址时,无法使用SAPbobsCom.dll连接到SAP B1 9.1服务器 - Cannot connect to SAP B1 9.1 server using SAPbobsCom.dll when using IP address 使用SAP DI Server OdersService进行下订单时添加收货人和开票地址 - Adding ship to and bill to address while order placing with SAP DI Server OdersService 有没有办法模拟Mule SAP出站端点? - Is there a way to mock Mule SAP outbound endpoint? 使用 vbscript 将日志文件推送到 SAP BODS - Push log file into SAP BODS with vbscript 在 Bash 中使用 SAP Netweaver RFC SDK 使用功能模块 - Consuming function module with SAP Netweaver RFC SDK in Bash 带有SAP Design Studio SDK的Eclipse-“缺少必需的包” - Eclipse with SAP Design Studio SDK - “Missing required bundle” 如何为SAP Business Objects Java SDK设置Eclipse项目 - How to set up Eclipse project for SAP Business Objects Java SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM