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

module pool

Former Member
0 Likes
707

hi can any one please explain about module pool .

i am new to this.

how to start coding what are the neccesary steps to be followed.

please provide me step by step procedure.

please help me how to write a simple code in module pool.

thanks in advance.

5 REPLIES 5
Read only

Former Member
Read only

Former Member
0 Likes
683

module pool is a data entry program.

You can define your own screen and then update database accordingly.

basically it is a dynamic program called as dynpro

SAP Dynpro

A sap dynpro is nothing but a SAP screen that provides a forum for the user to interact with the SAP database. The dynpro forms the heart of any transaction, and in order to design one for a particular process, the process needs to be broken down into a sequence of dynpros.

The main components of a typical SAP custom transaction dynpro are

Screen Attributes

These describe the screen in detail. Common screen attributes are

Screen Attributes

Purpose

Program

Module pool program name associated with the screen

Screen number

4 digit unique number within a module pool program

Short Description

Purpose of the screen – one liner

Original Language

Maintenance language of the screen derived automatically from module pool maintenance language

Package

SAP release version that the screen belongs to

Last changed or Last generated

Date/time when screen was last changed/generated

Screen Type

Normal

Default setting – identifies the screen as normal screen

Modal Dialog Box

Special setting to display list in a dialog box

Subscreen

Identifies the screen as a subscreen

Selection screen

Identifies an auto-generated screen for accepting values from the user as criteria for database selections while running a report

Settings

Hold Data

Setting which remembers the data entered on the screen and displays it again automatically if the user calls it again

Switch off Run time Compression

Option that prevents the screen from getting compressed at run time. Advisable not to use this option

Hold Scroll Position

Option to specify whether the vertical/horizontal scroll position should be remembered. Generally used for large screens

Without application toolbar

Option that does not display the application toolbar that belongs to the current program. This option cannot be changed during run time

Other Attributes

Next Screen

Number of the next screen to be displayed. Can be changed dynamically through code

Cursor Position

Screen element that the cursor is placed on when the screen is displayed

Screen Group

4 character identifier for a group of related screens

Lines/Columns used

Size of the screen area currently used

Lines/Columns Maintained

Size of the screen starting from upper left corner. Maximum size is 200 rows X 255 columns

reward if helpful

kushagra

Read only

Former Member
0 Likes
683

hi kiran,

http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm

please use this link.

do reward points if helpful..

Read only

Former Member
0 Likes
683

Hi,

U need to go to SE80 then create the program. Automatically the top and form includes ll be generated.Then u need to craete screens and code in the PBO ( Process before input) and PAI ( Process after Input).

Thanks

Vasudha

Read only

Former Member
0 Likes
683

Go to se80 and give some program name, (in attributs select type as MODULE POOL) it creates all PAI n PBO modules automatically.

step 1: Rightclick on pgm name and select create -> screen

(give screen number).

Step 2: Give short desc and press layout button.

(it displays the GUI screen)

step 3: place two label box , text box(name it as io1, io2) and push button ( name it as print, exit).(give name for all the boxes.(dont forget to give function code for push button)

step 4: save and activate it.

step 5: double click on the screen number it shows both PAI and PBO modules. Double click on the PAI module and type sample code like this:

&----


*& Module USER_COMMAND_0100 INPUT

&----


  • text

----


DATA : IO1(33), IO2(33).

module USER_COMMAND_0100 input.

CASE SY-UCOMM.

WHEN 'PRINT'.

LEAVE TO LIST-PROCESSING.

WRITE 😕 IO1, IO2.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

endmodule. " USER_COMMAND_0100 INPUT

step6: create transaction code for it. right click on pgm name and select create->transaction.

(it is bcoz u cant execute module pool program directly)

step7: again right click on pgm name and select execut->direct processing to execute your program.

Hope it guides you.

Rewards pnts if useful

Regards,

K.Tharani.