Fonction SAP BAPI_SYSTEM_MTE_SETSMPROP - Set the Specific Status Attribute Properties

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ALERT_MODE BAPISMPROP-ALERTMODE I 4 X Alert Mode Used
ALERT_SHIFT BAPISMPROP-ALERTSHIFT I 4 X Alert Shift Used
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 Name of the SAP-External User
TID BAPITID u 84 MTE ID
TID_SPECIFIC BAPIPARAMS-BOOL_PARA C 1 ' ' X "X" if Only the MTE Should Be Changed
VARIANT_NAME BAPIVARINT-NAME C 20 X Variant Used

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548 BAPI Return Structure

Functionality
This method is used to change the specific properties of a statusattribute.
The properties can be changed:

  • For the MTE class the status attribute is assigned to. This means that
  • the property changes are valid for all status attributes belonging tothe MTE class.
    • For the individual status attribute. The changes then overwrite the
    • properties "inherited" from the MTE class.
      In addition, the variant for which the properties are to be changed canbe specified. Note that the owner of a variant must be identical to thecompany name used in the XMI logon. Variants that are specifiedexplicitly are created using Transaction RZ21.
      If no variant is specified, the changes will be made for the variantthat has the same name as the company name used for the XMI logon. If avariant with this name does not exist, the system creates itautomatically.

      Description
      INCLUDE RETURN_DESC ID TX

      Value range
      MSG_TID_INVALID: the specified TID is invalid
      MSG_C_CALL_FAILED: the last C function called could not be executed
      MSG_COMMUNICATION_PROBLEM: the method could not be executed due tocommunication problems (check network connection)
      MSG_DB_PROBLEM: the system encountered a problem accessing the database
      INCLUDE RETURN_DEFAULT_RANGE ID TX

      Description
      This (optional) parameter defines how alerts are handled.

      Description
      This (optional) parameter defines the alert shift used. This allows youto configure status attributes, for example, so that values that areoriginally yellow are displayed as red.

      Value range
      Possible values are:

      • 0: not defined

      • 1: no alert shift

      • 2: treat RED values as YELLOW values

      • 3: treat YELLOW values as RED values

      • 4: treat RED values as YELLOW values and YELLOW values as GREEN values
      • Description
        INCLUDE EXTERNAL_USER_NAME_DESC ID TX

        Value range
        INCLUDE EXTERNAL_USER_NAME_RANGE ID TX

        Description
        INCLUDE TID_DESC ID TX

        Description
        If this (optional) parameter is set ("X"), the specified changes areexecuted for the monitor tree element itself. Otherwise, the changesare executed for the MTE class the monitor tree element is assigned to.

        Description
        This (optional) parameter defines the name of the variant used.
        The owner of the specified variant must be identical to the companyname entered for the XMI logon. If no variant is entered, the systemuses the variant with the same name as the company name entered for theXMI logon. If this variant does not exist, the system creates itautomatically.