cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to save value using set_property method

Former Member
0 Kudos

Hi all,

I am working on inbox search view. I need to change standard description for letter. I am fetching my required description for every record and when I am trying to set description against my letter using set_property method value is not getting stored.

While debugging I came across following attributes and their values:

1. Changeable = ‘ ‘.

2. Its read only attribute having value ’RRRRRRRRRRRRRR ’.

3. My manager entry has an attribute ‘lock’ which is equal to space.

So while debugging I changed the above attributes as follows:

1. Changeable = ‘X ‘.

2. The read only attribute to value ’CCCCCCC’.

3. My manager entry attribute ‘lock’ equal to X.

With these changes I was able to set my value.

Is there any programmatic way of setting these values?

I tried using core->modify ( ), but of no use.

Has anyone faced such problem before?

Is there any other way of setting values in case of Inbox?

Please help me in this regard.

Useful answers will be rewarded.

Regards,

Vikas

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

I got solution

Former Member
0 Kudos

Kindly share the solution.

Thank you.

Former Member
0 Kudos

Hi,

Yes, you have to get the lock on the BOL entity before you can set its value. You can either call the methods

switch_to_change_mode( ) or lock( )

for the

cl_crm_bol_entity

entity reference variable?

Hope this helps! Reward if helpful!

Thanks,

Sudipta.