on 10-08-2009 9:59 PM
Hi All,
I'm creating a Web-Dynpro program in which I wouild like to passing an internal table from one method to another method within the same View.
Is this possible? And if so, how can I set it up.
Thank you.
Paul
Of course. Internal tables can be passed like any other variables. Just the same as passing an internal table as a parameter in a function module or class method. Nothing special. Just be sure to declare the interface of the method with a table type for the internal table.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Paul ,
I hope u wud be clear with passing table from one method to another now .U may also wish to see this WIKI
Link: [Passing table parameters|https://wiki.sdn.sap.com/wiki/display/WDABAP/Passingtableparameterfromoneviewtoanotherview+locally]
I hope it wud help u .
regards,
amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
While you create your method create an Importing parameter at the top .( Make sure the type should be table type ). Now while calling this method you can pass your internal table
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Paul,
There are two ways.
1, Create a parameter in the called method using the table type of the internal table.
2. to create an attribute in the view, this way the table becomes global and can be accessed from any method inside the view.
Regards
Prasenjit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.