<?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: rfc in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145466#M452516</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the short dump you are getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, handle exception in your code. There no exception handling in your code, that might be the cause of short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this code. Also, for handling exception you have to define these exception on the "Exceptions" tab in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZCIC_QOS_DATA' DESTINATION 'CRM_DEV'
    EXPORTING
      ascno = kna1vv-kunnr
    IMPORTING
      qosytd = gv_qosytd
    TABLES
      qosdata = it_qosdata
    EXCEPTIONS
      communication_failure   = 01
      system_error            = 02.

CASE sy-subrc.
  WHEN 0.
    WRITE:/ 'Success'.
  WHEN 1.
    WRITE:/ 'Communication error'.
  WHEN 2.
    WRITE:/ 'System error'.
  WHEN OTHERS.
    WRITE:/ 'Unknown errors'.
ENDCASE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, debug your code and see why and where this error is happening. Give the error message from short dump (Tcode ST22) so we can give solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Apr 2007 21:17:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-02T21:17:23Z</dc:date>
    <item>
      <title>rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145463#M452513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a source file of about 10 fields,i was able to fetch 9 ,but the rest one field info ,i need to use rfc .The resp FM is on another server.i've come up with code like&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZCIC_QOS_DATA' DESTINATION 'CRM_DEV'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;  ASCNO = KNA1VV-KUNNR&lt;/P&gt;&lt;P&gt;  IMPORTING&lt;/P&gt;&lt;P&gt;  QOSYTD = GV_QOSYTD&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;  QOSDATA = IT_QOSDATA.&lt;/P&gt;&lt;P&gt;but its givin dump.&lt;/P&gt;&lt;P&gt;ascno is input for the rfc and qosytd is output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls help me.wats wrong in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 17:52:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145463#M452513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T17:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145464#M452514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through the following link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapbrain.com" target="test_blank"&gt;http://www.sapbrain.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See the example and do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 19:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145464#M452514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T19:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145465#M452515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you check if the RFC destination, CRM_DEV, is defined in SM59.  For any RFC to work, the destination has to be defined in SM59.  Also try adding exceptions to your function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_msgtext(100) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZCIC_QOS_DATA' DESTINATION 'CRM_DEV'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;ASCNO = KNA1VV-KUNNR&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;QOSYTD = GV_QOSYTD&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;QOSDATA = IT_QOSDATA&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;communication_failure = 1  MESSAGE l_msgtext&lt;/P&gt;&lt;P&gt;system_failure        = 2  MESSAGE l_msgtext.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will know what exactly the error is in the l_msgtext.  Also check ST22 to see why the program dumped, that might throw more light.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 20:57:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145465#M452515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T20:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145466#M452516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the short dump you are getting?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all, handle exception in your code. There no exception handling in your code, that might be the cause of short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this code. Also, for handling exception you have to define these exception on the "Exceptions" tab in function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZCIC_QOS_DATA' DESTINATION 'CRM_DEV'
    EXPORTING
      ascno = kna1vv-kunnr
    IMPORTING
      qosytd = gv_qosytd
    TABLES
      qosdata = it_qosdata
    EXCEPTIONS
      communication_failure   = 01
      system_error            = 02.

CASE sy-subrc.
  WHEN 0.
    WRITE:/ 'Success'.
  WHEN 1.
    WRITE:/ 'Communication error'.
  WHEN 2.
    WRITE:/ 'System error'.
  WHEN OTHERS.
    WRITE:/ 'Unknown errors'.
ENDCASE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, debug your code and see why and where this error is happening. Give the error message from short dump (Tcode ST22) so we can give solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 21:17:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145466#M452516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T21:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145467#M452517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FUNCTION ZLETRARFWBI001.&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(LINEAS) TYPE IW_NOLINES&lt;/P&gt;&lt;P&gt;*" TABLES&lt;/P&gt;&lt;P&gt;*" TI_FECHAS STRUCTURE ZLETRADATES OPTIONAL&lt;/P&gt;&lt;P&gt;*" TI_TRANS_PLAN_PT STRUCTURE ZLETRATPLST&lt;/P&gt;&lt;P&gt;*" TI_LOADS STRUCTURE ZLETRATKNUM OPTIONAL&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFUNCTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the CORRECT code of my call to the RFC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ZLETRARFWBI001' destination VL_DEST&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;LINEAS = VL_LINEAS&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;TI_FECHAS = TI_FECHAS&lt;/P&gt;&lt;P&gt;TI_TPLST = TI_TPLST&lt;/P&gt;&lt;P&gt;TI_LOADS = TI_LOADS&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;system_failure = 1 MESSAGE VL_MESS&lt;/P&gt;&lt;P&gt;communication_failure = 2 MESSAGE VL_MESS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 23:15:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145467#M452517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T23:15:41Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145468#M452518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if your RFC destination is active - go to SM59 to select your RFC dest and test it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you declare variable VL_DEST?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Apr 2007 23:26:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145468#M452518</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-02T23:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: rfc</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145469#M452519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u .My prob with the prog is solved.rfc was workin gud with just table and no input/output parameters...however exception handling is a helpful topic and so rewarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2007 20:01:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/rfc/m-p/2145469#M452519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-11T20:01:22Z</dc:date>
    </item>
  </channel>
</rss>

