on 04-17-2014 8:30 PM
Hi All, we have one issue regarding table view attribute field values.
we have a table view with 7 to 8 fields and based on the Product ID and the number of card enteres, 2 of the attributes should be calculated with unique numbers and displayed in the table view. so for e.g. we have 3 products ID's and for each Product say 3 number of cards are entered, total 9 records should be displayed in the table view with 2 of the attributes with new unique calculated value. below is the code return for the same in do loop to set the work area and aldd to the collection.
l_o_value_node->set_properties(
EXPORTING is_attributes = l_o_struct_ref->* ).
l_if_bo_coll->insert(
EXPORTING iv_bo = l_o_value_node
iv_index = sy-index ).
typed_context->result->set_collection(
EXPORTING collection = l_if_bo_coll ).
in insert method, ME->ENTITY_LIST gets changed with the new value even for earlier collections
insert LV_ENTRY into ME->ENTITY_LIST index IV_INDEX.
So the entire table is displayed with required number of records but with same values for the 2 attributes.
Thanks
Prasad
Hi Prasad,
create this ref l_o_struct_ref->* inside the loop, it will start working.
Regards,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
ref l_o_struct_ref->* is filled inside do loop or outside it?
Can you send me the code?
Thanks,
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prasad,
For that you need to create two view configurations and then write the coding in do_config_determination for checking the values of product id and no of card enters, then load the different view.
Thanks,
Mamta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
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.