‎2008 Apr 29 3:08 PM
Hello ,
I have one requiremnt using module pool .
Please help with some step by step example .
Thanks ,
Rahul
‎2008 Apr 29 3:14 PM
Hi Rahul,
Refer below link for Step by Step Tutorial:
http://abaplovers.blogspot.com/2008/03/sap-abap-tutorial-module-pool.html
http://abaplovers.blogspot.com/2008/03/sap-abap-module-pool-programming.html
http://wiki.ittoolbox.com/index.php/What_is_module_pool_program_in_abap%3F
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
Reward if Helpful,
Regards,
Sunil
‎2008 Apr 29 3:14 PM
Hi Rahul,
Refer below link for Step by Step Tutorial:
http://abaplovers.blogspot.com/2008/03/sap-abap-tutorial-module-pool.html
http://abaplovers.blogspot.com/2008/03/sap-abap-module-pool-programming.html
http://wiki.ittoolbox.com/index.php/What_is_module_pool_program_in_abap%3F
http://saplab.blogspot.com/2007/10/sample-abap-program-for-module-pool_18.html
Reward if Helpful,
Regards,
Sunil
‎2008 Apr 29 3:19 PM
‎2008 Apr 29 3:20 PM
Hi Rahul,
Initially go to tcode SE51.
enter the screen no and description.
Go to layout .
Design layout.
Go to form painter
Drag and drap on the layout.
Now comes events.
PBO
PAI
In PAI u should indicate what should after the user action on the layout. sy-ucomm. function key.
In SE38 u need to initialize tables.
PBO ( Process before output ).
regards.
Nagaraju Tankala
‎2008 Apr 29 3:23 PM
Hi,
To create a Module pool, you need:
1 - Create screen to this MP;
2 - Define the field and the structure of this screen;
3 - Create PBO modules to control Screen inputs and outputs
fields.
4 - Create one or more title gui;
5 - Create a Status GUI
6 - Define PAI modules and user command module, to use the buttons of status gui;
7 - Create a transaction to the MP;
This a step by step to a simple MP.
After this you can increase with other features
regards,
Fernando
‎2008 Apr 29 3:58 PM
Hi Rahul,
First make a design flow of screens and how the user will navigate. E.g which is the first screen, second screen etc
read help of dialog programming - the two most important ones - PAI and PBO and the help should give you enough inputs on how to start.
you can do all the development using SE80 - you can create screens etc from here.
For any given screen this is general flow:
you need to create screen elements (text boxes, tables or any other UI elements) - attach them to data fields - you can also set attributes for UI elements and whole lot of other things
Screen first display - PBO - you can write your modules here to pre poulate some of the data so that user
sees it when screen displays for the first time.
Once screen is displayed user can enter data or will trigger some events (click of a button etc) - once an event is triggered the control comes to PAI - here you will get all the data on the screen - you can do validations and/or business logic here
Once this part is done you need to decide whether same screen is to be displayed or should user be routed to a different screen...either ways its again PBO of the same screen or PBO of the next screen that will be called.
so its important to design how the navigation flows before you start developing...
Hope this will help u to get started. You will find tons of posts in SDN - just need to browse.