Skip to Content
0
Former Member
Dec 18, 2013 at 12:23 PM

Incorrect field length for 'Remote Function Call' from BAPI_BANK_GETLIST

775 Views

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