Customizing the metamodel : Keywords for USRPROPS : #IFDEF
  
#IFDEF
Enables you to switch on commands in USRPROPS.TXT based on whether the clause in quotes after the IFDEF command has been turned on in the Property Configuration dialog. The Property Configuration dialog (Tools > Customize Method Support > Encyclopedia Configuration) modifies the sadeclar.cfg file in an encyclopedia. It is the sadeclar.cfg file that is actually checked when the IFDEF statement is evaluated as SAPROPS.CFG is parsed.
This command must end with a #endif statement.
Example
#ifdef "Business Enterprise
"DEFINITION "ORGUNIT"
{
LAYOUT { COLS 2 ALIGN OVER }
PROPERTY "RowDefinition"
{ KEY EDIT OneOf "Organizational Unit" RELATE BY "is part of" ReadOnly LABEL "Organizational Unit"}
PROPERTY "ColumnDefinition"
{ KEY EDIT OneOf "Organizational Unit" RELATE BY "is part of" ReadOnly LABEL "Organizational Unit"}
PROPERTY "Description" { EDIT Text LENGTH 255 HELP "Appears in the cell of a matrix" }
PROPERTY "Intersection?"
{ EDIT Boolean LENGTH 1 }
}
#endif
In the example above, the definition type “ORGUNIT” only contains the properties specified if Business Enterprise is toggled on in the Property Configuration dialog (Tools > Customize Method Support > Encyclopedia Configuration). If you fill in values for these properties and then turn off Business Enterprise, the values remain in the definition of “ORGUNIT” in the repository, but they are not shown in the definition dialog since the property set is turned off.