Hi
I am trying to change the text for a business transaction on the web ic.
I create a business transaction and initialise a text with a value.
When I save the transaction in the follow up screen I am trying to update this text with a new value, but the value does not change. This only happens with the text entities. I change other entities successfully.
Does anyone know why texts would be locked. Could this be config.
here is the code I use.. Any help would be great.
************************************************
lv_text_h = lv_order_h->get_related_entity ( 'BTHeaderTextSet').
lv_texts = lv_text_h->get_related_entities(
IV_RELATION_NAME = 'BTTextHAll'
iv_mode = '' ).
result = lv_texts->get_first( ).
while result is bound.
textID = result->get_property_as_string( 'TDID' ).
if textID = 'Z030'.
result->set_property( iv_attr_name = 'CONC_LINES'
iv_value = text ).
exit.
endif.
result = lv_texts->get_next( ).
endwhile.
if lr_transaction->save( ) eq abap_true.
lr_transaction->commit( ).
else.
lr_transaction->rollback( ).
IF me->view_manager IS BOUND.
lr_msg_service = view_manager->get_message_service( ).
CALL METHOD lr_msg_service->add_message
EXPORTING
iv_msg_type = if_genil_message_container=>mt_error
iv_msg_id = 'CRM_IC_IARECORD'
iv_msg_number = '016'
iv_important_info = abap_true.
ENDIF.
endif.
lv_core->modify( ).