Skip to Content

How to determine if a BO is read-only at runtime


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?


Best Regards


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 14, 2018 at 12:37 PM


    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


    Add comment
    10|10000 characters needed characters exceeded

  • Feb 12, 2018 at 04:13 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • If a sales order is completed or cancelled then it's read-only; besides that, generally it's writeable from the sales order itself. Attempts to write to a sales order from, say, a script on a purchase order will not work, I've tried.