‎2008 Feb 19 6:50 AM
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.
‎2008 Feb 19 6:52 AM
Hi,
Have a look at these good links-
http://www.allsaplinks.com/dialog_programming.html
http://sap.mis.cmich.edu/sap-abap/abap09/
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://help.sap.com/saphelp_webas630/helpdata/en/9f/db9cdc35c111d1829f0000e829fbfe/content.htm
http://sap.mis.cmich.edu/abap-00/
http://www.allsaplinks.com/files/using_table_in_screen.pdf
http://help.sap.com/saphelp_46c/helpdata/en/08/bef2dadb5311d1ad10080009b0fb56/content.htm
http://www.sapgenie.com/links/abap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/c9/5472fc787f11d194c90000e8353423/frameset.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapgenie.com/abap/example_code.htm
http://help.sap.com/saphelp_47x200/helpdata/en/52/670ba2439b11d1896f0000e8322d00/frameset.htm
http://www.allsaplinks.com/dialog_programming.html
http://www.sapbrain.com/TUTORIALS/default.html
http://www.sappoint.com/abap/spmp.pdf
http://www.sap-img.com/abap.htm
http://sap.ittoolbox.com/code/archives.asp?i=10&t=450&a=t
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sapdevelopment.co.uk/dialog/dialoghome.htm
http://www.sappoint.com/faq/faqdiapr.pdf
http://www.allsaplinks.com/dialog_programming.html
Regards,
Omkar.
‎2008 Feb 19 6:59 AM
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
‎2008 Feb 19 7:01 AM
hi kiran,
http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
please use this link.
do reward points if helpful..
‎2008 Feb 19 7:01 AM
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
‎2008 Feb 19 7:18 AM
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.