10-16-2008 9:51 AM
Hi Experts,
I know simple module pool progs, that, when I opened them in SE38, I can see the PBO and PAI modules, each screen wisem with screen number as suffix......its simple.
but, when i see some Z module pools(even for standard SAP tx module pools), its look like below,
INCLUDE MZMY01TOP.
INCLUDE MZMY01_STATUS_SCREENO01.
INCLUDE MZMY01_USER_COMMANDI01.
INCLUDE MZMY01F01.
INCLUDE MZMY01_INITIALIZE_DATAO01.
so, say, I wanna to create a module pool with name, SAPMYMPROG, then, How to create it, in order to get the above design/order/pattern, i mean, Wht to do, to get the above INCLUDEs module pool??
replies appreciated
thanq
10-16-2008 9:56 AM
Hi,
Do you mean how to create includes ?
You can create includes in order to modularize ur code.
Like zprog_top : declare global variables here
zprog_routines : for all the performs
zprog_pbo : for PBO modules
zprog_pai : for PAI modules and like that...
Regards,
Sandeep
10-16-2008 9:56 AM
Hi,
Do you mean how to create includes ?
You can create includes in order to modularize ur code.
Like zprog_top : declare global variables here
zprog_routines : for all the performs
zprog_pbo : for PBO modules
zprog_pai : for PAI modules and like that...
Regards,
Sandeep
10-16-2008 10:02 AM
thanq
ok, do u mean, i hv to do golike,
first, I need to create INCLUDE(say for TOP), in SE38,
then............creating another INCLUDE(say, for all PBOs code) in SE38.................
then,.......... creating another INCLUDE(say, for all PAIs code) in SE38......................
so, like wise, creating ALL REQUIRED(wish) INCLUDES in SE38...............then,
creating a module pool in SE38.............then, mentioning all these INCLUDEs in this module pool, activating them all togethrer, am i correct?
thanq
10-16-2008 10:12 AM
Hi sandeep ,
To create a module pool program.
Goto se80
Select Program
give a zprogram name -----> click on spectacle button
" it will give a message if it doesnot exit and asks to create object , SAY 'YES
" now it will ask for the name of top include , give a zname_top.-----> press enter
"and save
double click on your program name.
You will get 4 includes.
Top include is not commented. And Remaining three includes are commented.
Uncomment them , save and activate
By creating a module pool program through SE80 , you dont have to create includes manually .
Thanks & Regards
10-16-2008 10:05 AM
Doing it manually is not a good idea - you're too likely to make mistakes.
Use SE80 rather than SE38. Enter an include name in the top include, and double click on it, and the new include is created.
Also, if in your code, you type "PERFORM myform", and then you double click on myform, you'll get a dialog allowing you to create a new include, or use an existing one, to put the FORM in.
matt