Adding Fields to and Deleting Fields from a Boolean Class 

If a field is not defined for a Boolean class, it cannot be used in a validation, substitution, and/or rule. If you want to use a specific field in a validation, substitution, and/or rule and the field is not defined for the Boolean class, you must add the field to the Boolean class. If you do not want a field used for a Boolean class, you must exclude the field from the Boolean class.

Procedure

  1. In the command field, enter /nsm30 and choose Enter.
  2. The Maintain Table Views: Initial Screen appears.

  3. In the Table/view field, enter v_gb01c and choose Maintain.
  4. View GB01C contains the customer configuration fields that can be used for each Boolean class.

    The Boolean class type can be:

    – A Used for rules, conditions, and substitutions (read/write)

    – B Used for rules and conditions only (read)

    – S Used only for fields that can be substituted (write)

    Boolean class type S is not used for substitution conditions.

    You can specify all fields for a particular table by using * for the field name. The following table shows examples of how you can use Boolean class type B for Boolean class 8.

    Boolean class

    Table - Field

    Type

    Exclude

    8

    COBL - *

    B

     

    8

    COBL - MENGE

    B

    X

     

    For Boolean class 8, type B (B = Read only) all fields except the Quantity field (MENGE) can be used for validations and rules.

  5. To add a field to a Boolean class:
  6. Deselect the Exclude indicator for each field you want to include in the Boolean class.

  7. To exclude a field from a Boolean class:
  8. Select the Exclude indicator for each field that you do not want included in the Boolean class.

    It is not possible to remove a table entry (or the last field belonging to a table), as this could create a syntax error in the generated code.

    SAP-delivered table GB01 (together with GB01C) is also used to specify the fields allowed for a Boolean class; however, you cannot change table GB01. If a field is excluded in table GB01 and you include the excluded field in GB01C, the field will not be included, since GB01 has priority.

    You can only add fields to a Boolean class if they are already defined in table GB01 for the respective Boolean class.

  9. Choose Table view ® Save.