Skip to Content
0

How to create a customer with 2 set of addresses using webservice?

Feb 08, 2017 at 08:00 AM

125

avatar image
Former Member

Hi Experts,

I want to create a customer with 2 set of addresses(permanent and correspondence address) When I using below payload for creation. customer is creating but only 1 address is reflecting.

Thanks and Regards

Santosh k

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:glob="http://sap.com/xi/SAPGlobal20/Global" xmlns:glob1="http://sap.com/xi/AP/Globalization">
   <soapenv:Header/>
   <soapenv:Body>
      <glob:CustomerBundleMaintainRequest_sync_V1>
         
         <!--1 or more repetitions:-->
        <Customer actionCode="01">
        <CategoryCode>1</CategoryCode>
         <ProspectIndicator>true</ProspectIndicator>
        <CustomerIndicator>false</CustomerIndicator>
        
        <Person>
            <GivenName>mayank</GivenName>
            <FamilyName>thakur</FamilyName>
            <GenderCode>1</GenderCode>
            <NationalityCountryCode>IN</NationalityCountryCode>
            <BirthDate>1991-01-29</BirthDate>
        </Person>
       
         <AddressInformation actionCode="01" addressUsageListCompleteTransmissionIndicator="true">
			<ObjectNodeSenderTechnicalID>002</ObjectNodeSenderTechnicalID>
			<AddressUsage actionCode="01">
				<ObjectNodeSenderTechnicalID>003</ObjectNodeSenderTechnicalID>
				<AddressUsageCode>XXDEFAULT</AddressUsageCode>
				<DefaultIndicator>false</DefaultIndicator>
			</AddressUsage>
			<Address actionCode="01" telephoneListCompleteTransmissionIndicator="true">
				<PreferredCommunicationMediumTypeCode>LET</PreferredCommunicationMediumTypeCode>
				<Email>
                     <!--Optional:-->
                     <URI>Santosh@gmail.com</URI>
                    </Email>


				<PostalAddress>
					<CountryCode>IN</CountryCode>
					<RegionCode>10</RegionCode>
					<CountyName>India</CountyName>
					<CityName>Bangalore</CityName>
					<StreetPostalCode>560068</StreetPostalCode>
					<StreetName>ViratNagar</StreetName>
				</PostalAddress>
				
				<Telephone>
					<ObjectNodeSenderTechnicalID>005</ObjectNodeSenderTechnicalID>
					<FormattedNumberDescription>+91 8867793338</FormattedNumberDescription>
					<MobilePhoneNumberIndicator>true</MobilePhoneNumberIndicator>
				</Telephone>
				<WebURI>http://www.customer.com/</WebURI>
			</Address>
			<Address actionCode="01" telephoneListCompleteTransmissionIndicator="true">
				<AddressUsage actionCode="01">
				<ObjectNodeSenderTechnicalID>003</ObjectNodeSenderTechnicalID>
				<AddressUsageCode>XXDEFAULT</AddressUsageCode>
				<DefaultIndicator>true</DefaultIndicator>
			</AddressUsage>
				<PreferredCommunicationMediumTypeCode>LET</PreferredCommunicationMediumTypeCode>
				<Email>
                     <!--Optional:-->
                     <URI>Santosh@gmail.com</URI>
                    </Email>


				<PostalAddress>
					<CountryCode>IN</CountryCode>
					<RegionCode>10</RegionCode>
					<CountyName>India</CountyName>
					<CityName>Bangalore</CityName>
					<StreetPostalCode>560010</StreetPostalCode>
					<StreetName>Rajajinagar</StreetName>
				</PostalAddress>
				
				<Telephone>
					<ObjectNodeSenderTechnicalID>005</ObjectNodeSenderTechnicalID>
					<FormattedNumberDescription>+91 8867793338</FormattedNumberDescription>
					<MobilePhoneNumberIndicator>true</MobilePhoneNumberIndicator>
				</Telephone>
				<WebURI>http://www.customer.com/</WebURI>
			</Address>
		</AddressInformation>

    </Customer>
      </glob:CustomerBundleMaintainRequest_sync_V1>
   </soapenv:Body>
</soapenv:Envelope>
10 |10000 characters needed characters left characters exceeded
Former Member

Hi guys,

Any body got idea on this?

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
avatar image
Former Member Feb 09, 2017 at 08:15 AM
0

Hi all,

I have resolved issue own.

In above code we need to use 2 tags of <AddressInformation actionCode=01>

Thank you

Santosh K

Share
10 |10000 characters needed characters left characters exceeded