Documente Academic
Documente Profesional
Documente Cultură
TECHSAP
Hello Visitors,The blog contents are now available in my new site: https://sapcodes.com/ .
MODULE POOL
SIMPLE PROGRAM ON MODULE POOL
Scenario : Here we would design a single screen(9000) with two i/p fields & one o/p field.
Upon entering the values in the i/p field, if the user clicks on the add button then the sum
will be displayed in the o/p field.
Step-1. Go to SE80. Choose Program And Give a Name ( zmp_test1 ) and press Enter.
Pages - Menu
Home
ABAP
ABAP-2
Web-Dynpro
FPM
WorkFlow
BASIS
Interview Ques
ABAP Short Ques
► 2017 (27)
► 2016 (57)
► 2015 (160)
► 2014 (175)
► 2013 (46)
▼ 2012 (14)
► June (1)
▼ May (7)
MODULE POOL
EXCEPTION HANDLING
OOABAP PROGRAMS
Step -3. Un check the check box and Click Yes button. FIELD SYMBOLS
ALV REPORTS
INTERACTIVE REPORTS
CLASSICAL REPORT PROGRAMS
► April (6)
Total Pageviews
1 2 9 3 2 0 3
Popular Posts
OO ALV WITH
CONTAINERS
1. OO ALV USING
Step-4. Select Module Pool From the Type and Click on Save button. DOCKING CONTAINER d...
MODULE POOL
SIMPLE PROGRAM ON
MODULE POOL Scenario :
...
http://freesapabap.blogspot.com/2012/05/module-pool.html 1/16
10/31/2018 TECHSAP : MODULE POOL
Step 1. Create a Module
Pool Program , declare ...
INTERACTIVE REPORTS
*****Simple Interactive Report *******
REPORT ZREP_0012 NO STANDARD
PAGE HEADING line-count 30(2). data :
it_spfli type table o...
http://freesapabap.blogspot.com/2012/05/module-pool.html 2/16
10/31/2018 TECHSAP : MODULE POOL
Step-10. Click on layout Button & the Screen Painter Window will appear .
http://freesapabap.blogspot.com/2012/05/module-pool.html 3/16
10/31/2018 TECHSAP : MODULE POOL
Step-11. Create two input fields , one push button & an output field & at last click on flow
logic button on the toolbar.
Step-12. Now uncomment the two modules in PBO & PAI . Double click on the module
name and create it in main program.
http://freesapabap.blogspot.com/2012/05/module-pool.html 4/16
10/31/2018 TECHSAP : MODULE POOL
ENDMODULE. " STATUS_9000 OUTPUT
Step-14. Uncomment the SET PF-STATUS 'XXXX' line and give any name(STATUS) &
double click on it to create it. From the popup click on yes .
Step-17. Now create a transaction code for the program. Right click on program name-
>create->transaction.
http://freesapabap.blogspot.com/2012/05/module-pool.html 5/16
10/31/2018 TECHSAP : MODULE POOL
Step-19. Give program name , screen number and click on the three check boxes and then
click on save button on the standard toolbar. Click on back button to come the program.
Step-20. Now open a new session and put the T-code of the program in the Command
field and press Enter.
http://freesapabap.blogspot.com/2012/05/module-pool.html 6/16
10/31/2018 TECHSAP : MODULE POOL
Step-21. Fill the two input field with some values and then press ADD button. Find the
Result.
http://freesapabap.blogspot.com/2012/05/module-pool.html 7/16
10/31/2018 TECHSAP : MODULE POOL
Run the program and if you give any value to the input field (n1) then only CHECK_N1
module will execute . press SHOW & BACK button many times to see the change. If it finds
any value in the input field (n1) then every time CHECK_N1 module will execute and it
will add up 10 to its value.
PROGRAM DEMONSTRATING (ON REQUEST)
data : N1 type i.
data : N2 type i.
data : ok_code type sy-ucomm.
http://freesapabap.blogspot.com/2012/05/module-pool.html 8/16
10/31/2018 TECHSAP : MODULE POOL
endmodule. " STATUS_9001 OUTPUT
MODULE USER_COMMAND_9000.
FLOW LOGIC OF SCREEN 9001
PROCESS BEFORE OUTPUT.
MODULE STATUS_9001.
*
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9001.
Run the program and if you give any value to the input field (n1) then only CHECK_N1
module will execute . press SHOW & BACK button many times to see the change.
PROGRAM DEMONSTRATING (ON CHAIN-INPUT)
DATA : N1 TYPE i.
DATA : N2 TYPE i.
DATA : N3 TYPE i.
DATA : res TYPE i.
DATA : ok_code TYPE sy-ucomm.
http://freesapabap.blogspot.com/2012/05/module-pool.html 9/16
10/31/2018 TECHSAP : MODULE POOL
ENDCHAIN.
MODULE user_command_9000.
Run the program and if you provide any value to either n1 or n2 or both then only
CHECK_TWO_NUMBER module will execute . press ADD & BACK button many times to see
the change.
PROGRAM DEMONSTRATING (ON CHAIN-REQUEST)
DATA : N1 TYPE i.
DATA : N2 TYPE i.
DATA : N3 TYPE i.
DATA : res TYPE i.
DATA : ok_code TYPE sy-ucomm.
http://freesapabap.blogspot.com/2012/05/module-pool.html 10/16
10/31/2018 TECHSAP : MODULE POOL
Here we have two screens 9000 and 9001. In the 9000 screen we have an required i/p
field & a single record is displayed on 9001 screen based on the i/p.
http://freesapabap.blogspot.com/2012/05/module-pool.html 11/16
10/31/2018 TECHSAP : MODULE POOL
CASE OK_CODE.
WHEN 'EXIT' OR 'CANCEL'.
LEAVE PROGRAM.
ENDCASE.
endmodule. " FORCE_EXIT INPUT
TO CREATE PF STATUS
STEP-1 : Double click on 'STATUS' to create pf status and click on yes button.
STEP-3: Click on the '+' button of the Function key & fill values 'BACK', 'EXIT' & 'CANCEL'.
http://freesapabap.blogspot.com/2012/05/module-pool.html 12/16
10/31/2018 TECHSAP : MODULE POOL
STEP-4: Double click on 'EXIT' & the following screen will appear. Click of the value help
of theFunction Type field and choose the first entry. 'E' type.
STEP-5 : Click yes to set 'E' for the EXIT and also set 'E' type also for 'CANCEL'
PROCESS AFTER INPUT.
MODULE force_exit AT EXIT-COMMAND.
MODULE user_command_9000.
http://freesapabap.blogspot.com/2012/05/module-pool.html 13/16
10/31/2018 TECHSAP : MODULE POOL
FLOW
LOGIC OF
SCREEN
9001
PROCESS BE
FORE OUTPU
T.
MODULE STATUS_9001.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_9001.
OUTPUT:
at 10:49:00
10 comments
Add a comment
Top comments
1 · Reply
1 · Reply
1 · Reply
http://thecreatingexperts.com/sap-abap-training-in-chennai/
1 · Reply
1 · Reply
1 · Reply
Post a Comment
http://freesapabap.blogspot.com/2012/05/module-pool.html 15/16
10/31/2018 TECHSAP : MODULE POOL
Comments system
Disqus Shortname
http://freesapabap.blogspot.com/2012/05/module-pool.html 16/16