<?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: basic report programming in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302754#M790832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     'Report' as the name suggests, it is a report generated for a specific purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     e.g., Headmaster of a school may want to view the performance of a particular class students. In these kind of scenarios, we use report programming technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Look at some examples now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/?gclid=CNGLkbL5mJECFRE2egodhERFHA" target="test_blank"&gt;http://www.sapmaterial.com/?gclid=CNGLkbL5mJECFRE2egodhERFHA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                         All the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2008 12:43:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-28T12:43:39Z</dc:date>
    <item>
      <title>basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302749#M790827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am new to SAP.&lt;/P&gt;&lt;P&gt;please provide information abt report programming like what are the basic things we have to remember while writing a report program.please provide any link which gives basic information abt report programming with some hands-on practice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 11:42:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302749#M790827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T11:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302750#M790828</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;abap online links&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/web/SAPAbapCertificationDocs/" target="test_blank"&gt;http://www.esnips.com/web/SAPAbapCertificationDocs/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/web/SAPABAP" target="test_blank"&gt;http://www.esnips.com/web/SAPABAP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/web/saparun-ebooks" target="test_blank"&gt;http://www.esnips.com/web/saparun-ebooks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/2a4c274b-b5b9-46b7-8ab5-5af47700a6c7/Command-List" target="test_blank"&gt;http://www.esnips.com/doc/2a4c274b-b5b9-46b7-8ab5-5af47700a6c7/Command-List&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/doc/6bdb820f-f533-4517-a043-b64641b00490/TABC43-Data-Transfer" target="test_blank"&gt;http://www.esnips.com/doc/6bdb820f-f533-4517-a043-b64641b00490/TABC43-Data-Transfer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/_t_/abap" target="test_blank"&gt;http://www.esnips.com/_t_/abap&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this is helpful, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 11:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302750#M790828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T11:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302751#M790829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://sap.mis.cmich.edu/sap%2Dabap/abap08/sld001.htm" target="test_blank"&gt;http://sap.mis.cmich.edu/sap%2Dabap/abap08/sld001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/reportinghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/reportinghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/ireports.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/ireports.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reprots&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapgenie.com/abap/reports.htm" target="test_blank"&gt;http://www.sapgenie.com/abap/reports.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.allsaplinks.com/material.html" target="test_blank"&gt;http://www.allsaplinks.com/material.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/reporting/reportinghome.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/reporting/reportinghome.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=58286" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=58286&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=76490" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=76490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=20591" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=20591&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=66305" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=66305&lt;/A&gt; - this one discusses which way should you use - ABAP Objects calls or simple function modules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:00:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302751#M790829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302752#M790830</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;Pls refer the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/43/41341147041806e10000000a1553f6/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302752#M790830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302753#M790831</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;ABAP Editor for writing and editing program code&lt;/P&gt;&lt;P&gt;ABAP Dictionary for processing database tables and retrieving global types&lt;/P&gt;&lt;P&gt;Menu Painter for designing the user interface (menu bar, standard toolbar, application toolbar)&lt;/P&gt;&lt;P&gt;(see Interfaces)&lt;/P&gt;&lt;P&gt;Screen Painter for designing screens (dynamic programs) for user dialogs&lt;/P&gt;&lt;P&gt;Function Builder for displaying and processing function modules (subroutines with defined interfaces&lt;/P&gt;&lt;P&gt;that are available throughout the system)&lt;/P&gt;&lt;P&gt;Class Builder for displaying and processing central classes&lt;/P&gt;&lt;P&gt;There are two different ways to go about using these tools:&lt;/P&gt;&lt;P&gt;Either you call each individual tool and edit the corresponding Repository objects.&lt;/P&gt;&lt;P&gt;You must then call the next tool for the next set of objects...&lt;/P&gt;&lt;P&gt;Or you work with the Object Navigator: This transaction provides you with a tree-like overview of all&lt;/P&gt;&lt;P&gt;objects within a development class or program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample program code.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES sbc400_carrier &lt;/P&gt;&lt;P&gt;DATA wa_scarr TYPE scarr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM scarr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF wa_scarr&lt;/P&gt;&lt;P&gt;WHERE carrid = pa_car .&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0 &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_scarr TO sbc400_carrier.&lt;/P&gt;&lt;P&gt;CALL SCREEN 100 .&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING&lt;/P&gt;&lt;P&gt;sbc400_carrier TO wa_scarr.&lt;/P&gt;&lt;P&gt;WRITE&lt;/P&gt;&lt;P&gt;:&lt;/P&gt;&lt;P&gt;wa_scarr-carrid ,&lt;/P&gt;&lt;P&gt;wa_scarr-carrname ,&lt;/P&gt;&lt;P&gt;wa_scarr-currcode .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP programs are made up of individual statements.&lt;/P&gt;&lt;P&gt;Each statement ends with a period.&lt;/P&gt;&lt;P&gt;The first word in a statement is called a keyword.&lt;/P&gt;&lt;P&gt;Words must always be separated by at least one space.&lt;/P&gt;&lt;P&gt;Statements can be indented.&lt;/P&gt;&lt;P&gt;Statements can take up more than one line.&lt;/P&gt;&lt;P&gt;You may have multiple statements in a single line.&lt;/P&gt;&lt;P&gt;Consecutive statements with identical initial keywords can be condensed into one chained statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TABLES statement always refers to the global type of a flat structure that is defined in the ABAP&lt;/P&gt;&lt;P&gt;Dictionary. The structure type for the data object in the program is taken from the Dictionary. The data&lt;/P&gt;&lt;P&gt;object name is identical to the name of the structure type. TABLES structures are stored technically&lt;/P&gt;&lt;P&gt;slightly differently to local data objects that are defined using the DATA statement. They are normally&lt;/P&gt;&lt;P&gt;used as a structure for the interface to the screen.&lt;/P&gt;&lt;P&gt;The DATA statement is usually used to define local data objects. The data object type is specified&lt;/P&gt;&lt;P&gt;using the TYPE addition.&lt;/P&gt;&lt;P&gt;The PARAMETERS statement defines not only an elementary data object, but also an input field on&lt;/P&gt;&lt;P&gt;the standard selection screen that is processed at the start of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement CALL SCREEN calls a screen.&lt;/P&gt;&lt;P&gt;A screen must be created using the Screen Painter tool.&lt;/P&gt;&lt;P&gt;A screen is an independent Repository object, but belongs to the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement ensures that data is read from the database. In order to read a record from a&lt;/P&gt;&lt;P&gt;database table, the following information must be passed to the database:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE statements display field contents, formatted according to their data type, as a list.&lt;/P&gt;&lt;P&gt;Consecutive WRITE statements display output in the same output line. Output continues in the next line&lt;/P&gt;&lt;P&gt;when the present one is full.&lt;/P&gt;&lt;P&gt;From which database table is the data read? (FROM clause)&lt;/P&gt;&lt;P&gt;How many lines are read? The SINGLE addition shows that only one line is read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this is helpful, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302753#M790831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302754#M790832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Amar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     'Report' as the name suggests, it is a report generated for a specific purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     e.g., Headmaster of a school may want to view the performance of a particular class students. In these kind of scenarios, we use report programming technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Look at some examples now,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapmaterial.com/?gclid=CNGLkbL5mJECFRE2egodhERFHA" target="test_blank"&gt;http://www.sapmaterial.com/?gclid=CNGLkbL5mJECFRE2egodhERFHA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                         All the best.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302754#M790832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302755#M790833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Creating Reports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP/4 Language elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A report consists of individual statements that start with a reserved word and end with a period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;            WRITE XYZ.&lt;/P&gt;&lt;P&gt;             MOVE  SALES TO TOTAL_SALES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first word of statement (the reserved word) determines the meaning of the whole statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declarative Language Elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declarative language elements declare the data items that can be addressed in the report:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA, TABLES, PARAMETERS, SELECT-OPTIONS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timing Language Elements&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timing language elements specify the point in time (the event) when to execute a process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION, END-OF-SELECTION, AT SELECTION SCREEN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control Language Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Control language elements control the processing flow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF&amp;#133;ENDIF, WHILE&amp;#133;. ENDWHILE, CASE&amp;#133;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operational Language Element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Operational language elements process the data at certain times under certain conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE, MOVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: For clarity you should list all declarative language elements together at the beginning of a report in a declaration section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE CITY UNDER STREET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The ABAP/4 report language has no format restrictions. This means that you can enter the statements (instructions) unformatted, you can indent them, you can write statements in one line, or can spread one statement over several lines. Separate the words with a statement by at least one blank character. The end of line corresponds to a blank character. A statement thus can be longer than one line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two ways of indicating comments in a report:&lt;/P&gt;&lt;P&gt;If the whole line is a comment, type * in the first column&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is a comment line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the rest of the line is a comment, type &amp;#147; before the comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0.        &amp;#147; Query return code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can insert comment lines anywhere in the report. Comments indicated by &amp;#147; are equivalent to blank character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Combining similar statements to one statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Consecutive sentences (statements) with an identical beginning can be combined to a chain instruction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE EMP_CODE.&lt;/P&gt;&lt;P&gt;WRITE EMP_NAME.&lt;/P&gt;&lt;P&gt;WRITE EMP_ADDRESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can form a chain statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: EMP_CODE, EMP_NAME, EMP_ADDRESS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remark: Put a colon between the identical beginning of the statement and the variable part. Separate the components of the variable part by commas. To improve readability, you can use blanks before and after the separator characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do this program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP Inputs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Create an ABAP program &lt;/P&gt;&lt;P&gt;ABAP will have following parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_STRING  - input string.  The input should be taken in LOWERCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FLAGS should be displayed as radiobutton. Depending upon the value of the selected FLAG, corresponding function will be performed on the input string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T_FLAG &amp;#150; to convert the string to UPPERCASE&lt;/P&gt;&lt;P&gt;L_FLAG &amp;#150; to return the length of the string&lt;/P&gt;&lt;P&gt;S_FLAG &amp;#150; to remove leading zeroes in the string&lt;/P&gt;&lt;P&gt;O_FLAG &amp;#150; to return subset of string starting from offset P_OFFSET and having length P_LENGTH. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_OFFSET and P_LENGTH are parameters to take in the offset and length of the substring.&lt;/P&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;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if its useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 12:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302755#M790833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T12:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: basic report programming</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302756#M790834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii amar,&lt;/P&gt;&lt;P&gt;Report programming is a simple abap program which deals with presentation of the output to the client.&lt;/P&gt;&lt;P&gt;Report is generally designed when we want to have the output on the screen in a particular manner..&lt;/P&gt;&lt;P&gt;Report has many things attached to it like alv etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But basically reports are managed by events. The order of the events are as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start of selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End of selection &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Top of page..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We write the code in these events and this will be executed sequentially. If u want any detailed thing in report. Do revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg. in the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;*&amp;amp; Report  Z_84083_REP                                                 *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;*&amp;amp;                                                                     *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  z_84083_rep NO STANDARD PAGE HEADING LINE-SIZE 150.&lt;/P&gt;&lt;P&gt;*MESSAGE-ID z_84083_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;**********************&lt;STRONG&gt;Database Tables&lt;/STRONG&gt;*********************************&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES: z84083_train,Z84083_BOOKING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************************************************&lt;/P&gt;&lt;P&gt;**************************&lt;STRONG&gt;Selection Screen&lt;/STRONG&gt;***************************&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-t01.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: trnno FOR z84083_train-train_no NO INTERVALS.&lt;/P&gt;&lt;P&gt;PARAMETERS: from_st TYPE z84083_train-from_stn,&lt;/P&gt;&lt;P&gt;            to-st TYPE z84083_train-to_stn.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*************************&lt;STRONG&gt;Internal Table&lt;/STRONG&gt;*******************************&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS 10,&lt;/P&gt;&lt;P&gt;      trainno TYPE z84083_train-train_no,&lt;/P&gt;&lt;P&gt;      trainname TYPE z84083_train-train_name,&lt;/P&gt;&lt;P&gt;      fromstn TYPE z84083_train-from_stn,&lt;/P&gt;&lt;P&gt;      tostn TYPE z84083_train-to_stn,&lt;/P&gt;&lt;P&gt;      TOTT TYPE z84083_train-TOTAL_TKTS,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*************************&lt;STRONG&gt;Headings&lt;/STRONG&gt;*******************************&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;    h1(10) TYPE c VALUE 'Train No',&lt;/P&gt;&lt;P&gt;    h2(20) TYPE c VALUE 'Train Name',&lt;/P&gt;&lt;P&gt;    h3(20) TYPE c VALUE 'From Stn',&lt;/P&gt;&lt;P&gt;    h4(20) TYPE c VALUE 'To Stn'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : FLD(25) TYPE C,&lt;/P&gt;&lt;P&gt;        VAL TYPE  z89297_train-trainno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;*************************&lt;STRONG&gt;Report Headings&lt;/STRONG&gt;****************************&lt;/P&gt;&lt;P&gt;**********************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  WRITE: 'REQUESTER : Rahul Dwivedi',&lt;/P&gt;&lt;P&gt;         114'PAGE   :',sy-pagno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE:/ 'PROGRAM : TRAIN REPORT',&lt;/P&gt;&lt;P&gt;          114'DATE :',sy-datum.&lt;/P&gt;&lt;P&gt;  SKIP 1.&lt;/P&gt;&lt;P&gt;  WRITE 60'TRAIN RESERVATION REPORT' COLOR 6 INVERSE ON INTENSIFIED ON.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SKIP 1.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-PAGE.&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*******************&lt;STRONG&gt;Defining the Start Of Selection event&lt;/STRONG&gt;*************&lt;/P&gt;&lt;P&gt;***********************************************************************&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PERFORM fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;*******************CALLING THE DISPLAY FUNCTION&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;  perfORm display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-lsind = 1.&lt;/P&gt;&lt;P&gt;  GET CURSOR FIELD fld VALUE val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   IF fld = 'ITAB-TRAINNO'.&lt;/P&gt;&lt;P&gt;   SET PARAMETER ID 'PID' FIELD ITAB-TRAINNO.&lt;/P&gt;&lt;P&gt;   SET PARAMETER ID 'PID1' FIELD ITAB-TRAINNAME.&lt;/P&gt;&lt;P&gt;         call transaction 'Z84083_TRANS'.&lt;/P&gt;&lt;P&gt;   Endif.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  fetch&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM fetch.&lt;/P&gt;&lt;P&gt;  SELECT TRAIN_NO TRAIN_NAME FROM_STN TO_STN TOTAL_TKTS FROM&lt;/P&gt;&lt;P&gt;z84083_train&lt;/P&gt;&lt;P&gt;    AS t INTO TABLE itab WHERE&lt;/P&gt;&lt;P&gt;    train_no IN trnno AND&lt;/P&gt;&lt;P&gt;    from_stn = from_st AND&lt;/P&gt;&lt;P&gt;    to_stn = to-st.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   SELECT NO_BD NO_AV FROM Z84083_BOOKING INTO TABLE ITAB1 WHERE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   TRAIN_NO IN TRNNO.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    "fetch&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  DISPLAY&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="---------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ULINE.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 3 INVERSE OFF.&lt;/P&gt;&lt;P&gt;    WRITE:/ h1,'|',h2,'|',h3,'|',h4,'|'.&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 2 INVERSE OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     LOOP AT ITAB.&lt;/P&gt;&lt;P&gt;      FORMAT HOTSPOT ON.&lt;/P&gt;&lt;P&gt;      WRITE: /(10) ITAB-TRAINNO UNDER h1,'|'.&lt;/P&gt;&lt;P&gt;      HIDE ITAB-TRAINNO.&lt;/P&gt;&lt;P&gt;      FORMAT HOTSPOT OFF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WRITE: (20) ITAB-trainname UNDER h2,'|',&lt;/P&gt;&lt;P&gt;       (20) ITAB-fromstn UNDER h3,'|',&lt;/P&gt;&lt;P&gt;       (20) ITAB-toSTN UNDER h4,'|'.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ULINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      u go thru the program and understand the hierarchy of the various events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:42:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/basic-report-programming/m-p/3302756#M790834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:42:50Z</dc:date>
    </item>
  </channel>
</rss>

