Showing posts with label ABAP. Show all posts
Showing posts with label ABAP. Show all posts

Steps to copy or rename existing programs in SAP

Copy an existing program in SAP


To Copy an existing program in SAP, follow the below steps.

1. Go to SE38
2. Enter the program that you need to copy.
3. Press the copy button in the toolbar or press CTRL+F5.

Screen shot to explain copying in ABAP editor


In the popup screen, enter the target program name. This copies the source program to target program.

Pop up to name the target program for copy in ABAP Editor
Once done, you get an another popup screen for the elements to be copied. Select the elements according to your requirement that is shown in the below screen shot.

Press Copy and the source program is copied to the target program with the program elements you selected.


Renaming an existing program 


To Rename an existing program in SAP, follow the below steps.

1. Go to SE38
2. Enter the program that you need to rename.
3. Press the rename button in the toolbar or press CTRL+F6.


It is same as explained above for the copying.


Here all the program elements are transferred to the target program.
Includes are not renamed but you could select it to rename the includes in the program.



For more Tutorials, visit ABAP Tutorials, Tips & Tricks and Certification Questions

Best Practices in ABAP Programming - SELECT Query



Tips# 1:

Always specify your conditions in the Where-clause instead of
checking them yourself with check-statements.
The database system can then use an index (if possible) and the
network load is considerably less.


Example:

Don'ts 

Select Query with CHECK statement will reduce the performance of the query.

SELECT * FROM SBOOK INTO SBOOK_WA.
  CHECK: SBOOK_WA-CARRID = 'LH' AND
         SBOOK_WA-CONNID = '0400'.
ENDSELECT.

Do's

Use WHERE condition Instead.

SELECT * FROM SBOOK INTO SBOOK_WA
  WHERE CARRID = 'LH' AND
        CONNID = '0400'.

ENDSELECT.


Tips# 2:

If you are interested if there exists at least one row of a database  table or view with a certain condition, use the Select ... Up To 1 Rows statement instead of a Select-Endselect-loop with an Exit.

If all primary key fields are supplied in the Where condition you can even use Select Single.
Select Single requires one communication with the database system, whereas Select-Endselect needs two.

Example:

Don'ts

Select Query loop with EXIT statement is not good practice.

SELECT * FROM SBOOK INTO SBOOK_WA
    WHERE CARRID = 'LH'.
  EXIT.
ENDSELECT.

Do's

Use Upto 1 row instead of EXIT statement or use SELECT SINGLE statement to increase the performance.

SELECT * FROM SBOOK INTO SBOOK_WA
  UP TO 1 ROWS
  WHERE CARRID = 'LH'.

ENDSELECT.


SELECT SINGLE * FROM SBOOK INTO SBOOK_WA
  WHERE CARRID = 'LH'.

ENDSELECT.


Tips# 3

If you want to find the maximum, minimum, sum and average value or the count of a database column, use a select list with aggregate functions instead of computing the aggregates yourself.

Network load is considerably less.


Don'ts  

Calculation of a field is not a good practice to be used inside a SELECT loop Statement.

DATA: MAX_MSGNR type t100-msgnr.
MAX_MSGNR = '000'.
SELECT * FROM T100 INTO T100_WA
  WHERE SPRSL = 'D' AND
        ARBGB = '00'.
  CHECK: T100_WA-MSGNR > MAX_MSGNR.
  MAX_MSGNR = T100_WA-MSGNR.
ENDSELECT.


Do's

Use aggregate function and reduce the complexity of SELECT loop.

DATA: MAX_MSGNR type t100-msgnr.
SELECT MAX( MSGNR ) FROM T100 INTO max_msgnr
  WHERE SPRSL = 'D' AND

        ARBGB = '00'.

Tips# 4

Use a select list or a view instead of Select * , if you are only interested in specific columns of the table. Network load is considerably less. 

Example

Don'ts

Using * to select all the fields instead of specific fields reduces the performance during Runtime.

SELECT * FROM DD01L INTO DD01L_WA
  WHERE DOMNAME LIKE 'CHAR%'
        AND AS4LOCAL = 'A'.
ENDSELECT.  
Do's

Select only the specific field needed for processing the program.

SELECT DOMNAME FROM DD01L
  INTO DD01L_WA-DOMNAME
  WHERE DOMNAME LIKE 'CHAR%'
        AND AS4LOCAL = 'A'.
