SlideShare a Scribd company logo
2
Most read
3
Most read
15
Most read
1
Module Pool Programming
2
Introduction
▪ It is also called as dialog programming.
▪ It is a pool of modules like screens, includes, transactions etc.
▪ A module pool is mainly a pool of screens.
▪ The type of module pool program is ‘M’.
▪ The difference between executable program and module pool program is - An
executable program runs independently, whereas a module pool program can not run
independently. A transaction code is required to run a module pool program.
3
Screen Types
▪ There are 4 types of screen.
1. Normal screen
2. Subscreen
3. Modal dialog box
4. Selection screen
4
Tabs(Parts) of Screen
▪ A screen has 3 parts.
1. Attributes - It provides the generic information like description, type of screen, package
etc. of that screen.
2. Element list - It provides the list of elements available on that screen.
3. Flow logic - It’s purpose is to write the logic.
5
Module Pool Events
▪ There are 4 module pool events.
1. Process before output(PBO)
2. Process after input(PAI)
3. Process on value request(POV)
4. Process on help request(POH)
6
Module Pool Events
1. Process before output - This event calls before displaying a particular screen.
2. Process after input - This event calls after performing some action on a particular
screen.
3. Process on value request - This event calls when we click F4 on a field of a screen.
4. Process on help request - This event calls when we click F1(technical information) on a
field of a screen.
7
Module Pool Events(Contd.)
Imp point : Process before output and process after input are the default events available in
the flow logic tab of a screen.
8
Screen Painter
▪ We can design the layout through screen painter.
▪ We can open the screen painter by clicking on the layout button of a screen.
▪ We can open the screen painter through transaction code SE51 also.
▪ We can design the various layout elements through screen painter like - text field,
input/output field , checkbox , push button , tabstrip with wizard , tablecontrol with
wizard , subscreen area , custom control etc.
9
Sub Screen
• It is a type of screen.
• Depends upon the requirement, we need to call the sub screen into normal screen.
• The various steps to call a sub screen into normal screen are as follows:
1. Create a sub screen area in the normal screen.
2. Call the sub screen in to sub screen area of normal screen.
10
Sub Screen (Contd.)
• Syntax to call subscreen into normal screen : CALL SUBSCREEN <sub> INCLUDING SY-
REPID '0101’.
• In the above syntax : CALL SUBSCREEN = keyword , <sub> = sub screen area name,
INCLUDING = keyword , SY-REPID - system variable for report id(report name) ,
0101 = sub screen number.
11
Modal Dialog Box
• It is also a type of screen.
• This screen appears in the form of a dialog box.
• Syntax : CALL SCREEN ‘0101’ STARTING AT 10 20 ENDING AT 50 60.
• In the above syntax : CALL SCREEN = keyword , 0101 = modal dialog box screen number,
STARTING AT = keyword , 10 20 - top left coordinate, ENDING AT = keyword , 50 60 -
bottom right coordinate.
12
Table Control With Wizard
• The purpose of table control is to display the output in the form of a table( rows and
columns).
• In table control with wizard , we need to perform a set of pre-defined steps.
• After performing the pre-defined steps, SAP automatically generates the code.
13
Tab Strip With Wizard
• The purpose of tab strip is to display the output in the form of tabs.
• In tab strip with wizard , we need to perform a set of pre-defined steps.
• After performing the pre-defined steps, SAP automatically generates the code.
• For every tab SAP generates a sub screen.
14
AT EXIT-COMMAND
• AT EXIT-COMMAND is used to leave the current screen without the automatic input
check take place.
• We need to take the function type of the button = ‘E’(exit).
• Syntax : MODULE <module name> AT EXIT-COMMAND.
• In the above syntax : MODULE = keyword , <module name> = user defined module
name , AT EXIT-COMMAND = keyword.
15
CHAIN ENDCHAIN
• The purpose of CHAIN ENDCHAIN is to validate the field inputs and the field inputs
remain enabled after error message.
• Syntax : CHAIN. FIELD: <field1, field2> MODULE <module name>. ENDCHAIN.
• In the above syntax : CHAIN = keyword , FIELD = keyword , <field1, field2> = validating
fields , MODULE = Keyword , module name = user defined module name, ENDCHAIN =
Keyword.
16
Changing the Screen Field Properties
• Depends upon the requirement, we can change the properties of screen fields.
• We can set the properties like invisible, required, input ,output etc. of screen fields.
• In the below example, we disable the screen field(LV_DATE) by setting the input
property to 0.
Screen Field Disable Example
17
Q & A
 What are the 4 parts of GUI status?
