Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 16, 2008 at 08: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

    Add comment
    10|10000 characters needed characters exceeded

    • 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

  • Oct 16, 2008 at 09: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

    Add comment
    10|10000 characters needed characters exceeded