<?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: Adapter Property Sets in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112879#M4095928</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Alice! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 17:49:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-06-11T17:49:09Z</dc:date>
    <item>
      <title>Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaq-p/11112874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif';"&gt;&lt;SPAN style="font-size: 12pt;"&gt;Hello!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: inherit, serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;I'm having troubles trying to define adapter properties using environment variables (I'd like to use env variables instead explicit path declarations in order to improve project portability). As an example I have the following simple project:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'inherit','serif';"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/722237" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;As you see it just read streams using a CSV input stream adaptor with certain properties (by declaring variables explicitly like this, the project works properly as expected).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;To get this more portable I'm trying to define the 'dir' parameter as an environment variable. To get that, I've modified the CCL file by defining a property set as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/722238" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;... and then, declaring the properties in the corresponding CCR file as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/722239" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;As you see, one of these properties (the 'dir' name) is now an environment variable, so I've also declared that variable on my Windows operating system:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/722243" height="338" width="305" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;... but now the project is not working and I cant figure out what is wrong (I can't see error traces regarding this). I've been trying different possibilities: as you see I've declared the variable at user level and also at system level, and also I've been playing with 'C:/TEMP' instead of 'C:\TEMP' and other things like that... but without positive results.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;Am I doing something wrong...? Could somebody help with this...?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;Thanks a lot in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;Pd.-&amp;nbsp; Related with this: Is it possible in some way to read environment variables using CCL functions...?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 11:57:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaq-p/11112874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-10T11:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112875#M4095924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times;"&gt;I've found a solution to the problem: it seems that it is necessary to define environment variables according the host operating conventions. So for MS-Windows it should be something like '%ENV_VARIABLE%' instead of '${EN_VARIABLE}'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;For this specific case we have to declare:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;&amp;lt;Property name="dir"&amp;gt;%SAP_ESP_STREAMS_INPUT_DIR%&amp;lt;/Property&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'times new roman', times; font-size: 12pt;"&gt;instead of&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times;"&gt;&amp;lt;Property name="dir"&amp;gt;${SAP_ESP_STREAMS_INPUT_DIR}&amp;lt;/Property&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'times new roman', times;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;... that's all&lt;/SPAN&gt; &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1291/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 08:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112875#M4095924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T08:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112876#M4095925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ignacio,&lt;/P&gt;&lt;P&gt;Regarding your question of:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 12pt; font-family: 'inherit','serif';"&gt;Pd.-&amp;nbsp; Related with this: Is it possible in some way to read environment variables using CCL functions...?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;It is not possible to read environment variables using CCL functions.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112876#M4095925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T17:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112877#M4095926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another thought regarding some way to read environment variables using CCL functions - an indirect approach: have some shell script that dumps output of env to a file and then load that file into a window and access it like that from CCL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:42:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112877#M4095926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T17:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112878#M4095927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Ignacio,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy you were able to find a solution to the problem. As far as being able to do this directly from CCL by calling a built-in function no unfortunately we don't have that functionality. Using CCR is your best option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrzej.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112878#M4095927</guid>
      <dc:creator>andrzej_kucharczyk</dc:creator>
      <dc:date>2015-06-11T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adapter Property Sets</title>
      <link>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112879#M4095928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice clue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot Alice! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 17:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/adapter-property-sets/qaa-p/11112879#M4095928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-06-11T17:49:09Z</dc:date>
    </item>
  </channel>
</rss>

