Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > SAP ABAP, SAP MM, SAP DD, SAP BASICS & OTHERS
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 28-05-06, 01:39 AM   #1 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute





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.










Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:42 AM   #2 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute





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..



















Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:45 AM   #3 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute
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.




























Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:48 AM   #4 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute
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






























Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:50 AM   #5 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute
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.










Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:52 AM   #6 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute
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.












Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28-05-06, 01:56 AM   #7 (permalink)
Super Moderator
 
Spoorthi's Avatar
 
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 Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute Spoorthi has a reputation beyond repute
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


Spoorthi is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 18-10-06, 04:18 PM   #8 (permalink)
Unregistered
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.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-10-06, 04:11 PM   #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 andy is on a distinguished road
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.
andy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +6.5. The time now is 05:18 AM.




Get Short Listed Fast !! Upload Your CV here & Apply New Jobs Everyday.

Search Engine Optimization by vBSEO 3.1.0