In my dimension master there have a dimension the name is "RND". Against RND dimension I want to run the no. series to generate the dimensions value.
Code, I have added it but it is not working. no. series is not generating automatically. In my table 349 I have added the below code:
//Generate No. series BEGINSalesSetup.GET;NoSeriesCode := '';IF Code = '' THEN BEGIN NoSeriesMgt.InitSeries(SalesSetup."R&D Dimension No. Series",'',WORKDATE,Code,NoSeriesCode);END;//Generate No. series END
Here all variables are below:
Name DataType Subtype LengthSalesSetup Record Sales & Receivables Setup NoSeriesMgt Codeunit NoSeriesManagement NoSeriesCode Code 10
Try this function instead InitSeries:
Code := NoSeriesMgt.GetNextNo(NoSeriesCode,WORKDATE,TRUE);
I have tried with but there is no effect.
I noticed that "NoSeriesCode := '';" leaves teh series code to blank. So there you can´t retrieve any new number this. You can show me all the function code?
Thank you very much for your proper support. Actually solution is not working. My code is below.
I would request you, please review my screenshot and suggest me where I am doing wrong. Waiting for reply.
//Generate No. series BEGINSalesSetup.GET;NoSeriesCode := SalesSetup."R&D Dimension No. Series";IF Code = '' THEN BEGINCode := NoSeriesMgt.GetNextNo(NoSeriesCode,WORKDATE,TRUE);END;
//Generate No. series END
Here NoSeriesCode is a code type variable length is 10.
Business Applications communities