on 11-25-2021 2:08 PM
Dear Team,
We have Bp code next number series automatically through FMS query.
Its working fine for long time but Suddenly my fms is not working. How to solve this issue.
SELECT CASE $[OCRD.CARDTYPE]
WHEN 'C' THEN 'C'
WHEN 'S' THEN 'S'
WHEN 'L' THEN 'L'
END
+
(SELECT RIGHT('0000000' + LTRIM(RTRIM(CAST((SELECT MAX(Right(CardCode,6)) + 1
FROM [OCRD] WHERE CARDTYPE = $[OCRD.CARDTYPE]) AS CHAR))), 6))
Thanks
Vinoth
Is this for determinating BP code when entering new BP master data? Why not just use standard numbering series to get code +1?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vinoth,
the question is ... what happens is there a value in field?
Have you perhaps reached a number > 999999 (length in your query is 6)
regards Lothar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.