Variant Configuration – SSC Creating a variant table using variantTable

Home / Blog / Variant Configuration – SSC Creating a variant table using variantTable

Well, if you’re anything like me, variant tables are a staple of your model.  So, being able to add variant tables into your SSC model is obviously a requirement.  While the entry of them is substantially easier then entering them into CU60, it still comes with some hassles, mostly just understanding the syntax.  So I thought I’d share the basics with you today on the variantTable statement.  First, here’s a sample of a variantTable statement:

variantTable MOTOR_TYPE {
name “Motor Type”
characteristics
RPM_QTY primary,
CYLINDER_QTY primary,
MAX_HP,
rows
“1000”, “2”,   “50”;
“2000”, “4”,   “100”;
“3000”, “4”,  “400”;
}

So, when you see it like this, it’s pretty straightforward.
The characteristics are either key fields (primary is the key word used in SSC) or just straight values.  Enter in all the cstics that you need for columns.
The next piece is the rows.  You need data in your table.  I’ve shown 3 rows, with 3 columns, but obviously, you can do more 🙂  The big thing to notice is that each value has double quotes (“) around it, then you follow it up with a comma (,) to show that you’re moving to the next column, and finally use a semi-colon (;) to show it’s the end of the row.

And that’s all there is to it.  The variantTable is extremely handy, and now you know how to enter one into the SSC.  Hope it helps you out.  In a future post, I’ll talk about using the table in a constraint.  Thanks for learning with me =)

 

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 *