cancel
Showing results for 
Search instead for 
Did you mean: 

how to send internal table from one method to anthoer method in webdynpro

Former Member
0 Kudos

how to send one internal table from one event handler method to another user defined method in web dynpro abap,please anybody share this solution with me.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ramana

Say your user defined method is EDIT_LIST

1. Define an import paramter as given below in your method

Paramter: LT_TABLE

type: IF_MAIN=>ELEMENTS_VN_NODE

(View Name: MAIN, Node Name for the internal table: VN_NODE)

2. To call this method from an even

wd_this->edit_list( lt_table = lt_table_int ).

" Say lt_table_int is the internal table in your first method(calling method).

This way you get the internal table from one method to another.

Revert in case of any queries.

Thanks & Regards,

Gayathri Shanbhag

Former Member
0 Kudos

its is giving error like lt_table_int is not compatable with formal parameter lt_table how can i rectify here lt_table is my structure type str_itab contains 7 fields,but here lt_table type is IF_ALV_MAIN=>ELEMENTS_ALV_TABLE,

so its giving error

Former Member
0 Kudos

That is because you are passing the structure to an internal table. Either pass the structure to a structure or internal table to an internal table.

If you want to pass the structure then declare lt_table as if_main=>element_vn_node instead of if_main=>elements_vn_node during declaration.

Thanks & Regards,

Gayathri Shanbhag