Answer : Menu bar, Function Keys, Title bar, Application toolbar.
 What is the transaction code to create transaction codes?
Answer : SE93
 What is the system variable for user command which captures the value of function
code?
Answer : SY-UCOMM.
18
Q & A
 What is the significance of leave to screen 0?
Answer : Go to the previous stacked screen.
 What is the difference between CALL SCREEN <screen no> and LEAVE TO SCREEN
<screen no>?
Answer : CALL SCREEN <screen no> calls the specified screen by adding the specified
screen to the stack, whereas LEAVE TO SCREEN <screen no> calls the specified
screen by replacing the last stacked screen.
19
Thank You

More Related Content

What's hot (20)

DOCX
Badis
Rajesh Kumar
 
PPT
Ab1011 module pool programming
Satheesh Kanna
 
PPTX
SAP Adobe forms
Jugul Crasta
 
PPTX
Object oriented approach to ALV Lists in ABAP
Noman Mohamed Hanif
 
PDF
05 internal tables
Brahmaiah Punati
 
PDF
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
PDF
Dialog programming ABAP
Jefferson Mutuva
 
PDF
Module-Pool-Tutorial.pdf
Suman817957
 
DOCX
Sap abap modularization interview questions
Pradipta Mohanty
 
PPTX
Sap User Exit for Functional Consultant
Ankit Sharma
 
PPT
Alv theory
Phani Kumar
 
DOCX
Edit idoc , reprocess and test idoc
lakshmi rajkumar
 
PPT
ABAP Event-driven Programming &Selection Screen
sapdocs. info
 
PDF
ABAP for Beginners - www.sapdocs.info
sapdocs. info
 
PPT
abap list viewer (alv)
Kranthi Kumar
 
PPT
ABAP Message, Debugging, File Transfer and Type Group
sapdocs. info
 
PDF
Table maintenance generator and its modifications
scribid.download
 
PPT
BATCH DATA COMMUNICATION
Kranthi Kumar
 
PDF
Ooabap notes with_programs
Kranthi Kumar
 
PPTX
Sap abap
SVRTechnologies
 
Badis
Rajesh Kumar
 
Ab1011 module pool programming
Satheesh Kanna
 
SAP Adobe forms
Jugul Crasta
 
Object oriented approach to ALV Lists in ABAP
Noman Mohamed Hanif
 
05 internal tables
Brahmaiah Punati
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
Dialog programming ABAP
Jefferson Mutuva
 
Module-Pool-Tutorial.pdf
Suman817957
 
Sap abap modularization interview questions
Pradipta Mohanty
 
Sap User Exit for Functional Consultant
Ankit Sharma
 
Alv theory
Phani Kumar
 
Edit idoc , reprocess and test idoc
lakshmi rajkumar
 
ABAP Event-driven Programming &Selection Screen
sapdocs. info
 
ABAP for Beginners - www.sapdocs.info
sapdocs. info
 
abap list viewer (alv)
Kranthi Kumar
 
ABAP Message, Debugging, File Transfer and Type Group
sapdocs. info
 
Table maintenance generator and its modifications
scribid.download
 
BATCH DATA COMMUNICATION
Kranthi Kumar
 
Ooabap notes with_programs
Kranthi Kumar
 
Sap abap
SVRTechnologies
 

Similar to SAP ABAp module Pool programming give by Rahul Mehta (20)

PPT
Dialog Programming Overview
sapdocs. info
 
PPT
08.abap dialog programming overview
Raj Rajesh
 
PPT
ABAP Dialog Programming Overview.ppt
GaneshP820675
 
