Warning: include_once(http://erpgenie.com/_borders/topabap.htm) [function.include-once]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52

Warning: include_once() [function.include]: Failed opening 'http://erpgenie.com/_borders/topabap.htm' for inclusion (include_path='.:') in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/templates/rhuk_solarflare_ii/index.php on line 52
Home arrow Tips and Tricks arrow ABAP Reports
ABAP Reports
Select vs. Select * PDF Print E-mail
User Rating: / 1
Written by Anon.   
Saturday, 10 March 2007
Using Select field1 field2 ….. instead of Select * is significantly faster if the table contains a large number of fields

Example:
 
SELECT MATNR WERKS DISMM FROM MARC
       INTO TABLE T_MARC
       WHERE MATNR IN O_MATNR.

SELECT * FROM MARC
       INTO TABLE T_MARC
       WHERE MATNR IN O_MATNR.

Recommendation:
  • Use Select <field>:
  • Table consists of a large number of fields
  • Data retrieval is limited to a relatively small number of fields compared to overall number of fields. Hence, less memory usage and network load.
  • Use of Select * should be used on an exception basis ONLY.
Last Updated ( Friday, 09 March 2007 )
Read more...
 
Joins and Nested selects PDF Print E-mail
User Rating: / 1
Written by Anon.   
Saturday, 10 March 2007
Read more...
 
Internal Table Processing PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
Custom reports often require large amounts of processing of internal tables.  The following techniques have worked well for large volume internal table processing.
Read more...
 
Calculations based on Arithmetic data-types PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
During calculation, the performance depends on the data type used. Integer is the fastest, followed by Floating point and then Packed, which is the most resource intensive.
 
Open SQL VS. Native SQL PDF Print E-mail
User Rating: / 1
Written by Anon.   
Friday, 09 March 2007
Native SQL is to be avoided! Read on to see why....
Read more...
 
SELECT distinct usage!!! PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
The DISTINCT addition to the SELECT statement allows you to remove duplicates from a set of results during a SELECT.
Read more...
 
Sort during Select vs. ABAP sort PDF Print E-mail
User Rating: / 1
Written by Anon.   
Friday, 09 March 2007

ABAP provides 2 methods of sorting.  One is executing the sort on the database server and the other is executing the sort on the application server.
   

DON'T
Example: Sorting data within select statement
    SELECT MATNR WERKS DISPO
           FROM MARC
           INTO TABLE T_MARC
           WHERE DISMM = 'ND'
           ORDER BY DISPO MATNR.
-> Sort is executed on database server

DO  
Example: Sorting data within ABAP
    SELECT MATNR WERKS DISPO
           FROM MARC
           INTO TABLE T_MARC
           WHERE DISMM = 'ND'.
    SORT T_MARC BY DISPO MATNR.
-> Sort is executed on application server

Last Updated ( Friday, 09 March 2007 )
Read more...
 
Conditional delete on an internal table using a negative clause PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
Assume an internal table TAB1 with the following definition. TAB1 is built from the database table DBTAB and contains many possible values for the table column FLAG (except the initial value). The functionality covered in this example is the case where all the internal table values with the value of FLAG not equal to ‘D’ have to be deleted. The table contains 100,000 rows.

LOOP AT TAB1
    IF TAB1-FLAG <> ‘D’.
        TAB1-FLAG = SPACE.
        MODIFY TAB1 INDEX SY-TABIX
TRANSPORTING FLAG.
    ENDIF.
ENDLOOP.    
DELETE TAB1 WHERE FLAG = SPACE
 
SELECT Statement PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
Regardless of the various options associated with the SELECT statement the following guidelines--and some are restatements of coding/DDIC standards--must be kept in mind when coding a SELECT in an ABAP custom report program:
Read more...
 
SELECT - Use of the OR-operator PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
There are a couple of alternatives when using an OR-operator on a field that is relevant for an index. The below example will illustrate how the Rule based optimizer changes the access path for the query
Read more...
 
Specify field values without gaps PDF Print E-mail
User Rating: / 0
Written by Anon.   
Friday, 09 March 2007
Example: A database table dbtable1 has an index on field1, field2, and field3.
Read more...
 
EMail text using Hypertext, books and chapters PDF Print E-mail
User Rating: / 0
Written by Anon.   
Wednesday, 28 February 2007
Step by step procedure on how to use hypertext documents, chapters and book to store text in SAP and then to retrieve it for use in an email. Why not store your email text in a chapter and if somoene wants to dynamicall y change the email output from your program then they can easily do so.
Read more...
 
Using colors PDF Print E-mail
User Rating: / 0
Written by Anon.   
Saturday, 24 February 2007
* Display the header using an appropriate color (grayish blue)
WRITE 'Header' COLOR COL_HEADING.

* Switch the standard color
FORMAT COLOR COL_TOTAL.

* Make the color less bright
WRITE / 'total sum' COLOR COL_TOTAL INTENSIFIED OFF.

* Using different colors
FORMAT COLOR COL_HEADING.
WRITE / 'Header'.
FORMAT COLOR OFF.
SKIP.
WRITE: / 'Key field' COLOR COL_KEY,
         'Background',
         'Negative' COLOR COL_NEGATIVE,
       / 'Total sum' COLOR COL_TOTAL INTENSIFIED OFF.
 
Another list of function modules PDF Print E-mail
User Rating: / 0
Written by Anon.   
Wednesday, 21 February 2007

A very comprehensive list of ABAP function modules with some examples of how to use them.

 

Read more...
 
Drill down report PDF Print E-mail
User Rating: / 0
Written by Kevin Wilson   
Wednesday, 21 February 2007

This is a step by step procedure on how to create an ABAP drill down report.

 

Read more...
 
<< Start < Prev 1 2 3 4 5 6 Next > End >>

Results 46 - 60 of 82

Google Search

Google Ads


Warning: include(http://erpgenie.com/_borders/bottom.htm) [function.include]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/includes/footer.php on line 22

Warning: include() [function.include]: Failed opening 'http://erpgenie.com/_borders/bottom.htm' for inclusion (include_path='.:') in /var/www/vhosts/erpgenie.com/httpdocs/abaptips/includes/footer.php on line 22