Application Development 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: 

HOW TO CREATE A SIMPLE MODULE POOL PROGRAM

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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.

0 Kudos

WHERE IS GUI STATUS IS LOCATED , I SEARCHED FOR IT BUT I DIDN'T FIND IT .

0 Kudos

Hi,

when u create the screen there u will find a module MODULE STATUS_<screenno>

when u create this module u will get

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

just uncomment this and create the PF-STATUS.

Revert back for further queries.

Regards,

Sravanthi

0 Kudos

sravanthi ,

Actually my intention is get the sflight database table fields in a screen, I did it in the 4.7 I was clear there but I am confused in ecc 6.0 send me step by step procedure if you don't mind.

thanks

prasad

0 Kudos

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.

Former Member

Former Member
0 Kudos

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

Former Member
0 Kudos

Answered