DOC
Oracle forms 6_i__1_
shashi.vaichal
 
PDF
Unit III ARM Interface and ARM Programming
Dr. Pankaj Zope
 
PPT
User-Exits.ppt
GaneshP820675
 
PDF
[Advantech] WebOP designer Tutorial step by step
Ming-Hung Hseih
 
PDF
Meg bernal insight2014 4219
Peter Schouboe
 
DOCX
Change transport system in SAP
chinu141
 
PPT
Session2-J2ME development-environment
muthusvm
 
PPTX
Introduction to Microcontrollers
Venkata Sai Vamsi Penupothu
 
DOCX
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ransayo
 
PDF
Prodigy Control System Operation Manual
STACY DAVIS
 
PPTX
Calculator design with lcd using fpga
Hossam Hassan
 
DOC
Ecad final
Srinivas Sri
 
PDF
15EE51 - Microcontrollers Laboratory
Jabez Winston
 
DOCX
Kalyan 27 oct 2018
Naga Raju
 
DOCX
Debugger & Profiler in NetBeans
Huu Bang Le Phan
 
PPTX
Ip project visual mobile
Kendriya vidyalaya no.1 cantt shahjahanpur
 
DOCX
Basic standard calculator
UVSofts Technologies
 
Dialog Programming Overview
sapdocs. info
 
08.abap dialog programming overview
Raj Rajesh
 
ABAP Dialog Programming Overview.ppt
GaneshP820675
 
Oracle forms 6_i__1_
shashi.vaichal
 
Unit III ARM Interface and ARM Programming
Dr. Pankaj Zope
 
User-Exits.ppt
GaneshP820675
 
[Advantech] WebOP designer Tutorial step by step
Ming-Hung Hseih
 
Meg bernal insight2014 4219
Peter Schouboe
 
Change transport system in SAP
chinu141
 
Session2-J2ME development-environment
muthusvm
 
Introduction to Microcontrollers
Venkata Sai Vamsi Penupothu
 
ABC Consolidated Financial InfoABC Companys current financial inf.docx
ransayo
 
Prodigy Control System Operation Manual
STACY DAVIS
 
Calculator design with lcd using fpga
Hossam Hassan
 
Ecad final
Srinivas Sri
 
15EE51 - Microcontrollers Laboratory
Jabez Winston
 
Kalyan 27 oct 2018
Naga Raju
 
Debugger & Profiler in NetBeans
Huu Bang Le Phan
 
Basic standard calculator
UVSofts Technologies
 
Ad

Recently uploaded (20)

PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PDF
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PDF
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
PPTX
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
CEREBRAL PALSY: NURSING MANAGEMENT .pdf
PRADEEP ABOTHU
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Growth and development and milestones, factors
BHUVANESHWARI BADIGER
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Knee Extensor Mechanism Injuries - Orthopedic Radiologic Imaging
Sean M. Fox
 
How to Manage Large Scrollbar in Odoo 18 POS
Celine George
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Ad

