<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SAP Integration throught RFC: Input Parameters Truncated</title><link>https://community.appian.com/discussions/f/integrations/37951/sap-integration-throught-rfc-input-parameters-truncated</link><description>Hi, 
 we are using the function a!sapInvoke to integrate with SAP throught RFC. Weeks ago, the integration worked and we received the results expected. 
 For development requirements, external system add some parameters and change the lenght of some text</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: SAP Integration throught RFC: Input Parameters Truncated</title><link>https://community.appian.com/thread/155033?ContentTypeID=1</link><pubDate>Tue, 30 Jun 2026 12:52:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1aa015b2-1849-4f5d-8a2e-17032b398b41</guid><dc:creator>kapilsharma</dc:creator><description>&lt;p&gt;Hi &lt;a href="/members/jurim077147"&gt;jurim077147&lt;/a&gt;&amp;nbsp;,&lt;br /&gt;&lt;br /&gt;This appears to be a metadata mismatch between Appian and SAP, rather than an issue with the &lt;code data-start="132" data-end="147"&gt;a!sapInvoke()&lt;/code&gt; expression itself.&lt;/p&gt;
&lt;p class="PDq2pG_selectionAnchorContainer" data-start="168" data-end="535"&gt;Since the integration worked before and only started failing after the SAP team increased the length of some fields (e.g., from &lt;code data-start="296" data-end="306"&gt;CHAR(20)&lt;/code&gt; to &lt;code data-start="310" data-end="320"&gt;CHAR(25)&lt;/code&gt;), it&amp;#39;s likely that Appian is still using the old RFC metadata. As a result, SAP reads the incoming data with incorrect field offsets, causing values from one parameter (e.g., &lt;code data-start="496" data-end="502"&gt;KEY2&lt;/code&gt;) to spill into another (&lt;code data-start="527" data-end="533"&gt;KEY1&lt;/code&gt;).&lt;span class="PDq2pG_selectionAnchor"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="" data-start="537" data-end="573"&gt;I recommend verifying the following:&lt;/p&gt;
&lt;ul data-start="575" data-end="901"&gt;
&lt;li data-section-id="1c6jozr" data-start="575" data-end="659"&gt;Confirm the updated parameter lengths and data types in SAP (using &lt;strong data-start="644" data-end="657"&gt;SE37/SE11&lt;/strong&gt;).&lt;/li&gt;
&lt;li data-section-id="1ows58e" data-start="660" data-end="769"&gt;Refresh or re-import the SAP RFC/BAPI metadata in Appian so both systems use the same interface definition.&lt;/li&gt;
&lt;li data-section-id="yt8e1b" data-start="770" data-end="901"&gt;Check whether any structures or additional parameters were also modified, as those changes can also cause field alignment issues.&lt;/li&gt;
&lt;/ul&gt;
&lt;p data-start="903" data-end="1106" data-is-last-node="" data-is-only-node=""&gt;The behavior you described (where &lt;code data-start="937" data-end="943"&gt;KEY1&lt;/code&gt; contains the first part of its value followed by characters from &lt;code data-start="1009" data-end="1015"&gt;KEY2&lt;/code&gt;) is a typical symptom of an &lt;strong data-start="1044" data-end="1081"&gt;RFC structure definition mismatch&lt;/strong&gt; between the two systems.&lt;br /&gt;&lt;br /&gt;Let me know if that helps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>