<?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: Problem using Select... different tables in different systems (MANDT)... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240249#M1382049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but if the client number of DEV is 0100, the control wont even go to the select of 0200 i,e the table FMFMOATCC2000012 . Then how are you getting this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2009 17:24:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-08T17:24:45Z</dc:date>
    <item>
      <title>Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240243#M1382043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;My problem is that SAP create different tables in DEV, QAS and PRD. My program runs well in DEV, but when i transported it to QAS,it gave a dump, error the table is not found. Correct, that's why SAP created the table in QAS with another name... why¿? no idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was thinking to do sth like this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
      case sy-mandt.
      when '0100'.
        select single target1 into wa1-fipex
        from FMFMOADCC1000034                 " table used in DEV
        where sour1_from = wa1-hkont and sour1_to = wa1-hkont.
      when '0200'.
        select single target1 into wa1-fipex
        from FMFMOATCC2000012                " table used in QAS
        where sour1_from = wa1-hkont and sour1_to = wa1-hkont.

      endcase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but it doesnt work, because the table of QAS doesnt exit in DEV. , but how can i do it??&lt;/P&gt;&lt;P&gt;Can i create a dynamic select? or any ideas, how to solve that problem???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 16:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240243#M1382043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T16:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240244#M1382044</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;Whats the issue you are facing with the code you have used? since you are selecting based on the sy-mandt it will pick the appropriate select statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 16:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240244#M1382044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T16:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240245#M1382045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What creates these tables(tcode, process)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240245#M1382045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240246#M1382046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP created those tables in &lt;STRONG&gt;FMDERIVER&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP gives different names in different systems. Crazy..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240246#M1382046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240247#M1382047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;nop, because in DEV, SAP gave me an error, the table &lt;STRONG&gt;FMFMOATCC2000012&lt;/STRONG&gt; doesnt exit. It is correct, in mandt 100, that table doesnt exit, but in 200 exits. and opposite.&lt;/P&gt;&lt;P&gt;?¿?¿ Any idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240247#M1382047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240248#M1382048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to call the function module ABADR_DRULE_TABLENAMES_GET and get the tablename and change your select statement to be a dynamic table select.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240248#M1382048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240249#M1382049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok but if the client number of DEV is 0100, the control wont even go to the select of 0200 i,e the table FMFMOATCC2000012 . Then how are you getting this error?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:24:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240249#M1382049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240250#M1382050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it is correct.&lt;/P&gt;&lt;P&gt;Try to make a select using a table that it doesnt exit in SAP, it gives u an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLE NAME is not defined in the ABAP Dictionary as a table, projection view, or database view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it is not possible to use it.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240250#M1382050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240251#M1382051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i understood now. I thought you were getting a dump. but the select wont even pass the syntax check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240251#M1382051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:36:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240252#M1382052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One more option could be as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table &lt;STRONG&gt;DD02T&lt;/STRONG&gt; stores all the table names. You could make a select on this table and frame your actual select query dynamically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: w_tabname type dd02t-tabname.

select single tabname 
from dd02t
into w_tabname
where tabname = 'FMFMOADCC1000034' OR
            tabname = 'FMFMOATCC2000012 '.

if sy-subrc = 0.

select single target1 
into wa1-fipex
from ( w_tabname )               
where sour1_from = wa1-hkont and 
            sour1_to = wa1-hkont.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 17:52:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240252#M1382052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T17:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240253#M1382053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know why you are doing this but a simple hack will solve your woes &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    DATA: DYNTAB TYPE TABNAME.
 
    case sy-mandt.
      when '0100'.
         dyntab = 'FMFMOADCC1000034'.
      when '0200'.
         dyntab = 'FMFMOATCC2000012'.
      endcase.

        select single target1 into wa1-fipex
        from (dyntab)                " table used in QAS
        where sour1_from = wa1-hkont and sour1_to = wa1-hkont.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this should suffice ... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 18:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240253#M1382053</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-10-08T18:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240254#M1382054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;That was the answer that i was looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 18:27:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240254#M1382054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T18:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem using Select... different tables in different systems (MANDT)...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240255#M1382055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Note 1231815|https://websmp206.sap-ag.de/~form/handler?_APP=01100107900000000342&amp;amp;_EVENT=REDIR&amp;amp;_NNUM=1231815&amp;amp;_NLANG=E] gives the proper solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2009 18:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-using-select-different-tables-in-different-systems-mandt/m-p/6240255#M1382055</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-08T18:39:04Z</dc:date>
    </item>
  </channel>
</rss>

