<?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: SAP RFC_READ_TABLE Length of Selection Criteria in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258117#M40022</link>
    <description>you might have a better time by trying to modify the component to do what you want-- 
&lt;BR /&gt;take a look at the generated code to see exactly what the issue is, and if you find a problem, look here: 
&lt;BR /&gt;$TALEND_HOME/plugins/org.talend.designer.components.localprovider/components/tSAPInput 
&lt;BR /&gt;Talend components use jet to generate code; look at the begin, main and end .javajet files.</description>
    <pubDate>Sat, 04 Jun 2011 01:09:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-06-04T01:09:15Z</dc:date>
    <item>
      <title>SAP RFC_READ_TABLE Length of Selection Criteria</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258116#M40021</link>
      <description>I have a list of 1,000+ profit centers contained in a regularly updated file. One of my requirements is to retrieve project information from SAP only where the profit center is a member of that list. I am using RFC_READ_TABLE to retrieve data from the SAP table. My job looks like this so far: 
&lt;BR /&gt;tJava --&amp;gt; tSAPInput --&amp;gt; tFileOutputDelimited 
&lt;BR /&gt;In tJava, I read the file and build the selection criteria string, which looks like "PRCTR = '12345' OR PRCTR = '98765' OR...". I set a context variable to that selection criteria. tSAPInput has its "OPTIONS" table ParameterValue set to context.ProfitCenterCriteria. 
&lt;BR /&gt;After many failures and head scratching I figured out that this method works, until the context variable length grows beyond a certain point. The "OPTIONS" table in RFC_READ_TABLE accepts a string of about 72 characters per row. You must split a single long statement amoung multiple rows. I can't figure out how to split the profit center selection criteria context variable into a form that the "OPTIONS" table will accept. I tried inserting commas in the string where the string should split between rows. I tried inserting line breaks. Nothing works. Is there a way to tell TOS that this string should be divided into multiple table rows? 
&lt;BR /&gt;Just to be clear, if I were to hard code the selection criteria directly in the tSAPInput component it would look like this: 
&lt;BR /&gt;"PRCTR = '12345' OR PRCTR = '98765'", "OR PRCTR = '13335' OR PRCTR = '98885'" 
&lt;BR /&gt;That works because TOS recognizes the comma as a new row. A variable that contains this: ""PRCTR = '12345' OR PRCTR = '98765' OR PRCTR = '13335' OR PRCTR = '98885'" does not work, because it is not being split into multiple rows.</description>
      <pubDate>Sat, 16 Nov 2024 12:53:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258116#M40021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T12:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAP RFC_READ_TABLE Length of Selection Criteria</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258117#M40022</link>
      <description>you might have a better time by trying to modify the component to do what you want-- 
&lt;BR /&gt;take a look at the generated code to see exactly what the issue is, and if you find a problem, look here: 
&lt;BR /&gt;$TALEND_HOME/plugins/org.talend.designer.components.localprovider/components/tSAPInput 
&lt;BR /&gt;Talend components use jet to generate code; look at the begin, main and end .javajet files.</description>
      <pubDate>Sat, 04 Jun 2011 01:09:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258117#M40022</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-06-04T01:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP RFC_READ_TABLE Length of Selection Criteria</title>
      <link>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258118#M40023</link>
      <description>I suggest to use tPLSAPInput free component from Talend Exchange (
&lt;A href="http://talendforge.org/exchange/index.php?eid=456&amp;amp;product=tos&amp;amp;action=view" rel="nofollow noopener noreferrer"&gt;http://talendforge.org/exchange/index.php?eid=456&amp;amp;product=tos&amp;amp;action=view&lt;/A&gt;). It has a built in method to split long WHERE conditions into smaller pieces to set properly the OPTIONS table TEXT field.</description>
      <pubDate>Sat, 21 Jan 2012 10:57:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/SAP-RFC-READ-TABLE-Length-of-Selection-Criteria/m-p/2258118#M40023</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2012-01-21T10:57:11Z</dc:date>
    </item>
  </channel>
</rss>

