cancel
Showing results for 
Search instead for 
Did you mean: 

When we have to use $self.<char name> in dependencies?

ravi_kumar204
Active Participant
0 Kudos

Dear Experts,

I have a doubt regarding when & why we have to use  $self. in dependencies  - Preconditions, Procedures, Selection conditions ?

for example in Procedures.

$self.xyz = 700

if abc = 200 and def = 500.

the above example can also be written as

$self.xyz = 700

if $selfabc = 200 and $self.def = 500.

Please clarify my doubt. Is anything I am missing in writing dependencies?

Thanks in advance

Ravikumar B

Accepted Solutions (1)

Accepted Solutions (1)

Ritz
Active Contributor
0 Kudos

Ravi kumar,

Here as you are passing value to a characterstic thats why you need to attach a $SELF in front of it. I belive it was true for previous version, now a days even if you write like

xyz = 700 if abc = 200 and def = 500.

It will work.

see below link for more details on $SELF,$PARENT,$ROOT

Object Variables - Variant Configuration (LO-VC) - SAP Library

Hope it will help you.

Thanks

Ritesh

ravi_kumar204
Active Participant
0 Kudos

Thanks Ritesh.

If we don't use $self, Is the behavior of dependency will remain intact in IPC with SAP Knowledge base?

Answers (0)