Skip to Content
author's profile photo Former Member
Former Member

Reset/Revert entity attribute(Not entity itself)


Is there a chance to revert an attribute of a entity without reverting the whole entity?


There is an option for the user to update/change/edit several attributes on a web UI screen.

Upon changing a value of a drop down will trigger a validation check. If the validation fails that should reset only the drop down to original but leave all the remaining fields as they are.

Is this achievable?

Thanks &

Kind regards,


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Aug 28, 2013 at 10:43 AM

    Yes this is achievable.

    you can set event in the GET_P method of filed (which is drop down).

    when anyone select drop down this event will trigger and with in this event you can validate your check.

    If validation fails set it to original value from there itself.

    Code for get_p of field.

    CASE iv_property.

    WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.

    rv_value = cl_bsp_dlc_view_descriptor=>FIELD_TYPE_PICKLIST.

    WHEN if_bsp_wd_model_setter_getter=>fp_server_event.
    rv_value = 'event_name'. "event

    In event you can do required validations. and set to its original value as well without changing any other fields data.


    @Harish Kumar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Harish Kumar

      Hi Harish,

      " if you check validation in save which you will do after changing the value from drop down how you will get original value of drop down"

      That is what I was asking, is there any function that can revert back an attribute. I know there is a method to revert the whole entity back.

      Anyways I resolved this by using a function module to fetch a copy from database and revert back the attribute.

      I could save the attributes to a global varibles at the instance when user hits edit button and use them to revert when validation fails. But using FM was much easier in my case.

      I gusess there is no standard function to revert attribute values back to original.

      Thanks for your replys.

      I am closing down the issue

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.