Quantcast
Channel: SCN : Popular Discussions - SAP Cloud Applications Studio
Viewing all articles
Browse latest Browse all 1333

How to get the Product ID from External ID

$
0
0

Hi,

 

I have the External ID in my Custom BO and using that i need to get the Product ID.

 

I was able to get the UUID of the Product using the below query but after that i am not able to get the product ID.

 

Code for getting UUID.

var query;

var resultData;

var selectionParams;

 

 

query = ObjectIdentifierMapping.QueryByElements;

selectionParams = query.CreateSelectionParams();

selectionParams.Add(query.RemoteObjectID.content, "I", "EQ", ExternalID);

selectionParams.Add(query.LocalObjectNodeReference.ObjectTypeCode.content, "I", "EQ", "1507");

resultData = query.Execute(selectionParams);

 

 

if (resultData.GetFirst().IsSet())

{

  var externalSalesUnit = resultData.GetFirst().LocalObjectNodeReference.UUID.content;

}

When i checked in the Repository i don't find any query for getting the product ID using UUID.

Capture.JPG

Kindly suggest how i can get the product ID.

 

Thanks and Regards,

Ajith.


Viewing all articles
Browse latest Browse all 1333

Trending Articles



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