Hello Community,
in a Cloud for Customer (Sales) solution we got recently the requirement of automatically creating a new Address for a Customer (Account or Individual) via an external interface connected by a Mashup service.
The data from the Mashup is coming correctly. Our issue is when we try to use the ABSL Code for creating the Address, for which we used the following code lines:
importABSL;
importAP.Common.GDT;
importAP.FO.BusinessPartner.Global;
importAP.FO.Address.Global;
varbp;
varaddressInfo;
varaddress;
varaddressNode:elementsofBusinessPartner.AddressInformation.Address.PostalAddress;
bp = BusinessPartner.Retrieve(this.BusinessPartnerID);
if (bp.IsSet()) {
addressNode.StreetName = this.StreetName;
addressNode.HouseID = this.HouseNumber;
addressNode.CityName = this.City;
addressNode.CountryCode = this.Country;
addressNode.StreetPostalCode = this.Postcode;
address= bp.CurrentDefaultAddressInformation.Address.DefaultPostalAddressRepresentation.Create(addressNode);
}
But, if we try to have a run in debug mode, we got the following error message tracked in the Output, and no Address has been created:
10:03:15 AM [1:E] Message (BUSINESS_PARTNER, Address.POSTAL_ADDRESS) International address version Latin occurs multiple times.
Could anyone give us any advice on this issue? Does anything miss in the Address creation lines.
Thanks a lot,
Davide