Here were two conversations over in the ABAP forum dealing with tables and classes.
How to pass an internal table to a Method?
Now that they answer your question directly, but might help out.
Hello Nikhil,
yes, this is possible.
Check out the controller-method "GET_MODEL". As you can see in the coding of the method there is a internal list of models you created in your MVC.
Get your instance by the model id 😊
Check this out. If this does not work we go the hard way via the main/sub-controllers....
Regards, Bernd
Nikhil,
I think the answers you have received are good. However, this implies that you must come back and flag your questions as answered. In addition, SDN is now using a contributor reward system. Which means your question has 10 points that can be assigned to people helping you.
Recommended is to give 6 and/or 10 points as appropriate, and 2 for each helpful answer. Please do this for your previous quesions as well. Some of them are still flag as unanswered with no comments from your side indicating status quo. See also Contributor" target="_blank">https://www.sdn.sap.com/sdn/index.sdn?page=crp_help.htm">Contributor Recognition Program FAQ.
This is important as recognition to those people that have invested the extra to help you. I have also previously emailed you on this topic.
++bcm
Add comment