Skip to Content

What is the Exact difference between Isset() and IsInitial()?

Jan 10 at 05:45 AM


avatar image


As im very much new to SAP im unable to understand the difference between isset and isinitial and when I see any sample code there is a not symbol(!) and I don't understand the exact definition ..Please Help me to clear these concept

Thanks in advance,

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

1 Answer

Andres Gutierrez Jan 10 at 12:36 PM
0 Check Associations (Business Logic) Syntax <path expression>.<association name>.IsSet();


You can use the IsSet () method for [1,1] or [0,1] associations to check whether the association was set before. Otherwise any access to an association that was not set causes a runtime error.


var targetNode = this.ToTarget; if (this.ToTarget.IsSet()) { this.Name = "Assoc set to: " + targetNode.Name; } else { this.Name = "Assoc not set."; } Generic Built-In Functions

IsInitial ==> All data types except for Boolean data types. Indicates whether a value is initial or not. Returns a Boolean value.

10 |10000 characters needed characters left characters exceeded