Vous êtes sur la page 1sur 8

2/18/2019 Variant Configuration $Root $Parent $Self

(http://w
ww.sap.c
Products
om/) (https://www.sap.com/products.html)

Industries (https://www.sap.com/industries.html)

upport
Services and Support (https://www.sap.com/support.html)

Training (https://www.sap.com/training-certi cation.html)

Community (https://www.sap.com/community.html)

Developer (https://developers.sap.com/index.html)

Partner (https://www.sap.com/partner.html)

About (https://www.sap.com/corporate/en.html)

 
Ask a Question (https://answers.sap.com/questions/ask.html) Write a Blog Post (https://blogs.sap.com/wp-admin/post-new.p

Archived discussions are read-only. Learn more about SAP Q&A


(https://go.sap.com/community/about/questions-and-answers.html)

Variant Configuration $Root $Parent


$Self
This question is answered

Hi

https://archive.sap.com/discussions/thread/3939772 1/8
2/18/2019 Variant Configuration $Root $Parent $Self

I can understand $ROOT is the highest-level configurable material in a configuration. $PARENT refers to
the object immediately above $SELF in a multi-level configuration.In dependencies that are allocated to BOM
items, $PARENT refers to the configurable material for which the BOM was created, whereas $SELF refers to the material
of the BOM item.

SELF
00010 - $self.computer = 'PC' if software = 'ABC' ,

PARENT

00010 - $parent.computer = 'PC' if software = 'ABC' ,

ROOT
00010 - $root.computer = 'PC' if software = 'ABC' ,

What will be the result of this program? or Could anyone please help me to understand SELF, PARENT and ROOT usage
in obj dependancy? How these are three variables used in programming in VC. I searched enough i am unable to get clear
picture on this three.

(https://people.sap.com/mahendran8888)

MAHENDRAN PARAMASIVAN (https://people.sap.com/mahendran8888)


August 03, 2016 at 15:22 PM
0 Likes

Correct Answer

Keyur Mistry (https://people.sap.com/keyur.mistry1) replied


(https://people.sap.com/keyur.mistry1)
August 03, 2016
@MAHENDRAN PARAMASIVAN

(https://people.sap.com/mahendran8888),

Okay first of all just give one view to the below given link.

Object Variables - Variant Configuration (LO-VC)


- SAP Library
(http://help.sap.com/saphelp_globext607_10/hel
pdata/en/92/58c52c417011d189ec0000e81ddfac
/content.htm?
frameset=/en/92/58c539417011d189ec0000e81
ddfac/frameset.htm)

Now we will see here in my words with example.

Ex - Computer image

https://archive.sap.com/discussions/thread/3939772 2/8
2/18/2019 Variant Configuration $Root $Parent $Self

To manufacture the computer we need 3


componenet (CPU,Moniter,Mouse)

To manufacture the CPU 3 option - (XX, YY, ZZ)

To Manufacture the Moniter 2 option - (JJ, KK)

To Manufacture the Moniter 2 option - (AA, BB)

$self - to achive self level of result. At same


material, from one material charcteristics to other
material charcteristics or charcteristics value if
want to achive.

No required explianation, hope you know very


well.

$Parent - refers to the object immediately above


$SELF in a multi-level configuration.

CPU material charcteristics value if we want to


achieve base on the Computer material
characteristics.

Suppose here Order qty is Cstics.

If Computer order qty is > 10 then CPU type will


be "INTEL_80486"

Syntex:

$SELF.CT_CPU_TYP = "INTEL_80486" IF

$PARENT.CT_ODR_QTY >= 10.

$ROOT - is the highest-level configurable material


in a configuration.

To achieve the self level of result base on the


root level (Finish goods level) cstics
configuration value.

The materil KK will have cstics value 'K' if


Coputer type is "3D".

Syntex:

$SELF.CT_KKK = 'K' IF

$ROOT.CT_COM_TYPE = '3D'

https://archive.sap.com/discussions/thread/3939772 3/8
2/18/2019 Variant Configuration $Root $Parent $Self

means in $.Parent we are achieving the value of


self level cstics base on parent material cstics
value.

AND

in $.ROOT we are achieving the value of self


level of cstics base on the highest level (Finish
Goods level) of cstics.

Thanks,

0
View this answer in context (/discussions/message/16875396#16875396)

Helpful Answer by
MAHENDRAN PARAMASIVAN (/discussions/message/16875868#16875868) , Ritesh Dube
(/discussions/message/16875947#16875947)

ng for? View more on this topic (https://go.sap.com/community/tag.html?


2536865263502299) or

://answers.sap.com/questions/ask.html?primaryTagId=678016524911947112536865263502299)

6 replies

Correct Answer

(https://people.sap.com/keyur.mistry1)
Keyur Mistry (https://people.sap.com/keyur.mistry1)replied

August 03, 20

@MAHENDRAN PARAMASIVAN (https://people.sap.com/mahendran8888),

Okay first of all just give one view to the below given link.

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


(http://help.sap.com/saphelp_globext607_10/helpdata/en/92/58c52c417011d189ec00
00e81ddfac/content.htm?
frameset=/en/92/58c539417011d189ec0000e81ddfac/frameset.htm)

Now we will see here in my words with example.

https://archive.sap.com/discussions/thread/3939772 4/8
2/18/2019 Variant Configuration $Root $Parent $Self

Ex - Computer image

To manufacture the computer we need 3 componenet (CPU,Moniter,Mouse)

To manufacture the CPU 3 option - (XX, YY, ZZ)

To Manufacture the Moniter 2 option - (JJ, KK)

To Manufacture the Moniter 2 option - (AA, BB)

$self - to achive self level of result. At same material, from one material charcteristics
to other material charcteristics or charcteristics value if want to achive.

No required explianation, hope you know very well.

$Parent - refers to the object immediately above $SELF in a multi-level configuration.

CPU material charcteristics value if we want to achieve base on the Computer


material characteristics.

Suppose here Order qty is Cstics.

If Computer order qty is > 10 then CPU type will be "INTEL_80486"

Syntex:

$SELF.CT_CPU_TYP = "INTEL_80486" IF

$PARENT.CT_ODR_QTY >= 10.

$ROOT - is the highest-level configurable material in a configuration.

To achieve the self level of result base on the root level (Finish goods level) cstics
configuration value.

The materil KK will have cstics value 'K' if Coputer type is "3D".

Syntex:

$SELF.CT_KKK = 'K' IF

$ROOT.CT_COM_TYPE = '3D'

https://archive.sap.com/discussions/thread/3939772 5/8
2/18/2019 Variant Configuration $Root $Parent $Self

means in $.Parent we are achieving the value of self level cstics base on parent
material cstics value.

AND

in $.ROOT we are achieving the value of self level of cstics base on the highest level
(Finish Goods level) of cstics.

Thanks,

(https://people.sap.com/mahendran8888)
MAHENDRAN PARAMASIVAN (https://people.sap.com/mahendran8

August 03, 201

Hi keyur,

It is simplest example. I appreciate your response. How can i get some more
examples to know about object dependancy program further. Last three years i am
working in SAP VC. But i need more OD programs. Is it Possible to get from any
web?

(https://people.sap.com/keyur.mistry1)
Keyur Mistry (https://people.sap.com/keyur.mistry1)replied

August 03, 201

@MAHENDRAN PARAMASIVAN, (https://people.sap.com/mahendran8888)

Sorry I don't think so it is possible to get VC syntax as like ABAP program we can get.

This all about base on our Business requirement for product configuration.

According to me just start with the basic and small program only. you can easily
design big syntax too, if business requirement is clear.

Just keep spending time here as well as LOVC reading.

https://archive.sap.com/discussions/thread/3939772 6/8
2/18/2019 Variant Configuration $Root $Parent $Self

 Helpful Answer

(https://people.sap.com/mahendran8888)
MAHENDRAN PARAMASIVAN (https://people.sap.com/mahendran8

August 03, 201

Keyur,

Case: kmat A, B is Halb kmat of A and C is the Halb kmat B

Ch Val of A : xx, yy, zz

Ch Val of B : mm, nn

Ch Val of C : pp,qq

Choosing XX should choose mm and pp

Chooisng others should choose nn and qq

How to write Dependancy for the same using $self,$parent and $root?

 Helpful Answer

(https://people.sap.com/ritesh.dube) August 03, 201


Ritesh Dube (https://people.sap.com/ritesh.dube)replied

Try dependency type procedure with below syntax.

$SELF.CHAR.B = 'MM' if $PARENT.CHAR.A = XX,

$SELF.CHAR.C= 'PP' If $ROOT.CHAR.A = XX.

As per my knowledge , $ROOT is absolute now , you can use $PARENT at any node regardless of

Check with above syntax once it work replace $ROOT with $PARENT , it will still work for you.

Check and reply , Also please open the thread if you still have doubts. Otherwise create a new thre

Thanks

Ritesh

(https://people.sap.com/mahendran8888)
MAHENDRAN PARAMASIVAN (https://people.sap.com/mahendran8

August 03, 201

Hi Ritesh

https://archive.sap.com/discussions/thread/3939772 7/8
2/18/2019 Variant Configuration $Root $Parent $Self

Please help what are the steps in multilevel configuration - sap vc? How it should
be used in sales order? whether sales order will … (/discussions/thread/3940349)
created now.

Share & Follow

(https://www.facebook.com/sapcommunity) (https://twitter.com/SAPCommunity)

(https://www.youtube.com/c/SAPCommunities) (https://www.linkedin.com/company/sap)

(http://www.slideshare.net/SAP) (https://instagram.com/sap/) ()

Privacy (http://sap.com/about/legal/privacy.html) Terms of Use (http://sap.com/corporate/en/legal/terms-of-

use.html)

Legal Disclosure (http://sap.com/about/legal/impressum.html) Copyright (http://sap.com/about/legal/copyright.html)

Trademark (http://sap.com/about/legal/trademark.html) Cookie Preferences

Sitemap (http://www.sap.com/sitemap/index.html) Newsletter (https://sap.com/registration/newsletter.html)

https://archive.sap.com/discussions/thread/3939772 8/8

Vous aimerez peut-être aussi