<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Reporting Standards in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074503#M429917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving few points, hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All the objects that we develop must start only with &amp;lt;b&amp;gt;'Z' or 'Y'&amp;lt;/b&amp;gt;, say whether it is a &lt;/P&gt;&lt;P&gt;    report or a smart form or a table , data element, domain  etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Kindly &amp;lt;b&amp;gt;avoid  hard code&amp;lt;/b&amp;gt; in your code, that is, avoid using ' ' , instead u can use text &lt;/P&gt;&lt;P&gt;    elements for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use &amp;lt;b&amp;gt;SY-SUBRC&amp;lt;/b&amp;gt; after every &amp;lt;b&amp;gt;select statements&amp;lt;/b&amp;gt; and also function modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The program flow of your report must be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;TYPES (Including TYPE-POOLS)&lt;/P&gt;&lt;P&gt;CONSTANTS&lt;/P&gt;&lt;P&gt;DATA&lt;/P&gt;&lt;P&gt;INFOTYPES ( HR  Specific)&lt;/P&gt;&lt;P&gt;INTERNAL TABLES&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS&lt;/P&gt;&lt;P&gt;FIELD-GROUPS&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;CONTROLS&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;PARAMETERS&lt;/P&gt;&lt;P&gt;INITIALISATION&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;GET&lt;/P&gt;&lt;P&gt;END-OF-SELECTION&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION&lt;/P&gt;&lt;P&gt;AT PFXX&lt;/P&gt;&lt;P&gt;AT USER-COMMAND&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE&lt;/P&gt;&lt;P&gt;END-OF-PAGE&lt;/P&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;P&gt;CLASS&lt;/P&gt;&lt;P&gt;METHOD&lt;/P&gt;&lt;P&gt;INTERFACES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Use pretty printer for your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.The naming conventions for a &amp;lt;b&amp;gt;select option or parameter must be so_ and pr_ &amp;lt;/b&amp;gt;respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.The work area and internal table must be named&amp;lt;b&amp;gt; wa_ and it_&amp;lt;/b&amp;gt; resp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Use &amp;lt;b&amp;gt;'binary search'&amp;lt;/b&amp;gt; for a READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Do the extended program check and code inspector check for your programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.try to avoid select * instead use select matnr ernam.. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem &lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 11:44:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T11:44:59Z</dc:date>
    <item>
      <title>Reporting Standards</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074500#M429914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I am new to sap-abap programming .Can any one of you tell me the SAP standards that are to be followed while writing an abap program ?&lt;/P&gt;&lt;P&gt;Also can I use joins for the four tables at once . I heard that this would have performance issues so we ll go for 'For all entries' . Under what conditions does  &lt;/P&gt;&lt;P&gt;joins and ' For all entries'  are same in terms of performance wise.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Apr 2007 23:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074500#M429914</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-14T23:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting Standards</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074501#M429915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding table joins versus "for all entries":&lt;/P&gt;&lt;P&gt;A join is often the best way, even on several tables.&lt;/P&gt;&lt;P&gt;Note however that ABAP will not allow joins for certain tables.&lt;/P&gt;&lt;P&gt;The performance of the database query using a join of several tables depends on the underyling database (Oracle or whatever), not just on the SAP system.  For example, Oracle may decide to use an inefficient data-retrieval plan.&lt;/P&gt;&lt;P&gt;It can also happen that an ABAP report runs fast for one set of selection criteria, but slowly for other criteria.  For one of our reports, if you run it for all our companies, it runs fast if you go to the trouble of using the company select-option and listing every company, but if you do the logically equivalent thing of leaving the company select-option blank, then it takes about 10 times as long.  The reason is that in one case the query that ABAP sends to Oracle prods Oracle into using a particular table index that it does not use in the other case.&lt;/P&gt;&lt;P&gt;So there is no simple answer.&lt;/P&gt;&lt;P&gt;I prefer to use joins where possible. When joins work well, they are better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:31:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074501#M429915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting Standards</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074502#M429916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the programming standards are given by your company to follow with..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ex: use TY_name for cdeclaring types,&lt;/P&gt;&lt;P&gt;             IT_TABLE for internal tables,&lt;/P&gt;&lt;P&gt;             l_it_table for lacal internal tables,&lt;/P&gt;&lt;P&gt;             gc_variable for global variables.. etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And regarding the fetching of data, Using FOR ALL ENTRIES is a better way in most of the cases..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:36:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074502#M429916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting Standards</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074503#M429917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am giving few points, hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. All the objects that we develop must start only with &amp;lt;b&amp;gt;'Z' or 'Y'&amp;lt;/b&amp;gt;, say whether it is a &lt;/P&gt;&lt;P&gt;    report or a smart form or a table , data element, domain  etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Kindly &amp;lt;b&amp;gt;avoid  hard code&amp;lt;/b&amp;gt; in your code, that is, avoid using ' ' , instead u can use text &lt;/P&gt;&lt;P&gt;    elements for them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Use &amp;lt;b&amp;gt;SY-SUBRC&amp;lt;/b&amp;gt; after every &amp;lt;b&amp;gt;select statements&amp;lt;/b&amp;gt; and also function modules. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The program flow of your report must be as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;TYPES (Including TYPE-POOLS)&lt;/P&gt;&lt;P&gt;CONSTANTS&lt;/P&gt;&lt;P&gt;DATA&lt;/P&gt;&lt;P&gt;INFOTYPES ( HR  Specific)&lt;/P&gt;&lt;P&gt;INTERNAL TABLES&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS&lt;/P&gt;&lt;P&gt;FIELD-GROUPS&lt;/P&gt;&lt;P&gt;INSERT&lt;/P&gt;&lt;P&gt;CONTROLS&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS&lt;/P&gt;&lt;P&gt;PARAMETERS&lt;/P&gt;&lt;P&gt;INITIALISATION&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN&lt;/P&gt;&lt;P&gt;START-OF-SELECTION&lt;/P&gt;&lt;P&gt;GET&lt;/P&gt;&lt;P&gt;END-OF-SELECTION&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION&lt;/P&gt;&lt;P&gt;AT PFXX&lt;/P&gt;&lt;P&gt;AT USER-COMMAND&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE&lt;/P&gt;&lt;P&gt;END-OF-PAGE&lt;/P&gt;&lt;P&gt;FORM&lt;/P&gt;&lt;P&gt;CLASS&lt;/P&gt;&lt;P&gt;METHOD&lt;/P&gt;&lt;P&gt;INTERFACES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Use pretty printer for your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6.The naming conventions for a &amp;lt;b&amp;gt;select option or parameter must be so_ and pr_ &amp;lt;/b&amp;gt;respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.The work area and internal table must be named&amp;lt;b&amp;gt; wa_ and it_&amp;lt;/b&amp;gt; resp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;8. Use &amp;lt;b&amp;gt;'binary search'&amp;lt;/b&amp;gt; for a READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;9. Do the extended program check and code inspector check for your programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.try to avoid select * instead use select matnr ernam.. etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thasneem &lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:44:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074503#M429917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: Reporting Standards</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074504#M429918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;inner join&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;... FROM tabref1 [INNER] JOIN tabref2 ON cond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Selects data from the transparent database tables or views specified in tabref1 and tabref2. tabref1 and tabref2 either have the same form as in variant 1 or are themseleves joine expressions. The key word INNER can be omitted. The database tables or views specified in tabref1 and tabref2 must be recognized in the ABAP-Dictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a relational data structure, it is quite normal for data that belongs together to be split up across several tables to help standardization (see relational database). To regroup this information in a database query, you can link tables using a join command. This formulates conditions for the columns of the tables involved. An inner join contains all combinations of lines from database table tabref1 with lines from database table tabref2 that meet the condition specified in the logical condition ON cond. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner join between table 1 and table 2 where column D sets the join condition: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... &amp;lt;b&amp;gt;FOR ALL ENTRIES&amp;lt;/b&amp;gt; IN itab WHERE cond &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Only selects the records that meet the logical condition cond when each replacement symbol itab-f is replaced with the value of component f of the internal table itab for at least one line of the table. SELECT ... FOR ALL ENTRIES IN itab WHERE cond returns the union of the solution sets of all SELECT statements that would result if you wrote a separate statement for each line of the internal table replacing the symbol itab-f with the corresponding value of component f in the WHERE condition.Duplicates are discarded from the result set. If the internal table itab does not contain any entries, the system treats the statement as though there were no WHERE cond condition, and selects all records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Got this from F1 help.&lt;/P&gt;&lt;P&gt;Refer F1 help for sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Kindly reward points if u feel the answer helped u, &amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 11:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reporting-standards/m-p/2074504#M429918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T11:52:30Z</dc:date>
    </item>
  </channel>
</rss>

