‎2011 Mar 03 4:10 PM
I would like to create a function module that based on the imported parameters, populates a table and displays it in an ALV grid. This in and of itself is no problem. The problem is, I would like the ALV grid to not be displayed in a popup, but in a subscreen. I'm thinking this might not be possible, but though I'd throw this question out and see if anyone comes up with a solution.
A simple example scenario is this.
Function Module zxyz gets inventory information and popuplates an ALV grid (instance of cl_gui_alv_grid).
Program A has a subscreen that calls the function module with certain selection criteria and the alv grid is displayed in the subscreen
Program B also has a subscreen, different selection criteria is passed the function module and those results are displayed via ALV grid in the subscreen.
I realize I can do this by implementing the ALV in each of my programs, and just return the dataset in the function module.
Also, one final note, I was able to display a screen from a function module (technically I guess it's from the function group), that had static data, but have not been able to update dynamic data to display in the subscreen.
‎2011 Mar 07 3:02 AM