Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Jo004060

    Invalid Signon with comapi

    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...
  2. Jo004060

    EDI Segment Count Limits

    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...
  3. Jo004060

    xapi problem

    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...
  4. Jo004060

    xapi problem

    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)...
  5. Jo004060

    xapi problem

    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...
  6. Jo004060

    xapi problem

    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,
  7. Jo004060

    xapi problem

    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...
  8. Jo004060

    Error using comapi

    OE 5.3 IAccpacViewPtr OEORD1header; IAccpacViewFieldsPtr OEORD1headerFields; OEORD1header = AccDBLink->OpenView2(_T("OE0520"), NULL); HRESULT hRes = OEORD1header->Init(); OEORD1headerFields = OEORD1header->Fields; IAccpacViewPtr OEORD1detail1; IAccpacViewFieldsPtr OEORD1detail1Fields...
  9. Jo004060

    Error using comapi

    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...
  10. Jo004060

    Compose error

    Is there a way to validate the composed views ? will AccpacErrors detect an invalid composition ? Thanks, Jo
  11. Jo004060

    Problem sending array to a COM API

    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...
  12. Jo004060

    Error using comapi

    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); ...
  13. Jo004060

    VC++ basic question

    and use ::SysFreeString(bstr); BSTR bstrTmp; bstrTmp = CStringX.AllocSysString(); vTemp.vt = VT_BSTR; AccFields->GetFieldByName("ORGID")->PutWithoutVerification(&vTemp); ::SysFreeString(bstrTmp);
  14. Jo004060

    VC++ basic question

    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()){...
  15. Jo004060

    Comapi View Compose in C++

    Anybody managed to compose views using C++ ? My problem is with the creation of the array I have to send as a Variant. Thanks, Jo
  16. Jo004060

    FetchLock not locking the row (v53A)

    I have a little problem accessing the field information in c++ View = DBLink->OpenView2(_T(“AR0024”), NULL); View->Init(); Fields = View->Fields; what do you use to get the value of the fields using the FieldID ? THANKS in advance Jo ** sorry to hijack the tread, but it is the only...
  17. Jo004060

    VC++ basic question

    Hello, im new to Accpac,VC++ 6 and to the comapi. I would like to know the correct C++ syntax of this VB line -- //Dim AccpacViewFields As AccpacCOMAPI.AccpacViewFields AccpacViewFields.Fields("whateverfieldname").value = "xyz" -- Thanks in advance Jo
  18. Jo004060

    WalMart Drummond Group

    www.alligacom.com Canadian compagny already doing bizness with walmart. They can also translate your documents (so you can get rid of your translator) you should take a look..

Part and Inventory Search

Back
Top