Basic ABAP Debugging
What is the best way to start learning ABAP debugging. I have very limited knowledge of programming. Are there any good books to start of.
Edited by: Kumar Reddy on Dec 17, 2007 3:05 PM
Dear Kumar,
You can check the following links:
www.sappro.com/downloads/Settings&SystemAreas.pdf
http://www.sap-img.com/abap/testing-and-debugging-abap-codes-functions.htm
Well I feel that debugging is nothing else but an understanding of the functioning of the code.
So to to really debug a code it is better to have a good understanding of the codes and what they are suppossed to do.
Hope this helps you.
Do award points if you found them useful.
Regards,
Rakesh
Similar Messages
-
Hi Gurus,
I have a small doubt in basic ABAP.
What is the exact difference between the below statements.
Types: Begin of ty_data,
matnr type mara-matnr,
end of ty_data.
Types: Begin of ty_data,
matnr type matnr,
end of ty_data.
Types: Begin of ty_data,
matnr like mara-matnr,
end of ty_data.
Types: Begin of ty_data,
matnr like matnr,
end of ty_data.
data: matnr type mara-matnr.
data: matnr type matnr
data: matnr like mara-matnr
data: matnr like matnr.
In those above statement which are correct. And the difference between those statements.
Thanks,
Srihari.hi,
LIKE means the datatype of the variable is similar to the referenced variable.
TYPE means it is a predefined data type.
Eg:
DATA int TYPE i.
Here int is of integer data type.
DATA var LIKE int.
var IS a variable having same data type of int. which in turn is integer.
You can find these helpful when you reference database table variables... You need not know what is the datatype defined.
Also it adds to FLEXIBILITY.
Whenever you make changes to your database tables and fields,
that change is REFLECTED back to your program that is,
You need not change all your program code when you change your table fields...
Hope you understand and appreciate the flexibility that SAP provides to the programmers...
Thanks
Arun -
hi gurus
i need some information about basic abap programming like archieving,periodical job,batch job , user exist,varients
any info about batch job management?? (abap)
help ful answers reward points
[email protected]
kishoreHi
Follow this detail PDF File
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
Regards
Rehman
Reward Points If Useful -
What is the utility of watch point and break point in ABAP DEBUGGING !
What is the utility of watch point and break point in ABAP DEBUGGING !
PLEASE TELL ME IN DETAILS AND IF POSSIBLE WITH SCREEN SHOTS !Hi,
Breakpoints, Watchpoints, and Checkpoints
Summary
The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
Detailed Description
Breakpoints
In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, ) is displayed for each breakpoint.
If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
Watchpoints
In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton Compare Variables( ) and choose the Diff tool to compare the old and new variable values.
In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
Checkpoints
In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
Pls refer to :
http://help.sap.com/saphelp_nw70/helpdata/en/e2/5f5a42ed221253e10000000a155106/frameset.htm
Regards,
Renjith Michael. -
What is utility of watch points and break point in ABAp debugging !
What is utility of watch points and break point in ABAp debugging !
Hi,
Breakpoints, Watchpoints, and Checkpoints
Summary
The standard Breakpoints tool is always located on the Breakpoints desktop. With this tool, you can manage breakpoints, watchpoints and checkpoints. In addition, you can monitor the current status of the different breakpoint types.
Detailed Description
Breakpoints
In the Breakpoints area, you will see a list of all the breakpoints set so far. If one of the breakpoints has just been reached, this is marked with a yellow arrow. The visibility (Debugger, session, user) and type (line, ABAP command, ) is displayed for each breakpoint.
If you double click the Navigation() column, the system will display the breakpoint in the respective source code.
The visibility of a breakpoint can be changed through the dropdown list. To change the visibility of several breakpoints, mark them and select the pushbutton Save as Session Breakpoint or Save as User Breakpoint.
You can change the visibility of all Debugger breakpoints using the menu path Breakpoints-> Save Debugger BPs as -> ....
In addition, you have functions for creating, changing, activating and deactivating breakpoints at your disposal.
Watchpoints
In the Watchpoints area, you will see a list of all the watchpoints set so far. The watchpoint last set is highlighted with a yellow arrow.
For each watchpoint you will see not only the current value but the value before the last changed. (Technically speaking, each time you create the watchpoint and each time the watchpoint variable is changed, a clone of this variable is created.)
In this way, you can always determine what changes have been made to the monitored variable. For complicated data structures, such as internal tables or structures, select the pushbutton Compare Variables( ) and choose the Diff tool to compare the old and new variable values.
In addition, you have functions for creating, changing, activating and deactivating watchpoints at your disposal.
Checkpoints
In addition, you can edit conditional and unconditional checkpoints using the Breakpoints tool. This function is provided in the new Debugger only. Conditional checkpoints are set first in the source code using the ASSERTstatement; unconditional checkpoints are set using the BREAK-POINT statement. These have the effect that programs will be continued only if a preset condition is fulfilled. In the following window, these checkpoints can be searched for, activated, or deactivated.
Regards,
Renjith Michael. -
ABAP Debug Mode in SAP and webMethods
HI,
Can anyone help resolve why I am receiving this message when I set the ABAP debug mode to yes on the SAP server? com.sap.mw.jco.JCO$Exception: (105) ERROR_NO_DIALOG_USER: ERROR_NO_DIALOGHI,
Very possibly the webMethods generic "SAP User" is set up as a "CPI-C" user in SAP. This means that this user can never log directly onto the SAP system, or participate in a 'dialog process' (actual GUI interraction). This is a common approach to ensure that no one can actually log onto the SAP system using this user id (other licensing issues may apply).
Reward Points if found helpfull..
Cheers,
Chandra Sekhar. -
Dear All
Could anyone guide me about abap debugging for sd and user exits and their role.
Regards
KAPIL MOREIt depends on what you exactly want to do.
There are ways by which you can go into the program and debug.
a. You can go to the program, put a '/h' in the ok code. Then execute the program. In the Menu >> Environment >> Break point, put the break point on say for example on Messages. Then press F8. You can reach the message where the program errors out. You can also set the watch points for the values.
b. You know a program. You know why the program may be erroring out. Say for example, you are not getting the company code on the invoice print. Then, go to the invoice print program. Search for field BURKS. Put a break point there and then try to print the invoice. The program will stop where you have put a break point. You can check from there why it is not working.
There are many other ways and means but it only comes by repeatedly doing it...
You can find the user exit for SD in SPRO >> Sales and Distribution >> System Modification >> User Exit in SD... There is a lot of documentation in these nodes which you will have to read..
MV45AFZZ is the widely used userexit in Sales order...
I would say an ABAPer can be your best teacher...
Hope this helps...
Regards,
Mukund S -
Callback invoked only if abap-debug set to true
I use NCo ver 2.0.1 and VS.NET 2003
I instantiate a sapproxy object of type client and one of type server.
After that i've set the .callback property of the <b>sapproxy-client</b> to the <b>sapproxy-server</b> instance.
If I call sample functions Stfc_Connection and Stfc_Connection_Back I report no problems.
I have to use another function (<b>CDesk_Show</b>) calling more then one callback function on the sapproxy-server instance.
I put breakpoints on these function.
If I invoke the main function (the one internally calling callback functions i.e Cdesk_show) without ABAP-DEBUG option set to true, I get an exception and execution don't stop on callback-function-breakpoints.
If I set ABAP-DEBUG to true, execution stops at these breakpoints(i.e in Visual studio) and everything works fine and no exception is thrown.Hi,
Obviously, your function module or the callback function needs to somehow access SAPGUI. In this case, the option use_sapgui=1 should be used. The option abap_debug also enables SAPGUI access in addition to turning on the ABAP debugger.
Regards,
Guangwei -
ABAP debugging : excel to internal table
Hi ,
I would like to know if there is any way to copy excel sheet data into internal table during Debugging? Any pointers to this are highly appreciated.
Thank you in Advance.
Sravan.Here is one technique if you have Basis 640 or higher - you can use the advanced debugger (New ABAP Debugger). I have done this many times.
1) Select the tables tab when you are at a place in the code where you wnat to change the internal table
2) Use a single table versus the split screen within the tables tab to maximize fields on the screen
3) Select the tools for the service (wrench) on the right side of the screen - pop up window will appear and select 'Change row content'. Note there is a change column but I have not tried that to see if the entire table column changed or if only the visible rows column changed.
4) Align excel fields in the same order as the internal table fields and copy the data
5) Place cursor in the first position of the starting field and paste
This can only be done for the rows that are visible on the screen so you will need to page down to continue to paste. Perhaps since you work for SAP you can suggest a better way to paste in an internal table. Also there is a limitation with the number of records that can be displayed/changed in the advanced debugger.
Andy -
Need information about basic ABAP Programs.
Hi All!
My self is Chandra. Past 2 weeks I am learning ABAP Language, for practices I need some basic examples of ABAP language. pls guide me where I can get this examples.
Thanks,
Chandra.Hi Chandra,
You can go into these sites and find code examples.
http://www.sapbrain.com
http://www.sap-img.com
http://www.sapgenie.com
SAP Help site which contains topic wise tutorials.
http://help.sap.com.
Award points if useful.
Regds,
Ravi Sankara Kumar. -
WD ABAP: debugging?
Hi,
need to know how to debug a ABAP WD prog... breakpoint is set but ignored... is there a special debug mode to run the program with?>as in wd for Java ...for a server there is a debugging port and it is to be set as debugging ON ....so find is there any debugging port in WD for ABAP .....
There is no debug port or debug setting that must be set for the ABAP engine. The ABAP Virtual Machine has the capability to dynamically switch a running process in and out of debug mode - including the ability to remotly attach a debug session to an already running process. -
Help with basic ABAP code (merge internal tables, sort of...)
Hello,
Can someone please help write some basic code for a Basis guy with limited ABAP knowledge?
Should be some easy points for an experienced ABAPer!
I have identicaly structured internal tables I_A and I_B and I_C which have already been filled by function models I called.
How will I code the following?:
I want to read all the data of I_A into a new internal table I_MASTER (structured the same as I_A,I_B and I_C).
Then I want to read I_B and:
1)Update I_MASTER with NEW records
2)Update existing records if the value of field MYFIELD in I_B is smaller than the value of MYFIELD in I_MASTER.
Then I want to read I_C and:
1)Update I_MASTER with NEW records
2)Update existing records if the value of field MYFIELD in I_C is smaller than the value of MYFIELD in I_MASTER.
Let me know if I can provide anymore information.
Thanks in advance for you help!
Adriaan
Message was edited by: Adriaan
Message was edited by: AdriaanHi Adriaan ,
I want to read all the data of I_A into a new internal table I_MASTER (structured the same as I_A,I_B and I_C).
<b>i_master[] = i_a[] .</b>
loop at i_b .
read table i_master with key myfiled < i_b-myfield .
if sy-subrc = 0 .
append i_master from i_b .
endif.
endloop.
loop at i_c .
read table i_master with key myfiled < i_c-myfield .
if sy-subrc = 0 .
append i_master from i_c .
endif.
endloop.
Let me know if this helped .
Regards,
Varun .
Message was edited by: varun sonu -
Basic ABAP knowledge for Functional consultants
Hi Gurus
I am interested in familiar with some ABAP knowledge as a Functional consultant.
Please provide me some basic information
Thanks
RajuHi,
Use the following links....
Reprots
http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - this one discusses which way should you use - ABAP Objects calls or simple function modules.
Dictionary
http://sapabap.iespana.es/sapabap/manuales/learnabap/
http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb6e446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/21ea31446011d189700000e8322d00/frameset.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBDIC/BCDWBDIC.pdf
ABAP objects
Please check this online document (starting page 1291).
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf
Also check this links as well.
http://help.sap.com/saphelp_nw2004s/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
http://www.sapgenie.com/abap/OO/
http://www.futureobjects.de/content/intro_oo_e.html
http://www.sap-img.com/abap/business-add-in-you-need-to-understand-abap-oo-interface-concept.htm
/people/ravikumar.allampallam/blog/2005/02/11/abap-oo-in-action
SAPScripts
http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
SAP SCRIPT FIELDS
http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
scripts easy material
http://www.allsaplinks.com/sap_script_made_easy.html
Check these step-by-step links
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/ccab6730-0501-0010-ee84-de050a6cc287
https://sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/8fd773b3-0301-0010-eabe-82149bcc292e
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/3c5d9ae3-0501-0010-0090-bdfb2d458985
for Smartforms material
http://www.sap-basis-abap.com/sapsf001.htm
http://www.sap-press.com/downloads/h955_preview.pdf
http://www.ossincorp.com/Black_Box/Black_Box_2.htm
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sap-img.com/smartforms/smartform-tutorial.htm
http://www.sapgenie.com/abap/smartforms.htm
How to trace smartform
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
http://www.sap-img.com/smartforms/smart-006.htm
http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
Re: Need FAQ's
check most imp link
http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
step by step good ex link is....
http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
BAPI
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
List of all BAPIs
http://www.planetsap.com/LIST_ALL_BAPIs.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
ALV programs.
http://www.geocities.com/mpioud/Abap_programs.html
. How do I program double click in ALV?
http://www.sapfans.com/forums/viewtopic.php?t=11601
http://www.sapfans.com/forums/viewtopic.php?t=23010
How can I use ALV for reports that are going to be run in background?
http://www.sapfans.com/forums/viewtopic.php?t=83243
http://www.sapfans.com/forums/viewtopic.php?t=19224
ALV
http://www.sapfans.com/forums/viewtopic.php?t=58286
http://www.sapfans.com/forums/viewtopic.php?t=76490
http://www.sapfans.com/forums/viewtopic.php?t=20591
http://www.sapfans.com/forums/viewtopic.php?t=66305 - http://www.sapgenie.com/abap/reports.htm
http://www.allsaplinks.com/material.html
http://www.sapdevelopment.co.uk/reporting/reportinghome.htm
Top-of-page in ALV
selection-screen and top-of-page in ALV
ALV Group Heading
http://www.sap-img.com/fu037.htm
ALV
http://www.geocities.com/mpioud/Abap_programs.html
Pls U search our SDN also.
Regards
Rajesh. -
hi ,
i am very new to abap-oops concepts please help me in getting the basic oops concept materials
regards
NandiniRefer these link,
http://help.sap.com/saphelp_47x200/helpdata/en/ce/b518b6513611d194a50000e8353423/content.htm
For funtion module to class
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5954f411d194a60000e8353423/content.htm
for classes
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b5c54f411d194a60000e8353423/content.htm
for methods
http://help.sap.com/saphelp_47x200/helpdata/en/08/d27c03b81011d194f60000e8353423/content.htm
for inheritance
http://help.sap.com/saphelp_47x200/helpdata/en/dd/4049c40f4611d3b9380000e8353423/content.htm
for interfaces
http://help.sap.com/saphelp_47x200/helpdata/en/c3/225b6254f411d194a60000e8353423/content.htm
For Materials:
1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
1) http://www.erpgenie.com/sap/abap/OO/index.htm
2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
Reward if found helpfull,
Regards,
K.Tharani. -
Finding Screen Number for a Popup Window using ABAP debug
Hi Guys
IPlease could you tell me how to find the screen number of a pop-up window using debug as opposed to F1 Help?
Thanks
Edited by: Brett Cunliffe on Sep 14, 2011 9:37 PMHi,
You can create a short cut for debugging on desktop and drag n drop the debugging icon from desktop to pop up screen, then it will be available for debugging.
or copy the below code in a notepad and save it. If you want to debug pop ups then drag and drop this file.
The code is
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
[more info wiki|http://wiki.sdn.sap.com/wiki/display/ABAP/SAPGUI+shortcuts]
Shiva
Maybe you are looking for
-
MacBook Pro with retina display MD212LL/A is the late4st model Apple Produces?
I found several MacBook pro newest version MD212LL/A on amazon with cheaper price. it does not specifically says that it is with Retina Display. I want to buy with retina Display. someone can assist me?
-
How do I upgrade a webBasics website to a webBasics +?
How do I upgrade a webBasics website (that came with my CC subscription) to a webBasics + subscription. I need to provide email accounts to my client. When I first pushed it live it didn't give me an option to do anything but webBasics. Thank you.
-
Jdbc:odbc driver connection issues
I need to use the jdbc:odbc driver to access a non-oracle db from a jsp. I am sure my dsn is fine as I can use a non JSP java app to connect to the odbc db. I have loaded the sun.jdbc.odbc classes in the schema I am working in as it is not loaded by
-
Brief Introduction of Business objects
I am looking for an overview powerpoint about the brief introduction of Business objects, connection with BI, roadmap... Does anyone know the link to those information? Thanks.
-
Unable to join Unit Cost(Cost table) to Sales Table.
Hi All, I am beginner for OBIEE technology.May be this question is silly for you but i am facing issue in it.I am mentioning my issue below:- We have two tables one is SALES(Fact Table ) and second one is COST (Fact Table). I want to apply Calculatio