Skip to Content
0
May 12, 2022 at 11:03 AM

Conversion Exits ABAP RESTful

393 Views

Hello,

we're using S/4 HANA 2020 on premise and we recently started to develop our first solutions with ABAP RAP.
So I defined a cds root view based on VDM for manufacturing. During activation of service binding, I get error that conversion exit NUMCV can't be used.

This gets caused by PP Order Number and PP Operation. I've seen similar questions about this from year 2020 and I wonder, if it is still true that we can't use SAP default domains with RAP, if they contain conversion exits?

What's the solution here? Do we really need to cast them into different domains to get rid of this? Doing so is a boring task an even more, we loose translated header texts etc., which is really odd.

This doesn't work

@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Arbeitsplatzvorratsliste'
@Search.searchable: true 
@Metadata.allowExtensions: true

define root view entity ZC_PP_PRODUCTIONORDERPOOL as select from I_ManufacturingOrder
 {     
   key  ManufacturingOrder,
   ProductionPlant,
   Product,
   ProductionUnit,
   MfgOrderPlannedTotalQty,
   ActualDeliveredQuantity,
   _MfgOrderOperation.ManufacturingOrderOperation,
   _MfgOrderOperation._WorkCenter.WorkCenter
}
whereas this do work with some drawbacks
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Arbeitsplatzvorratsliste'
@Search.searchable: true 
@Metadata.allowExtensions: true

define root view entity ZC_PP_PRODUCTIONORDERPOOL as select from I_ManufacturingOrder
 {  
   @Search.defaultSearchElement: true 
   key  cast ( ManufacturingOrder as aufnr ) as ManufacturingOrder  ,
   ProductionPlant,
   Product,
   ProductionUnit,
   MfgOrderPlannedTotalQty,
   ActualDeliveredQuantity,
   cast ( _MfgOrderOperation.ManufacturingOrderOperation as char4) as Operation,
   _MfgOrderOperation._WorkCenter.WorkCenter 
}