Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debugging

Former Member
0 Likes
756

Hi this is balu and I am new member of this group can any body explain about the debugging concept and steps involved in the Debugging?

How can we display 1st page in A4 & 2nd page in landscape type in scripts?

What is the different types of internal tables and difference between them?

What is sy-lisel and use of it?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
672

hi,

<b>

2)</b> check this link

<b>3)</b> You can specify the non-generic table types standard table ( STANDARD TABLE), sorted table ( SORTED TABLE), and hashed table (HASHED TABLE), as well as the generic table types ANY TABLE and INDEX TABLE. The addition STANDARD is optional for standard tables.

The non-generic table types determine the internal administration and access type in the ABAP program for an internal table:

<b>Standard tables </b>are managed system-internally by a logical index. New rows are either attached to the table or added at certain positions. The table key or the index identify individual rows.

<b>Sorted tables</b> are managed by a logical index (like standard tables). The entries are listed in ascending order according to table key.

<b>Hashed tables</b> are managed by a hash algorithm. There is no logical index. The entries are not ordered in the memory. The position of a row is calculated by specifying a key using a hash function.

The generic table types define a generic table type that can only be used for typing formal parameters and field symbols:

<b>ANY TABLE</b> includes all table types.

<b>INDEX TABLE</b> includes all standard tables and sorted tables.

<b>

4)</b> Sy-lisel holds the content of the row that is double clicked. we use this while writing interactive reports.

Regards,

Sailaja.

6 REPLIES 6
Read only

Former Member
0 Likes
672

hi,

<b>1)</b> We can debug a program to know the program flow is and to know the values held by different variables at different points of time.

i)we can debug by keeping a break point in the program

Break-point.

ii)we can even set a break point specific to user.

break-point xyzuser.

while executing the program, control comes and stops at this statement only when xyzuser is running this program.

iii) by giving /h in the command box also, we can debug the program

we press F5 for executing step by step

F6 to bypass a subroutine..

F7 to come out of a form... endform

F8 to completely execute.

Regards,

Sailaja.

Read only

Former Member
0 Likes
672

For debugging tutorial:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/5a/4ed93f130f9215e10000000a155106/frameset.htm

Types of internal tables:

http://help.sap.com/saphelp_erp2005vp/helpdata/en/bf/cf52e4003011d2952b0000e8353423/frameset.htm

sy-lisel contains the data of the selected line:

see the program demo_list_sy_lisel for knowing its usage.

Regards,

ravi

Read only

Former Member
0 Likes
672

Balu,

Email me at John.MacNeill@warwick.ac.uk, and I'll send you a 10-page Word document describing ABAP debugging.

John

Read only

Former Member
0 Likes
672

SY-LISEL---This field contains the contents of the selected list line when editing a list.

Types IT's

Standard tables

This is the most appropriate type if you are going to address the individual table entries using the index. Index access is the quickest possible access. You should fill a standard table by appending lines (ABAP APPEND statement), and read, modify and delete entries by specifying the index (INDEX option with the relevant ABAP command). The access time for a standard table increases in a linear relationship with the number of table entries. If you need key access, standard tables are particularly useful if you can fill and process the table in separate steps. For example, you could fill the table by appending entries, and then sort it. If you use the binary search option with key access, the response time is logarithmically proportional to the number of table entries.

Sorted tables

This is the most appropriate type if you need a table which is sorted as you fill it. You fill sorted tables using the INSERT statement. Entries are inserted according to the sort sequence defined through the table key. Any illegal entries are recognized as soon as you try to add them to the table. The response time for key access is logarithmically proportional to the number of table entries, since the system always uses a binary search. Sorted tables are particularly useful for partially sequential processing in a LOOP if you specify the beginning of the table key in the WHERE condition.

Hashed tables

This is the most appropriate type for any table where the main operation is key access. You cannot access a hashed table using its index. The response time for key access remains constant, regardless of the number of table entries. Like database tables, hashed tables always have a unique key. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.

Read only

Former Member
0 Likes
673

hi,

<b>

2)</b> check this link

<b>3)</b> You can specify the non-generic table types standard table ( STANDARD TABLE), sorted table ( SORTED TABLE), and hashed table (HASHED TABLE), as well as the generic table types ANY TABLE and INDEX TABLE. The addition STANDARD is optional for standard tables.

The non-generic table types determine the internal administration and access type in the ABAP program for an internal table:

<b>Standard tables </b>are managed system-internally by a logical index. New rows are either attached to the table or added at certain positions. The table key or the index identify individual rows.

<b>Sorted tables</b> are managed by a logical index (like standard tables). The entries are listed in ascending order according to table key.

<b>Hashed tables</b> are managed by a hash algorithm. There is no logical index. The entries are not ordered in the memory. The position of a row is calculated by specifying a key using a hash function.

The generic table types define a generic table type that can only be used for typing formal parameters and field symbols:

<b>ANY TABLE</b> includes all table types.

<b>INDEX TABLE</b> includes all standard tables and sorted tables.

<b>

4)</b> Sy-lisel holds the content of the row that is double clicked. we use this while writing interactive reports.

Regards,

Sailaja.

Read only

Former Member
0 Likes
672

Hi,

<b>Debugging:</b>

http://www.sapdevelopment.co.uk/tips/debug/debughome.htm

http://www.sap-basis-abap.com/sapab002.htm

http://help.sap.com/saphelp_nw2004s/helpdata/en/c6/617ca9e68c11d2b2ab080009b43351/content.htm

<b>SCRIPT:</b>

You can set this in the Print parameters

<b>Internal Tables:</b>

http://sap-img.com/abap/what-are-different-types-of-internal-tables-and-their-usage.htm

http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm

http://www.sapdevelopment.co.uk/perform/perform_itab.htm

<b>SY-LISEL</b>-> This we use in Interactive reports, When you double click the output list, then SY-LISEL will be filled with line data which you double clicked, so you can use this data in the next list

Regards

Sudheer