Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

module programming

Former Member
0 Likes
620

module programming-----

means

y do we use

whts is its navigation

where shall we execute

5 REPLIES 5
Read only

Former Member
0 Likes
595

module programming is one which is mostly used for custom transactions...U define screens and write appropriate code...Code is written in include programs.

In SE38 define the report name...then go to SE51 and define same name and create the screens...from here u need to navigate to se38 program and write ur code accordingly in the include programs...One if variables(TOP)...One is for PBO...One is for PAI...One if for actual code...

Message was edited by:

Ramesh Babu Chirumamilla

Read only

Former Member
0 Likes
595

Module Programming is to develop User Transactions which are customized and provide an UI for certain processes

On how to develop using module pool please check

https://forums.sdn.sap.com/click.jspa?searchID=278294&messageID=2468536

Read only

Former Member
0 Likes
595

MPP Action Events

When ever acction is performed on Screen raises PAI event and We can handle where action events related Code Functionality.

PBO ( Process Before Output )

This event is similer to Initialization of Selection-Screen.

This event used In mpp to Add Title Bar,

Menu Bar for the screen. Default Properties of the screen can be loaded.

This event is fired when Screen is Loading for the first Time, and when ever action is Perfomed on the screen.

When ever PAI is called , the event reloads the screen, hence PBO will be called automatically.

IF the select statement is used in PBO, see that statement is declared in a conditional statement. Else the statement is executed for number of times when ever we load the screen and action is performed.

Create program in SE38 type module pool and Activated

2. Go to SE51 give the program name and screen number .

example code:

1) Top include file.

data : okcode like sy-ucomm,

a type i.

2) PBO and PAI code.

MODULE STATUS_0101 OUTPUT.

if a = 0.

MESSAGE S000(ZMSGCLS).

a = 1.

endif.

ENDMODULE.

MODULE USER_COMMAND_0101 INPUT.

CASE OKCODE.

WHEN 'RAISE'.

WHEN 'EXIT'.

LEAVE PROGRAM.

ENDCASE.

ENDMODULE.

Read only

Former Member
0 Likes
595

Hi Shilpa,

simple and clear answer would be

any screen you see when you login in SAP, is itself a module pool screen.

say let take se38 screen, itselfis amodulepool.

You can specify where you want the display button, change button, create button.

when you click display butto , it will take you another screen.

So everything you see in SAp is itself a module pool.

Hope this should give a min idea of what module pool is.

Thanks