‎2008 Mar 04 4:35 AM
‎2008 Mar 04 4:45 AM
Hi,
MODULE POOL PROGRAMMING:
-
This is also called as DIALOG PROGRAMMING.
User can make use of multiple screens in this type of programming.
These are type 'M' programs in SAP.
EVENTS IN DIALOG PROGRAMMING:
-
1. PROCESS BEFORE OUTPUT (PBO)
2. PROCESS AFTER INPUT (PAI)
3. PROCESS ON VALUE REQUEST (POVR)
4. PROCESS ON HELP REQUEST (POHR)
Navigations to create a simple MPP program:
-
SE80 -> Select Program from drop-down list -> Specify program name starting with SAPMZ or SAPMY -> Press Enter -> Click on Yes to create object -> Create Top Include File by clicking on Continue icon in pop-up screens -> Save under a package -> Assign a request number -> MPP program with specified name is created with Top include File.
To create screen, Right click on program name -> Select Create -> Screen -> Opens Screen Description page -> Enter short description for screen -> Select screen type as NORMAL -> Click on LAYOUT pushbutton from application toolbar -> Opens Screen Painter -> Drag and drop two input fields from toolbar -> Likewise, create two pushbuttons -> Double click on each component -> Opens Attributes box -> Specify attributes for each screen component -> For pushbutton, specify FCT code -> Save the screen -> Click on Flowlogic pushbutton from application toolbar -> Opens Flow logic editor to create event functionalities for screen components -> Decomment PAI module -> Double click on PAI module name -> Click on Yes to create PAI module object -> Opens PAI module -> Specify the following code within module-endmodule statements:
CASE SY-UCOMM.
WHEN 'DISPLAY'.
LEAVE TO LIST-PROCESSING.
WRITE 😕 IO1, IO2.
WHEN 'EXIT'.
LEAVE PROGRAM.
ENDCASE.
-> Save.
Now double click on 'Includes' Folder (TOP INCLUDE FILE) -> Declare variables for input fields as follows:
DATA : IO1(10), IO2(10).
Save -> Activate.
Now To create Transaction Code, right click on Main Program Name -> Create -> Transaction -> Opens an interface -> Enter Tcode name starting with Z or Y -> Enter short description -> Continue -> Opens interface -> Enter Main program name and Screen number to be called first -> Save under a package -> Assign a request number.
Activate all the objects of MPP program by right clicking on Main program Name -> Click on Activate -> Raises 'Objects Activated' message.
To execute the MPP program, specify Tcode name in the Command Prompt area -> Press Enter.
Regards,
Arunsri