Skip to Content
3
Aug 27, 2021 at 10:51 AM

CAP: Functions and 'sap-language' parameter

1106 Views Last edit Aug 27, 2021 at 10:54 AM 2 rev

I have created a function in my CAP model as below.

action updateDefaultBin(defaultRetireBin: String);


This action works fine. However I wanted to add the language url parameter 'sap-language' as specified here. The action fails with the error below. All other urls of the CAP app work fine with the sap-language parameter.

"message": {
            "lang": "en",
            "value": "Deserialization Error: 'sap-language' is not a non-binding parameter of action 'updateDefaultBin'."
        },

Is this a bug?