<?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: Using context variables for input of tSAPBAPI component in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360551#M125111</link>
    <description>&lt;P&gt;I am not sure how to put context variables in your highlighted field. &amp;nbsp;Does context.myParam not work? &amp;nbsp;How about using a globalMap variable? &amp;nbsp;Can you put a tJavaRow before the tSAP component to set the value of your highlighted variable with a context variable, e.g.&lt;/P&gt;
&lt;PRE&gt;output_row.row_QUERY_TABLE_1 = context.tableOne;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are general instructions on using context groups for different environments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a context group with variables for each of the database connection parameters, e.g. Client, UserId, Password etc. &amp;nbsp;To create a context group, right click on the 'Contexts' folder and select 'Create context group'. &amp;nbsp;You can then create multiple environments for the context group, e.g. dev, test and prod with different values for the variables. &amp;nbsp;To use your context group in your job's context, click the notepad icon below your job context and select the context group you want and which environment as the default. &amp;nbsp;Then, in your tSAPBAPI component, instead of hardcoding the connection parameters like you have now, use context.client, context.user_id, context.password etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for documentation on creating context groups:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/CZjx_~qx6zHuAklJ3AZ~Tg/Kdi_v5RSFf2UIwuzqLaZ8g" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/reader/CZjx_~qx6zHuAklJ3AZ~Tg/Kdi_v5RSFf2UIwuzqLaZ8g&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 00:43:49 GMT</pubDate>
    <dc:creator>nfz11</dc:creator>
    <dc:date>2019-06-11T00:43:49Z</dc:date>
    <item>
      <title>Using context variables for input of tSAPBAPI component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360550#M125110</link>
      <description>&lt;P&gt;Dear Talend team,&lt;/P&gt; 
&lt;P&gt;may I kindly ask for your help on how to use context variables in input for tSAPBapi components? For simplicity I refer to the tSAPBapi documentation example "Scenario 2" (&lt;A href="https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/ljofdRaECYJBINNnF5PXsQ" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/ljofdRaECYJBINNnF5PXsQ&lt;/A&gt;). See screenshot below.&lt;/P&gt; 
&lt;P&gt;For tSAPBapi input of type "table" we can use context variables in the component to feeds that input - that's working fine.&lt;/P&gt; 
&lt;P&gt;However tSAPBapi input&amp;nbsp; of type "single" seems to need to be entered directly into the tSAPBapi component. In the example it's QUERY_TABLE set to "VBRK" (highlighted in the screenshot below).&amp;nbsp;The question is how to supply "VBRK" from a context variable rather than having to enter it manually in the component?&lt;/P&gt; 
&lt;P&gt;I can imagine two ways:&lt;/P&gt; 
&lt;P&gt;#1 Allowing to supply input of type "single" from other components, similar to type "table" ones. We would use context variables in those feeding components&lt;/P&gt; 
&lt;P&gt;#2 Any way to use context variables in type "single" fields directly.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Background: We want to use context variables to switch Talend jobs seamlessly between development, test and production environments.&lt;/P&gt; 
&lt;P&gt;Since some of the tSAPBapi parameter are different in those environments, we'd like to supply them from context variables as well for seamless transition between environments.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Many thanks in advance for your support!&lt;/P&gt; 
&lt;P&gt;Markus&lt;/P&gt; 
&lt;P&gt;Backup: Screenshot of the referenced tSAPBapi input:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tSAPBapiInput.PNG" style="width: 763px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M5OV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134032i3F9B229343FAA4F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M5OV.png" alt="0683p000009M5OV.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2019 09:59:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360550#M125110</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-10T09:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variables for input of tSAPBAPI component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360551#M125111</link>
      <description>&lt;P&gt;I am not sure how to put context variables in your highlighted field. &amp;nbsp;Does context.myParam not work? &amp;nbsp;How about using a globalMap variable? &amp;nbsp;Can you put a tJavaRow before the tSAP component to set the value of your highlighted variable with a context variable, e.g.&lt;/P&gt;
&lt;PRE&gt;output_row.row_QUERY_TABLE_1 = context.tableOne;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below are general instructions on using context groups for different environments:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a context group with variables for each of the database connection parameters, e.g. Client, UserId, Password etc. &amp;nbsp;To create a context group, right click on the 'Contexts' folder and select 'Create context group'. &amp;nbsp;You can then create multiple environments for the context group, e.g. dev, test and prod with different values for the variables. &amp;nbsp;To use your context group in your job's context, click the notepad icon below your job context and select the context group you want and which environment as the default. &amp;nbsp;Then, in your tSAPBAPI component, instead of hardcoding the connection parameters like you have now, use context.client, context.user_id, context.password etc.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See here for documentation on creating context groups:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/CZjx_~qx6zHuAklJ3AZ~Tg/Kdi_v5RSFf2UIwuzqLaZ8g" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://help.talend.com/reader/CZjx_~qx6zHuAklJ3AZ~Tg/Kdi_v5RSFf2UIwuzqLaZ8g&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 00:43:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360551#M125111</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-06-11T00:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Using context variables for input of tSAPBAPI component</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360552#M125112</link>
      <description>Many thanks for your response &amp;amp; sorry for my delayed reply.&lt;BR /&gt;Your solution worked. The fact, that the context variables to not pop up in a selection box does not mean that they can be simply used as described &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;</description>
      <pubDate>Thu, 20 Jun 2019 00:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Using-context-variables-for-input-of-tSAPBAPI-component/m-p/2360552#M125112</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-20T00:31:49Z</dc:date>
    </item>
  </channel>
</rss>

