Hello,
if I publish the service in the Service Binding the association is missing.
My service definition
@EndUserText.label: '*********'
define service ZUI_*******{
expose Z_C_EWM_DLV_WHTASK_O as WarehouseTask;
}

My root view definition has the association
define root view Z_C_EWM_DLV_WHTASK_O as select from
:
:
association [0..*] to P_EWM_HandlingUnitHeader02 as _HandlingUnitHeader on OutboundDelivery.docid = _HandlingUnitHeader.DeliveryUUID
:
In the datapreview the association is working

Request clarification before answering.
Hi Gunter,
To be precise, Z_C_EWM_DLV_WHTASK_O is root view and "P_EWM_HandlingUnitHeader02" is associated view.
Have you exposed "P_EWM_HandlingUnitHeader02" also in the Service Definition ? This is missing in the code sample in question.
@EndUserText.label: '*********'
define service ZUI_*******{
expose Z_C_EWM_DLV_WHTASK_O as WarehouseTask;
expose P_EWM_HandlingUnitHeader02 as HandlingUnitHeader ;
}
Best wishes,
Ramjee Korada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ramjee,
yes you are right! Thank you a lot!
Kind regards
Hi Gunter,
The association CDS consumption view also needs to be exposed in Service Definition.
Best wishes,
Ramjee Korada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.