<?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: Problem with RFC function module from R/3 to CRM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082337#M730984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you define your parameters in CRM exactly the same way as in R3, do not use type string here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt; it_pos_line-descripcion type C char 40,&lt;/P&gt;&lt;P&gt;it_pos_line-material type C length 35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2007 08:28:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-26T08:28:55Z</dc:date>
    <item>
      <title>Problem with RFC function module from R/3 to CRM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082336#M730983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, i have a RFC function module created in R/3, this is the code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function Z_CRM_PRODUCTO_INTERLOCUTOR.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Interfase local&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_VKORG) TYPE  VKORG&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_VTWEG) TYPE  VTWEG&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_MATNR) TYPE  MATNR&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_KUNNR) TYPE  KUNNR_V&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_KDMAT) TYPE  MATNR_KU&lt;/P&gt;&lt;P&gt;*"     VALUE(GV_POSTX) TYPE  KDPTX&lt;/P&gt;&lt;P&gt;*"  EXCEPTIONS&lt;/P&gt;&lt;P&gt;*"      NOT_FOUND&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  UNPACK GV_MATNR TO GV_MATNR.&lt;/P&gt;&lt;P&gt;  UNPACK GV_KUNNR TO GV_KUNNR.&lt;/P&gt;&lt;P&gt;  select single  KDMAT POSTX&lt;/P&gt;&lt;P&gt;          into (GV_KDMAT, GV_POSTX) from KNMT&lt;/P&gt;&lt;P&gt;          where   VKORG = GV_VKORG&lt;/P&gt;&lt;P&gt;                  and  VTWEG = GV_VTWEG&lt;/P&gt;&lt;P&gt;                  and  KUNNR = GV_KUNNR&lt;/P&gt;&lt;P&gt;                  and  MATNR = GV_MATNR.&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    RAISE NOT_FOUND.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i call this function from CRM, i do it like this:&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'Z_CRM_PRODUCTO_INTERLOCUTOR'&lt;/P&gt;&lt;P&gt;  DESTINATION LV_RFCDEST&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    GV_VKORG  = lv_vkorg&lt;/P&gt;&lt;P&gt;    GV_VTWEG  = ORGMAN_H-DIS_CHANNEL&lt;/P&gt;&lt;P&gt;    GV_MATNR  = ORDERADM_I_WRK-ORDERED_PROD&lt;/P&gt;&lt;P&gt;    GV_KUNNR  = WA_DATOS_PER-N_PAGADOR&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;    GV_POSTX  = IT_POS_LINE-DESCRIPCION&lt;/P&gt;&lt;P&gt;    GV_KDMAT  = IT_POS_LINE-material&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    not_found = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where:&lt;/P&gt;&lt;P&gt; it_pos_line-descripcion type string&lt;/P&gt;&lt;P&gt;it_pos_line-material type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, my problem is that when debugging, in R/3 the 2 return values have the correct value, but when they are passed to CRM they have only one position. &lt;/P&gt;&lt;P&gt;As i've been told, it was working ok, but it's being wrong since we made a ¿conversion to unicode?. Maybe I should change the type of return ??? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 08:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082336#M730983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T08:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with RFC function module from R/3 to CRM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082337#M730984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure you define your parameters in CRM exactly the same way as in R3, do not use type string here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So:&lt;/P&gt;&lt;P&gt; it_pos_line-descripcion type C char 40,&lt;/P&gt;&lt;P&gt;it_pos_line-material type C length 35.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 08:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082337#M730984</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T08:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with RFC function module from R/3 to CRM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082338#M730985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that's what i suppose but as the consultant told me, some days ago it was working ok. Is it possible ???&lt;/P&gt;&lt;P&gt;I'll change the definitions. thanks a lot !!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 08:36:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082338#M730985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T08:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with RFC function module from R/3 to CRM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082339#M730986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maria,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When changing to unicode these problems arise easily as the length of a field might change. But besides any unicode issues,  the type definitions in the calling system and the called system should be exaclty the same to prevent these kind of problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2007 08:40:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-rfc-function-module-from-r-3-to-crm/m-p/3082339#M730986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-26T08:40:11Z</dc:date>
    </item>
  </channel>
</rss>

