Hello,
I'm trying to add an Order (OE order) with the comapi,
I can open the session,compose the views, process the header, but i can't process the detail.. (I get an unhandled exception)
----
OEORD1headerFields->GetFieldByName("CUSTOMER")->put_Value(&vTemp);
..
OEORD1headerFields->GetFieldByName("SHIPTO")->PutWithoutVerification(&vTemp);
..
OEORD1headerFields->GetFieldByName("PONUMBER")->PutWithoutVerification(&vTemp);
..
OEORD1header->Process();
OEORD1detail1->RecordClear();
OEORD1detail1->RecordGenerate(false);
..
OEORD1detail1Fields->GetFieldByName("ITEM")->put_Value(&vTemp);
OEORD1detail1->Process(); -->exception
----
I based my code on a macro i created in accpac, and everything is there.. (probably not..) any idea how i could fix this problem ? Is ther a way to get more info on an error like this one ?
Thanks in advance,
Jo
I'm trying to add an Order (OE order) with the comapi,
I can open the session,compose the views, process the header, but i can't process the detail.. (I get an unhandled exception)
----
OEORD1headerFields->GetFieldByName("CUSTOMER")->put_Value(&vTemp);
..
OEORD1headerFields->GetFieldByName("SHIPTO")->PutWithoutVerification(&vTemp);
..
OEORD1headerFields->GetFieldByName("PONUMBER")->PutWithoutVerification(&vTemp);
..
OEORD1header->Process();
OEORD1detail1->RecordClear();
OEORD1detail1->RecordGenerate(false);
..
OEORD1detail1Fields->GetFieldByName("ITEM")->put_Value(&vTemp);
OEORD1detail1->Process(); -->exception
----
I based my code on a macro i created in accpac, and everything is there.. (probably not..) any idea how i could fix this problem ? Is ther a way to get more info on an error like this one ?
Thanks in advance,
Jo