Thnk's Amar
Now my program can work
Deni
----- Original Message -----
From: "Amar Senapati" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, March 04, 2005 5:20 AM
Subject: RE: [development-axapta] SalesTable+SalesLine
>
>
> Hi,
>
>
>
> You may need to add SalesLine.clear() code as the first line.
>
>
>
> Regards
>
> Amar
>
>
>
> _____
>
> From: Deni [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 3 March 2005 6:57 PM
> To: [email protected]
> Subject: [development-axapta] SalesTable+SalesLine
>
>
>
>
> Hi, I am new in Axapta Development
> I must create Sales order which type is journal
> but without using Sales Journal Form (AR -> Journal -> SalesOrder->
> SalesJournal)
>
> ---- header --------
> void saleshdrinsert(str _custgroup,
> CustAccount _custaccount,
> CustInvoiceAccount _invoiceaccount
> )
> {
> SalesTable_DS.create();
>
> ttsbegin;
>
> SalesTable.CustGroup = _custgroup;//
> SalesTable.CustAccount = _custaccount; //
> SalesTable.SalesType = 0;
> SalesTable.SalesStatus = 1;
> SalesTable.CurrencyCode = CompanyInfo::standardCurrency();
> SalesTable.InvoiceAccount = _invoiceaccount; //
> SalesTable.LanguageId ='en-us';
> element.numberSeqFormHandler().formMethodDataSourceWrite();
> salestable.insert();
>
> ttscommit;
> }
>
> for Salesheader, I think it works beacuse the error doesn't appear
>
> --------- line --------------
> void saleslineinsert(SalesId salesidhdr,
> ItemId _itemId,
> InventDimId _inventdimid
> )
> {
>
> ttsbegin;
>
> SalesLine.SalesId = salesidhdr;
> SalesLine.ItemId = _itemId;
> ...
> ...
>
> SalesLine.insert();
> ttscommit;
> }
>
> error comes out : "Item identification cannot be changed when inventory
> transactions have been generated."
> is there any wrong in that procedure..? if yes, can you explains..!
> is there any way ?
>
> Thanks for the answer.
>
> Regards,
>
> Deni
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
>
>
> Yahoo! Groups Sponsor
>
>
>
> ADVERTISEMENT
>
>
<http://us.ard.yahoo.com/SIG=129q644sd/M=298184.6018725.7038619.3001176/D=gr
>
oups/S=1705006764:HM/EXP=1109924422/A=2593423/R=0/SIG=11el9gslf/*http:/www.n
> etflix.com/Default?mqso=60190075> click here
>
>
>
>
<http://us.adserver.yahoo.com/l?M=298184.6018725.7038619.3001176/D=groups/S=
> :HM/A=2593423/rand=647886954>
>
>
>
> _____
>
> Yahoo! Groups Links
>
> * To visit your group on the web, go to:
> http://groups.yahoo.com/group/development-axapta/
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>
<mailto:[EMAIL PROTECTED]>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/> Terms of Service.
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
| Yahoo! Groups Sponsor | |
|
|
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