ENDSELECT.


Tips# 5:

Whenever possible, use column updates instead of single-row updates to update your database tables.
Network load is considerably less.


Example

Don'ts


SELECT * FROM SFLIGHT INTO SFLIGHT_WA.
  SFLIGHT_WA-SEATSOCC =
    SFLIGHT_WA-SEATSOCC - 1.
  UPDATE SFLIGHT FROM SFLIGHT_WA.

ENDSELECT.

Do's

UPDATE SFLIGHT

       SET SEATSOCC = SEATSOCC - 1.


How to Enable the Microsoft word text editor in SAP Script and SAP SMARTFORMS?

Enabling MS Word Editor for SAP Script and SMARTFORMS?


Execute the program RSCPSETEDITOR.



You will see the selection screen with the option to enable the editor.





Check the checkbox as per your requirement for SAP Script or SAP SMARTFORMS.


You can also select ‘Multi-Character Format Support’ if you want to use the hided text in the multi-character formats during ITF to RTF Conversion.



How to enable and disable a parameter in the selection screen?


Enabling and disabling Parameters based on radio button selection - SAP ABAP

Initialize a Radio Button for enabling the parameter and a radio button to disable the parameter.

A Parameter field in the selection screen.


The changes and radio button behaviors are done in the AT SELECTION-SCREEN OUTPUT event.
The screen is modified using the below codes and enabling and disabling is done using setting 0 or 1 for the screen field screen-input.
MODIF ID ‘MOD’ is used to access the parameter ‘inputbox’ in the selection screen.




Output when enabler is selected



Output when disabler is selected. You can’t enter any values in the inputbox.









Adding TABSTRIP in ABAP Selection Screen - SAP


How to add Tabstrips in Selection Screen using ABAP programming?

SAP ABAP Programming


Define a selection screen 100 as the subscreen. Within the subscreen, define a parameter according to your requirement.




Define a selection screen 101 as the subscreen. Within the subscreen, define a parameter according to your requirement.




Now assign the Tabs to the subscreen 100 and 101.



Name the Tabstrips as per your requirement.



Press F8 to execute the program and you will see the result as below.





ABAP REGEX Statement usage in STRING


ABAP REGEX statement to remove special characters from a STRING

ABAP Tips and Tricks

To remove the special characters from the string, use replace all and regex statement to do so.
Let's see the process with an example.
The replace all occurrences is added having the regular expression [^\d].




Enter the value for the string with special characters




Press F8 to execute the program.
After executing the program, you will get the output without special characters.













REGEX Statement instead of IF statement in SAP ABAP



Usage of REGEX Statement instead of IF statement with multiple Conditions

Tips and Tricks:

Code a program with if statement that will check if the value of a parameter variable field has the value equal to ABC, DEF, or CDE. In case the value is equal to any of the three, the message Field Value is Valid is displayed. We will then see the equivalent regex.




Instead of IF statement, write a find REGEX statement along with the regex '[ABC|CDE|DEF]'.


We have used an OR (|) operator within the find statement. A match is found if the value of the three-character field is equal to any of the three values specified. In this case, sy-subrc is equal to zero, and the success message is then displayed.
In case, you need to ignore the CASE, add IGNORING CASE in the FIND REGEX statement.







SAP ABAP Associate Developer - ABAP

SAP Certified Associate Developer - ABAP Certificatrion

ABAP Table Maintenance


1.    Value help can be supplied from:
A. Process On Value request
B. Search  help for a screen field
C. Search help for table or structure fields
D. Search help for a check table
E. Search help from a text table
F. Key values of a check table
G. Search help for a data element
H. Fixed values

Correct answers: All options


2.    A table is a text table when:

A.The entire key of this data table is included as the key to this table.
B. This table has an additional language key field.
C. This table only has one character-based data field.
D. This table has a foreign key to the data table as a text table.
E. The ABAP runtime system determines that the relationship exists.

Correct answers: A, B, D


3. A foreign key must have domain equality:
A. Always
B. Not true
C. For a check field
D. For a text table

Correct answer: C


4.    Where arc fixed values for fields stored?
A. Table
B. Structure
C. Field
D. Data element
E. Domain

Correct answer: E



5.    Only one text table can be linked to a table.

