cancel
Showing results for 
Search instead for 
Did you mean: 

"this" is unable to reference custom business object elements...

chphaniv
Explorer
0 Kudos

Hello,

I have created a new custom business object with elements and associations in the cloud application studio and activated the BO successfully. Then started implementing the after-modify event in the script files. However, the "this" is unable to reference the elements in the custom BO. It does not show any of the custom elements but shows only the associations. When I try to activate ignoring the message, I get an error saying "Identifier does not exist". This was not the case before the upgrade to 1705. Any help on how to fix this?screen-shot-2017-05-03-at-51734-pm.pngscreen-shot-2017-05-03-at-51942-pm.png

Accepted Solutions (0)

Answers (3)

Answers (3)

JayantSaini
Active Participant

Hi Phani,

I think you have created the event AfterModify as Mass Enable. What you can do is delete the event AfterModify and create it again, while creating it uncheck the Mass Enable checkbox in front of it.

Thanks,

Jayant

Yanbing
Advisor
Advisor
0 Kudos

I fixed it by using GetFirst() in current context to get one element object. Hope this could help others for similar error when using SAP Cloud Application Studio 1711 or above.

Yanbing
Advisor
Advisor
0 Kudos

Hi Jayant,

Thanks for answering this. It's not lucky, I got same error and tried your approach which didn't help. 😞

My SAP Cloud Application Studio version is 1711.