InterviewSolution
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
| 51. |
What Is The Difference Between The Function Module And A Normal Abap/4 Subroutine? |
|
Answer» In contrast to normal subroutines FUNCTION modules have UNIQUELY defined interface. Declaring data as COMMON parts is not possible for function modules. Function modules are stored in a CENTRAL library. In contrast to normal subroutines function modules have uniquely defined interface. Declaring data as common parts is not possible for function modules. Function modules are stored in a central library. |
|
| 52. |
What Is A Function Group? |
|
Answer» A function group is a COLLECTION of logically related modules that share global data with each other. All the modules in the group are included in the same main PROGRAM. When an ABAP/4 program contains a CALL FUNCTION STATEMENT, the system LOADS the entire function group in with the program CODE at runtime. Every function module belongs to a function group. A function group is a collection of logically related modules that share global data with each other. All the modules in the group are included in the same main program. When an ABAP/4 program contains a CALL FUNCTION statement, the system loads the entire function group in with the program code at runtime. Every function module belongs to a function group. |
|
| 53. |
What Is The Disadvantage Of A Call By Reference? |
|
Answer» During a call by REFERENCE damage or loss of data is not restricted to the subroutine, but will instantly LEAD to CHANGES to the original data OBJECTS. During a call by reference damage or loss of data is not restricted to the subroutine, but will instantly lead to changes to the original data objects. |
|
| 54. |
What Is An Update Task? |
|
Answer» It is an SAP PROVIDED PROCEDURE for UPDATING a DATABASE. It is an SAP provided procedure for updating a database. |
|
| 55. |
What Happens If A Function Module Runs In An Update Task? |
|
Answer» The system PERFORMS the MODULE processing asynchronously. Instead of carrying out the call IMMEDIATELY, the system waits until the NEXT DATABASE update is triggered with the 'COMMIT WORK' command. The system performs the module processing asynchronously. Instead of carrying out the call immediately, the system waits until the next database update is triggered with the 'COMMIT WORK' command. |
|
| 56. |
What Is The Difference Between Internal Tables And Extract Datasets? |
|
Answer» • The lines of an internal table always have the same structure. By using extract datasets, you can handle groups of data with different structure and get statistical figures from the grouped data. • The lines of an internal table always have the same structure. By using extract datasets, you can handle groups of data with different structure and get statistical figures from the grouped data. |
|
| 57. |
Can A Filed Occur In Several Field Groups? |
|
Answer» YES. But it LEADS to UNNECESSARY DATA REDUNDANCY. Yes. But it leads to unnecessary data redundancy. |
|
| 58. |
What Is The Difference Between Field-group Header And Other Field Groups? |
|
Answer» The header field GROUP is a special field group for the sort CRITERIA. The system automatically PREFIXES any other field GROUPS with the header field group. The header field group is a special field group for the sort criteria. The system automatically prefixes any other field groups with the header field group. |
|
| 59. |
What Is The Use Of The Raising Exception? |
|
Answer» The RAISING EXCEPTION determines WHETHER the calling PROGRAM will handle the exception itself or leave the exception to the system. The raising exception determines whether the calling program will handle the exception itself or leave the exception to the system. |
|
| 60. |
How Would You Start The Printing Process From Within The Program While Creating A List? |
|
Answer» NEW-PAGE PRINT ON. NEW-PAGE PRINT ON. |
|
| 61. |
Can You Assign A Matchcode Object To A Parameter? If So How? |
|
Answer» YES. PARAMETERS <p>……..MATCHCODE OBJECT <obj>…… Yes. PARAMETERS <p>……..MATCHCODE OBJECT <obj>…… |
|
| 62. |
How Can Symbols Or R/3 Icons Be Output On The Screen? |
|
Answer» WRITE <SYMBOL-name>AS SYMBOL. WRITE <symbol-name>AS SYMBOL. |
|
| 63. |
What Are Data Clusters? |
|
Answer» You can group any COMPLEX internal data OBJECTS of an ABAP/4 program together in data clusters and STORE them temporarily in ABAP/4 memory or for longer periods in databases. You can store data clusters in special databases of the ABAP/4 Dictionary. These databases are known as ABAP/4 cluster databases and have a predefined STRUCTURE. Storing a data cluster is specific to ABAP/4. Although you can also access cluster databases using SQL statements, only ABAP/4 statements are able to decode the structure of the stored data cluster. You can group any complex internal data objects of an ABAP/4 program together in data clusters and store them temporarily in ABAP/4 memory or for longer periods in databases. You can store data clusters in special databases of the ABAP/4 Dictionary. These databases are known as ABAP/4 cluster databases and have a predefined structure. Storing a data cluster is specific to ABAP/4. Although you can also access cluster databases using SQL statements, only ABAP/4 statements are able to decode the structure of the stored data cluster. |
|
| 64. |
Name The Abap/4 Key Words, Which Are Used To Change The Contents Of Database Table? |
|
Answer» UPDATE or MODIFY. |
|
| 65. |
Name The Function Modules To Read Data From Presentation Server Into An Internal Table? |
|
Answer» UPLOAD and WS_UPLOAD. UPLOAD and WS_UPLOAD. |
|
| 66. |
When The Get Cursor Command Used In Interactive Lists? |
|
Answer» If the HIDDEN information is not sufficient to uniquely identify the selected line, the COMMAND GET CURSOR is used. The GET CURSOR command returns the NAME of the field at the cursor position in a field specified after the ADDITION field, and the value of the selected field in a field specified after value. If the hidden information is not sufficient to uniquely identify the selected line, the command GET CURSOR is used. The GET CURSOR command returns the name of the field at the cursor position in a field specified after the addition field, and the value of the selected field in a field specified after value. |
|
| 67. |
What Is Pbo And Pai Events? |
|
Answer» PBO- PROCESS Before Output-It DETERMINES the flow logic before displaying the screen. PBO- Process Before Output-It determines the flow logic before displaying the screen. |
|
| 68. |
What Is A Abap/4 Module Pool? |
|
Answer» Each dynpro refers to EXACTLY one ABAP/4 dialog program.Such a dialog program is ALSO called a module pool ,since it CONSISTS on INTERACTIVE modules. Each dynpro refers to exactly one ABAP/4 dialog program.Such a dialog program is also called a module pool ,since it consists on interactive modules. |
|
| 69. |
Can We Use Write Statements In Screen Fields?if Not How Is Data Transferred From Field Data To Screen Fields? |
|
Answer» We cannot write field data to the screen using the WRITE statement.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. We cannot write field data to the screen using the WRITE statement.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. |
|
| 70. |
How Does The Interection Between The Dynpro And The Abap/4 Modules Takes Place? |
|
Answer» A transaction is a collection OS screens and ABAP/4 routines, controlled and executed by a DIALOG processor. The Dilaog 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 controls PASSES from screen flow logic to ABAP/4 code and back. A transaction is a collection os screens and ABAP/4 routines, controlled and executed by a Dialog processor. The Dilaog 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 controls passes from screen flow logic to ABAP/4 code and back. |
|
| 71. |
How Are The Function Code Handles In Flow Logic? |
|
Answer» - When the User SELECTS a function in a transaction ,the system copies the function CODE into a specially designated work field called OK_CODE.This field is Global in ABAP/4 Module Pool.The OK_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 pushbutton,a menu option ,function key or other GUI element. - When the User selects a function in a transaction ,the system copies the function code into a specially designated work field called OK_CODE.This field is Global in ABAP/4 Module Pool.The OK_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 pushbutton,a menu option ,function key or other GUI element. |
|
| 72. |
What Controls The Screen Flow? |
|
Answer» The SET SCREEN and LEAVE SCREEN statements controls screen FLOW. The SET SCREEN and LEAVE SCREEN statements controls screen flow. |
|
| 73. |
The Function Code Currently Active Is Ascertained By What Variable ? |
|
Answer» By SY-UCOMM VARIABLE. By SY-UCOMM Variable. |
|
| 74. |
What Are The "field" And "chain" Statements? |
|
Answer» 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 call an ABAP/4 MODULE. 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 call an ABAP/4 Module. |
|
| 75. |
What Is An "on Input Filed" Statements? |
|
Answer» - ON INPUT - ON INPUT |
|
| 76. |
What Is An "on Request Field" Statement? |
|
Answer» - ON REQUEST: 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’. - ON REQUEST: 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’. |
|
| 77. |
What Is An On "*-input Filed" Statement? |
|
Answer» ON *-INPUT ON *-INPUT |
|
| 78. |
Which Function Type Has To Be Used For Using "at Exit-command" ? |
|
Answer» To Use AT EXIT – COMMAND ,We must assign a FUNCTION Type "E" to the relevant function in the MENU PAINTER OR SCREEN Painter . To Use AT EXIT – COMMAND ,We must assign a function Type "E" to the relevant function in the MENU Painter OR Screen Painter . |
|
| 79. |
What Are The Different Message Types Available In The Abap/4 ? |
|
Answer» - There are 5 types of message types AVAILABLE. - There are 5 types of message types available. |
|
| 80. |
What Is Difference Between Set Screen And Call Screen ? |
|
Answer» - With SET SCREEN the current screen simply specifies the next screen in the chain , control branches to this next screen as sonn as th e current screen has been processed .Return from next screen to current screen is not AUTOMATIC .It does not interrupt processing of the current screen.If we want to branch to the next screen without finishing the current one, use LEAVE SCREEN. - With CALL SCREEN , the current (calling) chain is suspended , and a next screen (screen chain) is called .The called can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0 .Sometime we might want to let an user call a POP up screen from the main application screen to let him enter secondary information.After they have completed their enteries, the users should be able to close the popup and return DIRECTLY to the place where they LEFT off in the main screen.Here comes CALL SCREEN into picture .This statement lets us insert such a sequence intp the current one. - With SET SCREEN the current screen simply specifies the next screen in the chain , control branches to this next screen as sonn as th e current screen has been processed .Return from next screen to current screen is not automatic .It does not interrupt processing of the current screen.If we want to branch to the next screen without finishing the current one, use LEAVE SCREEN. - With CALL SCREEN , the current (calling) chain is suspended , and a next screen (screen chain) is called .The called can then return to the suspended chain with the statement LEAVE SCREEN TO SCREEN 0 .Sometime we might want to let an user call a pop up screen from the main application screen to let him enter secondary information.After they have completed their enteries, the users should be able to close the popup and return directly to the place where they left off in the main screen.Here comes CALL SCREEN into picture .This statement lets us insert such a sequence intp the current one. |
|
| 81. |
Can We Specify The Next Screen Number With A Variable (*yes/no)? |
|
Answer» Yes. Yes. |
|
| 82. |
The Syntex Used To Call A Screen As Dialog Box (pop Up) Is? |
|
Answer» CALL SCREEN <screen number.>. CALL SCREEN <screen number.>. |
|
| 84. |
What Is Dialog Module? |
|
Answer» A DIALOG Module is a callable SEQUENCE of screens that does not BELONG to a particular transaction.Dialog modules have their module pools , and can be called by any transaction. A dialog Module is a callable sequence of screens that does not belong to a particular transaction.Dialog modules have their module pools , and can be called by any transaction. |
|
| 85. |
The Max Number Of Calling Modes Stacked At One Time Is? |
|
Answer» NINE. NINE. |
|
| 86. |
What Happens If Only One Of The Commands Set Screen And Leave Screen Is Used Without Using The Other? |
|
Answer» If we use SET SCREEN without LEAVE SCREEN, the program finishes PROCESSING for the current screen before branching to <scr no>. If we use LEAVE SCREEN without a SET SCREEN before it, the current screen PROCESS will be terminated and branch directly to the screen specified as the DEFAULT next-screen in the screen attributes. If we use SET SCREEN without LEAVE SCREEN, the program finishes processing for the current screen before branching to <scr no>. If we use LEAVE SCREEN without a SET SCREEN before it, the current screen process will be terminated and branch directly to the screen specified as the default next-screen in the screen attributes. |
|
| 87. |
What Is The Significance Of The Screen Number '0'? |
|
Answer» In "calling mode", the special screen NUMBER 0 (LEAVE TO SCREEN 0) causes the SYSTEM to JUMP back to the previous call level. That is, if you have called a screen SEQUENCE with CALL SCREEN leaving to screen 0 terminates the sequence and returns to the calling screen. If you have not called a screen sequence, LEAVE TO SCREEN 0 terminates the transaction. In "calling mode", the special screen number 0 (LEAVE TO SCREEN 0) causes the system to jump back to the previous call level. That is, if you have called a screen sequence with CALL SCREEN leaving to screen 0 terminates the sequence and returns to the calling screen. If you have not called a screen sequence, LEAVE TO SCREEN 0 terminates the transaction. |
|
| 88. |
What Does The 'suppress Dialog' Do? |
|
Answer» Suppressing of ENTIRE screens is possible with this COMMAND. This command ALLOWS us to perform screen processing "in the background". Suppresing screens is useful when we are branching to list-mode from a TRANSACTION dialog STEP. Suppressing of entire screens is possible with this command. This command allows us to perform screen processing "in the background". Suppresing screens is useful when we are branching to list-mode from a transaction dialog step. |
|
| 89. |
What Is The Significance Of The Memory Table 'screen'? |
|
Answer» At runtime, attributes for each SCREEN field are stored in the memory table called 'SCREEN'. We need not declare this table in our program. The SYSTEM MAINTAINS the table for US internally and updates it with EVERY screen change. At runtime, attributes for each screen field are stored in the memory table called 'SCREEN'. We need not declare this table in our program. The system maintains the table for us internally and updates it with every screen change. |
|
| 90. |
Why Grouping Of Fields Is Required? What Is The Max No Of Modification Groups For Each Field? |
|
Answer» If the same attribute NEED to be changed for SEVERAL fields at the same TIME these fields can be grouped together. We can specify up to four modification groups for each field. If the same attribute need to be changed for several fields at the same time these fields can be grouped together. We can specify up to four modification groups for each field. |
|
| 91. |
What Are The Attributes Of A Field That Can Be Activated Or Deactivated During Runtime? |
|
Answer» Input, OUTPUT, MANDATORY, Active, HIGHLIGHTED, Invisible. Input, Output, Mandatory, Active, Highlighted, Invisible. |
|
| 92. |
What Is A Screen Group? How It Is Useful? |
|
Answer» SCREEN group is a field in the Screen Attributes of a screen. Here we can define a string of up to four characters which is AVAILABLE at the screen RUNTIME in the SY-DNGR field. Rather than maintaining field SELECTION separately for each screen of a program, we can combine logically associated screens together in a screen group. Screen group is a field in the Screen Attributes of a screen. Here we can define a string of up to four characters which is available at the screen runtime in the SY-DNGR field. Rather than maintaining field selection separately for each screen of a program, we can combine logically associated screens together in a screen group. |
|
| 93. |
What Are The Restrictions On Subscreens? |
|
Answer» SUBSCREENS have several restrictions. They cannot: Subscreens have several restrictions. They cannot: |
|
| 94. |
How Can We Use / Display Table In A Screen? |
|
Answer» ABAP/4 OFFERS two mechanisms for displaying and USING table DATA in a screen. These mechanisms are TABLE CONTROLS and STEP LOOPS. ABAP/4 offers two mechanisms for displaying and using table data in a screen. These mechanisms are TABLE CONTROLS and STEP LOOPS. |
|
| 95. |
What Are The Differences Between Table Controls And Step Loops? |
|
Answer» TABLE CONTROLS are simply enhanced STEP LOOPS that display with the look and feel of a table widget in a desktop application. But from a programming standpoint, TABLE CONTROLS and STEP LOOPS are almost exactly the same. One MAJOR difference between STEP LOOPS and TABLE CONTROLS is in STEP LOOPS their table rows can span more than one time on the screen. By contrast the rows in a TABLE CONTROLS are ALWAYS single lines, but can be very long. (Table control rows are scrollable). The structure of table control is DIFFERENT from step loops. A step loop, as a screen object, is simply a series of FIELD rows that APPEAR as a repeating block. A table control, as a screen object consists of:
TABLE CONTROLS are simply enhanced STEP LOOPS that display with the look and feel of a table widget in a desktop application. But from a programming standpoint, TABLE CONTROLS and STEP LOOPS are almost exactly the same. One major difference between STEP LOOPS and TABLE CONTROLS is in STEP LOOPS their table rows can span more than one time on the screen. By contrast the rows in a TABLE CONTROLS are always single lines, but can be very long. (Table control rows are scrollable). The structure of table control is different from step loops. A step loop, as a screen object, is simply a series of field rows that appear as a repeating block. A table control, as a screen object consists of: |
|
| 96. |
What Are The Dynapro Keywords? |
|
Answer» FIELD, MODULE, SELECT, VALUES and CHAIN are the dynapro KEYWORDS. FIELD, MODULE, SELECT, VALUES and CHAIN are the dynapro keywords. |
|
| 97. |
Why Do We Need To Code A Loop Statement In Both The Pbo And Pai Events For Each Table In The Screen? |
|
Answer» We NEED to code a LOOP STATEMENT in both PBO and PAI events for each table in the screen. This is because the LOOP statement CAUSES the screen fields to be copied back and forth between the ABAP/4 program and the screen FIELD. For this reason, at least an empty LOOP….ENDLOOP must be there. We need to code a LOOP statement in both PBO and PAI events for each table in the screen. This is because the LOOP statement causes the screen fields to be copied back and forth between the ABAP/4 program and the screen field. For this reason, at least an empty LOOP….ENDLOOP must be there. |
|
| 98. |
How Can We Declare A Table Control In The Abap/4 Program? |
|
Answer» Using the syntax CONTROLS <table CONTROL name> type tableview using SCREEN <SCR no>. Using the syntax controls <table control name> type tableview using screen <scr no>. |
|
| 99. |
Differentiate Between Static And Dynamic Step Loops? |
|
Answer» Step loops fall into TWO classes: STATIC and Dynamic. Static step loops have a fixed size that cannot be changed at RUNTIME. Dynamic step loops are VARIABLE in size. If the user re-sizes the window the system AUTOMATICALLY increases or decreases the number of step loop blocks displayed. In any given screen you can define any number of static step loops but only a single dynamic one. Step loops fall into two classes: Static and Dynamic. Static step loops have a fixed size that cannot be changed at runtime. Dynamic step loops are variable in size. If the user re-sizes the window the system automatically increases or decreases the number of step loop blocks displayed. In any given screen you can define any number of static step loops but only a single dynamic one. |
|
| 100. |
What Are The Two Ways Of Producing A List Within A Transaction? |
|
Answer» By SUBMITTING a SEPARATE REPORT. By submitting a separate report. |
|