Skip to Content
avatar image
Former Member

HOW TO CREATE A SIMPLE MODULE POOL PROGRAM

hi,

I want to know, how we can create a simple module program for retrieve database tables fields in to our module pool program, i have practised in 4.7 but I am little bit confused in ecc 6.0 can any one please make doubt clear

thanks

prasad

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jun 13, 2008 at 04:43 AM

    There is no difference in how you would create it in ECC6.

    Create the module pool, screen, gui status, title, PBO, PAI, the necessary update FM's and lock objects.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      go to transaction se80

      create a program with the prefix 'SAPMZ', like SAPMZ_SFLIGHT.

      Hit Enter for next popup (with Top Include) and save as local object.

      Right Click on Object Name and create a screen 100 and save.

      Click on the Layout Button to call the screen painter.

      In screen painter, press F6 to use Dictionary / Program fields

      Type in SFLIGHT, hit Enter and select relevant fields.

      In the Top Include, declare sflight structure with 'tables' statement and activate.

      In pbo, create a module and type your select query.

      Check and Activate the Object SAPMZ_SFLIGHT..

      Finally create a transaction for the above object and execute.

      Below is the code.

      Reward if useful.

      With Regards,

      Wajid Hussain

      • * * * * *

      &----


      *& Module Pool SAPMZ_SFLIGHT

      *&

      &----


      *&

      *&

      &----


      INCLUDE mz_sflighttop . " global Data

      • INCLUDE MZ_SFLIGHTO01 . " PBO-Modules

      • INCLUDE MZ_SFLIGHTI01 . " PAI-Modules

      • INCLUDE MZ_SFLIGHTF01 . " FORM-Routines

      &----


      *& Module pbo_100 OUTPUT

      &----


      • text

      ----


      MODULE pbo_100 OUTPUT.

      SELECT SINGLE * FROM sflight.

      ENDMODULE. " pbo_100 OUTPUT

      &----


      *& Include MZ_SFLIGHTTOP Module Pool SAPMZ_SFLIGHT

      *&

      &----


      PROGRAM SAPMZ_SFLIGHT.

      tables: sflight.

  • avatar image
    Former Member
    Jun 13, 2008 at 04:49 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 13, 2008 at 10:25 AM

    Hi

    Check this Site, Here You FInd Number Of Example On

    SIMPLE MODULE POOL PROGRAM

    http://www.saptechnical.com/Tutorials/ABAP/image/screen.htm

    Reward All Help full answers

    Regads

    Fareedas

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 08, 2010 at 06:29 AM

    Answered

    Add comment
    10|10000 characters needed characters exceeded