Hi All,
I am trying to set default value for NUMBER_PARENT attribute in BTADMINI in BT116QIT_SRVQ component at the line item level...
I have written my code in DO_PREPARE _OUTPUT as shown below..but it is setting up default value for the first line item not for all the line items..
Can we use the set_property method inside while..? Could you please let me know what is the best way to set default value for all the line items..
I appreciate your help in advance..
data:
it_item_data TYPE TABLE OF crmst_admini_btil,
ls_item_data TYPE crmst_admini_btil.
lr_item_data ?= me->typed_context->btadmini->get_collection_wrapper( ).
CHECK lr_item_data IS BOUND.
lr_item_entity ?= lr_item_data->get_first( ).
WHILE lr_item_entity IS BOUND.
lr_item_entity->get_properties( IMPORTING es_attributes = ls_item_data ).
lr_item_entity->set_property(
iv_attr_name = 'NUMBER_PARENT' "#EC NOTEXT
iv_value = '0000000010' ).
APPEND ls_item_data TO it_item_data.
lr_item_entity ?= lr_item_data->get_next( ).
ENDWHILE.
Thanks,
Susan