Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Generate BP Code

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

replied

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

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question