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

BAPI_BANK_CREATE Problem

Former Member
0 Likes
2,708

Hi,

I am testing BAPI_BANK_CREATE function module.

I am getting an error called "No check digit procedure is planned for bank numbers with <n> digits", only for bank country key(BANKS) = 'US'.

Can anyone figure out the problem.

Vijayanand.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,156

Error appears in this FM.

FI_CHECK_BANK_NUMBER_US

It checks the length of the BANK key and if its not equal to 9. Message class is AR and message number is 206

here is the code which checks it..

  • ------ Einzelfelder --------------------------------------------------

DATA: FAKTOR TYPE I,

REFE1 TYPE I, " Rechenfeld

REFE2 TYPE I, " Rechenfeld

SAVE_BANKN LIKE KNBK_BF-BANKL, " Save-Feld BLZ

STRLN TYPE I, " Stringlänge

WEIGHT(8) TYPE C VALUE '37137137'.

" Gewicht. der Stellen 1 bis 8 der BLZ

CHECK I_BANK_NUMBER NE SPACE.

  • ------ Formalia ------------------------------------------------------

SAVE_BANKN = I_BANK_NUMBER.

STRLN = STRLEN( SAVE_BANKN ).

IF SAVE_BANKN(9) CN ' 1234567890'.

MESSAGE E125 RAISING NOT_VALID.

ENDIF.

  IF STRLN NE 9.
    MESSAGE W206 WITH STRLN.
    EXIT.
  ENDIF.

  • ------ Prüfziffer ermitteln ------------------------------------------

REFE1 = 0.

REFE2 = 0.

DO 8 TIMES.

FAKTOR = WEIGHT(1).

3 REPLIES 3
Read only

Former Member
0 Likes
2,157

Error appears in this FM.

FI_CHECK_BANK_NUMBER_US

It checks the length of the BANK key and if its not equal to 9. Message class is AR and message number is 206

here is the code which checks it..

  • ------ Einzelfelder --------------------------------------------------

DATA: FAKTOR TYPE I,

REFE1 TYPE I, " Rechenfeld

REFE2 TYPE I, " Rechenfeld

SAVE_BANKN LIKE KNBK_BF-BANKL, " Save-Feld BLZ

STRLN TYPE I, " Stringlänge

WEIGHT(8) TYPE C VALUE '37137137'.

" Gewicht. der Stellen 1 bis 8 der BLZ

CHECK I_BANK_NUMBER NE SPACE.

  • ------ Formalia ------------------------------------------------------

SAVE_BANKN = I_BANK_NUMBER.

STRLN = STRLEN( SAVE_BANKN ).

IF SAVE_BANKN(9) CN ' 1234567890'.

MESSAGE E125 RAISING NOT_VALID.

ENDIF.

  IF STRLN NE 9.
    MESSAGE W206 WITH STRLN.
    EXIT.
  ENDIF.

  • ------ Prüfziffer ermitteln ------------------------------------------

REFE1 = 0.

REFE2 = 0.

DO 8 TIMES.

FAKTOR = WEIGHT(1).

Read only

0 Likes
2,156

Hi Amandeep,

I agree with you, if your BANKS length is not equal to 9, then you get the error message number 206, When it is 9, then I am getting error message saying "Invalid Bank key".

My problem, is how to figure out the solution.

Vijayanand.

Read only

0 Likes
2,156

Hi Vijayanand,

Country-specific check digit procedures are carried out if the field 'Bank data' (in 'Additional checks' in table T005) is marked.The function module checks, whether the bank key or the bank number contain valid characters and whether they contain the necessary check digit.

Tru debugging the FM FI_CHECK_BANK_NUMBER_US.

Cheers

Amandeep