on 09-08-2008 1:58 PM
Hi all!
I have created a formatted search which generates the business code automatically. Essentially it works with following query:
SELECT MAX(T0. CardCode)+1 FROM OCRD T0 WHERE T0.CARDTYPE= $[OCRD.CARDTYPE] FOR BROWSE
I want that the BP code only increases when I add a new data record. But currently the BP code also increases when Iu2019m just viewing the data record.
Regards,
Thilo Spiertz
Hi Thilo,
please see SAP note Note [1058266|https://service.sap.com/sap/support/notes/1058266] - Automatic creation of consecutive alphanumeric BP codes.
You can always modify the query to suit your needs.
All the best,
kerstin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you all!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
how can I make the following query to work with a nummeric bp code?
select max(cardtype)
+ cast(substring( max(cardcode), 2, len(max(cardcode)))
+ 1 as nvarchar(10)) from ocrd
where cardtype = $[OCRD.CARDTYPE]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
10 | |
6 | |
5 | |
5 | |
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.