Variant Configuration SSC Syntax of KnowledgeBase

Home / Blog / Variant Configuration SSC Syntax of KnowledgeBase

Finally, we have enough pieces that we can start playing with Variant Configuration SSC model.  But in order to play with the model, we need to have a knowledge base, so today we will go over the SSC syntax required to create one.  If you haven’t checked out the previous posts, they will help you catch up:

Variant Configuration – SSC Stand Alone Installation
Variant Configuration SSC – tricks to installing the local database

Variant Configuration SSC – using the Modeling Environment
Variant Configuration SSC – Syntax for Classification
Variant Configuration SSC – Syntax for Materials
Variant Configuration SSC – Syntax of Contraints and Constraint Nets

First off, if you follow a standard approach, go to the knowledgebase.ssc file (or whatever you named it).  The syntax will look something like this:

knowledgeBase AM_TUTORIAL_KB {
version “01.00” logsys “PSECLNT001” status released /*validFrom 2013-05-01*/
validFrom 2013-05-01
profiles
name ‘AM_LIBRARY_PRF’ material AM_MAT_LIBRARY,
name ‘AM_BOOK_PRF’ material AM_MAT_BOOK,
name ‘AM_SHELF_PRF’ material AM_MAT_SHELF,
name ‘AM_END_SUPPORT_PRF’ material AM_MAT_END_SUPPORT,
name ‘AM_BOOKCASE_PRF’ material AM_MAT_BOOKCASE
tasks
AM_LIBRARY_TASK
}

Step one, is to create the KB.  There are all the standard pieces, and since we’re in a playground, most of these don’t mean much.  the version & logsys can be whatever you like.  set the status to be released and give it a validFrom date…  Then enter in the profiles you want to attach to this KB.  You’ll notice that I have 5 materials assigned as part of this KB.  Finally, you need to define a Task.  Which we’ll define in a second.  If you remember CU31/32/33, CU35 & CU36, this is how you do it in the SSC.

task AM_LIBRARY_TASK {
constraintNets
LIBRARY_CNET,
BOOK_CNET,
END_SUPPORT_CNET,
SHELF_CNET,
BOOKCASE_CNET
ruleNets
SHELF_RNET
}

Now in the task, we just need to list all the constraintNets & ruleNets that should be pulled into the KB.  It’s that easy.

Now, we just need to use Eclipse to Export Knowledgebase (this puts it into your db and allows you to execute it).

Now open the Knowledgebase (right click on the KB in the model view) and you can start playing.  I talked about this a few post ago.  Check out my post on using Eclipse for more details.  Thanks for reading.

 

As always, thanks for reading and don't forget to check out our SAP Service Management Products at my other company JaveLLin Solutions,
Mike

Leave a Reply

Your email address will not be published. Required fields are marked *