Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Reusable subscreen

justin_moldrup
Explorer
0 Likes
332

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.

1 REPLY 1
Read only

Former Member
0 Likes
289

Hi, Could you be more clear pls..