<?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 [resolved] tsapinput with variable input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343249#M111024</link>
    <description>Hi all, 
&lt;BR /&gt;I'm new to Talend and I am already facing a quite difficult problem for a newbie. 
&lt;BR /&gt;I need to extract some data from SAP clustered table CDPOS using a call to RFC_READ_TABLE function 
&lt;BR /&gt;using a tsapinput. I have to pass some filtering conditions as costants and other 2 as variable values&amp;nbsp; 
&lt;BR /&gt;coming from an Oracle table. 
&lt;BR /&gt;The job works fine if I set all the values as constants by setting the parameter "TEXT" of type "table_input" 
&lt;BR /&gt;like: "MANDANT = '400' AND " , "CHANGENR = '19193234' AND ", "OBJECTID = '00100000000458520000' " 
&lt;BR /&gt;(it is like an array of strings, each one max 72 charaters in length, merged at runtime AFAIK) 
&lt;BR /&gt;but it doesn't work if I try to pass some variable data like: 
&lt;BR /&gt;"MANDANT = '400' AND " , "CHANGENR = '19193234' AND ", "OBJECTID = '" + ((String)globalMap.get("row2.OBJECTID")) +"'" 
&lt;BR /&gt;What is the correct way to pass variable parameters to tsapinput component? No luck using a tFixedFlowInput or,&amp;nbsp; 
&lt;BR /&gt;more probably, it is not used in the right way. 
&lt;BR /&gt;I am using TOS 5.5.1.r118616. Ask me if more details are needed. 
&lt;BR /&gt;TIA, 
&lt;BR /&gt;&amp;nbsp; Vince</description>
    <pubDate>Fri, 15 Apr 2016 17:41:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-04-15T17:41:32Z</dc:date>
    <item>
      <title>[resolved] tsapinput with variable input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343249#M111024</link>
      <description>Hi all, 
&lt;BR /&gt;I'm new to Talend and I am already facing a quite difficult problem for a newbie. 
&lt;BR /&gt;I need to extract some data from SAP clustered table CDPOS using a call to RFC_READ_TABLE function 
&lt;BR /&gt;using a tsapinput. I have to pass some filtering conditions as costants and other 2 as variable values&amp;nbsp; 
&lt;BR /&gt;coming from an Oracle table. 
&lt;BR /&gt;The job works fine if I set all the values as constants by setting the parameter "TEXT" of type "table_input" 
&lt;BR /&gt;like: "MANDANT = '400' AND " , "CHANGENR = '19193234' AND ", "OBJECTID = '00100000000458520000' " 
&lt;BR /&gt;(it is like an array of strings, each one max 72 charaters in length, merged at runtime AFAIK) 
&lt;BR /&gt;but it doesn't work if I try to pass some variable data like: 
&lt;BR /&gt;"MANDANT = '400' AND " , "CHANGENR = '19193234' AND ", "OBJECTID = '" + ((String)globalMap.get("row2.OBJECTID")) +"'" 
&lt;BR /&gt;What is the correct way to pass variable parameters to tsapinput component? No luck using a tFixedFlowInput or,&amp;nbsp; 
&lt;BR /&gt;more probably, it is not used in the right way. 
&lt;BR /&gt;I am using TOS 5.5.1.r118616. Ask me if more details are needed. 
&lt;BR /&gt;TIA, 
&lt;BR /&gt;&amp;nbsp; Vince</description>
      <pubDate>Fri, 15 Apr 2016 17:41:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343249#M111024</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-15T17:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsapinput with variable input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343250#M111025</link>
      <description>Now I'm trying with a tflowToSapRfcTable but it seem that no global var is set ( I get a unknown column errro while retrieving&amp;nbsp; 
&lt;BR /&gt;globalMap.get("column_name") ) 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Sun, 17 Apr 2016 08:46:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343250#M111025</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-17T08:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tsapinput with variable input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343251#M111026</link>
      <description>After a tOracleInput which extracts 2 column from a table, I used a tFlowToIterate to transform each field of each row extracted&amp;nbsp;to a global variable. The trick part was the way to pass this data to a&amp;nbsp;tSAPInput to extract some other data&amp;nbsp;from the CSOD SAP table 
&lt;BR /&gt;using the function module "RFC_READ_TABLE". 
&lt;BR /&gt;To achieve this you have to know that: 
&lt;BR /&gt; 
&lt;BR /&gt;this function uses a table (a kind of array of strings limited to 72 characters per element) as where condition 
&lt;BR /&gt;you specify the fields to extract passing them as a table (array of strings) in the input field "FIELDS" (put them as "FIELD1","FIELD2",...) 
&lt;BR /&gt;the output is another table (this time an array of strings of 512 bytes) in wich each rows is a csv made of the fields you specify in the "Fields" variable separated from the character spefied in "DELIMITER" input field 
&lt;BR /&gt;If you have multiple condition you have to split it in multiple strings like: 
&lt;BR /&gt;"Sap_Table_Field_1 = 
&lt;FONT color="#ff3333"&gt; &lt;B&gt;'&lt;/B&gt;&lt;/FONT&gt;" +&amp;nbsp;((String)globalMap.get("global_var_1")) +" 
&lt;FONT color="#ff3333"&gt;&lt;B&gt;'&lt;/B&gt;&lt;/FONT&gt; ","Sap_Table_Field_2 = 
&lt;FONT color="#ff3333"&gt;'&lt;/FONT&gt;" +&amp;nbsp;((String)globalMap.get("global_var_2")) +" 
&lt;B&gt;&lt;FONT color="#ff3333"&gt;'&lt;/FONT&gt;&lt;/B&gt; ", " Sap_Table_Field_3 = 
&lt;FONT color="#ff3333"&gt;'&lt;/FONT&gt;some_constant 
&lt;FONT color="#ff3333"&gt;'&lt;/FONT&gt;" 
&lt;BR /&gt;Pay attention to:&amp;nbsp; 
&lt;BR /&gt; 
&lt;BR /&gt;put a space before and after "="&amp;nbsp; 
&lt;BR /&gt;single quote to delimitate values (the red single quote like 
&lt;FONT color="#ff3333"&gt;&lt;B&gt;'&lt;/B&gt;&lt;/FONT&gt;some_constant 
&lt;FONT color="#ff3333"&gt;&lt;B&gt;'&lt;/B&gt;&lt;/FONT&gt; and before and after ((String)globalMap.get("global_var_#")) &amp;nbsp;) 
&lt;BR /&gt;limitate output length to 512 charatcters (see SAP documentation) and take in mind that if a field is 
&lt;BR /&gt;defined as CHAR 254 ( as &amp;nbsp;VALUE_NEW and VALUE_OLD in table CDPOS), the field is&amp;nbsp;always filled with blanks at the end even if it uses just a char. 
&lt;BR /&gt; 
&lt;BR /&gt;Hoping&amp;nbsp;this can help newbies and not. 
&lt;BR /&gt;Vince</description>
      <pubDate>Sun, 17 Apr 2016 23:23:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tsapinput-with-variable-input/m-p/2343251#M111026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-17T23:23:39Z</dc:date>
    </item>
  </channel>
</rss>

