cancel
Showing results for 
Search instead for 
Did you mean: 

Changing few attribute values dynamically of table view

0 Kudos

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


Accepted Solutions (0)

Answers (3)

Answers (3)

former_member188346
Active Participant
0 Kudos

Hi Prasad,

create this ref l_o_struct_ref->* inside the loop, it will start working.

Regards,

Bhushan

former_member188346
Active Participant
0 Kudos

Hi Prasad,

ref l_o_struct_ref->* is filled inside do loop or outside it?

Can you send me the code?

Thanks,

Bhushan

Former Member
0 Kudos

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