<?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>Question Re: unable to use variable in bods - sql transform in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/unable-to-use-variable-in-bods-sql-transform/qaa-p/491083#M88431</link>
    <description>&lt;P&gt;Hi Swetha,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Use variable like [$var] when you are using in SQL transform to parametrize table.&lt;/P&gt;
  &lt;P&gt; like :- select * from [$G_SCHEMA].[$G_TABLE]&lt;/P&gt;
  &lt;P&gt; But first you have to give table name and update schema in SQL transform and then you can parameterize table name. Otherwise it wont work. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Ravi kiran&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2017 18:56:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2017-08-01T18:56:05Z</dc:date>
    <item>
      <title>unable to use variable in bods - sql transform</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-variable-in-bods-sql-transform/qaq-p/491082</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;
  &lt;P&gt;i am trying to incorporate 2 options to a bods job, need your suggestions on resolving the error :&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;1) variables inside sql transform in a bods job.&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;eg: &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;select * from db.schema.table where ...........&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;to be replaced by &lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;select * from {$db}.{$schema}.{$table} where........&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;but seems variable is not supported here, when i click on update schema button, i get the error message that error in the sql script needs to be rectified.&lt;/P&gt;
  &lt;P&gt;i also tried variable inside square braces like [$db], but that too gave same error.&lt;/P&gt;
  &lt;P&gt;&lt;STRONG&gt;2) can i use variable to select the desired connection for a datastore?&lt;/STRONG&gt;&lt;/P&gt;
  &lt;P&gt;i am adjusting the job for production environment wherein every option should be able to adjust as requrired&lt;/P&gt;
  &lt;P&gt;can anyone suggest on this?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 16:53:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-variable-in-bods-sql-transform/qaq-p/491082</guid>
      <dc:creator>former_member186160</dc:creator>
      <dc:date>2017-08-01T16:53:43Z</dc:date>
    </item>
    <item>
      <title>Re: unable to use variable in bods - sql transform</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-variable-in-bods-sql-transform/qaa-p/491083#M88431</link>
      <description>&lt;P&gt;Hi Swetha,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Use variable like [$var] when you are using in SQL transform to parametrize table.&lt;/P&gt;
  &lt;P&gt; like :- select * from [$G_SCHEMA].[$G_TABLE]&lt;/P&gt;
  &lt;P&gt; But first you have to give table name and update schema in SQL transform and then you can parameterize table name. Otherwise it wont work. &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Ravi kiran&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 18:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-variable-in-bods-sql-transform/qaa-p/491083#M88431</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-08-01T18:56:05Z</dc:date>
    </item>
  </channel>
</rss>

