cancel
Showing results for 
Search instead for 
Did you mean: 

Incorrect field length for 'Remote Function Call' from BAPI_BANK_GETLIST

Former Member
0 Kudos

Hello,


I have Gateway variables definition:

DATA lt_imp  TYPE zif_z_bapi_bank_getlist=>__bapi1011_list.

DATA ls_imp  TYPE LINE OF zif_z_bapi_bank_getlist=>__bapi1011_list.

and I want to call BAPI_BANK_GETLIST (inside createEntity method) and I get such an exception

(Incorrect field length for 'Remote Function Call').

It is because of lt_imp variable:

CALL FUNCTION lv_rfc_name DESTINATION lv_destination

       EXPORTING

         bank_ctry             = bank_ctry

         max_rows              = '0'

       IMPORTING

         return                = return

       TABLES

         bank_list             = lt_imp

       EXCEPTIONS

         system_failure        = 1000  MESSAGE lv_exc_msg

         communication_failure = 1001  MESSAGE lv_exc_msg

         OTHERS                = 1002.


Do you have any Idea? Without RFC it works well.

Regards

Vladislav Shakhmatov

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184867
Active Contributor
0 Kudos

Hi Vladislav,

As you mentioned without RFC it works fine that means the type that you use in ' lt_imp' is correct in the current system and it matches to the signature of BAPI_BANK_GETLIST  .

Can you please check the signature of BAPI_BANK_GETLIST in the remote system (where you are getting the error) if there is any change in the type of BANK_LIST     .

Regards,

Atanu