cancel
Showing results for 
Search instead for 
Did you mean: 

RAP: Derived types not showing up in behavior pool for save methods

vishnucta
Active Participant
0 Kudos

Team,


System: S4 1909 FPS02


I am not able to get the derived types in saver methods.

vishnucta_1-1707228818196.png

 


Ideally the type should be something like Entity\\child but instead i am getting type data.

I have no issues with behavior handler methods

vishnucta_2-1707229051137.png


Regards,
Vishnu

JessieCheah
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Vishnu, how does your behaviour definition look like?
View Entire Topic
JessieCheah
Product and Topic Expert
Product and Topic Expert

Hi Vishnu,

I've just seen that you are on release 1909. In this release the derived types for saver methods are implicit, see here: https://help.sap.com/docs/abap-cloud/abap-rap/implicit-response-parameters 

You'll need dynamic programing to fill the response parameters: https://github.com/SAP-samples/abap-cheat-sheets/blob/main/06_Dynamic_Programming.md 

Hope this helps.

Regards,
Jessie

vishnucta
Active Participant
0 Kudos

Hi Jessie,

Yeah i assumed the same have filled it via Dynamic programming something like below.

vishnucta_0-1707387376299.png

I saw the parent cl_abap_behavior_saver and properties were generic type and continued mapping to type data. It just confused me while referring to few tutorials. Especially in cloud version i could see derived types.

 

 

JessieCheah
Product and Topic Expert
Product and Topic Expert
From 2020 onwards the derived type will be shown like in the behaviour handler class
vishnucta
Active Participant
0 Kudos

Thanks Jessie. I really appreciate your help . I even checked in 2020/21 and its still have the implicit derived types