| Forums.Sureshkumar.net : A Perfect Place to Share Knowledge Blogs Games Magazines |
|
|
#1 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
ABAP / 4 - Debugger is the development workbench tool which allows you to stop a program during its execution when a particular condition is met. When the program is stopped , you can use the debugger to display the contents of the table and variable being used by the program. Starting the ABAP / 4 Debugger in different ways Method 1 : By Clicking the Execute button and enter /H in command box. Method 2 : In ABAP / 4 editor, by executing a program Choosing Program-->Execute -->Debugging from the Menu. Method 3 : Setting Breakpoint in the Program. |
|
|
|
|
|
#2 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
Components of ABAP / 4 - Debugger O - Presents the program structure, events, subroutines and Modules. S - Displays the calling sequence within a particular event, up to the current breakpoint. V - It is the default view, which displays the contents of up to, four field. F - Displays the field contents and in this view you can define values for the watchpoints. T - Allows modifying the contents of internal table. P - Displays all program, which are needed for program debugging including system program. General Commands in Debugging 1. Choose : --> to select a field into debugging view screen , instead of double-clicking , choose option can be used. 2. Single step --> this is used to trace the program step by step 3. Execute --> Similar to Single Step but it will execute block by block in the program. 4. Continue --> this is used to release the program from running step by step to running freely through the code. 5. Return ---> this is used to traverse in different application logic layers in the program. For every click of return , the control will be moved to its next hierarchical level.. |
|
|
|
|
|
#3 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
BREAK POINTS:
A Breakpoint is the signal, which is specified in the program, tells the system to stop the program execution and to start the Debugger. Types of Breakpoints in ABAP / 4 : •Static are set up with BREAKPOINT keyword inside the program, which you can directly display with the ABAP / 4 source code editor. •Dynamic break point is not visible in the code. Position the cursor over the source code and go for Utilities breakpoint set. •Watchpoint are field specific. Here the program is stopped when the field reaches the value specifed in the Watchpoint. |
|
|
|
|
|
#4 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
WATCH POINTS:
Watch points are used to dynamically set breakpoints in the program code. If a variable is marked as a watch point , the program halts in debug mode every time the value inside that field changes. Setting WATCHPOINTS: •Execute a program in debugging mode. • Position the cursor over the needed field. • Press the F button to get a view of the fields. • Select the checkbox for the needed Watchpoint.Click on the CONTINUE button. • To display the active Watchpoint select Goto breakpoint |
|
|
|
|
|
#5 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
SQL - Trace:
SQL Trace captures information about Database access made on the system. Like Runtime Analysis , SQL Trace is not limited to a Single program. It can be turned on for a single user and all activity by that user is logged. After logging is complete , SQL trace provides tools to analyze the logs. The SQL trace is accessed through T-Code ST05. The Components under SQL trace. Trace On List Trace Trace on For User Trace off AUTHORIZATION CHECK: In Sap R/3 System security is referred to as Authorizations. The ability to perform an operation in the system is referred to as an Authorization object. An authorization object can have up to 10 fields . Each field is the equivalent of an SAP data element. There fore , An Authorization object grants the ability to perform some operation in the system. |
|
|
|
|
|
#6 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
STEPS IN AC:
To create Authorization fields T-Codes : su20, SU21.--> Sap std menu --> Tools ---> ABAP Workbench --> Development-->Other Tools-->Authorization objects --> Fields -->click on create -->specify Field Name --> and Data Element --> specify Check table if any.<--Back<--back--> click on objects-->select class form menu --> click on Create --> specify Object class--> short text--> and save--> DCLK on class to specify object list--. Choose object and -->create-->specify fields-->save.. ABAP AC PROG: REPORT ZAUTH. TABLES : KNA1. AUTHORITY-CHECK OBJECT ID ‘ZCUST’ ID ‘KUNNR’ FIELD ‘1000’ ID ‘NAME1’ FIELD ‘RAJU’ ID ‘LAND1’ FIELD ‘IN’ ID ‘ORT01’ DUMMY. IF SY-SUBRC NE 0. MESSAGE I123(0) WITH ‘ YOU R NOT AUTHORIZED TO CHANGE DATA IN KNA1’. ENDIF. |
|
|
|
|
|
#7 (permalink) |
|
Super Moderator
Join Date: Mar 2006
Posts: 4,803
Thanks: 9 Thanked 630 Times in 488 Posts Thanks: 9
Thanked 630 Times in 488 Posts
Blog Entries: 2
Rep Power: 101
|
ERROR STATUS CODES:
0 check is successful 4 check fail bcoz user is not authorized 8 no.of fields submitted exceeds 10 12 object does not exist 24 fields mismatch 28,32,36 system error |
|
|
|
|
|
#8 (permalink) |
|
Unregistered
Posts: n/a
|
Re: ABAP - debug
Dear All,
I am new to ABAP debugging. Can someone help by describing the steps how to debug an ABAP error message. For example I have scenario that I get an error message while creating a sales order or delivery or invoice. How should I debug the error message ? Please tell me the steps I need to adopt. Thanks a lot. |
|
|
|
#9 (permalink) |
|
Junior Member
Join Date: Oct 2006
Posts: 1
Thanks: 0 Thanked 0 Times in 0 Posts Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 3
|
Re: ABAP - debug
Re: ABAP - debug
Dear All, I am new to ABAP debugging. Can someone help by describing the steps how to debug an ABAP error message. For example I have scenario that I get an error message while creating a sales order or delivery or invoice. How should I debug the error message ? Please tell me the steps I need to adopt. Thanks a lot. |
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|