Master scheduling batch job issue ax 4.0

Hi All,

I have created a sales order with the item 1000. After that i ran the batch job Master scheduling batch job(Master planning -> Periodic -> Master scheduling) with the same item.A production order have been created with the Reference type "Sales" and the production order dimension is updated with new batchId(Which is ProdId). But In sales order line the new dimension is not updated.

I have debugged the class "ReqCalcSheduleItemTable" and found in ProdTableType/Insert method the InventRefType value is "None". But finally it is updated to "Sales" once the batch job is done. Can anyone help me to solve this issue ?

I want to know whether the Sales order dimesion will be updated or not when creating the production order using Master scheduling batch job.

Please assist...

Thanks in Advance...