A.True
B.False

Correct answer: A


6.    What is the difference between a value table and a check table?
A. No difference; they are the same thing.
B. A value table is a check table after a foreign key is defined. 
C. A value table is defined in the domain, whereas a check table is defined in the data element.
D. A check table is defined  i n the domain,  whereas a value table is defined in the data element.
E. A value table does not exist.

Correct answer: B


7.    The order of fields for a transparent table in the database:
A. Need to match the ABAP Dictionary
B. Are created i n the order of the ABAP Dictionary
C. Are allowed to be different  than the ABAP Dictionary

Correct answer: C


8.    A search help must: 
A. Use a table or a view for data selection
B.Determine the values for selection by the user
C. Have a dialog with the user
D. Allow the user to select a response
E. Be used from a screen

Correct answers: B, C, D, E


9.    Where should the labels for fields be stored? 
A. Table
B.Structure
C. Field
D. Data element
E. Domain

Correct answer: D

  
10.   Which type of view cannot be used i n a search help?
A. Database view
B. Maintenance view
C. Help view

Correct answer: B


11. Which type of view uses an inner join in a search help?
A. Database view
B. Maintenance  view
C. Help view

Correct answer: A


ABAP Certification - SAP Associate Developer NetWeaver


ABAP Certification - SAP Certified Associate Developer NetWeaver

ABAP Enhancements and Modifications


1.    Which of the following is a true statement?
A. An access key is required to implement Business Add ins.
B. An access key is required to modify SAP repository objects.
C. An access key is required to enhance an SAP application using a user exit.
D. An access key is required to implement an implicit enhancement point.

Correct answers: B, C


2.    SAP enhancement for customer exits are managed by transaction:
A. Transaction SMOD
B.Transaction CMOD
C. None of the above

Correct answer: A


3.    Customer exits provide program exit, screen exit, and men u exit enhancement.
A. True
B. False

Correct answer: A


4.    The CALL  CUSTOMER FUNCTION    'nnn ' statement, where nnn is a three-digit number is used in SAP programs for one of the following types enhancement.
A.Customer exits
B. Business Add-Ins
C. User exits
D. New BAdIs

Correct answer: A


5.    How would you find out if an application program offers a program exit?
A. Search for the character string CUSTOMER FUNCTION.
B. Use the Repository Information System.
C. Use the Application Hierarchy.
D. Look for a customer exit in title SAP reference IMG within an application area.

Correct answers: A, B, C, D



6.    A Business Add-Ins can have multiple active implementations at a time.
A. It can have multiple active implementations if the MULTIPLE use checkbox is selected.
B. It cannot have a multiple active implementation.
C. It can have multiple implementations if FILTER DEPEND checkbox is selected.

Correct answers: A, C



7.    The statement CALL BABI and GET   BADI  is used for following type of Business Add-Ins:
A. Classical BAdI
B. New BAdl
C. None of the above

 Correct answer: B


8.    Explicit enhancement points and sections are defined by the SAP application
programmer.
A. True
B. False

Correct answer: A


9.    Code within an explicit enhancement section can be replaced by the customer.
A. True
B.False

Correct answer: A


10. Code within an explicit enhancement point can be enhanced but cannot be replaced.
A- True
B.False


Correct answer: A



11. Which of the following are correct statements:
A. An enhancement spot can contain explicit an enhancement point and an enhancement section.
B.An enhancement spot can contain an explicit enhancement point, explicit enhancement section, and new BAdI.
C. An enhancement spot can contain either an explicit enhancement point and enhancement section or a new BAdI only, but all three cannot be in the same enhancement spot.
D. An enhancement spot can contain one or  more simple or composite enhancements.

Correct answers: A, C, D



12. Which of the following is a t rue statement:
A. An implicit enhancement point can be used to insert code in an SAP program and is always available to the customer.
B. Implicit enhancement options allow you to enhance interface parameters for function modules and methods without modifying the repository object.
C. Implicit enhancement can be used to enhance SAP objects developed prior to SAP NetWeaver  7.0.
D. None of the above

Correct answers: A, B, C
  

SAP Certification Associate Developer - ABAP Developer Certification


SAP Certification Associate Developer - NetWeaver 7.02 

Class Identification Analysis and Design


1.            What is unique about a singleton?

