Sure thing,
We are running Axapta 3.0 with SP3. Below is the
code used to Confirm the Orders:
public boolean confirmSalesOrder(SalesId
_salesId)
{
SalesFormletter SalesFormletter;
SalesTable SalesTable;
boolean b = false;
;
{
SalesFormletter SalesFormletter;
SalesTable SalesTable;
boolean b = false;
;
try
{
SalesFormletter =
SalesFormletter::construct(DocumentStatus::Confirmation,true);
{
SalesFormletter =
SalesFormletter::construct(DocumentStatus::Confirmation,true);
SalesTable.clear();
Select SalesTable
where SalesTable.SalesId == _salesId;
Select SalesTable
where SalesTable.SalesId == _salesId;
SalesFormletter.update(SalesTable,
systemDateGet(),
SalesUpdate::All,
AccountOrder::None,
false,
false);
b = true;
}
catch
{
// error occured
b = false;
}
systemDateGet(),
SalesUpdate::All,
AccountOrder::None,
false,
false);
b = true;
}
catch
{
// error occured
b = false;
}
return b;
}
Thanks for reviewing it, maybe you can give me some
pointers!
thanks,
Brandon
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Subrahmanyam, Mamidi
Sent: Monday, August 15, 2005 10:26 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] Why so slow???
Hi Brandon,
Can you please post your code here to see if I can run it in my development
server?.
We also do the similar kind of stuff using connectivitty studio.
Anyway, Can you please share the code what exactly you are doing?. which
version of axapta and which version of SP?.
Thanks,
subbu
Brandon George <[EMAIL PROTECTED]> wrote:
Brandon George <[EMAIL PROTECTED]> wrote:
I am cursed or something? :-) Just joking everyone... but really - no response to this question? No one here has ever ran into Committing an Order through code and it being slow? Like Slower than when you do it through the Sales Form?thanks,Brandon
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brandon George
Sent: Friday, August 12, 2005 6:44 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: RE: [Axapta-Knowledge-Village] Why so slow???I am going to re-send this...Has anyone ever Confirmed a Sales Order through code? If slow, have you ever experienced it being slow? Taking a good bit of time? If so, what can be done to speed it up?thanks,Brandon
From: Axapta-Knowledge-Village@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Brandon George
Sent: Thursday, August 11, 2005 9:05 AM
To: Axapta-Knowledge-Village@yahoogroups.com
Subject: [Axapta-Knowledge-Village] Why so slow???Has anyone out here every taken a Sales Order an Programmatically confirmed it? I am doing that right now based on EDI information sent in from one of our Customers.Anyway, they send us a bulk Shipment Manifest file, and the Order needs to be confirmed sometimes if it has not already. Well if this is the case, it takes Axapta a little while to confirm the order. As for a packing slip update, it does not take that much time. Also if I go and confirm the Order through the Sales Order Form, it does not take near as long...Is there a reason why it takes so long? Has anyone ever ran into this before?thanks,Brandon
Start your day with Yahoo! - make it your home page
Sharing the knowledge on Axapta.
YAHOO! GROUPS LINKS
- Visit your group "Axapta-Knowledge-Village" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.