Bapi_bank_change

DATA:
ABC_bnka TYPE BNKA,
ABC_BANK_ADDRESS TYPE BAPI1011_ADDRESS,
ABC_BANK_ADDRESSX TYPE BAPI1011_ADDRESSX,
ABC_RETURN TYPE BAPIRET2.

“ESTRUCTURA BAPI”

ABC_BANK_ADDRESS-BANK_NAME = OP_BANK_NAME.
ABC_BANK_ADDRESS-REGION = OP_REGION.
ABC_BANK_ADDRESS-STREET = OP_STREET.
ABC_BANK_ADDRESS-CITY = OP_CITY.

“ACTUALIZAR”
ABC_BANK_ADDRESSX-BANK_NAME = ‘X’.
ABC_BANK_ADDRESSX-REGION = ‘X’.
ABC_BANK_ADDRESSX-STREET = ‘X’.
ABC_BANK_ADDRESSX-CITY = ‘X’.

CALL FUNCTION ‘BAPI_BANK_CHANGE’
EXPORTING
BANKCOUNTRY = ABC_BNKA-BANKS
BANKKEY = ABC_BNKA-BANKL
BANK_ADDRESS = ABC_BANK_ADDRESS
BANK_ADDRESSX = ABC_BANK_ADDRESSX

IMPORTING
“refereciar las clases del Export”
RETURN = ABC_RETURN.

“refereciar bc_return a Export”
OP_RETURN = ABC_RETURN.

IF sy-subrc = 0.
call function ‘BAPI_TRANSACTION_COMMIT’
exporting
wait = ‘X’.
wait up to 2 seconds.
ENDIF.

NO ME ME ACTULIZA LO CAMPOS , ALGUIEN SABE QUE ESTOY HACIRENDO MAL

Hola,
Tendrias que ejecutarlo mediante debug y ver que te está devolviendo en RETURN.
Si hay algun error al actualizar, ahi te lo va a decir.