Skip to Content
0
Apr 07, 2023 at 06:44 PM

ABAP RAP Functions - Managed Scenario not triggering

960 Views Last edit Apr 23, 2023 at 01:27 PM 4 rev

Hi Gurus,

I have created app with ABAP RAP Managed scenario. I am trying to call Function inside Instance Action.

But I don't know how to call (pass return parameter). Below is my code. How to call defaultforcreate method inside createInstance method.

5.jpg

Defined Function

4.jpg

Ramjee Korada I have followed the blog

https://blogs.sap.com/2022/01/22/abap-rap-functions-defaulting-fields-during-new-object-creation-in-unmanaged-scenario-without-draft/

Is it something Functions are only for UnManaged scenario ?

I am not seeing FunctionImport in $metadata

Please help.

Thanks-

Abhishek

Attachments

1.jpg (267.3 kB)
3.jpg (75.0 kB)
4.jpg (22.9 kB)
5.jpg (95.6 kB)