on 08-29-2014 4:42 AM
trying to populate values into a table that is being displayed in the view
iam using the value node
iam writing this logic in do_prepare_output
TYPES: BEGIN OF ltype_attr_struct,
reason TYPE char80,
answered TYPE char80,
END OF ltype_attr_struct.
DATA: DATA: lwa_struct TYPE ltype_attr_struct,
lwa_table TYPE TABLE OF ltype_attr_struct,
lwa_struct-answered = 'YES'.
lwa_struct-reason = 'going overseas'.
APPEND lwa_struct TO lwa_table.
lwa_struct-answered = 'YES'.
lwa_struct-reason = 'returning back'.
APPEND lwa_struct TO lwa_table.
lwa_struct-answered = 'NO'.
lwa_struct-reason = 'frequent travel'.
APPEND lwa_struct TO lwa_table.
I WANT TO POPULATE THIS TABLE LWA_TABLE INTO THE TABLE DISPLAYED IN THE VIEW
IF I WANT TO POPULATE SINGLE RECORD IAM USING THIS
lr_entity = typed_context->declineconditions->collection_wrapper->get_current( ).
lr_entity->set_properties( EXPORTING is_attributes = lwa_struct ).
BUT I WANT TO POPULATE MULTIPLE RECORDS
REGARDS
LUXMI
Hi,
You can try below piece of logic.
Regards,
Amrit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi amrit,
i have added the below code as mentioned
LOOP AT lwa_table INTO lwa_struct.
GET REFERENCE OF lwa_struct INTO lt_table.
CREATE OBJECT lv_entity
EXPORTING
iv_data_ref = lt_table.
* set the data into value node
lv_entity->if_bol_bo_property_access~set_properties( EXPORTING is_attributes = lwa_struct ).
"add node to the collection
if lv_entity is bound.
me->typed_context->declineconditions->collection_wrapper->add( lv_entity ).
endif.
CLEAR lwa_struct.
ENDLOOP.
it is populating the table displayed with records. but the first record in teh displayed is blank.
how to get rid of this blank record.pls let me know
thanks®ards
luxmi
Hi Luxmi,
This is a very basic issue and you can find many threads related to this requirement. Please search forum before posting question.You may not get direct answer but there will be helpful answers.
Best Regards,
Dharmakasi.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.