How to add Misc.Charges form to a new form in AP module in AX 2012 R2?

Hi,

I created a new form, and added a MarkupTrans_LinePurchTable menu Item to Button group. In charges code I didn’t get any lookup of Vendor Charges. In table Level I have created a field MarkupGroup, and relation to markupGroup. But I didn’t get any Lookup. What will I do for vendor charges code lookup in Misc.Charges Form?

Please help me how to get the lookup?

Thanks,

Balu

I found a solution for this lookup. I can add a relation to Markup Trans Table to our table, and add method in Markup trans(init fromMyTable) and add code in initfromcaller and initModuleType.