on 03-31-2011 9:10 AM
Hi all,
I need to bind a a table to a node to retrieve some information after a bapi call.
The problem is when i bind a table. It doesn't work and the table stay empty.
Here is the code :
DATA: l_return_tab type standard table of bapiret2.
lo_node_4 = wd_context->get_child_node( name = 'RETURN' ).
lo_node_4->BIND_TABLE(l_return_tab ).
But when i do get_attribute from the node it works and i collect information of the first row in the table.
here is the code :
DATA: l_return_wa type bapiret2.
lo_node_4 = wd_context->get_child_node( name = 'RETURN' ).
lo_node_4->GET_ATTRIBUTE( exporting NAME = 'TYPE'
importing value = l_return_wa-TYPE ).
lo_node_4->GET_ATTRIBUTE( exporting NAME = 'ID'
importing value = l_return_wa-ID ).
I don't understand what is the problem ?
I'm sure that is a table because i bind it before to a UI table and it shows its content.
And the cardinality in the context is 0..n .
Hi,
Try with this...
DATA: l_return_tab type standard table of bapiret2.
lo_node_4 = wd_context->get_child_node( name = 'RETURN' ).
lo_node_4->get_static_Attributes_table( table = l_return_tab ).
lo_node_4->BIND_TABLE(l_return_tab ).
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi ,
Thanks for your response.
I have an error in this line . " lo_node_4->get_static_Attributes_table(table = l_return_tab )."
saying missing 'importing statement'.
When i add importing like this : "lo_node_4->get_static_Attributes_table( impoting table = l_return_tab )."
ihave another one saying :
"enable to interpret "table". Possible causes : incorrect spelling or comma error".
Do i have to replace the word "table" by something else ?
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.