6 Columns with Active Background
6 Columns with Active Background
Active List Item Background

24MPP2208 – Screen Elements and Steps to create it in MPP

Screen elements are crucial for creating interactive and user-friendly interfaces in SAP applications. They enable users to input data, trigger processes, and view results effectively. Proper use of these elements ensures a smooth and efficient user experience.

Types of Screen Elements:

  1.  Text Fields (I/O Fields):
    • Aim: Show or input data.
    • Examples: Material ID, Customer Name, Dates.
  2. Checkboxes:
    • Aim: Binary input (check/uncheck).
    • Example: “Include Archived Data” checkbox.
  3. Radio Buttons:
    • Aim: Choose one option from a group.
    • Example: Gender selection (Male, Female).
  4. Buttons (Pushbuttons):
    • Aim: Initiate actions.
    • Example: Save, Cancel, Back buttons.
  5. Labels (Text):
    • Aim: Provide descriptive text or instructions.
    • Example: “Enter Material Number:”
  6. Table Controls:
    • Aim: Display and manage tabular data.
    • Example: List of sales orders, line items in an order.
  7. Dropdown Lists (Combo Boxes):
    • Aim: Select an option from a predefined list.
    • Example: Selection of country from a list.
  8. Frames and Groups:
    • Aim: Organize screen elements into logical sections.
    • Example: Frame around input fields related to customer information.
  9. Tab Strips:
    • Aim: Organize content into tabs.
    • Example: Tabs for “General Data,” “Address Data,” “Payment Data.”
  10. Subscreens:
    • Aim: Embed another screen within the current screen.
    • Example: Displaying different sections of a form as subscreens.
  11. Custom Controls:
    • Aim: Embed custom SAP controls like ALV grids, HTML viewers, or graphics.
    • Example: ALV Grid control for displaying lists with advanced features.

 

  • Steps to Create a Screen Element
  1. Start the Screen Painter:
    • Open the SAP GUI and enter transaction code SE51 to start the Screen Painter.
  2. Create a New Screen:
    • Enter the program name (it should be an executable program, module pool, or function group).
    • Enter a unique screen number (e.g., 100) and click on “Create”.
  3. Define Screen Attributes:
    • Fill in the screen attributes such as short description, screen type (normal, subscreen, etc.), and other relevant details.
  4. Design the Screen Layout:
    • Use the layout editor to place various screen elements like text fields, input fields, buttons, checkboxes, etc.
    • You can drag and drop elements from the element palette onto the screen.
  5. Set Element Attributes:
    • Select each element and define its attributes (e.g., field name, length, text, etc.).
    • For example, for an input field, you might set the field name to MATNR for material number.
  6. Write PBO and PAI Modules:
    • PBO (Process Before Output): This module is executed before the screen is displayed. Use it to set default values or prepare data.
    • PAI (Process After Input): This module is executed after user input. Use it to handle user actions like button clicks or data validation.
  7. Activate and Test the Screen:
    • Save and activate the screen.
    • Create a transaction code using transaction SE93 to test the screen. Enter the program name and screen number in the transaction code settings.

 

  • Example: Creating a Simple Input Screen
  1. Start Screen Painter (SE51).
  2. Create Screen: Program name ZMPP_PROGRAM, screen number 100.
  3. Define Attributes: Short description “Material Input Screen”, screen type “Normal”.
  4. Design Layout:
    • Add an input field for material number (MATNR).
    • Add a pushbutton labeled “Submit”.
  5. Set Attributes:
    • Input field: Field name MATNR, length 18.
    • Pushbutton: Function code SUBMIT.
  6. Write PBO/PAI Modules:
    • PBO: Set default values if needed.
    • PAI: Handle the SUBMIT button click to process the material number.
  7. Activate and Test: Save, activate, and create a transaction code to test.

Author : Aniket Pawar, 9373518385                               

24MPP2208 – Screen Elements and Steps to create it in MPP

Screen elements are crucial for creating interactive and user-friendly interfaces in SAP applications. They enable users to input data, trigger processes, and view results effectively. Proper use of these elements ensures a smooth and efficient user experience.

Types of Screen Elements:

  1.  Text Fields (I/O Fields):
    • Aim: Show or input data.
    • Examples: Material ID, Customer Name, Dates.
  2. Checkboxes:
    • Aim: Binary input (check/uncheck).
    • Example: “Include Archived Data” checkbox.
  3. Radio Buttons:
    • Aim: Choose one option from a group.
    • Example: Gender selection (Male, Female).
  4. Buttons (Pushbuttons):
    • Aim: Initiate actions.
    • Example: Save, Cancel, Back buttons.
  5. Labels (Text):
    • Aim: Provide descriptive text or instructions.
    • Example: “Enter Material Number:”
  6. Table Controls:
    • Aim: Display and manage tabular data.
    • Example: List of sales orders, line items in an order.
  7. Dropdown Lists (Combo Boxes):
    • Aim: Select an option from a predefined list.
    • Example: Selection of country from a list.
  8. Frames and Groups:
    • Aim: Organize screen elements into logical sections.
    • Example: Frame around input fields related to customer information.
  9. Tab Strips:
    • Aim: Organize content into tabs.
    • Example: Tabs for “General Data,” “Address Data,” “Payment Data.”
  10. Subscreens:
    • Aim: Embed another screen within the current screen.
    • Example: Displaying different sections of a form as subscreens.
  11. Custom Controls:
    • Aim: Embed custom SAP controls like ALV grids, HTML viewers, or graphics.
    • Example: ALV Grid control for displaying lists with advanced features.

 

  • Steps to Create a Screen Element
  1. Start the Screen Painter:
    • Open the SAP GUI and enter transaction code SE51 to start the Screen Painter.
  2. Create a New Screen:
    • Enter the program name (it should be an executable program, module pool, or function group).
    • Enter a unique screen number (e.g., 100) and click on “Create”.
  3. Define Screen Attributes:
    • Fill in the screen attributes such as short description, screen type (normal, subscreen, etc.), and other relevant details.
  4. Design the Screen Layout:
    • Use the layout editor to place various screen elements like text fields, input fields, buttons, checkboxes, etc.
    • You can drag and drop elements from the element palette onto the screen.
  5. Set Element Attributes:
    • Select each element and define its attributes (e.g., field name, length, text, etc.).
    • For example, for an input field, you might set the field name to MATNR for material number.
  6. Write PBO and PAI Modules:
    • PBO (Process Before Output): This module is executed before the screen is displayed. Use it to set default values or prepare data.
    • PAI (Process After Input): This module is executed after user input. Use it to handle user actions like button clicks or data validation.
  7. Activate and Test the Screen:
    • Save and activate the screen.
    • Create a transaction code using transaction SE93 to test the screen. Enter the program name and screen number in the transaction code settings.

 

  • Example: Creating a Simple Input Screen
  1. Start Screen Painter (SE51).
  2. Create Screen: Program name ZMPP_PROGRAM, screen number 100.
  3. Define Attributes: Short description “Material Input Screen”, screen type “Normal”.
  4. Design Layout:
    • Add an input field for material number (MATNR).
    • Add a pushbutton labeled “Submit”.
  5. Set Attributes:
    • Input field: Field name MATNR, length 18.
    • Pushbutton: Function code SUBMIT.
  6. Write PBO/PAI Modules:
    • PBO: Set default values if needed.
    • PAI: Handle the SUBMIT button click to process the material number.
  7. Activate and Test: Save, activate, and create a transaction code to test.

Author : Aniket Pawar, 9373518385