Hi
you have to use the SalesFormLetter Class.

SalesFormLetter salesFormLetter;
SalesTable      salesTable;
;
salesTable = SalesTable::find("12345");
salesFormLetter = SalesFormLetter::contstruct(DocumentStatus::Invoice);
salesFormLetter.update(salesTable, SystemDateGet(),
SalesUpdate::PackingSlip, AccountOrder::Account, NoYes::No, NoYes::Yes);

I hope this will help you.

Regards
Bertino


--- In development-axapta@yahoogroups.com, "Leandro Taschek"
<[EMAIL PROTECTED]> wrote:
>
> 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!
> 
> 
> 
> [Non-text portions of this message have been removed]
>


Reply via email to