SAP ABAp module Pool programming give by Rahul Mehta

  • 2. 2 Introduction ▪ It is also called as dialog programming. ▪ It is a pool of modules like screens, includes, transactions etc. ▪ A module pool is mainly a pool of screens. ▪ The type of module pool program is ‘M’. ▪ The difference between executable program and module pool program is - An executable program runs independently, whereas a module pool program can not run independently. A transaction code is required to run a module pool program.
  • 3. 3 Screen Types ▪ There are 4 types of screen. 1. Normal screen 2. Subscreen 3. Modal dialog box 4. Selection screen
  • 4. 4 Tabs(Parts) of Screen ▪ A screen has 3 parts. 1. Attributes - It provides the generic information like description, type of screen, package etc. of that screen. 2. Element list - It provides the list of elements available on that screen. 3. Flow logic - It’s purpose is to write the logic.
  • 5. 5 Module Pool Events ▪ There are 4 module pool events. 1. Process before output(PBO) 2. Process after input(PAI) 3. Process on value request(POV) 4. Process on help request(POH)
  • 6. 6 Module Pool Events 1. Process before output - This event calls before displaying a particular screen. 2. Process after input - This event calls after performing some action on a particular screen. 3. Process on value request - This event calls when we click F4 on a field of a screen. 4. Process on help request - This event calls when we click F1(technical information) on a field of a screen.
  • 7. 7 Module Pool Events(Contd.) Imp point : Process before output and process after input are the default events available in the flow logic tab of a screen.
  • 8. 8 Screen Painter ▪ We can design the layout through screen painter. ▪ We can open the screen painter by clicking on the layout button of a screen. ▪ We can open the screen painter through transaction code SE51 also. ▪ We can design the various layout elements through screen painter like - text field, input/output field , checkbox , push button , tabstrip with wizard , tablecontrol with wizard , subscreen area , custom control etc.
  • 9. 9 Sub Screen • It is a type of screen. • Depends upon the requirement, we need to call the sub screen into normal screen. • The various steps to call a sub screen into normal screen are as follows: 1. Create a sub screen area in the normal screen. 2. Call the sub screen in to sub screen area of normal screen.
  • 10. 10 Sub Screen (Contd.) • Syntax to call subscreen into normal screen : CALL SUBSCREEN <sub> INCLUDING SY- REPID '0101’. • In the above syntax : CALL SUBSCREEN = keyword , <sub> = sub screen area name, INCLUDING = keyword , SY-REPID - system variable for report id(report name) , 0101 = sub screen number.
  • 11. 11 Modal Dialog Box • It is also a type of screen. • This screen appears in the form of a dialog box. • Syntax : CALL SCREEN ‘0101’ STARTING AT 10 20 ENDING AT 50 60. • In the above syntax : CALL SCREEN = keyword , 0101 = modal dialog box screen number, STARTING AT = keyword , 10 20 - top left coordinate, ENDING AT = keyword , 50 60 - bottom right coordinate.
  • 12. 12 Table Control With Wizard • The purpose of table control is to display the output in the form of a table( rows and columns). • In table control with wizard , we need to perform a set of pre-defined steps. • After performing the pre-defined steps, SAP automatically generates the code.
  • 13. 13 Tab Strip With Wizard • The purpose of tab strip is to display the output in the form of tabs. • In tab strip with wizard , we need to perform a set of pre-defined steps. • After performing the pre-defined steps, SAP automatically generates the code. • For every tab SAP generates a sub screen.
  • 14. 14 AT EXIT-COMMAND • AT EXIT-COMMAND is used to leave the current screen without the automatic input check take place. • We need to take the function type of the button = ‘E’(exit). • Syntax : MODULE <module name> AT EXIT-COMMAND. • In the above syntax : MODULE = keyword , <module name> = user defined module name , AT EXIT-COMMAND = keyword.
  • 15. 15 CHAIN ENDCHAIN • The purpose of CHAIN ENDCHAIN is to validate the field inputs and the field inputs remain enabled after error message. • Syntax : CHAIN. FIELD: <field1, field2> MODULE <module name>. ENDCHAIN. • In the above syntax : CHAIN = keyword , FIELD = keyword , <field1, field2> = validating fields , MODULE = Keyword , module name = user defined module name, ENDCHAIN = Keyword.
  • 16. 16 Changing the Screen Field Properties • Depends upon the requirement, we can change the properties of screen fields. • We can set the properties like invisible, required, input ,output etc. of screen fields. • In the below example, we disable the screen field(LV_DATE) by setting the input property to 0. Screen Field Disable Example
  • 17. 17 Q & A  What are the 4 parts of GUI status? Answer : Menu bar, Function Keys, Title bar, Application toolbar.  What is the transaction code to create transaction codes? Answer : SE93  What is the system variable for user command which captures the value of function code? Answer : SY-UCOMM.
  • 18. 18 Q & A  What is the significance of leave to screen 0? Answer : Go to the previous stacked screen.  What is the difference between CALL SCREEN <screen no> and LEAVE TO SCREEN <screen no>? Answer : CALL SCREEN <screen no> calls the specified screen by adding the specified screen to the stack, whereas LEAVE TO SCREEN <screen no> calls the specified screen by replacing the last stacked screen.