A. It must be instantiated using a private instance constructor.
B. It must be instantiated using a public instance constructor.
C. It must be instantiated using a protected instance constructor.
D. It must be instantiated using a static private constructor.
E. It must be instantiated using a static public constructor.
F. It must be instantiated using a static protected constructor.
G.It must be defined as FINAL.
H. It cannot be defined as FINAL.

Correct answers: D. G


2.                            What statements are true about a class that has granted friendship to another class:

A. The friend has access to private attributes.
B. The friend has access to protected attributes.
C. The friend has access to public attributes.
D. All of classes the friend has granted friendship access status to also have the same access.
E. All classes that inherit  from the friend (subclasses) also have the same access.

Correct answers: A, B. C.E



3.            There can only be one level in the inheritance tree.

A. True
B.False

Correct answer: B


4.            What statements are true regarding ABAP inheritance?

A. You can access the superclass component with the prefix SUPER.
B.The instance constructor can be overwritten as part of inheritance.
C. The static constructor can be overwritten as pa rt of inheritance.
D. Overloading allows a method to have several definitions with different signatures.
E. Instance constructors must call the superclass's constructor.
F. Static constructors do not need to call the superclass's constructor.
G. Polymorphism requires the developer to specify which method to use with inheritance.

Correct answers: A, B.E. F


5.            Which statements are considered obsolete and cannot be used in ABAP
Objects:

A.TABLES
B. DATA .. . TYPE . .. OCCURS
C.DATA ... BEGIN OF ...OCCURS
D. I NFOTYPES
E.RANGES
F. LEAVE
G. ON CHANGE OF
H.SEARCH
I. LOOP AT dbtab

Correct answers: A, B. C.D. E.F, G, H, I


6.            You can simulate multiple inheritances with:

A. REDEFINITION
B. INHERITING FROM
C. I NTERFACES

Correct answer: C


7. What is unique about a functional method?

A. It must contain a returning parameter.
B. It can contain a n importing parameter.
C.It can contain an exporting parameter.
D.I t can contain a changing parameter.
E.It can be used in logical expressions.
F. It can be used in SELECT statements.
G. It must be a singleton.

Correct answer: A, B. E


ABAP Certification - SAP Associate Developer Certification


ABAP Certification Associate Developer - NetWeaver 7.02

ABAP WebDynpro User Interface 

1.            Each component has an interface. This interface consists of:

A. Interface view
B. Interface context
C. Interface controller

Correct answers: A, C


2.            A plug:

A. Can be defined as inbound, outbound , or both
B. Forms the basis of navigation within a Web Dynpro
C.Can be defined as default inbound
D.Can be defined as a startup
E.Can be defined  as an exit
F. Can be assigned to multiple views
G. Can be defined as outbound  controlling  multiple in bound plugs
H.Ca n be defined as inbound and be controlled  by multiple outbound plugs

Correct answers: B.D.E. H


3.            A Web Dynpro component contains:

A. Multiple views within a window
B. UI elements
C.Component controller
D. A context
E.Exactly one interface controller

Correct answers: A, C, E


4.            A view can:

A. Contain other views
B. Be contained  in a window
C. Contain windows
D.If entered by an inbound plug ca use a n event handler method to be called
E.Contain a view controller

 Correct answers: B, C, D, E



5. Identify the types of controller:

A. Component controller
B. Custom controller
C.Consumer controller
D.Configuration controller
E. View controller
F. Window controller

Correct answers: A, B, D, E, F



6.            Identify the types of layout managers:

A. FlowLayout
B.Rowlayout
C.Column layout
D. Matrixlayout
E.Gridlayout
F.Treelayout

Correct answers: A, B, D, E



7.            The binding between a U l element and a context attribute is a two-way relationship.

A. True
B. False

Correct answer: A


8.            Identify the ways to map context structures:

A. Direct context mapping
B.External context mapping
C. Dynamic context mapping

Correct answers: A, B



9.            The Web Dynpro programming model is based on:

A. Classic Dynpro programming
B.Business Server Pages (BSP)
C.Model View Controller (MVC)
D. Internet Transaction Server (ITS)

Correct answer: C


ABAP Certification - SAP Associate Certification NetWeaver 7.02


SAP Certification Associate Developer

ABAP ALV Grid Control



1.    What is the best order to provide an event handler for an ALV:

