‎2007 Aug 16 5:26 PM
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.
‎2007 Aug 16 5:31 PM
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).
‎2007 Aug 16 5:31 PM
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).
‎2007 Aug 16 6:57 PM
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.
‎2007 Aug 16 7:06 PM
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