Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to define a Value for an Attribute of an Class

SurendarT
Explorer
0 Kudos

Hi,

How to define a Value for an Attribute of a Class ...

( I need to change the value of an Attribute of a class in standard program ....

Ex...

cl_hrce_masterswitches=>infotype_framework_is_active

Here infotype_framework_is_active is the attribute .. its value in standard program is 'X'... Now i need to change it as ' '.

How to define it and set value as ' '.

1 REPLY 1

uwe_schieferstein
Active Contributor
0 Kudos

Hello Surendar

The static attribute INFOTYPE_FRAMEWORK_IS_ACTIVE is read-only and there is not SETTER method to manipulate its value.

However, the attribute is filled in the CLASS_CONSTRUCTOR:


METHOD class_constructor.
...
    IF ce_is_active                 = true OR
       global_payroll_is_active     = true OR
       mngmt_global_empls_is_active = true.

      infotype_framework_is_active = true.
      perid_infotype_is_active     = true.
    ELSE.
      infotype_framework_is_active = false.
      perid_infotype_is_active     = false.
    ENDIF.
...
ENDMETHOD.

Thus, you need to analyze how attribute CE_IS_ACTIVE, GLOBAL_PAYROLL_IS_ACTIVE and MNGMT_GLOBAL_EMPLS_IS_ACTIVE are filled in the CLASS_CONSTRUCTOR.

For sure you will find customizing settings that are responsible for this.

Regards

Uwe