A. Create the ALV, write the handler, register for the event, display the ALV
B. Register for the event, write the handler, create the ALV, display the ALV
C.Write the handler, register for the event, create the ALV, display the ALV
D. Write the handler, create the ALV, register for the event display the ALV
E.Write the handler create the ALV display the ALV register for the event

Correct answer: D



2.            The differences between displaying  in a full screen and in a container a re:
A. The full screen requires dynpro programming.
B.The container requires  the use of an additional object (a container control).
C. The only difference is that the container  name must be specified when creating the ALV object.
D. Only a full screen ALV allows the use of event handling.
E. Only a n ALV in a container allows the use of event handling.
F. Any type of ALV allows the use of event handling.

Correct answers: B.F



3.            To reserve a n area on the screen for an ALV Grid Control you must:
A. Create an object (instantiate  the object) of !he class C L_GUI_CUSTOM_CONTAINER
B.Create a n object (instantiate  the object) of the class C L_GUI_ALV_GR IO
C. Create an object (instantiate  the object) of the class C L_SA LV _TABLE
D. Use the Screen Painter

Correct answer: D


4.                            You must call a method  to actually display the contents of the display table after you create a n ALV.
A. True
B.False

Correct answer: A


5.            The field catalog allows you to:
A. To add a field to the display
B.To specify the sort order of the display table
C. To produce a striped pattern for the display lines
D. To change the title of a column
E.To change the display order of a column

Correct answers: A, D, E


6.            Which class is used to define a reference for an instance of the ALV Object
Model:

A. Class  CL_GUI_CUSTOM_CONTAINER
B. Class CL_GUI_ALV_GRIO
C.Class CL _SALV _TASLE

Correct answer: C


7.            You use the CREATE OBJECT  statement to create both types of ALV.
A. True
B. False

Correct answer: B


8.            The ALV Object Model:
A. Is a group of classes that describe the ALV grid as a whole and inherit from a single class
B. Is a group of hierarchal classes that describe the ALV grid as a whole but do not inherit from a single class


Correct answer: B

ABAP Certification - SAP NetWeaver Associate



SAP ABAP Certification - Associate Developer


SAP Classical Screens


1.   Which of the following is correct:
A. The screen attributes can be modified in the PROCESS AFTER  INPUT event block.
B. The screen attributes can be modified in the PROCESS SHORE OUTPUT event block .
C. The screen attributes can be modified in the PROCESS BEFORE OUTPUT and
PROCESS AFTER INPUT event blocks.
D. None of the above


Correct answer: B




2.   The static sequence of the default next screen can be established by the value
in the screen attribute next screen."
A. True
B. False

Correct answer: A


 3.            If you enter the value "0" or blank(" ")as the next screen, then the system resumes processing from the point at which the screen was initiated, assuming the next screen attribute is overridden dynamically in the program.
A. True
B. False

Correct answer: A


4.            The next screen attribute can be temporarily overwritten by the set screen statement, that is, SET  SCREEN  200.
A.True
B. False

Correct answer: A


5.            The FIELD statement does not have any effect in the PBO event block, and it should not be used in the PBO event block.
A. True
B. False


Correct answer: A


6.  The FIELD statement with the ON  INPUT addition is used to conditionally call the ABAP dialog module. The ABAP dialog module is called if the value of the screen field is other than the initial value.
A. True
B. False

Correct answer: A


7.            The FIELD statement with the ON   REQUEST addition calls the ASAP dialog module if any value is entered in the screen field.
A. True
B. False

Correct answer: A


8.                            You can call a module for the FIELD statement to validate user entry on the input field. You can validate the entry on the input field and send an error or a warning message from an ABAP dialog module.
A. True
B. False


Correct answer: A


9.   If an error or warning message is sent from the ASAP dialog module for the FIELD statement within the CHAIN and ENDCHAIN  statements  then all of the fields within CHAIN and ENDCHAIN are ready for user input again.

A. True
B.False


Correct answer: A


10.  The user interface consists of the GUI status and GUI title.
A. True
B.False

Correct answer: A



11. A menu bar can have at most 10 menus.
A. True
B.False

Correct answer: B



12.  The application toolbar can have up to _ buttons on the screen.
A. 20
B.30
C.10
D.35
E. None of the above


Correct answer: D



