<?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: Classic Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414336#M199430</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT. &lt;/P&gt;&lt;P&gt;&amp;#149;	Events In Classical Reports. &lt;/P&gt;&lt;P&gt;&amp;#149;	INTIALIZATION: This event triggers before selection screen display. &lt;/P&gt;&lt;P&gt;&amp;#149;	AT-SELECTION-SCREEN: This event triggers after processing user input still selection screen is in active mode. &lt;/P&gt;&lt;P&gt;&amp;#149;	START OF SELECTIONS: Start of selection screen triggers after processing selection screen. &lt;/P&gt;&lt;P&gt;&amp;#149;	TOP-OF-PAGE: It provides header for ABAP reports. &lt;/P&gt;&lt;P&gt;&amp;#149;	END-OF-PAGE: It provides footer for page. &lt;/P&gt;&lt;P&gt;&amp;#149;	AT PF: For predefined function keys &lt;/P&gt;&lt;P&gt;&amp;#149;	END-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this link also:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/" target="test_blank"&gt;http://www.sapdevelopment.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jul 2006 08:32:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-14T08:32:23Z</dc:date>
    <item>
      <title>Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414331#M199425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the ClassicReport?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 04:37:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414331#M199425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T04:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414332#M199426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there are two types of reports.&lt;/P&gt;&lt;P&gt;Classical Report&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Interative report.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Classical report is the report in which user can sipmly watch the output list and cannot do other than seeing the list.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Interactive reports are reports in which the user can interact with the list such as pressing a function key or double clicking the firld.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link for classical ALV reports.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/mpioud/Abap_programs.html" target="test_blank"&gt;http://www.geocities.com/mpioud/Abap_programs.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 05:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414332#M199426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T05:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414333#M199427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In classical reporting, there's no user interaction on the list. The program is executed and a list is displayed. The user can just view the list and probably print it. And the events (START-OF-SELECTION, END-OF-SELECTION, TOP-OF-PAGE) are not controlled by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mukesh Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 05:19:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414333#M199427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T05:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414334#M199428</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;As others have said, classical reports are just plain reports wherein after fetching/combing the data, it will write it. You cannot edit/manipulate the data being displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. Please award points for useful answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 05:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414334#M199428</guid>
      <dc:creator>aris_hidalgo</dc:creator>
      <dc:date>2006-07-14T05:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414335#M199429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijay reddy,&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;classical reports&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;classical reports are Conventional reports do not allow interaction by the user; therefore, the basic list contains extensive information that the user must often sort through to find the relevant data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it gives the information what the user needed to refer in a well format.&lt;/P&gt;&lt;P&gt; what do u realy want in classical report.please mention.&lt;/P&gt;&lt;P&gt;thanks and regards,&lt;/P&gt;&lt;P&gt;manik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 06:28:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414335#M199429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T06:28:09Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414336#M199430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#149;	Classical reports are normal reports. These reports are not having any sub reports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT. &lt;/P&gt;&lt;P&gt;&amp;#149;	Events In Classical Reports. &lt;/P&gt;&lt;P&gt;&amp;#149;	INTIALIZATION: This event triggers before selection screen display. &lt;/P&gt;&lt;P&gt;&amp;#149;	AT-SELECTION-SCREEN: This event triggers after processing user input still selection screen is in active mode. &lt;/P&gt;&lt;P&gt;&amp;#149;	START OF SELECTIONS: Start of selection screen triggers after processing selection screen. &lt;/P&gt;&lt;P&gt;&amp;#149;	TOP-OF-PAGE: It provides header for ABAP reports. &lt;/P&gt;&lt;P&gt;&amp;#149;	END-OF-PAGE: It provides footer for page. &lt;/P&gt;&lt;P&gt;&amp;#149;	AT PF: For predefined function keys &lt;/P&gt;&lt;P&gt;&amp;#149;	END-OF-SELECTION &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this link also:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/" target="test_blank"&gt;http://www.sapdevelopment.co.uk/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhavana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:32:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414336#M199430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:32:23Z</dc:date>
    </item>
    <item>
      <title>Re: Classic Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414337#M199431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the order of execution in Classical/Interactive Report Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical Reports&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;Reports which are properly formatted  (header, footer, page numbers etc.,) with the help of one or more external events like top-of-page,end-of-page etc., are called as CLASSICAL REPORTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard list.&lt;/P&gt;&lt;P&gt;Output of Report program is nothing but Standard list. It consists of one continuous page of 60,000 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To restrict number of lines per page.&lt;/P&gt;&lt;P&gt;Report Zxxxxx line-count 25.&lt;/P&gt;&lt;P&gt;			OR&lt;/P&gt;&lt;P&gt;Report Zxxxxx line-count 25(3).&lt;/P&gt;&lt;P&gt;( In this case 3 lines are reserved for footer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To restrict Output width.&lt;/P&gt;&lt;P&gt;Report Zxxxx line-size 125.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To suppress standard page heading.&lt;/P&gt;&lt;P&gt;Report Zxxxx no standard page heading&lt;/P&gt;&lt;P&gt;Above all at a time:&lt;/P&gt;&lt;P&gt;Report Zxxxx line-count 25(3) &lt;/P&gt;&lt;P&gt;                       line-size 125&lt;/P&gt;&lt;P&gt;                       no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Events			List Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization. 		Start-of-selection &lt;/P&gt;&lt;P&gt;At selection-screen.		Top-of-page.&lt;/P&gt;&lt;P&gt;At selection-screen on &amp;lt;field&amp;gt;.	End-of-page.&lt;/P&gt;&lt;P&gt;				End-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can initialize the selection-screen with calculated default values under this event.&lt;/P&gt;&lt;P&gt;	Initialization.&lt;/P&gt;&lt;P&gt;	s_date-high = sy-datum.&lt;/P&gt;&lt;P&gt;	s_date-low = sy-datum - 15.&lt;/P&gt;&lt;P&gt;	Append s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can validate all the inputs on selection screen fields under this event.&lt;/P&gt;&lt;P&gt;	At selection-screen.&lt;/P&gt;&lt;P&gt;	If s_carrid-low is initial or &lt;/P&gt;&lt;P&gt;	    s_connid-low is initial or&lt;/P&gt;&lt;P&gt;	    s_date is initial.&lt;/P&gt;&lt;P&gt;	&amp;lt; ... code for validation... &amp;gt;.&lt;/P&gt;&lt;P&gt;	Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can validate a particular field input on selection screen under this event.&lt;/P&gt;&lt;P&gt;	At selection-screen on s_carrid.&lt;/P&gt;&lt;P&gt;	If s_carrid-low &amp;lt; &amp;gt; &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;	&amp;lt;&amp;#133; code for validation&amp;#133;&amp;gt;&lt;/P&gt;&lt;P&gt;	Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the other event comes before&lt;/P&gt;&lt;P&gt;&amp;#145;Select&amp;#133;Endselect.&amp;#146; statements, then to break&lt;/P&gt;&lt;P&gt;that event, we require this S-O-S event.&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;Select * from &amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we need some portion of the output (like&lt;/P&gt;&lt;P&gt;column headings) to appear in all the pages,&lt;/P&gt;&lt;P&gt;then we use this event.&lt;/P&gt;&lt;P&gt;Top-of-page.&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;Carrier&amp;#146;,10 &amp;#145;Connection&amp;#146; 20 &amp;#145;Date&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no external output statement before&lt;/P&gt;&lt;P&gt;&amp;#145;Top-of-page&amp;#146; event, then this event will not &lt;/P&gt;&lt;P&gt;work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the cursor reaches the last line of the &lt;/P&gt;&lt;P&gt;page, automatically this event will be triggered.&lt;/P&gt;&lt;P&gt;Report Zxxx line-count 25(3).&lt;/P&gt;&lt;P&gt;In this case line numbers 23, 24 and 25 are &lt;/P&gt;&lt;P&gt;reserved for footer.&lt;/P&gt;&lt;P&gt;Once the cursor reaches 23rd line, this event&lt;/P&gt;&lt;P&gt;will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End-of-page.&lt;/P&gt;&lt;P&gt;Write:/ sy-uline(75).&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;This is end of page:&amp;#146;,sy-pagno.&lt;/P&gt;&lt;P&gt;Write:/ sy-uline(75).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event is used for concluding part of List.&lt;/P&gt;&lt;P&gt;	End-of-selection.&lt;/P&gt;&lt;P&gt;	Write:/ &amp;#145;This is end of the Report&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interactive Report&lt;/P&gt;&lt;P&gt;A simple report or even a classical report  displays a clustered list with all the  requested output at one go. &lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;What ever it is displayed, it is final. That means, the user can not interact with with that list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple report or even a classical report  displays a clustered list with all the  requested output at one go. &lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;What ever it is displayed, it is final. That means, the user can not interact with with that list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interactive reports, we can create as many as 21 lists. &lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;The first list is called &amp;#145;Basic list&amp;#146; and all the successive lists are called &amp;#145;Secondary lists&amp;#146;. Each list is again an interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;The Basic list is not deleted when secondary list is created. &lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;A secondary list may either overlay the basic list or appear in an additional dialog window on the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;The system variable associated with list number is &amp;#145;SY-LSIND&amp;#146;.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;For basic list SY-LSIND = 0 and for secondary lists, SY-LSIND varies from 1 to 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User can interact with the list by the following ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double clicking or single click and pressing F2 (function key) or single click with &amp;#145;hotspot on&amp;#146;.&lt;/P&gt;&lt;P&gt;			OR&lt;/P&gt;&lt;P&gt;Selecting from menu bar or from application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the events used in classical reports can be used in Basic List.&lt;/P&gt;&lt;P&gt;The event &amp;#145;End-of-page&amp;#146; can be used in Secondary Lists also.(the other six events can not be used in secondary lists)&lt;/P&gt;&lt;P&gt;You can not place &amp;#145;select-options&amp;#146; in secondary lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following additional events are &lt;/P&gt;&lt;P&gt;applicable to secondary lists.&lt;/P&gt;&lt;P&gt;Top-of-page during line-selection.&lt;/P&gt;&lt;P&gt;At line-selection.&lt;/P&gt;&lt;P&gt;At user-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on any field in the basic list, you will be navigating to secondary list with detailed information pertaining to clicked field.&lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;As such we need to store the clicked field information at some variable. &lt;/P&gt;&lt;P&gt;		&lt;/P&gt;&lt;P&gt;&amp;#145;Hide&amp;#146; temporarily stores the content of clicked field for later use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default title of the out put is the text what we enter during creation of program.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;This title can be changed using:&lt;/P&gt;&lt;P&gt;SET TITLEBAR &amp;#145;AAA&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	GUI status includes:&lt;/P&gt;&lt;P&gt;Menu bar&lt;/P&gt;&lt;P&gt;Application tool bar and&lt;/P&gt;&lt;P&gt;Activating standard tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	GUI status can be created using&lt;/P&gt;&lt;P&gt;SET PF-STATUS &amp;#145;BBB&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have 8 menus ( out of which, 2 menus are reserved for &amp;#145;System&amp;#146; and &amp;#145;Help&amp;#146;).&lt;/P&gt;&lt;P&gt;Each menu can have 15 menu items.&lt;/P&gt;&lt;P&gt;Each menu item can have 3 levels of submenus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create 35 items in application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example Code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  zs_stockreport3&lt;/P&gt;&lt;P&gt;                        NO STANDARD PAGE HEADING&lt;/P&gt;&lt;P&gt;                        LINE-SIZE 255&lt;/P&gt;&lt;P&gt;                        MESSAGE-ID zz1.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Table Declaration                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TABLES: mara,&lt;/P&gt;&lt;P&gt;        marc,&lt;/P&gt;&lt;P&gt;        mard.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Types Declaration                                      *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF typ_mara,&lt;/P&gt;&lt;P&gt;       matnr TYPE mara-matnr, "Material Number"&lt;/P&gt;&lt;P&gt;       mbrsh TYPE mara-mbrsh, "Industrial Sector"&lt;/P&gt;&lt;P&gt;       mtart TYPE mara-mtart, "Material Type"&lt;/P&gt;&lt;P&gt;       meins TYPE mara-meins, "Base Unit of Measure"&lt;/P&gt;&lt;P&gt;       END OF typ_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF typ_makt,&lt;/P&gt;&lt;P&gt;       matnr TYPE makt-matnr, "Material Number"&lt;/P&gt;&lt;P&gt;       maktx TYPE makt-maktx, "Material Description"&lt;/P&gt;&lt;P&gt;       END OF typ_makt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF typ_marc,&lt;/P&gt;&lt;P&gt;       matnr TYPE marc-matnr, "Material Number"&lt;/P&gt;&lt;P&gt;       werks TYPE marc-werks, "Plant Number"&lt;/P&gt;&lt;P&gt;       END OF typ_marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF typ_mard,&lt;/P&gt;&lt;P&gt;       matnr TYPE marc-matnr, "Material Number"&lt;/P&gt;&lt;P&gt;       werks TYPE marc-werks, "Plant Number"&lt;/P&gt;&lt;P&gt;       lgort TYPE mard-lgort, "Storage Location"&lt;/P&gt;&lt;P&gt;       END OF typ_mard.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Intrnal tables Declaration                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;DATA: it_mara TYPE STANDARD TABLE OF typ_mara WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: it_makt TYPE STANDARD TABLE OF typ_makt WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: it_marc TYPE STANDARD TABLE OF typ_marc WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: it_mard TYPE STANDARD TABLE OF typ_mard WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Variable Declaration                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;DATA: v_count TYPE i.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;              Selection Screen                                       *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS   : s_matnr FOR mara-matnr.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP.&lt;/P&gt;&lt;P&gt;PARAMETERS       : p_mtart LIKE mara-mtart.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      Start Events                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      Initialization                                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;***&lt;/P&gt;&lt;P&gt;  PERFORM initial_input.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      At Selection-screen                            *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  PERFORM validte_inputdata.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      Start of Selection                             *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  SELECT matnr&lt;/P&gt;&lt;P&gt;         mbrsh&lt;/P&gt;&lt;P&gt;         mtart&lt;/P&gt;&lt;P&gt;         meins&lt;/P&gt;&lt;P&gt;         INTO TABLE it_mara&lt;/P&gt;&lt;P&gt;         FROM mara&lt;/P&gt;&lt;P&gt;         WHERE matnr IN s_matnr and&lt;/P&gt;&lt;P&gt;               mtart = p_mtart.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    sort it_mara by matnr.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    MESSAGE e001 WITH 'No data Found' ' For the Given'&lt;/P&gt;&lt;P&gt;                      'Selection Criteria'(400).&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT matnr&lt;/P&gt;&lt;P&gt;           maktx&lt;/P&gt;&lt;P&gt;           INTO TABLE it_makt FROM makt&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN it_mara&lt;/P&gt;&lt;P&gt;           WHERE matnr = it_mara-matnr&lt;/P&gt;&lt;P&gt;           AND spras = sy-langu.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    sort it_makt by matnr.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    select matnr&lt;/P&gt;&lt;P&gt;           werks&lt;/P&gt;&lt;P&gt;           from marc&lt;/P&gt;&lt;P&gt;           into table it_marc&lt;/P&gt;&lt;P&gt;           for all entries in it_mara&lt;/P&gt;&lt;P&gt;           where matnr = it_mara-matnr.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    sort it_marc by matnr werks.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT it_marc[] IS INITIAL.&lt;/P&gt;&lt;P&gt;    select matnr&lt;/P&gt;&lt;P&gt;           werks&lt;/P&gt;&lt;P&gt;           lgort&lt;/P&gt;&lt;P&gt;           from mard&lt;/P&gt;&lt;P&gt;           into table it_mard&lt;/P&gt;&lt;P&gt;           for all entries in it_marc&lt;/P&gt;&lt;P&gt;           where matnr = it_marc-matnr and&lt;/P&gt;&lt;P&gt;                 werks = it_marc-werks.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    sort it_mard by matnr werks lgort.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: a TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;  a = sy-tabix MOD 2.&lt;/P&gt;&lt;P&gt;  IF a = 1.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR 5.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR OFF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  read table it_marc with key matnr = it_mara-matnr&lt;/P&gt;&lt;P&gt;                              binary search.&lt;/P&gt;&lt;P&gt;  if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    read table it_mard with key matnr = it_marc-matnr&lt;/P&gt;&lt;P&gt;                                werks = it_marc-werks&lt;/P&gt;&lt;P&gt;                                binary search.&lt;/P&gt;&lt;P&gt;    if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;      read table it_makt with key matnr = it_mara-matnr&lt;/P&gt;&lt;P&gt;                                  binary search.&lt;/P&gt;&lt;P&gt;      if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        WRITE:/ sy-vline.&lt;/P&gt;&lt;P&gt;          WRITE: 2             it_mara-matnr,&lt;/P&gt;&lt;P&gt;                 18 sy-vline,  it_mara-mbrsh,&lt;/P&gt;&lt;P&gt;                 38 sy-vline,  it_mara-mtart,&lt;/P&gt;&lt;P&gt;                 54 sy-vline,  it_mara-meins,&lt;/P&gt;&lt;P&gt;                 78 sy-vline,  it_makt-maktx,&lt;/P&gt;&lt;P&gt;                120 sy-vline,  it_marc-werks,&lt;/P&gt;&lt;P&gt;                135 sy-vline,  it_mard-lgort, 155 sy-vline.&lt;/P&gt;&lt;P&gt;          clear : it_mara.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    clear : it_makt.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;WRITE: /(155) sy-uline.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                          Top of Page                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  FORMAT COLOR 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE: /(155) sy-uline.&lt;/P&gt;&lt;P&gt;  WRITE:/ sy-vline.&lt;/P&gt;&lt;P&gt;  WRITE: 2             'Material Number',&lt;/P&gt;&lt;P&gt;         18 sy-vline,  'Industrial Sector',&lt;/P&gt;&lt;P&gt;         38 sy-vline,  'Material Type',&lt;/P&gt;&lt;P&gt;         54 sy-vline,  'Base Unit of Measure',&lt;/P&gt;&lt;P&gt;         78 sy-vline,  'Material Description',&lt;/P&gt;&lt;P&gt;         120 sy-vline, 'Plant',&lt;/P&gt;&lt;P&gt;         135 sy-vline, 'Storage Location',155 sy-vline.&lt;/P&gt;&lt;P&gt;  WRITE: /(155) sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FORMAT RESET.&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                          End of Page                                *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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  Initial_Input&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;      Initailization of Select Option&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 initial_input .&lt;/P&gt;&lt;P&gt;  CLEAR s_matnr.&lt;/P&gt;&lt;P&gt;  REFRESH s_matnr.&lt;/P&gt;&lt;P&gt;  s_matnr-low    = '100-100'.&lt;/P&gt;&lt;P&gt;  s_matnr-high   = '111-111'.&lt;/P&gt;&lt;P&gt;  s_matnr-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  s_matnr-option = 'BT'.&lt;/P&gt;&lt;P&gt;  APPEND s_matnr.&lt;/P&gt;&lt;P&gt;  p_mtart = 'ROH'.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " Initial_Input&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  Validte_Inputdta&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;      Validation of Select Option&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 validte_inputdata .&lt;/P&gt;&lt;P&gt;  SELECT SINGLE * FROM mara&lt;/P&gt;&lt;P&gt;   WHERE matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    MESSAGE e001 WITH 'Material'(002) 'Type'(003) 'Does Not Exit'(400).&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                    " Validte_Inputdta&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;                      End of Selection                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;Sreenivasulu P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jul 2006 08:48:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/classic-report/m-p/1414337#M199431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-14T08:48:49Z</dc:date>
    </item>
  </channel>
</rss>

