Tuesday, August 5, 2014

Module Pool Programming Interview Questions and Answers

Welcome to SAP ABAP Interview Questions. Read a helpful article on SAP ABAP Module Pool Programming / Dialog Programming Real Time Interview Questions Part-1. 

This post consist of Dialog Programming Real Time Questions for the all levels of interviews on SAP-ABAP Programming. Dialog Programming is a special type of programming in SAP ABAP. Dialog programming (Module pool) is used to create custom SAP screens as per business requirement. Dialog programs are executed using T-codes. Click on read more to read the questions.

SAP ABAP Module Pool Programming Interview Questions

Dialog Programming is a special type of programming in SAP ABAP. Dialog programming (Module pool) is used to create custom SAP screens as per business requirement. Dialog programs are executed using T-codes.

1) What is a Transaction?

Ans: A transaction is dialog program that change data objects in a consistent way.

2) What are the requirements a dialog program must fulfill?

· A user friendly user interface.

· Format and consistency checks for the data entered by the user.

· Easy correction of input errors.

· Access to data by storing it in the data bases.

3) Why do I need to do dialog programming?

Ans: to have your own customized screens and processing

4) What does dialog programming consist of?

Ans: Screens with their corresponding processing code, Menu, module pool program.

5) What are the basic components of dialog program?

Screens (Dynpros)

ABAP/4 module Pool.

Transaction code.

6) What is dynpro? What are its components?

A dynpro (Dynamic Program) consists of a screen and its flow logic and controls exactly one dialog steps. The different components of the dynpro are:

Flow Logic: calls of the ABAP/4 modules for a screen.

Screen layout: Positions of the text, fields, and pushbuttons and so on for a screenScreen Attributes: Number of the screen, number of the subsequent screen, and others

Fields attributes: Definition of the attributes of the individual fields on a screen.

7) Difference between the normal report / program and Module pool program?

Ans: Normal report can be run straight away by executing it and usually has selection criteria –Attributes: 1 online program

Module pool program cannot be run straight away.

It first needs to display a screen – attributes: M module pool program

8) How can I identify which button is pressed?
Ans: “fctcode” attributes of the button.

9) What are PBO and PAI?
Ans: Process before output. Code that is executed prior to the display of a screen.

Process after input. Code that is executed after a button on the screen has been pressed.

10) What does PAI and Pbo contain by default?
Ans: PBO - MODULE STATUS_0100 - Key / button definitions

How do you handle the code behind the button that was pressed.

11) How many PBO and PAI modules are allowed for a screen?
Ans: one PBO and one PAI

12) If we do not have / give menu bar than what will menu bar have by default?
Ans: System , help

13) In the menu bar can you associate a function key to a button?
Ans: yes

14) Can we use WRITE statements in screen fields? If not how is data transferred from field data to screen fields?

No,. The system instead transfers data by comparing screen fields names with ABAP/4 variable names. If both names are the same, it transfers screen fields values to ABAP/4 programs fields and Vice Versa.This happens immediately after displaying the screen.

15) Can we use flow logic control key words in ABAP/4 and vice-versa?
The flow control of a dynpro consists of a few statements that syntactically resemble ABAP/4 statements .However, we cannot use flow control keywords in ABAP/4 and vice-versa.

16) What is GUI status? How to create /Edit GUI status?
A GUI status is a subset of the interface elements used for a certain screen.

The GUI status for a transaction may be composed of the following elements:

· Title bar.

· Menu bar.

· Application tool bar

· Push buttons.

To create and edit GUI status and GUI title, use the Menu Painter (SE 41).
17) How does the interaction between the Dynpro and the ABAP/4 Modules take place?
A transaction is a collection of screens and ABAP/4 routines, controlled and executed by a Dialog processor.

The Dialog processor processes screen after the screen, thereby triggering the appropriate ABAP/4 processing of each screen .

For each screen, the system executes the flow logic that contains the corresponding ABAP/4 processing.

The control passes from screen flow logic to ABAP/4 code and back.

18) How does the Dialog handle user requests?
When an action is performed, the system triggers the PROCESS AFTER INPUT event.The data passed includes field screen data entered by the user and a function code.

A function code is a technical name that has been allocated in a screen Painter or Menu Painter to a menu entry, a push button, the ENTER key or a function Key of a screen.

An internal work field (ok-code) in the PAI module evaluates the function code, and the appropriate action is taken.

19) What is to be defined for a push button fields in the screen attributes?
A function code has to be defined in the screen attributes for the push buttons in a screen.

20) How are the function codes handled in Flow Logic?
When the User selects a function in a transaction ,the system copies the function code into a specially designated system field called SY-UCOMM.

This field is Global in ABAP/4 Module Pool.The F-CODE can then be evaluated in the corresponding PAI module.

The function code is always passed in exactly the same way, regardless of whether it comes from a screen’s push button, a menu option, function key or other GUI element.

21) The Function code currently active is ascertained by what Variable?
SY-UCOMM Variable.

