<?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: problems retrieving data from CRM calling R/3 FM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061011#M1503310</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;  it is strange but could you please confirm that ZCRM_PRUEBA has been marked as Pass Value on Export parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jul 2010 10:58:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-07-12T10:58:35Z</dc:date>
    <item>
      <title>problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061006#M1503305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have created a FM in R/3 that retrieves data to show on CRM.&lt;/P&gt;&lt;P&gt;The FM is executed correctly but when i call it from CRM, the internal table that i obtain from the FM is empty.&lt;/P&gt;&lt;P&gt;Here is the code of the FM,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*"----------------------------------------------------------------------
*"*"Interfase local
*"  IMPORTING
*"     VALUE(LD_PARTNER) TYPE  KUNNR
*"  EXPORTING
*"     VALUE(ZPRUEBA_CRM) TYPE  ZPRUEBA_TAB
*"     VALUE(RETURN) TYPE  CHAR1
*"----------------------------------------------------------------------

DATA wa_mat type zprueba_line.

CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
  EXPORTING
    input         = LD_PARTNER
 IMPORTING
   OUTPUT        = LD_PARTNER.

SELECT * FROM zprueba
  INTO CORRESPONDING FIELDS OF TABLE ZPRUEBA_CRM
  WHERE bp_number EQ LD_PARTNER.

IF sy-subrc ne 0.
  return = 'A'.
else.
  return = 'X'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;i also return the variable return to see if the select was correct, and in debugging i can see that return has X value, so the query is correct.&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061006#M1503305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061007#M1503306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Can you please give me the structure details of ZPRUEBA_TAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061007#M1503306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061008#M1503307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, here it is,&lt;/P&gt;&lt;P&gt;ZPRUEBAS_TAB IS A TABLE TYPE of structute zprueba_line, that has this fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANDT type	MANDT&lt;/P&gt;&lt;P&gt;BP_NUMBER type KUNNR&lt;/P&gt;&lt;P&gt;MATNR TYPE MATNR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:21:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061008#M1503307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061009#M1503308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During Debugging , did you saw the values in the table ZPRUEBA_CRM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check both the structure in CRM and R3 are same?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:39:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061009#M1503308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061010#M1503309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In debugging i can see the value of return variable but not the internal table value.&lt;/P&gt;&lt;P&gt;It was supposed to have 3 register but it does not show them.&lt;/P&gt;&lt;P&gt;The X value shows that the query is being executed correctly.&lt;/P&gt;&lt;P&gt;BEst Regards&lt;/P&gt;&lt;P&gt;Jon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061010#M1503309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061011#M1503310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;  it is strange but could you please confirm that ZCRM_PRUEBA has been marked as Pass Value on Export parameters?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061011#M1503310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061012#M1503311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check both the structure in CRM and R3 are same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If both are same means, try using [] for the internal table used to collect the values from the FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZRFC_R3'
  EXPORTING
    LD_PARTNER        =  W_PARTNER
 IMPORTING
    ZPRUEBA_CRM    = IT_ZPRUEBA_CRM[]
    RETURN               =     w_RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Senthil Kumar on Jul 12, 2010 4:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 10:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061012#M1503311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T10:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061013#M1503312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I checked that is pass value and i also tried to put the IT with [] but nothing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 11:19:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061013#M1503312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T11:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061014#M1503313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jon,&lt;/P&gt;&lt;P&gt;  can I suggest you 2 things?&lt;/P&gt;&lt;P&gt;first one, is it possible to you, use TABLES instead of EXPORTING?&lt;/P&gt;&lt;P&gt;second one, in CRM, when you are implementing the call to the fm, the internal table might have the same name?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'XXXX' DESTINATION  xxx&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    LD_PARTNER        =  LD_PARTNER&lt;/P&gt;&lt;P&gt; IMPORTING&lt;/P&gt;&lt;P&gt;    ZPRUEBA_CRM    =  ZPRUEBA_CRM&lt;/P&gt;&lt;P&gt;    RETURN               =   RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Carlos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 12:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061014#M1503313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T12:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: problems retrieving data from CRM calling R/3 FM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061015#M1503314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i did that and it works!!&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jul 2010 13:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-retrieving-data-from-crm-calling-r-3-fm/m-p/7061015#M1503314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-12T13:21:33Z</dc:date>
    </item>
  </channel>
</rss>

