Monday, April 8, 2013

SAP-ABAP-Modularization-Techniques-Interview-Questions

SAP ABAP Modularization Techniques, in ABAP/4 programming environment we use modularization techniques very frequently. It's a very good programming practice to use modularization techniques in our SAP ABAP applications. Modularization techniques provides better understandability, readability, and for better maintainability of our ABAP applications. We use subroutines, include programmes, and functions very often. Here we are going to provide real time interview questions on SAP ABAP Modularization Techniques. Refer this post to know more about this SAP Modularization. Click on read more to explore.



SAP-ABAP Modularization Techniques Real Time Interview Questions


SAP ABAP Modularization Techniques, in ABAP/4 programming environment we use modularization techniques very frequently. It's a very good programming practice to use modularization techniques in our SAP ABAP applications. Modularization techniques provides better understandability, readability, and for better maintainability of our ABAP applications. We use subroutines, include programmes, and functions very often. Here we are going to provide real time interview questions on SAP ABAP Modularization Techniques. Refer this post to know more about this SAP Modularization.



1. Can you name the different types of SAP ABAP/4 Modularization techniques.

Ø   Source code module

Ø   Subroutines

Ø  include programs

Ø  Macros

Ø   Functions



2. What are subroutines?

Ans. Subroutines are program modules, which can be called from other ABAP/4 programs or within the same program.


3. What are the types of Subroutines?

Ø   Internal Subroutines: The source code of the internal subroutines will be in the same ABAP/4 program as the calling procedure (internal call).

Ø   External Subroutines: The source code of the external subroutines will be in an ABAP/4 program other than the calling procedure.



4. A subroutine can contain nested form and endform blocks. (T/F)
     
    False.



5. Data can be passed between calling programs and the subroutines using parameters.



6. What are the different types of parameters? Formal Parameters: 

  Parameters, which are defined during the definition of subroutine with 
  the FORM statement.


  Actual Parameters: 

 Parameters which are specified during the call of a subroutine with the  
 PERFORM statement.


7. What are the different methods of passing data?

  • Calling by reference: 

     During a subroutine call, only the address of the actual parameter is transferred to the formal parameters. 

The formal parameter has no memory of its own, and we work with the field of the calling program within the subroutine.

If we change the formal parameter, the field contents in the calling program also changes.


•  Calling by value: 

    During a subroutine call, the formal parameters are created as copies of 
    the actual parameters. 

    The formal parameters have memory of their own. Changes to the 
    formal parameters have no effect on the actual parameters.


• Calling by value and result: 

   During a subroutine call, the formal parameters are created as copies of 
   the actual parameters. 

   The formal parameters have their own memory space. Changes to the 
   formal parameters are copied to the actual parameters at the end of the 
   subroutine.


8. A subroutine can be terminated unconditionally using EXIT. (T/F)

    True.


9. The method by which internal tables are passed is by Reference.



10. How can an internal table with Header line and one without header line be distinguished  when passed to a subroutine?

  
  Ans: 

Itab[] is used in the form and endform if the internal table is passed with a header line.


11. What should be declared explicitly in the corresponding ABAP/4 Statements to access internal tables without header lines & why?

Ans: 

Work Area. This is required as the Work Area is the interface for transferring data to and from the table.


12. What is the difference between the function module and a normal ABAP/4 subroutine?

Ans:   

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.


13. What is a function group?

Ans. 

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.



14. What is the disadvantage of a call by reference?

    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.


15.   What is an update task?

Ans. It is an SAP provided procedure for updating a database.







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

0 comments:

Post a Comment

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

Categories

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.