13.  A men u ca n have up to _ men u items on the screen including functions separators and submenus.
A.15
B. 10
C. 15
D. None of t he above

Correct answer: A

ABAP Certification for developer - Associate Certification



SAP ABAP certified associates  - Netweaver


ABAP Unicode 


1.            Unicode checks can be made:
A. I n any system (after Release 6.10) by specifying the program has Unicode checks active
B. By running Transaction UCCHECK
C. Only in a Unicode system or as part of a conversion to a Unicode system
D. Cannot be enforced

Correct answers: A. B



2.            Memory requirements a re identical in a non Unicode system and in a Unicode system.
A. True
B. False

Correct answer: B



3.            A difference between a Unicode and non-Unicode program is:
A. Byte type data objects cannot be assigned to character-type data objects.
B. Byte type da ta objects cannot be compared to character-type data objects.
C. Offset positioning in a Unicode structure is restricted to character data objects.
D. Offset positioning in a Unicode structure is restricted to nat data objects.

Correct answers: All options



4.            Two structures in Unicode programs are only compatible i f all alignment gaps a re identical on all platforms.
A. True
B. False

Correct answer: A



5.            The enhancement category for a database table or structure:
A. Makes a table Unicode compliant
B. Specifies  the types of changes that can be made to the structure
C. Can produce warnings at incompatible points for the structure
D. Can identify where program behavior may change

Correct answers: B, C, D



6.            In a Unicode system when opening a file in TEXT MODE you must specify:
A. The E NCODING addition
B. The byte order
C. The code page

Correct answer: A



7.            In a non-Unicode system when opening a file in TEXT MODE you should specify:
A. The ENCODING addition
B. The byte order
C. The code page


Correct answers: B, C

ABAP Certification Associate Developer - SAP


SAP ABAP Developer Certification - NetWeaver

ABAP Debugging



1.    A Transparent table can include a deep structure.
A. True
B. False

Correct answer: B

2.    ABAP data types can be used for a domain definition.
A. True
B. False

Correct answer: B


3.    Which of the following statements are true?
A. A conversion routine can be assigned to a domain.
B. A conversion routine ca n be assigned to a data element.
C. You define the value range in tl1e data element.
D. You can enter documentation for the data element  in the ABAP Dictionary.

Correct answers: A, D


4.    F1 Help on the screen field displays the data element documentation.
A. True
B. False

Correct answer: A


5.    Which of the following are true statements?
A. The technical attributes of the data clement ca n be defined by a domain, that is, the data type, the field length, and the number of decimal places.
B. You ca n also select predefined  data types to define the data type of the data element.
C. Reference data types can be used to define the data type of the data element.
D. Field labels are defined for the domain .

Correct answers: A, B, C


6.            You can define search helps and parameter lDs for a data element.
A. True
B. False

Correct answer: A



7.            The line type for a table type can contain a flat, nested or deep structure.
A. True
B. False

Correct answer: A


8.            Which of the following are true statements?
A. Table fields ca n be assigned to a data element.
B. Table fields can be assigned to an ASAP Dictionary data type directly.
C. Search helps can be defined for a table field that is assigned  to a pre­defined data type.
D. A reference table and field are required for fields with the data types OUAN
and CURR.

Correct answers: A, B, D


9.            Which of the following is a true statement  regarding search helps?
A. You can use a maintenance view for the search help selection method.
B. You can use a database view for the search help selection method.
C. Help views can also be used for the selection method for search help.
D. You can use transparent  tables for the search help selection method .


Correct answers: B, C, D


10.  Which of the following regarding search helps is a t rue statement?
A. The interface for the search help is defined by the IMP (import) and EXP (export) flag of the search help parameter.
B. The LPos parameter defines the position of the search help parameter in the search hit list.
C. The SPos parameter defines the position of the input field on  the dialog
screen.
D. The text table for the selection method is automatically populated  if the text  table is attached  to  the  database  table  being  used as  the  selection method.

Correct answers: A, B, C, D



11.  Which of the following are true statements?
A. A database view is implemented as an inner join.
B. A maintenance view is implemented as an outer join.
C. A database view is implemented as an outer join.
D. A maintenance view is implemented as a n inner join.

Correct answers: A, B



