on 2023 Apr 24 2:27 AM
With the payload below, I could create single business partner without a role.However, I want to create BusinessPartnerRole along with same API call by using "to_BusinessPartnerRole" property.
Can someone tell me a sample payload to create BusinessPartnerRole along with a business partner by using /A_BusinessPartner API?
<?xml version="1.0" encoding="utf-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices">
<content type="application/xml">
<m:properties>
<d:BusinessPartner>99999999</d:BusinessPartner>
<d:BusinessPartnerCategory>1</d:BusinessPartnerCategory>
<d:CorrespondenceLanguage>JA</d:CorrespondenceLanguage>
<d:FirstName>TEST</d:FirstName>
<d:LastName>API</d:LastName>
<d:Industry>string</d:Industry>
<d:IsMale>true</d:IsMale>
<d:Language>JA</d:Language>
<d:LegalForm></d:LegalForm>
</m:properties>
</content>
</entry>
Thank you.
Hello,
You can create a role for a business that already exists by using the URL: https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner('BP Number')/to_BusinessPartnerRole
and with the payload:
{
"BusinessPartner": "string",
"BusinessPartnerRole": "string",
"ValidFrom": "/Date(1492098664000)/",
"ValidTo": "/Date(1492098664000)/",
"AuthorizationGroup": "string"
}
You can always check other methods by using the API Business Hub.
Kind regards,
David
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
106 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.