2007 Sep 27 1:52 AM
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
2007 Sep 27 7:23 AM
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
2007 Sep 27 4:43 PM
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
2007 Sep 28 6:39 AM
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
2007 Sep 27 8:32 AM
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
2007 Sep 27 12:51 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |