cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ByD - raise message from sub node

former_member195790
Participant
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Saurabh_Kabra
Participant
0 Kudos

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

HorstSchaude
Product and Topic Expert
Product and Topic Expert

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

Answers (1)

Answers (1)

former_member200567
Active Contributor
0 Kudos

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