I need to retrieve from S4HC the following information: which plants are assigned to a sales organization (in ECC table TVKWZ). Snooping around, I found out the class SalesOrganizationLink which I believe gives me such info. However, I could not instantiate it.
Usually, I get a service class that allows me to retrieve data (i.e., sales order service). I could not find the service class for this case.
Could someone give a hint on how to use this class?
BR, Pietro
The SalesOrganizationLink
class is used by the VDM to represent navigational properties of a SalesOrganization
. They hold no information on their own.
If what you are looking for is a navigational property on SalesOrganization
you can use the DefaultSalesOrganizationService
and expand the naivgational property:
service.getSalesOrganizationByKey("MyKey")
.select(SalesOrganization.TO_MY_NAVIGATION_PROPERTY)
.execute(myDestination);
But I see no property related to "plants" in the SalesOrganization. Please refer to the API Hub for what is available on the services.