I have created a report for copying the customer from one company to another company. In New Customer field i want the last no used for customer no series of the company in which the customer will be copy.
Setup the No. Series, enter the last used no. , see below snap
Kindly let me know, If you wish any clarification from my side - Thank You
In reply to Binesh Singh Rajput:
In reply to Seemab07:
See i wrote a function that can take No.Series Code and return the LastUsed No.
In function NoSeries and NoSeriesLine are record variable of table 308 and 309.
For Testing Call this function something like:
MESSAGE('Last Used no.: %1', GetLastNoFromNoSeries('CUST'));
open Role Center Client -> In Search Menu type No. Series and then No Series Page -> A no. series page will display,
-> now Find your Customer Record and copy the Code value.
see below screenshot.
Have a great day, Erik