cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming ES BusinessPartnerUpdateRequestConfirmation_In

0 Kudos
203

Hello.

Anyone know where can I find any documentation of how to consume Enterprise Services? Specifically I want information of how to consume ES:

BusinessPartnerUpdateRequestConfirmation_In

We have an scenario (to delete an address that is no longer valid for the BP) that we don´t know how to execute through this ES. The difficult thing here is how to know which parameters to fill and with which values.

Regards.

JM

View Entire Topic
monika_eggers
Employee
Employee
0 Kudos

For your concrete question, here are two ways to delete an address with this service. One is to send actionCode 03 for deletion. The other is to send all other addresses (in this case there is 1 other address) and set the complete transmission indicator to true.

First retrieve the ChangeStateID and the address UUIDs with the retrieve service or the retrieve operation (depending on if you use the CRM service or the business suite service):

<n0:BusinessPartnerFSRetrievalByIdentifyingElementsQuery_V1 xmlns:n0="http://sap.com/xi/SAPGlobal20/Global">
 <MessageHeader>
 <ID>C</ID>
 <CreationDateTime>2018-01-18T13:21:11.027+01:00</CreationDateTime>
 </MessageHeader>
 <BusinessPartnerRetrievalSelectionByIdentifyingElements>
 <BusinessPartner>
 <InternalID>2281</InternalID>
 </BusinessPartner>
 </BusinessPartnerRetrievalSelectionByIdentifyingElements>
 <ResponseViewSpecification>
 <Common>
 <RequestedIndicator>true</RequestedIndicator>
 </Common>
 <AddressInformation>
 <RequestedIndicator>true</RequestedIndicator>
 <Address>
 <RequestedIndicator>true</RequestedIndicator>
 <FormattedAddress>
 <RequestedIndicator>true</RequestedIndicator>
 </FormattedAddress>
 </Address>
 </AddressInformation>
 </ResponseViewSpecification>
</n0:BusinessPartnerFSRetrievalByIdentifyingElementsQuery_V1>

Then either send actionCode 03 = delete for this address:

<ns1:BusinessPartnerFSUpdateRequest_V1 xmlns:ns1="http://sap.com/xi/SAPGlobal20/Global">
 <MessageHeader>
 <ID>C</ID>
 <CreationDateTime>2019-01-15T12:00:00.127+01:00</CreationDateTime>
 </MessageHeader>
 <BusinessPartner addressInformationListCompleteTransmissionIndicator="false" aliasListCompleteTransmissionIndicator="false" bankDetailsListCompleteTransmissionIndicator="false" creditRatingListCompleteTransmissionIndicator="false" financialStatementListCompleteTransmissionIndicator="false" generalProductTaxExemptionListCompleteTransmissionIndicator="false" identificationListCompleteTransmissionIndicator="false" industrySectorListCompleteTransmissionIndicator="false" occupationListCompleteTransmissionIndicator="true" paymentCardDetailsListCompleteTransmissionIndicator="false" roleListCompleteTransmissionIndicator="false" taxComplianceListCompleteTransmissionIndicator="false" taxNumberListCompleteTransmissionIndicator="false">
 <InternalID>2281</InternalID>
 <ChangeStateID>CC096A165426DBB6740E4E14B43294652F9CEC78</ChangeStateID>
 <BusinessProcessChainAssignment>
 <BusinessProcessChainUUID/>
 </BusinessProcessChainAssignment>
 <AddressInformation addressUsageListCompleteTransmissionIndicator="false" actionCode="03">
 <AddressUUID>005056b2-782e-1ed9-869b-378257a9297c</AddressUUID>
 </AddressInformation>
 </BusinessPartner>
 <ConfirmationViewSpecification>
 <AddressInformation>
 <RequestedIndicator>true</RequestedIndicator>
 <Address>
 <RequestedIndicator>true</RequestedIndicator>
 <FormattedAddress>
 <RequestedIndicator>true</RequestedIndicator>
 </FormattedAddress>
 </Address>
 </AddressInformation>
 </ConfirmationViewSpecification>
</ns1:BusinessPartnerFSUpdateRequest_V1>

Or send all the other addresses with action code 04 = save or 02 = update and set the complete transmission indicator to true:

<ns1:BusinessPartnerFSUpdateRequest_V1 xmlns:ns1="http://sap.com/xi/SAPGlobal20/Global">
 <MessageHeader>
 <ID>C</ID>
 <CreationDateTime>2018-12-28T12:00:00.127+01:00</CreationDateTime>
 </MessageHeader>
 <BusinessPartner addressInformationListCompleteTransmissionIndicator="true" aliasListCompleteTransmissionIndicator="false" bankDetailsListCompleteTransmissionIndicator="false" creditRatingListCompleteTransmissionIndicator="false" financialStatementListCompleteTransmissionIndicator="false" generalProductTaxExemptionListCompleteTransmissionIndicator="false" identificationListCompleteTransmissionIndicator="false" industrySectorListCompleteTransmissionIndicator="false" occupationListCompleteTransmissionIndicator="false" paymentCardDetailsListCompleteTransmissionIndicator="false" roleListCompleteTransmissionIndicator="false" taxComplianceListCompleteTransmissionIndicator="false" taxNumberListCompleteTransmissionIndicator="false">
 <InternalID>2281</InternalID>
 <ChangeStateID>757F5D47A345D3EE363AF801E22FF3FDF4225CB8</ChangeStateID>
 <BusinessProcessChainAssignment>
 <BusinessProcessChainUUID/>
 </BusinessProcessChainAssignment>
 <AddressInformation addressUsageListCompleteTransmissionIndicator="true" actionCode="04">
 <AddressUUID>00505691-7195-1ed9-82d8-7402c1b40f8b</AddressUUID>
 <ValidityPeriod>
 <StartDate>2018-12-28</StartDate>
 <EndDate>9999-12-31</EndDate>
 </ValidityPeriod>
 <Address emailListCompleteTransmissionIndicator="false" facsimileListCompleteTransmissionIndicator="false" noteListCompleteTransmissionIndicator="false" organisationNameListCompleteTransmissionIndicator="false" personNameListCompleteTransmissionIndicator="false" postalAddressListCompleteTransmissionIndicator="true" telephoneListCompleteTransmissionIndicator="false" webListCompleteTransmissionIndicator="false" actionCode="02">
 <PostalAddress actionCode="04">
 <CountryCode>DE</CountryCode>
 <CityName>City</CityName>
 <StreetPostalCode>11111</StreetPostalCode>
 <StreetName>Street</StreetName>
 <HouseID>1</HouseID>
 <CareOfName/>
 <POBoxIndicator>false</POBoxIndicator>
 </PostalAddress>
 </Address>
 </AddressInformation>
 </BusinessPartner>
 <ConfirmationViewSpecification>
 <AddressInformation>
 <RequestedIndicator>true</RequestedIndicator>
 <Address>
 <RequestedIndicator>true</RequestedIndicator>
 <FormattedAddress>
 <RequestedIndicator>true</RequestedIndicator>
 </FormattedAddress>
 </Address>
 </AddressInformation>
 </ConfirmationViewSpecification>
</ns1:BusinessPartnerFSUpdateRequest_V1>