SalesQuotation2Order

Dear All ,

when am trying with the following code to convert the sales Quotaion to Order am getting a error

"The Company Does not exist"

static void quotation2SalesOrde(Args _args)
{
SalesQuotationEditLinesForm SalesQuotationEditLinesForm;
SalesQuotationTable SalesQuotationTable;
;
SalesQuotationTable = SalesQuotationTable::find(“34459”);
salesQuotationEditLinesForm =
SalesQuotationEditLinesForm::construct(DocumentStatus::Confirmation);
salesQuotationEditLinesForm.update(salesQuotationTable,systemdateget(),
NoYes::No,NoYes::No,‘03’);
}

Could u please find me Error.

Use this

static void confirmQuotation(Args _args)
{
SalesQuotationTable salesQuotationTable = SalesQuotationTable::find(‘QA-100024’);
SalesQuotationEditLinesForm_Sales_Confir quotationConfirm;
;

quotationConfirm = new SalesQuotationEditLinesForm_Sales_Confir();
quotationConfirm.update(salesQuotationTable);

}

Hi kranthi Thanks it’s working.