Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DYNAMIC_CALL_FAILURE using a function module in sproxy

Former Member
0 Likes
375

Hi all,

We are using a standard function module in sproxy.

When we call it, we get an exception for DYNAMIC_CALL_FAILURE.

If i call it from a specific program, with exactly the same parameters and same data, it's correctly processed.

I'm unable to understand why we have a different behavior when we call it from a class in sproxy.

Does anyone have a clue to solve this problem ?

Thanks for your help.


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.

1 REPLY 1
Read only

Former Member
0 Likes
341

In fact it was caused by a difference in the structures of the fm and those used to export the data.