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

How to debug a popup screen in ABAP?


Methods to debug a Popup screen in ABAP debugger.

It is always difficult to debug a popup screen in SAP ABAP.

To debug a Popup screen, we need to create a system file that could generate a system command to allow debugging for the Popup screen.

There are three different methods that could allow to debug a Popup screen.

The best way is to create a shortcut file from the SAP screen. Click icon in the SAP toolbar.
It shows a screen to create shortcut for the debugging.





Enter the title as "Debugger".
Choose "System Command" as type and enter "/h" in the command.
Enter your system details where you want to debug. Here i am going to debug the production system, so i have entered the system id as K9P.

Click "Finish" and you could see a short cut in your desktop with *.sap extension.

Now drag the debug.sap file to the popup screen that you need to debug.




This will make the popup screen enter into debugging mode. Proceed from here with your debugging skills to debug.

But still, there are other two methods to create the shortcut debug file for Popup screen debug.

Option 2
You can create a shortcut from your desktop using Windows shortcut creating functionality.
Right click in your desktop and select "New-> SAP GUI Shortcut".


Name it as "debug.sap".
Right click on the shortcut icon and click edit and proceed as above to create a shortcut.



Option 3

You can also create a debugging file from notepad. But this is a worst case method where you are not able to create a shortcut from SAP.

Open your notepad and enter the following.


[ F u n c t i o n ]
C o m m a n d = / H
T i t l e = D e b u g g e r
T y p e = S y s t e m C o m m a n d

Save it as "debug.sap".

Drag and drop on the popup screen you want to debug.


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

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 Questions and Answers - SAP


SAP Certified Associate Certification - ABAP Certification

ABAP Object Oriented Programming


1.    Which of the following is a t rue statement:
A. Static attributes ca n be declared only in the private visibility section of the class.
B.Static attributes are declared with the CLASS - DATA statement.
C. A static attribute is the same across all instances of the class. There is only
one static attribute across all instances of the class.
D.Static attributes cannot be changed by an object.

Correct answers: B. C


2.    Private components  of the class cannot  be addressed directly from outside the class except when the friendship concept applies.
A- True
B.False

Correct answer: A


3.   Subclasses can access the private components  of the parent class.
A. True
B. False

Correct answer:  B


4.   Subclasses inherent all the components of the parent class.
A. True
B. False

Correct answer: A


5.   Public methods ca n access the private attributes of the same class.
A. True
B. False

Correct answer: A


6.    Protected  attributes  can  be accessed by methods of the class and  its sub­
classes.
A. True
B. False

Correct answer: A


7.    You cannot use the LIKE statement to define an attiibute in a class.
A. True
B. False

Correct answer: B


8.    The READ ONLY addition  for the attribute declaration can be used in the private and public visibility section.
A. True
B. False

Correct answer: B


9.    The READ ONLY attribute ca n not be addressed outside the class.
A.True
B. False

Correct answers: A, B, C, D


 10.  Which of the following are correct statements?
A. Class methods  assigned to the public visibility section ca n be accessed outside  the class using the static component selector and the class name.
B. Static methods can be defined in both the public and private visibility section of the class.
C. Only public methods ca n be addressed  outside the  class.
D. You can call private methods  within  the public methods  without  reference to the object or class.
E. None of the above

Correct answer: A


11. The constructor method is called automatically when you create an instance of the class.
A. True
B. False

Correct answer: A


12.  The class constructor method is called automatically when you access the class for the first time.
A.True
B.False

Correct answer: B


13. The constructor method is always defined in the private visibility section of the class.
A. True
B.False

Correct answer: B


14.  You can call the constructor method directly.
A. True
B.False

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