on 2005 Jul 29 2:09 PM
I have few internal tables in my bsp application but at a time i need to show 1 internal table based on some criteria into tableview.
can anybody guide me how to do so, its really urgent
Thanx,
Abhijeet
Hi Abhijeet,
Just use field-symbols and ur problem will be solved.
Check out the following code:
<% Field-symbols <var> type any .
.......logic for internal table selection..
assign it2 to <var>.
%>
<htmlb:tableView id="tab1" table="<%=<var>%>">
</htmlb:tableView>
Hope it'll help u.
Thanks & Regards,
Ankur
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you mean making a copy of the internal table? You can do this with one line of code.
itab2[] = itab1[].
The entire contents of itab1 are copied to itab2. Actually the memory isn't copied until you do a modification operation on itab2. Until that point it is just reference to itab1. But that is all behind the scenes and handled by the ABAP runtime.
Don't forget you also have the move-corresponding command in case you don't have indentical structures. You would loop through itab1 and perform a move-corresponding for each record.
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.