cancel
Showing results for 
Search instead for 
Did you mean: 

Change a filed attribute during execution.

Former Member
0 Kudos

Hi everyone,

does anyone knows how to change the attribute of a field during execution of the application CRMD_BUS2000126 (Activities)?.

In the IMG(Transaction crmc_blueprint_c) i defined new field under application crmd_bus2000126 where i specified if i wanted my field to be changeable or not. I also created a new class based on the superclass CL_CRM_BSP_AM_HEADFM_1O where i inserted some code.

Now, depending in which mode( creation or modification ) the user is, i want to set my field changeable or not.

Does anyone knows how to do it?

THANKS,

Accepted Solutions (1)

Accepted Solutions (1)

vijayakm
Advisor
Advisor
0 Kudos

Hi Eric Auclair,

CL_CRM_BSP_AM_HEADFM_1O class has IF_CRM_BSP_MODEL_ACCESS_IL~READ method with export parameter ET_FIELD_ATTRIBUTE. This needs to be filled up to change the field during runtime. PCUI Framework looks into ET_FIELD_ATTRIBUTE parameter to do the runtime attributes of a field.

Following properties can be set during runtime for every field. 'A - Not changeable'; 'B- Not Relavent'; 'C - Mandatory'; 'D- No Value Help(F4)'.

You can look in the CL_CRM_BSP_AM_HEADFM_1O class there are many instances where ET_FIELD_ATTRIBUTE is filled up.

Regards,

vijaya Kumar M.

Answers (0)