Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

MT940 tag 25: IBAN number + currency

Hello,

we have now a format change for MT940 tag25 where the IBAN is put together with the curreny. Normally you would put it into the alternative account number and everything is fine, BUT the length of that field is only 24 characters and the value delivered in the MT940 tag 25 is longer than that. Any idea how to solve this?

Thanks in advance and best regards

Melanie

Former Member
Former Member replied

Hi,

use the user exit for replacing the bank account in :25: (in IMG: "Develop Enhancements for Elec.Bank Statement (Format Spec.)).

Use enhancement FEB00004 (Raw data processing, user exit SWIFT MT940)


and create a function like this:

(not tested with this code, but tested with my code for similar requirements)

FUNCTION Z_EXIT_RFEKA400_001.

*"----------------------------------------------------------------------

*"*"Interface locale :

*"  TABLES

*"      T_RAW_DATA STRUCTURE  RAW_DATA

*"  EXCEPTIONS

*"      ERROR_OCCURED

*"----------------------------------------------------------------------

  LOOP AT T_RAW_DATA.

    IF T_RAW_DATA(4) = ':25:'.

*     (your code for replacing data in :25:)

*      something like:

*      IF ...

*        MOVE xxxx TO T_RAW_DATA+4.

*      ENDIF.

      MODIFY T_RAW_DATA INDEX SY-TABIX.

    ENDIF.

ENDLOOP.

ENDFUNCTION.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question