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

Basic doubt--How to get INCLUDEs containing Z module pool prog?

Former Member
0 Likes
824

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

1 ACCEPTED SOLUTION
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
743

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

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

4 REPLIES 4
Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
744

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

Read only

0 Likes
743

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

Read only

0 Likes
743

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

Read only

matt
Active Contributor
0 Likes
743

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