<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Variant Configuration syntax in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836179#M922475</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, the Syntx is limited in Variant and you may use the SAP Help to see what is available.   One Option would be to Create a Variant Table for the Valid Combinations you wish to maintain. Another option would be to write a Variant Function, which is written in ABAP, and use the snytax you indicated to set the Value of FIBER_COLOR.  You may substitute your Char Values for mine in the Above Example I gave you, and you would have the proper syntax for the Procedure.   Since you have many values, which was not clear in your example, the Variant Function or the Variant Table would be the most efficient to use as you were not clear on the number of characteristic values you had to maintain.   I did not "try" to answer your question, I gave you the best solution for the amount of information you provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$self.Fiber_Color = '1'&lt;/P&gt;&lt;P&gt;if $self.Fiber_ID = 'A100'' or&lt;/P&gt;&lt;P&gt;   $self.Fiber_ID = 'A11'   or&lt;/P&gt;&lt;P&gt;   $sefl.Fiber_ID = 'A333'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 11:55:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-14T11:55:54Z</dc:date>
    <item>
      <title>Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836176#M922472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a doubt in Variant Configuration. In CL04 I created a class called FIBER. I created 2 characteristics &lt;/P&gt;&lt;P&gt;in CT04 as Fiber_Id ( type Char20) and Fiber_color (type Char10) and assigned to the class FIBER. The characteristic values for Fiber_Id are say A100, B110,K120,C130,A111, A333. The characteristic values for Fiber_color are  say Natural, Blue,Green and White. &lt;STRONG&gt;For all the Fiber_Id s starting with 'A' the Fiber_Color should be Natural.&lt;/STRONG&gt; So in the tcode CT04 I have chosen the chracteristic value  Natural and written the precondition as &lt;STRONG&gt;Fiber_Id+0(1) EQ 'A'.&lt;/STRONG&gt;  This gives me syntax error. Can anybody help me to process strings in Object dependency editor in CT04.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjula.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manjula on May 13, 2008 5:15 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 11:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836176#M922472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T11:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836177#M922473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am assuming the following, which may or may not be the case, but should help you.   I would not write the dependency at the Characteristic Value.    You could use the SET_DEFAULT statement in the Config Profile or at the Characteristic value, but the SET_DEFAULT will allow the user to change the value.   My recommendation is a Procedure at the Config Profile.  Variant Config uses its own special commands, not ABAP Code.   Check the SAP Help for Syntax. &lt;/P&gt;&lt;P&gt;                     &lt;/P&gt;&lt;P&gt;Fiber_ID:        Char val: 1                          Char Description: A100&lt;/P&gt;&lt;P&gt;                     Char val: 2                          Char Description: B110&lt;/P&gt;&lt;P&gt;                     Char val: 3                          Char Description: K120&lt;/P&gt;&lt;P&gt;                     Char val: 4                          Char Description: C130&lt;/P&gt;&lt;P&gt;                     Char val: 5                          Char Description: A111&lt;/P&gt;&lt;P&gt;                     Char val: 6                          Char Description: A333&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiber_Color     Char val: 1                          Char Description: Natural&lt;/P&gt;&lt;P&gt;                      Char val: 2                         Char Description: Blue&lt;/P&gt;&lt;P&gt;                      Char val: 3                         Char Description: Green&lt;/P&gt;&lt;P&gt;                      Char val: 4                         Char Description: White&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write a Procedure in your Config Profile (cu42):   PRO_SET_FIBER_COLOR_NATURAL&lt;/P&gt;&lt;P&gt;   $self.Fiber_Color = '1'&lt;/P&gt;&lt;P&gt;        if $self.Fiber_ID = '1' or&lt;/P&gt;&lt;P&gt;           $self.Fiber_ID = '5' or&lt;/P&gt;&lt;P&gt;           $sefl.Fiber_ID = '6'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 May 2008 15:59:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836177#M922473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-13T15:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836178#M922474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for trying to answer the question. I think you did'nt get my question clearly. Fiber_Ids are as shown below. There can be 1000s of Fiber_Ids which are alphanumeric as shown below. For all those Fiber_Ids starting with A , the Fiber_color should be 'Natural'.Hope I'm clear in my question. I want a syntax which is something like CS or CA in ABAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fiber_ID: &lt;/P&gt;&lt;P&gt;Char val:  A100  &lt;/P&gt;&lt;P&gt;Char val:  B110&lt;/P&gt;&lt;P&gt;Char val:  K120&lt;/P&gt;&lt;P&gt;Char val:  C130&lt;/P&gt;&lt;P&gt;Char val:  A111&lt;/P&gt;&lt;P&gt;Char val:  A333&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjula.S&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manjula on May 14, 2008 9:36 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Manjula on May 14, 2008 10:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 04:06:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836178#M922474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T04:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836179#M922475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, the Syntx is limited in Variant and you may use the SAP Help to see what is available.   One Option would be to Create a Variant Table for the Valid Combinations you wish to maintain. Another option would be to write a Variant Function, which is written in ABAP, and use the snytax you indicated to set the Value of FIBER_COLOR.  You may substitute your Char Values for mine in the Above Example I gave you, and you would have the proper syntax for the Procedure.   Since you have many values, which was not clear in your example, the Variant Function or the Variant Table would be the most efficient to use as you were not clear on the number of characteristic values you had to maintain.   I did not "try" to answer your question, I gave you the best solution for the amount of information you provided&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$self.Fiber_Color = '1'&lt;/P&gt;&lt;P&gt;if $self.Fiber_ID = 'A100'' or&lt;/P&gt;&lt;P&gt;   $self.Fiber_ID = 'A11'   or&lt;/P&gt;&lt;P&gt;   $sefl.Fiber_ID = 'A333'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 11:55:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836179#M922475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T11:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836180#M922476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You Mike. I will try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjula.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 12:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836180#M922476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T12:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836181#M922477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manjula,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   create a procedure and add it to the configuration profile of that marerial,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the syntax in the procedure write something like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$self.fiber_color = 'NATURAL' if $self.fiber_id LIKE '%A'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope it wroks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please do reply even if u have solved the query by ur self with the answer. i am also in need of variant configuration information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, &lt;/P&gt;&lt;P&gt;pavan,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836181#M922477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Variant Configuration syntax</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836182#M922478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pavan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. The above code didnt work. Still I'm trying to solve it.Surely I will post the answer once I resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Manjula.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 10:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/variant-configuration-syntax/m-p/3836182#M922478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T10:51:17Z</dc:date>
    </item>
  </channel>
</rss>

