on 06-25-2009 7:37 AM
For the contract account number, because of the check digit mechanism, we cannot random input a number for a contract account number. Does anyone knows the formula/method to derive the check digit?
Many Thanks!!
Hi,
Logic for check digit mechanism
Account Number verification (d1d2d3d4d5d6d7)
d7 = 10 u2013 ((d1 + 2d2 + d3 + 2d4 + d5 + 2*d6) MOD 10)
Where d1d2d3d4d5d6 (digits will be generated internally) and d7 based on logic given above.
For Example say first 6 digits are 999999 so 7th digit will be
d7= 10 u2013 ((92*992*99+2*9)MOD 10)
d7= 10 u2013 (81 MOD 10) (MOD will give the remainder after dividing by the divisor)
d7= 10 u2013 (81/10 so remainder is 1)
d7= 10 u2013 1 = 9
So contract account number is 9999999.
You can write your code in FQEVENT. Create a Z FM like in event 1019 and attach the FM there.
Hope this resolves your query.
Regards,
Manish
Edited by: Manish Bisht on Jun 25, 2009 8:57 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
you can pass this number to the provided FM and you will get the check digit calculated
it is a standard FM developed specially for CA checkdigit
even for the logic you can check code inside it.
It will resolve your query!
Regards,
Prajakta
Edited by: Prajakta Shringarpure on Jun 25, 2009 1:45 PM
Hi Wing,
Do you want to add the check digit in the number?
You can do that by the formula
d12 = 10 - ((7+ 2362582992402*5+3)MOD 10)
Or you want to know the check digit of the number.(means is this number that you provided contains the check digit?). Please elaborate your requirement.
Regards,
Manish
Hi Anthony,
Check digit is determined based on customer specific logic. If its the final number that you are getting, then you check the FM attached to the FQEVENT 1019.
There you will find a 'Z' FM attached. That FM must be containing the logic for getting Check Digit. Otherwise it would be difficult to tell the logic as it can be Customer specific.
I have already given you the logic used in my project.
Hope this helps.
Regards,
Manish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Try with this FM "FKK_SAMPLE_1019_2_CHECKDIGITS"
Regards,
Prajakta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.