cancel
Showing results for 
Search instead for 
Did you mean: 

RAP: Service Binding association missing

11-03-2022 4:18 PM
gwerner Participant
3383 views 4 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Ramjee_korada
Active Contributor

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

gwerner
Participant

Hi Ramjee,

yes you are right! Thank you a lot!

Kind regards

Answers (1)

Answers (1)

Ramjee_korada
Active Contributor

Hi Gunter,

The association CDS consumption view also needs to be exposed in Service Definition.

Best wishes,

Ramjee Korada

gwerner
Participant
0 Likes

Hi Ramjee,

thank you for you answer.

The CDS View (Z_C_EWM_DLV_WHTASK_O) from type consumption is exposed in the service definition.

So it looks like there is an another problem.

Kind regards

Gunter