22) What are the “field” and “chain” Statements?
The FIELD and CHAIN flow logic statements let you Program your own checks.

FIELD and CHAIN tell the system which fields you are checking and Whether the System should Perform Checks in the flow logic or calls an ABAP/4 Module.

23) What is an “on input” statement?
The ABAP/4 module is called only if a field contains the Value other than the initial Value.

This initial Value is determined by the field’s data Type: blanks for character Fields.

Zeros for numerics. If the user changes the Fields Value back to its initial value, ON INPUT does not trigger a call.

24) What is an “on request” statement?
The ABAP/4 Module is called only if the user has entered the value in the field value since the last screen display .

The Value counts as changed Even if the User simply types in the value that was already there .In general ,the ON REQUEST condition is triggered through any Form of” MANUAL INPUT’.

25) What is an on”*-input” statement?
The ABAP/4 module is called if the user has entered the “*” in the first character of the field, and the field has the attribute *-entry in the screen Painter.

You can use this option in Exceptional cases where you want to check only fields with certain Kinds of Input.

"You found the information helpful and want to say thanks? Your donation is enough to inspire us to do more. Thanks a bunch!"


Post a Comment

Note: Only a member of this blog may post a comment.


ABAP (1) ABAP Interview Questions (112) ABAP Open SQL Statements (1) ABAP Syntax Rules (6) ABAP WORKBENCH (2) ABAP-Interview-Questions (52) ALE IDOC (6) ALE IDOC Interview Questions (6) ale-idoc (6) ALE-IDOC-Interview-Questions (19) ALV Interview Questions (5) ALV-Interview-Questions (22) BADI (2) BAPI (1) BAPI Interview Questions (1) BAPI-Interview-Questions (14) BDC (6) BDC Interview Questions (6) BDC-Interview-Questions (9) big data (2) big data interview questions (1) Classical Reports Interview Question (3) Classical-Reports-Interview-Questions (22) Conditional Statements (1) Cross Applications (3) Cross-Applications (14) Data Dictionary (22) Data Type Questins (1) Data types (1) Data-Dictionary (48) Data-Type-Questins (6) Dialog programming (5) Dialog Programming Interview Questions (4) Dialog-Programming (30) DOMAIN Interview Questions (1) Domain-Interview-Questions (8) Function Module (2) hadoop (2) hadoop interview questions (2) hdfs (1) IDoc Tutorials (6) Interactive Report Interview Questions (4) Interactive-Reports-Interview-Questions (22) Internal Tables (1) interview questions (1) Lock Object Interview Questions (1) Lock-Objects-Interview-Questions (10) Logical Database (1) Modularization Interview Questions (4) Modularization-Interview-Questions (25) Module Pool Programming (5) Module-Pool-Programming (39) modules in sap (1) Object Oriented ABAP (19) Object Oriented ABAP Interview Questions (15) object-oriented-abap (2) Object-Oriented-ABAP-Interview-Questions (34) OOABAP (9) Reports (14) Reports Interview Questions (9) Reports-Interview-Questions (19) RFC (1) RFC Interview Questions (1) RFC-Interview-Questions (14) RICEF (1) RICEF Objects (1) SAP (4) SAP ABAP (4) SAP ABAP Interview Questions (42) SAP ABAP Introduction (46) SAP ABAP Message Types (2) SAP BADI Interview Questions (2) SAP Basics (71) SAP Books (2) SAP Certification (1) SAP CONSULTANTS (5) SAP CRM (1) SAP ENHANCEMENTS (3) SAP EXITS (2) SAP EXITS ( SAP ENHANCEMENTS ) Interview Questions (1) SAP Free Books (1) SAP HR (2) SAP Lock Object (1) sap modules (2) SAP Open SQL Statements (1) SAP R/3 Architecture (4) SAP Search help (1) SAP Smartforms (1) SAP Smartforms Interview Questions (2) SAP Tables (5) SAP Tcodes (10) SAP Views (1) SAP Webdynpro ABAP (12) SAP Work Processors (2) SAP Workflow (3) SAP-BADI-Interview-Questions (11) SAP-Enhancements (39) SAP-Exits (39) SAP-Exits-Enhancements-Interview Questions (3) SAP-HANA (1) SAP-HANA-Interview-Questions (1) SAP-Smartforms-Interview-Questions (2) SAP-Workflow (3) Scripts (3) Scripts Interview Questions (2) Scripts-Interview-Questions (32) Search Help Interview Questions (1) Search-Help-Interview-Questions (9) Smartforms (1) Table Maintenance Generator (1) Table-Maintenance-Generator (4) Tables in SAP (2) Tables Interview Questions (3) Tables-Interview-Questions (3) Type Group Interview Questions (1) Type-Group-Interview-Questions (7) Variable Declaration (1) Views Interview Questions (1) Views-Interview-Questions (5) Webdynpro (12) what is big data (1)

Protected Blog

This blog is not affiliated to SAP AG |SAP is trademark of SAP AG |The information collected from various sources use information with your own risk.