I have an xmlport for purchase invoices that works well, but we need to add shortcut dimension 3 and 4 to it, but those fields don't exist on the purchase line, only in the dimension set ID. How can I go about handling this? is there a way to look up the dimension set ID given the values of dimensions 1-4, or someway to populate that?
You can’t write Shortcut Dimensions 3/4 directly on purchase lines. You must build the Dimension Set ID instead. In your XMLport, read the dimension values, then use Codeunit Dimension Management to add/update those dimensions and get a Dimension Set ID, and assign it to the line. BC will reuse an existing set or create a new one automatically.
Regards,
Oussama Sabbouh
1 people found this reply helpful.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.