Skip to Content
author's profile photo Former Member
Former Member

Auto Increment for BP code in BP master

Dear All,

CAn any one provide FMS for autoincrement of BP as per following manner...

For Customer : Code must start with C followed by the customer first alphabet and then "000" +1

for eg the code must be : CA0001, CA0002, CB0001....and so on

Similarly for Vendor it must be VA0001, VB0001.....

So when user enters the first alphabet the consecutive increment number must be displayed.

s.r.p.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Oct 03, 2009 at 07:38 PM

    To generate the card code try this FS:

    If $[OCRD.CardType]='C'
     Select 'C'+substring($[$7.1],1,1)
             +substring(str(max(Substring(CardCode,3,4))+10001,5),2,4)
       From OCRD
       Where CardCode like 'C'+substring($[$7.1],1,1)+'%'

    (But the code will be generated after filling the partner name.)

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 05, 2009 at 07:29 AM

    Hi s.r.p.,

    please see SAP Note [1058266|https://service.sap.com/sap/support/notes/1058266].

    All the best,

    Kerstin

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.