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

Include a subscreen

Former Member
0 Likes
416

Hi all

I am facing this problem: I have to write two programs similiar. In those I have an area is exactly the same, and I was thinking to use a subscreen to draw this area and relative modules and then to include the subscreen in the two programs.

I tried to create an I (Include) Program via SE38 and wanted to insert here the subscreen, but it tells me it's impossible to create a dynpro in Include programs. So the question is: how can I create something to include a subscreen into different programs?

Any hint is welcome.

Thank you

Gabriele

2 REPLIES 2
Read only

SureshRa
Active Participant
0 Likes
390

Hi,

Create a function group and create a sub-screen in that function group. From your PBO of the screen in which you have the subscreen area (as per your description, two separate screens), include the following screen flow logic statements:


CALL SUBSCREEN <subarea> 
  INCLUDING SAPL<function-group-name> <subscreen-number>.

Alternately, you can have the subscreen in one of the programs and use that program-name in the CALL SUBSCREEN statement of the other program's screen. Thanks

Regards

Suresh

Edited by: Suresh Radhakrishnan on Jul 25, 2011 8:32 PM

Read only

Former Member
0 Likes
390

thank you