Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8652

Re: PDI QUESTION REFERENCE BUSINESSPARTNER EXTERNALID

$
0
0

Hi Rodrigo,

 

you need to use the UUID, not the InternalID. Please see below a working coding example to get the external org unit (it is the same for business partners or other objects).

 

 

// Get the EXTERNAL OrgUnitID


varquery_mapping;

varsel_param_mapping;

varresult_mapping;


query_mapping = ObjectIdentifierMapping.QueryByElements;

sel_param_mapping = query_mapping.CreateSelectionParams();

sel_param_mapping.Add(query_mapping.LocalObjectNodeReference.UUID.content, "I","EQ", SalesUnitUUID.content);

sel_param_mapping.Add(query_mapping.RemoteBusinessSystemUUID.content, "I","EQ", remoteSystemUUID.content);

result_mapping = query_mapping.Execute(sel_param_mapping);



if (result_mapping.GetFirst().IsSet()) {

varexternalSalesUnit = result_mapping.GetFirst().RemoteObjectID.content;

// Set the external Sales Unit

this.CurrentCommon.OrgIDEmployeeResponsible = externalSalesUnit;


}


I also work with the RemotesSystemUUID because there might be the possibility to have mappinps for serveral systems.



Cheers,

Jens


Viewing all articles
Browse latest Browse all 8652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>