Skip to Content

SAP ByD - raise message from sub node

Hi experts,

How can I raise message from sub node ?

raise MSG_OBJ.Create("E","XXXXXXXXXXXX"); it seem like only work at root node.

Best regards,

Krit R.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Aug 16, 2016 at 12:13 PM

    Hi,

    You need to declare the message at the sub node to use them in subnode actions/events like as follow:

    businessobject ZLang {

    element ID : ID;

    node ThisProduct raises msg{

    element ProductID: ProductInternalID;

    message msg text "This is test Msg";

    }

    }

    Thanks

    Saurabh

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello all,

      You can declare messages where ever you want in the (X)BO file.

      It is even possible to declare them in other (X)BOs. Of course you need to activate that (X)BO before you can use the messages somewhere else.

      The important topic for ABSL is the "raises" after the node name which list all messages the ABSLs for this node are allowed to raise.

      HTH,

      Horst

  • Posted on Aug 16, 2016 at 05:17 AM

    Hi Krit,

    If you declares messages in a node, you can raise them in the node's events (AfterModify, OnSave).

    Note: Elements, Messages, Action, all are instance-based.

    Best Regards,

    Fred

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.