Consider that we have two sales lines in one sales order.
Now add two supplementary items for each line.
So totally in my so i have 2 so lines and 4 supplementary lines.
Now i want to know out of 4 supplementary lines which lines are related to what sales line.
I have created a new thread for you.
Look at the table \Data Dictionary\Tables\SupplementarySalesLineRef. It has the mapping of sales line and its supplementary items.
Thanks for your quick reply.
Sorry i am unable to find any table with SupplementarySalesLineRef but we have SuppItemTable and there is no relation with salesline.
What is your AX version?
Ax 2012 r2
It exists in R3.
Try debugging the code that creates the sales line for supplementary items.