looks like Accpac login is not (always?) case sensitive.
the COMAPI login is.
So if a password is 'ABC', login with 'abc' in accpac will work. but not with the comapi.
It may sound obvious, but when you think the valid password is 'abc' (+ and you can log in with the application)
trying...
be carefull if your VAN charge you per kilobytes (of course, its not applicable if you are using ftp, as1 or 2)
ISA segment takes 107 chars, IEA 20.
GS around 51, GE around 10. so its 190 extra chars for every documents you are sending.
Let's say you are sending 1500 docs per day, sending 1...
I added the detail xapiViewInit before the xapiViewPuts: same error.
I also added the Location code to the header and to the item:
same error.
I tried using the default template, same thing.
If I open Accpac, there is only 2 fields i need to enter manually to post, Customer and Item number...
ok, for unknown reasons, i can now put the 'Quantity Ordered' , but i still have the original when inserting:
Internal error. Order Detail. Operation not allowed.
Heres a part of my code:
strcpy(tag,"OE");
strcpy(view, "OE0520");
xapiViewLoad( m_Session, view, tag, &HeaderRVH)...
Hi there again,
I think im getting closer, I was trying to update the QTYPO field. Now i tried with the QTYORDERED and I get this message after the PUT:
Order Detail
Attempt to change read-only field 'Quantity Ordered'
How can it be Read Only ?
and how can you OEOrderDetail2.RecordGenerate...
Is there a way to know all the fields required ? i'm pretty sure the compositions are allright (exactly like the macro) and yes, it was a typo.. i meant the new OE
do you think i can create an empty header, insert it, and THEN add the details ?
Thanks for the quick answer,
Hello,
I have a problem with the xapi now...
I'm trying to create an order in OE 5.3, and i can open&compose the views, insert the header without problem.
But I have an issue inserting the details into the new PO:
xapiViewInsert and I get and error: 301 , 1180
According to the Accpac...
I noticed i have the same error when inserting the header. Here is what i have in the RVSpy when inserting:
[890] OE0520: OEORDH [10:14:16.84].Insert(view=0x06941ccc)
[890] TX0003: TXGRP [10:14:16.91].Load
[890] TX0003: TXGRP [10:14:17.01].InstanceOpen(PIB=2034, link=39...
Hello,
first,I am new to c++. Im open to comments.
I have to send an VARIANT array to a com api but i can't make it work.
I saw somewhere that using SAFEARRAY should work, but I can't find how to use it for the IxPtr type. (see below)
//--
IxPtr element1;
IxPtr element2;
IxPtr element3...
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);
...
I hope this will help C++ users using the comapi
//----Fetch
IAccpacViewPtr AccView;
IAccpacViewFieldsPtr AccFields;
int iSize=0;
AccView = AccDBLink->OpenView2(_T("OE0480"), NULL);
AccView->Init();
AccFields = AccView->Fields;
AccView->Browse(_T(""), FALSE);
if (AccView->Fetch()){...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.