Skip to Content
0

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

May 03, 2017 at 11:51 AM

205

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Jayant Saini May 15, 2017 at 01:18 PM
1

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

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Nov 12, 2017 at 04:09 AM
0

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.


Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member
Nov 12, 2017 at 08:48 AM
0

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.


Share
10 |10000 characters needed characters left characters exceeded