31
Module Pool or Dialog Pool or Transaction Pool 1. It is the Collection of Screens or Applications 2. It is used to create the transaction 3. Transaction is a collection of Sequential Screens which acts as input and Displays output. 4. It is also called as Dialog pool programming since we have interaction between screens.

ABAP - Module Pool

Embed Size (px)

DESCRIPTION

ABAP - Module Pool

Citation preview

Slide 1

Module Pool or Dialog Pool or Transaction PoolIt is the Collection of Screens or ApplicationsIt is used to create the transactionTransaction is a collection of Sequential Screens which acts as input and Displays output.It is also called as Dialog pool programming since we have interaction between screens.Steps to work with Module Pool Programming

Create the Table if required using SE11Create the Program of type Module pool using SE38.Create the Required Screen along with the Fields using SE51 (Screen Painter)Create the Transaction Code using SE93 to attach the Program Creation of Table using SE11Go to SE11Select the Radio button Database TableProvide the Name (zemp_modpl)Click on Create

Provide the Delivery class AProvide the Table view maintenance as Display maintenance allowed with RestrictionsSelect the Field TabProvide the Field names in the Field ColumnProvide the Data Elements in the Data Element Column. Use the existing data Element if having other wise create the Data element.

Click on the technical Setting ButtonProvide the Data Class APPL0Provide the Size Category 1Click on SAVE Click on F3

Click on EXTRAS Enhancement CategorySelect the Radio Button - Can be Enhanced ( Character Type or Numeric)Click on CopyClick on SAVE Click on CheckClick on ACTIVATE

go to utilities Table Content Displayhere we cannot able to insert the data, only we can display the data, because we have created in the table maintenance tab maintenance allowed with restrictions thats why only Display Option is Enabled.Now the Table is Created 2.Steps to Create the Program of Type Module pool

go to SE38Provide the Program Name Click on Create

Provide the DescriptionSelect the type as Module Pool Click on Save

Click on Local Object

Now the Program is CreateClick on Save Click on CheckClick on Activate3.Steps to Create the Screen Painter using SE51go to SE51Provide the Program name which is Created in the SE38 (ZEMP_MODULEPOOL1)Provide the Screen number 0089Click on Create

Provide the Short DescriptionClick on SAVEClick on CheckClick on ActivateClick on LAYOUT Button

After click on Layout button the Screen painter window is opened below screen Shows the Screen painter is Processing.Screen painter window is openedclick on go to Secondary window Dictionary or Program fields

Another pop up will occur Provide the Table / field name which was created in the SE11Click on the Get From Dictionary button, the fields are addedClick on CopyDrag and drop the fields to the screen painterSelect the push button and drag and drop to screen the button is created.

Double click on the Push button the properties window will be displayed at the right sideProvide the Required fields like Name , Text and FunCodeClick on SAVEClick on Flow Logic buttonClick on SAVE Click on CheckClick on ActivateRemove the Comment of the Process After Input.Double click on the Module USER_COMMAND_0089.

It will open window asking to create the Object Click on Yes Another window will prompt asking to inlcude the programSelect the main Program Click on Enter

Now this Screen Painter Program is called to the Program which was created using SE38 as type Module Pool.

Now write the Logic In the ProgramClick on SaveClick on CheckClick on ActivateHere we cannot Execute the Program because it is not a Report ProgramFor this we have to Create a T- Code for the Program4.Steps to Create T- Code using SE93 go to T- code SE93Provide the Transaction Code nameClick on Create

Provide the short text Select the 1st Radio button Program and ScreenClick on Enter

Provide the Program name Provide the Screen NumberEnable GUI Support Check boxesClick on SaveClick on Check

To Test the Module Pool Programs

Go to the Transaction Code ZEMP_MP1Provide the Data in the Required Fields and Click on Insert Button the data is stored in the Database table

To Test the Data is Stored in the Database Tablego to T- code SE11Provide the database table nameClick on Change

Click on the Contents button

Click on the F8 Now we can see the Data in the data base table which was inserted using the Module Pool Program.