12.  Which of the following are true statements?
A. The tables  included  in the maintenance  view should  have foreign  key relationships.
B. The tables included in the help view should have a foreign key relationship.
C. Projection views can have more than one table included for the view definition.
D. You cannot use a pooled or cluster table for database view.

Correct answers: A, B. D



13.  You can create projection views for pooled or cluster tables.
A. True
B. False


Correct answer: A


ABAP Certified Associate Developer - SAP


ABAP Certification - Associate Developer

Basic ABAP


1.    ABAP is a programming language that:
A. Executes on all three levels of the three tier architecture
B. Controls the business logic
C. Processes and formats data
D. Interacts with the user
E. Separates program code from language text

Correct answers: B. C.D, E

2.    Which events can exist in all types of programs that actually contain executable statements?
A. LOAD-OF-PROGRAM
B. INITIALIZATION
C. START-OF-SELECTION
D. AT LINE SELECTION
E. AT USER COMMAND
F. AT PF##

Correct answer: A


3.    Dynpros can be placed in which program types?
A. Executables
B. Module pools
C. Function groups
D. Class pools

Correct answers: A, B.C


4.    A change request is part of a task?
A. True
B. False

Correct answer: B


5.    Which statements about ABAP are true?
A. Each statement must begin with a keyword.
B. Each statement must end with a period.
C. ABAP keywords and additions must be in uppercase.

Correct answer: B


6.    A development object can be assigned to only one package.
A. True
B. False

Correct answer: A

7.    A development object can be assigned to only one change request.
A. True
B. False

Correct answer: B

8.    Each ABAP program:
A. Is divided into processing blocks
B. Assigns every executable statement to a processing block regardless of it being in a processing block
C. Only assigns executable statements in a processing block to a processing block
D. Uses event blocks to trigger events i n ABAP
E. Has declarative statements outside of processing blocks which are considered local
F. has declarative statements inside of processing blocks which are considered local
G. Can be tested from the ABAP Work bench by pressing F8

Correct answers: A. B.F


9.    Which modularization units can raise an exception?
A. Function modules
B. Methods
C. Subroutines (FORM routines)

Correct answers: All options


10. Which types of programs or parts of programs can be tested directly from the ABAP Workbench or ABAP Editor'
A. REPORT
B. PROGRAM
C.FUNCTION-POOL
D. FUNCTION MODULE
E.CLASS -POOL
F. METHOO
G. INTERFACE POOL
H. TYPE POOL
I. INCLUDE

Correct answers: A, D, E,F

11.  Which method of passing parameters is preferred for its performance?
A. Pass by reference
B. Pass by value

Correct answer: A

12.  Which modularizations units are global?
A. Function modules
B. Subroutines (FORH routines)
C. Methods within a local class in the program
D. Methods within class pools

Correct answers: A. D

13.  FORM routines (subroutines) can be used in which type of program:
A. Executables
B. Module pools
C. Function groups
D. Class pools
E. Interface pools
F. Subroutine pools
G. Type groups

Correct answers: A, B, C, F


14. You can use the logical expression  IS SUPPLIED for any formal parameter passed to which modularization unit?
A. Subroutine (FORM routine)
B. Function module
c. Static method
D. Instance method

Correct answers: B, C, D

15. A selection screen ca n only be defined in an executable program.
A. True
B. False

Correct answer: B

16. Subroutines provide which types of parameters?
A. Input
B. Output
C. Input/output (changing)
D. Return values
E. Exceptions

Correct answers: C, E


17. Function modules provide which types of parameters?
A. Input
B. Output
C. Inputt/output (changing)
D. Return values
E. Exceptions

Correct answers: A, B, C, E


18. Methods  provide which types of parameters?
A. Input
B. Output
C. Input/output (changing)
D. Return values
E. Exceptions

Correct answers: All options


19. It is not possible to test a function module if another function module of the same function group contains a syntax error.
A. True
B. False

Correct answer: A


20.  Each button  on a Dynpro  (screen) requires  the assignment  of a function code. This function code:

A. Is used to define global variables that receive a value when the button is clicked
B. Can be used to identify when the button is clicked by looking for the function code in the screen's OK_CODE field
C. Prevent the function code from be assigned to a menu item

Correct answer: B

21. Which message types behave the same regardless of the context  in which they are called?
A. A
B.E
C. I
D. S
E.W
F.X


Correct answers: A, F