on 02-08-2018 9:09 AM
Hi,
actually there is a problem within the AfterModify script of a BOs Item.
SAP told me that we are trying to modify a property, which is not allowed at this time.
I wonder why the AfterModify triggers, if it is not allowed to make any changes.
How can I check in ABSL if a property is writable?
Thanks
Best Regards
Erhan
Hi,
Most of the SAP Business Objects have an Status (Mostly shown also in the UI) which defines if the content is read-only or not. In most of the cases the behavior of changing the BO from the ABSL is the same as trying to change the BO from the UI. If the field is read-only in an specific status in the UI it is unlikely that the value can be changed with ABSL code in the same Status.
You have to manually implement the status checks in your ABSL to reduce errors which could be thrown by the underlying SAP BO.
Best regards
Tobias
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can check by trying to assign a value --- if, when you try to activate it, you get an error saying 'is not writeable' or something of the ilk then it's read-only. You can also look at the properties in the repository explorer, it'll tell you what's read-only and what isn't. Remember that the deployment unit of the solution can make a difference.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.