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

Creating/Calling Grouped screens

Former Member
0 Likes
928

Hi experts,

we have multiple module pool programs and we are trying to group many commonly used dynpros together in another program.Any hints on how to create such common programs and how should that be called in individual programs.

Regards,

Dan

5 REPLIES 5
Read only

Former Member
0 Likes
906

I've usually found function groups to be a good way to bring together common functionality - e.g. have your related dynpros within the group and have various function modules (e.g. Z_CUSTOMER_DISPLAY, Z_CUSTOMER_CHANGE) as ways to get access to these from other programs. Is this the kind of thing you had in mind?

Jonathan

Read only

0 Likes
906

Hi Jonathan,

This is what i had in my mind.I already created various function modules in one separated Function group.But how do i create these function module(Z_CUSTOMER_CHANGE or Z_CUSTOMER_DISPLAY). Should i be calling separate screens inside each function module which is created in the common function group or how ?

And how do i call this screen from my main program. Should i be calling just the function module in PBO or PAI OR should be calling the common screen number and common program as subscreens.How do i pass values between my program and the common program and how to get back the values to my main program .Should i be using export import parameters to pass values.Tried and couldn't get through

Thanks in advance.

Dan

Read only

0 Likes
906

The hardest bit is to work out what components of your system you can break out so that they can be modularised like this. Have a look at SE11 for example - you'd think that there were bundles of screens behind it, but most of the processing has been split out into separate functions, groups by "object" (the 'thing' they act upon) e.g. RS_DD_STRU_ADD, RS_DD_DTEL_ADD, that sit behind RS_DD_TYPE_ADD { forgive me if your system is slightly different ... I'm working on an old version today }. There's also a bunch of Tcodes that go straight into function groups - use SE16 to browse table TSTC and select programs that start with 'SAPL*'.

Jonathan

Read only

former_member196280
Active Contributor
0 Likes
906

You can just follow the same way what SAP does.

For example goto SE80 and check Development class VA for more clear picture.

Regards,

Sairam

Read only

Former Member
0 Likes
906

Hi,

Sap has created the module pool programs under different funciton groups.

same way you can create the program and you can add it to function groups.

You can reuse where ever you want in the programs.

<b>How to create function group:</b>

goto t-code se37

|

goto

|

function groups

|

create\delete....

Regards,

kishore