You need to create two number sequences, use a scope that includes Financial calendar period and set scope parameters as appropriate for choosing the right number sequence.
How we create 2 number sequences and attach as a single one…In Scope Parameter’s I selected Fiscal calender & I select the year as well… but in Segments I didn;t get the year …but even i can manual enter the year but when the fiscal calender changes to the next year how number sequence will change automatically…
My req is in the next financial year the system can automatically change the num seq to the next year with out user intervention…
As I understand that, when year changes, it will stop to be in the scope of one sequence and will start to be in another sequence’s scope. Both number sequences must have a reference to the same data type (at Reference fast tab in Number sequences form).
The answer is obvious - scopes indeed are supported. Give me a concrete example - how the number sequence for CustRoutingSlip_PSN table is used in AX2012 R2.
In CustRoutingSlipId.setCustRoutingSlipId(), the number sequence reference is obtain by calling CustParameters::numRefCustRoutingSlipId() (that will get the number sequence for current date, but you could pass a date to get a number sequence for another period). In numRefCustRoutingSlipId(), you can see how period is found from the date, NumberSeqScope is constructed and passed to NumberSeqReference::findReference(). NumberSeqReference is found for the combination of data type and number sequence scope, i.e. different number sequences will be returned for different fiscal periods.
Obviously, it requires that the number sequence reference is obtained by scope - if a static number sequence is used (e.g. the sequence ID is taken from a parameter), AX can’t magically start using another number sequence.
Thanks for the reply… I will give an example how the customer wanted number sequence based on year…
What the customer wanted over here is …:: he want to see the sequence based on the year so that he can easily identify the order on which year it got placed …So as per the sequence defied in the scope setup its should come the year in the number sequence…but Its not Coming …I am think is Its a bug…Y because of If u change the data in segment table then its coming as per the specified format… but when u define the year its not coming …
Martin ::: if a static number sequence is used (e.g. the sequence ID is taken from a parameter), AX can’t magically start using another number sequence.
But is there any possibility based on fiscal calender defined in the ledger can’t we reflect in the scope for the number sequence in ax 2012 R2.
Still I didn’t Understand the functionality of AX 2012 R2 Number sequence for the scope :Fiscal Calender & Legal Entity…