Can anybody tell what is the purpose of AxPurchline.
I cant tell you all the purposes, but one of them definitely is that Ax___ classes are used as accessor classes for AIF. When you exchange messages through AIF, those classes first accept data and only then it is being saved to respective tables.
AIF is not the only place where it is used, I have seen some other places, but cannot tell you for sure.
The main purpose of Ax classes is to be used by AIF framework for integration with other systems. You can also use AX classes in order to create data, basically AX classes will execute same logic as if you were to create a record by UI, in this case a purchase order line.
Hi,
AIF framework essentially made up of following classes -
- Service classes
- Document classes (Axd)
- Table classes (Ax)
- Document queries etc
- They provide read/write functionality on underlying tables
- During writing, they can set up default values on underlying tables so you can focus on specific key fields
- By default they respect tables’ validation, integrity rules etc.
The table classes essentially provide API to the underlying tables. For example AxPurchLine provides API interface to PurchLine table.
Major benefits of these classes are -
For more info, refer to this article (http://msdn.microsoft.com/en-us/library/aa873749.aspx) or Developers guide.
Best wishes,