<?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 SYNONYM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356184#M520613</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;   can any one tell me what is synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created one synonym with sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;        createsynonym sapr3.abcde&lt;/P&gt;&lt;P&gt;      ENDEXEC.&lt;/P&gt;&lt;P&gt;then it is creating the synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i checked whether it is exist or not using DB_EXISTS_TABLE and even DB_EXISTS_VIEW function module also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i executed those function modules and in the view name or table name tab i entered synonym name.but it is throughing sy-subrc as 4 , even i created the synonym already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body tell me exact function module to checkthe existence of synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jun 2007 09:42:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-04T09:42:46Z</dc:date>
    <item>
      <title>SYNONYM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356184#M520613</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;   can any one tell me what is synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created one synonym with sql&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL.&lt;/P&gt;&lt;P&gt;        createsynonym sapr3.abcde&lt;/P&gt;&lt;P&gt;      ENDEXEC.&lt;/P&gt;&lt;P&gt;then it is creating the synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i checked whether it is exist or not using DB_EXISTS_TABLE and even DB_EXISTS_VIEW function module also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i executed those function modules and in the view name or table name tab i entered synonym name.but it is throughing sy-subrc as 4 , even i created the synonym already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any body tell me exact function module to checkthe existence of synonym.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356184#M520613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: SYNONYM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356185#M520614</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;A synonym is a DB object which can reference to a table, view, package..., regardless whether it belongs to the same schema or to a different one, and regardless whether it belongs to the same database or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, suppose you are working in SAP R/3 with Oracle. Then the main schema may have the name "SAPR3". Well, it may not be a nice procedure, but you may have more schemas into the same SAP R/3 machine (for test purposes, for example). Let's suppose there is another schema, say TESTSAP, with DB tables that are NOT created via SAP R/3. Well, you can create a public synonym, so that these tables are accesible from the whole machine. For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE PUBLIC SYNONYM my_remote_table&lt;/P&gt;&lt;P&gt;FOR testsap.my_table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every time you access "my_remote_table" (for instance, in a SELECT statement), it will automatically be redirected to the table "my_table" in schema "TESTSAP".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another utility is to link several databases in several machines. This can be achieved via db-links. You may also create synonyms for that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE PUBLIC SYNONYM my_remote_table&lt;/P&gt;&lt;P&gt;FOR admin_1.salaries@another_db&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So every time you access "my_remote_table", it will be redirected to the table "salaries" of schema "admin_1" into database "another_db", which can be another database different fom SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 09:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356185#M520614</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T09:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: SYNONYM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356186#M520615</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;synonym is an alias for tables/views/program unit.&lt;/P&gt;&lt;P&gt;1.A synonym is another name for a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every synonym has a name that is unique within the entire database system and differs from all the other table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.The Function Module For Checking whether the Synonym(Table) is exist or not is DB_EXISTS_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://sapdb.org/7.4/htmhelp/48/8af5a1a54f11d2a97100a0c9449261/content.htm" target="test_blank"&gt;http://sapdb.org/7.4/htmhelp/48/8af5a1a54f11d2a97100a0c9449261/content.htm&lt;/A&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;Omkar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Omkaram Yanamala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356186#M520615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: SYNONYM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356187#M520616</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;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.A synonym is another name for a table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every synonym has a name that is unique within the entire database system and differs from all the other table names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.The Function Module For Checking whether the Synonym(Table) is exist or not is DB_EXISTS_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sree&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:09:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356187#M520616</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-06-04T10:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: SYNONYM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356188#M520617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes,I know that this function module used to check existence of synonym.but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created one synonym sapr3.abcde.&lt;/P&gt;&lt;P&gt;and it is created.and i checked with db_exists_table.but subrc is returning as 4 only.i think this is not the one to check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jun 2007 10:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/synonym/m-p/2356188#M520617</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-04T10:26:56Z</dc:date>
    </item>
  </channel>
</rss>

