<?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: Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615416#M600301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while writing the select statement do not mention mandt = 100 or 200. directly write the select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward for useful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Aug 2007 14:20:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-02T14:20:23Z</dc:date>
    <item>
      <title>Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615414#M600299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to retrieve data from a table which is in two different clients say 100 and 200 and output that data as a list output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sriram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 13:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615414#M600299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T13:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615415#M600300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create a function module for this purpose..&lt;/P&gt;&lt;P&gt;Make this FM RFC enable...  &lt;/P&gt;&lt;P&gt;you will have to create RFC destination for the target client from which data will be selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did it earlier .. you can also try..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pradeep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:19:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615415#M600300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615416#M600301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;while writing the select statement do not mention mandt = 100 or 200. directly write the select statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;srinivas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward for useful answers&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 14:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615416#M600301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T14:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615417#M600302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the CLIENT SPECIFIED addition to the SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE ( MANDT = 100 or MANDT = 200 )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on your where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM FILE CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt; WHERE ( MANDT = 100 or MANDT = 200 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[your record processing code here]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * &lt;/P&gt;&lt;P&gt;INTO itab&lt;/P&gt;&lt;P&gt;FROM FILE CLIENT SPECIFIED&lt;/P&gt;&lt;P&gt; WHERE ( MANDT = 100 or MANDT = 200 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[your code to process itab here]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't use the CLIENT-SPECIFIED addition, the current client is always assumed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Aug 2007 21:26:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615417#M600302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-02T21:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615418#M600303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using Programs to Retrieve Data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use a program that reads data to generate dataset reports that use the automatic data retrieval process in the SAP Query. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program you use to read the data can either be an existing part of the InfoSet or an external program independent of the InfoSet. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can convert an InfoSet that uses an external data-reading program into an InfoSet with an integrated data-reading program. From the InfoSet: Initial Screen, you follow the menu path InfoSet -&amp;gt; More Functions -&amp;gt; Integrate External Reading Program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prerequisites&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have created an InfoSet and given it a name and an authorization group in the InfoSet: Title and Database screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information see Assigning Data Sources. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Procedure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the InfoSet: Title and Database dialog box, choose the Data Retrieval by Program field. &lt;/P&gt;&lt;P&gt;Specify a data structure. This structure must describe the structure of the records in the dataset that you want to report on. &lt;/P&gt;&lt;P&gt;The Integrated Program option is set by default. This is the most suitable option in most cases. &lt;/P&gt;&lt;P&gt;If you do want to use an external program, specify the name of the program in the External Program input field. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you transport an InfoSet that uses an external program to retrieve data, you must make sure that the InfoSet and the external program are transported together. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Choose  Continue. &lt;/P&gt;&lt;P&gt;Create a data-reading program before you generate the InfoSet for the first time. &lt;/P&gt;&lt;P&gt;The editor you use depends on the type of data-reading program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the editor in the InfoSet maintenance if you are working with an integrated data-reading program. &lt;/P&gt;&lt;P&gt;You use the ABAP editor if you are working with an external data-reading program.&lt;/P&gt;&lt;P&gt;The data-reading program must meet the following requirements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its structure must conform to certain conventions. &lt;/P&gt;&lt;P&gt;It must not contain any syntax errors. &lt;/P&gt;&lt;P&gt;It must use the same fixed point arithmetic as the InfoSet (if it is an external data-reading program).&lt;/P&gt;&lt;P&gt;The data-reading program is not intended to be executed itself. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic structure and operating sequence of a data-reading program is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report xxxxxxxx .&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;Tables tab .&lt;/P&gt;&lt;P&gt; Definition of the dictionary structure used to set up the InfoSet. This structure must contain the records that you want to report on. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Parameters .&lt;/P&gt;&lt;P&gt; Definition of parameters, selection criteria, and fields.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Select-Options:&amp;#133;&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;DATA: BEGIN OF itab OCCURS xxx.&lt;/P&gt;&lt;P&gt;      INCLUDE STRUCTURE tab.&lt;/P&gt;&lt;P&gt;DATA: END of itab.&lt;/P&gt;&lt;P&gt; Definition of an internal table itab with structure tab providing the records that you want to report on. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;Query_head&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; Comment to finish off a data statement.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Code to define the itab table, if such a table is used. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Start of a loop to retrieve, one at a time, each of the records that you want to report on, and place them in the tab structure (SELECT, DO, LOOP)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Code for formatting data&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;&amp;lt;Query_body&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; Comment to finish the statement in the loop. The data must be available in the tab structure.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;End of data retrieval loop for individual records (ENDSELECT, ENDDO, ENDLOOP)&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;P&gt;&lt;/P&gt;&lt;P&gt;If you arrange the components of the model report in an inappropriate sequence, SAP Query may generate meaningless reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The character strings for the two comment lines *&amp;lt;QUERY_HEAD&amp;gt; and *&amp;lt;QUERY_BODY&amp;gt; are set to begin immediately after the "&amp;lt;" character. The system does not make a distinction between capital letters and lower case letters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a model report, there are no restrictions on how you should organize the retrieval of your data. This means that you are able to use very complex algorithms to retrieve data, if you so wish. You can also use SELECT statements that read on a cross-client basis (CLIENT SPECIFIED extra). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal and external data-reading programs may also contain selections. These are displayed as standard selections in the selections overview () of either the Change InfoSet screen or the Display InfoSet screen. The system checks the program for selections regularly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal data-reading programs for every change made to the data-reading program. &lt;/P&gt;&lt;P&gt;External data-reading programs for calls of transaction SQ02 for the InfoSet.&lt;/P&gt;&lt;P&gt;Result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the maintenance screens for an InfoSet that uses an integrated program to retrieve data, you have the same options available to you as you do when you are working with InfoSets that use other data sources. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information see Special Features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you create a query for an InfoSet that uses a program to retrieve its data, the model report is used as a template when the query report is generated. The attributes of the model report are passed on to the generated reports. The model report itself is not changed as a result of this process. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that you also have the option of using a logical database to organize the data retrieval process. We recommend that, as a rule, you create the InfoSet directly using the logical database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following graphic shows a model report that uses the SELECT statement: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following graphic shows a model report that uses the LOOP statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The data is retrieved and placed in an internal table that is filled by a data import from the INDX. In the LOOP structure, each line must be read from PLANEDATA into SAPLANE. This is because the InfoSet has been created using the SAPLANE structure, and the query is expecting the data in a field string with the name SAPLANE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2014354"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 01:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615418#M600303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T01:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615419#M600304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;" Use  this below Code  sample .....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables  :  lfa1  .
data  :   begin of  itab  occurs  .
include struture  lfa1 .
data : end of itab .


select-options  : s_mandt  for   lfa1-mandt  .

select * from lfa1  into corresponding fields  of table  itab
                                                  where  mandt  in s_mandt .
loop at itab .
write /  :  itab-mandt , itab-lifnr  .
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 02:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615419#M600304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T02:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615420#M600305</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;  In your select query , check mandt for 100 n 200 .&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;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 05:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615420#M600305</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-08-03T05:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615421#M600306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI &lt;/P&gt;&lt;P&gt;BY USEING rfc U CAN DO THIS ONE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 10:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2615421#M600306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T10:59:44Z</dc:date>
    </item>
  </channel>
</rss>

