on 01-08-2014 9:55 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Joshua,
Could you please elaborate and send your code as well?
Regards,
Devashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Where in context node you are setting the field value?
did you put lr_core-modify( ) after change.
Regards,
Deepika.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi My code as following:
if <nval> <> <oval>.
current->set_property(
iv_attr_name = 'Y_STATUS_TYPE' "#EC NOTEXT
iv_value = <nval> ).
lr_core ?= cl_crm_bol_core=>get_instance( ).
lr_col ?= direx->collection_wrapper->get_marked( ).
lr_iterator ?= lr_col->get_iterator( ).
check lr_iterator is bound.
lr_direx ?= lr_iterator->get_first( ).
while lr_direx is bound.
lr_direx->set_property( iv_attr_name = 'Y_STATUS_TYPE' iv_value = <nval> ).
lr_core->modify( ).
lr_direx ?= lr_iterator->get_next( ).
endwhile.
User | Count |
---|---|
6 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.