Item registration process through code in Ax 2012

Hi All,

I want to generate a code for “Item Registration” process. I have ‘start’ value, ‘End’ value and ‘format’ in my hand.

These values will be filled in the “Create serial numbers” dialog. Once the values are provided, set of serial numbers will be generated when we click “OK” button in the dialog.

Now I need to do all these process through code. This registration process should happen automatically at the time of posting the journal.

Following is the navigation.

Inventory and warehouse management → Journals → Item transaction → Transfer.

Registration process can be done at the line level of this journal.

Any suggestion ? Thanks in advance.

Regards,

Faisal Raja J