Function import '&1' cannot use return type '&2' if no data is returned
Message type: E = Error
Message class: /IWBEP/CM_MGW_RT - OData Channel Runtime Messages
Message number: 019
Message text: Function import '&1' cannot use return type '&2' if no data is returned
What causes this issue?
You are using a function import with a return type that cannot be used
for this function import if no data is returned.
System Response
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
How to fix this error?
Function imports with cardinality 0..1 and an entity type as return type
have a restriction related to the key fields of the entity type in case
no data is returned. Read SAP note 2009874 for details.
Procedure for System Administrators
Error message extract from SAP system. Copyright SAP SE.
Related Error Messages
/IWBEP/CM_MGW_RT018 eTag handling for function import not implemented by provider application
/IWBEP/CM_MGW_RT017 Model '&1' version '&2' has cycling dependecies
/IWBEP/CM_MGW_RT020 Resource not found for segment '&'
/IWBEP/CM_MGW_RT021 Method '&1' not implemented in data provider class