0

我已经创建了模拟服务器,它显示了选择所有合作伙伴的 GET 操作,并将通过 id 获取合作伙伴。如果我单击添加地址按钮,则日志文件中没有放置或发布操作。模拟服务器日志:

请求: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 读取业务伙伴 1003764

从应用程序记录

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

我错过了一个设置吗?

4

1 回答 1

0

您可以通过以下方式为业务合作伙伴地址实施添加功能:

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

 new DefaultBusinessPartnerService()
            .createBusinessPartnerAddress(addressToCreate)
            .execute();
于 2018-11-25T10:53:23.057 回答