Skip to Content

attribute not updated after SET_PROPERTY

Hi All Expert,

I set on context's attribute from another context node after set i checked the entity it was updated. But after display in UI, it displayed the old value again.

What could be the reason?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Jan 08, 2014 at 10:19 AM

    Hi,

    Where in context node you are setting the field value?

    did you put lr_core-modify( ) after change.

    Regards,

    Deepika.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2014 at 10:38 AM

    Hi Joshua,

    it's hard to say without seeing your code but Deepika could be right. If you forgot the modify call on the BOL core, your changes will stay in the BOL buffer and are not transferred to the GenIL layer.

    Have a look at this article for more details.

    Regards,

    Markus

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2014 at 03:16 PM

    HI Joshua,

    Could you please elaborate and send your code as well?

    Regards,

    Devashish

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 05:14 AM

    Check if that particular attribute is editable.

    IF lv_entity->is_changeable( ) = abap_true.
    lv_entity->set_property_as_string( iv_attr_name =
    ‘PROPERTY_NAME’
    iv_value = ‘New Value’ ).
    ENDIF.
    

    If the attribute is not editable you won't be able to change the property.

    Regards,

    Kavindra

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 09, 2014 at 07:56 AM

    Hi Joshua,

    Since you want to SET that attribute somewhere else, please comment out the coding inside the setter method of that attribute which you want to set.

    Regards,

    Devashish

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.