Hello,
i am calling a method that has one exporting parameter with type ANY TABLE.
My problem is that abap won't let me activate the code because of the incompatible actual parameter:
data: lt_dynamic type ref to data,
lo_node type ref to if_wd_context_node,
field-symbols: <ls_dynamic> type any table.
* create data lt_dynamic type ?
lo_node->get_static_attributes_table( importing table = lt_dynamic ). <-- not activating
lo_node->get_static_attributes_table( importing table = <lt_dynamic> ). <-- activating but the field symbol is not assigned
I need the reference of the table "table" of the method "get_static_attributes_table" in this example.
Regards
Ioan.
Request clarification before answering.
Hello,
i just found out, what i am trying i not possible. The method GET_STATIC_ATTRIBUTES_TABLE also uses the exporting parameter to determine the type of the table .
And generally i don't think that this is possible. The <lt_dynamic> field symbol has to be assigned and for that you need a variable/memory area, that can store any table. I don't have too much time now to look but in my opinion is not possible ... for now at least
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 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.