Hi Leandro I cannot answer your question fullfilly but you must use the SalesFormLetter_Invoice class
You have to call this class with true parameters -- SalesParmTable, SalesParmLine etc... You can find more information in AX Development Course book IV . (I can't remember it's whole name but I think it was like that) I hope this will help you... Regards Burak 2008/12/1 Leandro Taschek <[EMAIL PROTECTED]> > Hello Guys! > > > > > > Im from Brazil, and now Im starting to programming in Dynamics AX. Im a > technical consultant. > > > > Im in my first dynamics Project. We are installing the Dynamics in a medium > company. > > > > > > > > What's the problem? Well, there they have a another specialist system: > SoftWay – Trade (import/export system). This system is very good. It > controls specific documents, processes, ship schedules & information, dates… > > > > We need to work with these two softwares. While the dynamics controls basic > data (items, customer, and others), this another system will be control the > trade (import/export) data (taxes, ships, documents) > > > > When the process is finished (in this another system), it connect in a > Dynamics temp table, and write the sales invoice data request. With theses > registers, I need to create/post a sales invoice in dynamics ax. > > > > > > Did you understand? > > > > > > Well… this is my question: How can I write a Sales Invoice, using x++? What > API can I use? > > > > I believe this problem happens in a ERP migration, when the information is > copied from another system to Dynamics AX. > > > > > > > > Sorry my English… I dont speak English very well. > > > > > > > > Thanks! > ------------------------------ > Extend your network, join the Microsoft Dynamics AX Knowledge Village at > LINKEDIN ! <http://www.linkedin.com/e/gis/165338> > ------------------------------ > > >