<?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 DYNAMIC_CALL_FAILURE using a function module in sproxy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-call-failure-using-a-function-module-in-sproxy/m-p/4189886#M1001599</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a standard function module in sproxy.&lt;/P&gt;&lt;P&gt;When we call it, we get an exception for DYNAMIC_CALL_FAILURE.&lt;/P&gt;&lt;P&gt;If i call it from a specific program, with exactly the same parameters and same data, it's correctly processed.&lt;/P&gt;&lt;P&gt;I'm unable to understand why we have a different behavior when we call it from a class in sproxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a clue to solve this problem ?&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
current_partner = '48822'.
    CLEAR lt_partner_update.
    REFRESH lt_partner_update.

    CLEAR wa_partner_update.
    MOVE current_partner TO wa_partner_update-partner.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = wa_partner_update-partner
      IMPORTING
        output = wa_partner_update-partner.

    CALL FUNCTION 'BUPA_NUMBERS_GET'
      EXPORTING
        iv_partner      = wa_partner_update-partner
      IMPORTING
        ev_partner_guid = wa_partner_update-partner_guid.
    APPEND wa_partner_update  TO   lt_partner_update.

    CLEAR   lt_return.
    REFRESH lt_return.
* Update Attributes
    CALL FUNCTION 'CRM_MKTBP_ASSIGN_ATTRIBUT'
      EXPORTING
        iv_atname               = 'FR_SERVICES_20_META_CUSTOMER_1'
        iv_attribute_set        = 'FR_SERVICES'
*       IV_MSA                  = ' '
        iv_atwrt                = 'hdac1937'
*       IV_ATFLV                =
*       IV_ATFLB                =
*       IV_ATCOD                =
*       IV_CONVERT_VALUES       = 'X'
         iv_single_value         = ''
*       IV_ATWRT_OLD            =
*       IV_ATFLV_OLD            =
*       IV_ATFLB_OLD            =
*       IV_ATCOD_OLD            =
        iv_commit               = 'X'
        iv_obtyp                = 'BUT000'
*       IV_WRITE_ALE            = ' '
*     IMPORTING
*       EV_COUNT                =
      TABLES
        it_partner              = lt_partner_update
        et_return               = lt_return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jul 2008 07:37:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-16T07:37:37Z</dc:date>
    <item>
      <title>DYNAMIC_CALL_FAILURE using a function module in sproxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-call-failure-using-a-function-module-in-sproxy/m-p/4189886#M1001599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using a standard function module in sproxy.&lt;/P&gt;&lt;P&gt;When we call it, we get an exception for DYNAMIC_CALL_FAILURE.&lt;/P&gt;&lt;P&gt;If i call it from a specific program, with exactly the same parameters and same data, it's correctly processed.&lt;/P&gt;&lt;P&gt;I'm unable to understand why we have a different behavior when we call it from a class in sproxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have a clue to solve this problem ?&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
current_partner = '48822'.
    CLEAR lt_partner_update.
    REFRESH lt_partner_update.

    CLEAR wa_partner_update.
    MOVE current_partner TO wa_partner_update-partner.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        input  = wa_partner_update-partner
      IMPORTING
        output = wa_partner_update-partner.

    CALL FUNCTION 'BUPA_NUMBERS_GET'
      EXPORTING
        iv_partner      = wa_partner_update-partner
      IMPORTING
        ev_partner_guid = wa_partner_update-partner_guid.
    APPEND wa_partner_update  TO   lt_partner_update.

    CLEAR   lt_return.
    REFRESH lt_return.
* Update Attributes
    CALL FUNCTION 'CRM_MKTBP_ASSIGN_ATTRIBUT'
      EXPORTING
        iv_atname               = 'FR_SERVICES_20_META_CUSTOMER_1'
        iv_attribute_set        = 'FR_SERVICES'
*       IV_MSA                  = ' '
        iv_atwrt                = 'hdac1937'
*       IV_ATFLV                =
*       IV_ATFLB                =
*       IV_ATCOD                =
*       IV_CONVERT_VALUES       = 'X'
         iv_single_value         = ''
*       IV_ATWRT_OLD            =
*       IV_ATFLV_OLD            =
*       IV_ATFLB_OLD            =
*       IV_ATCOD_OLD            =
        iv_commit               = 'X'
        iv_obtyp                = 'BUT000'
*       IV_WRITE_ALE            = ' '
*     IMPORTING
*       EV_COUNT                =
      TABLES
        it_partner              = lt_partner_update
        et_return               = lt_return.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 07:37:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-call-failure-using-a-function-module-in-sproxy/m-p/4189886#M1001599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T07:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: DYNAMIC_CALL_FAILURE using a function module in sproxy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-call-failure-using-a-function-module-in-sproxy/m-p/4189887#M1001600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In fact it was caused by a difference in the structures of the fm and those used to export the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jul 2008 10:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-call-failure-using-a-function-module-in-sproxy/m-p/4189887#M1001600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-16T10:17:44Z</dc:date>
    </item>
  </channel>
</rss>

