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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create journal entry

Status
Not open for further replies.

aridif

Programmer
Jun 22, 2003
4
KE
does anybody know how to create journal entries using the xapi? i would like to use Vb to pass parameters to accpac to create a journal entry.
 
The basic method that I use to enter information into Accpac is to record a macro while working directly in Accpac. If you record a macro of a journal entry you will see all views and view compositions that you require and which fields that you are populating in the respective views.

You can then mirror this macro code to create a VB procedure to make a journal entry. A couple of things to consider. The macro uses COMAPI to declare and set the views so make sure that you switch them to xAPI. The macro (COMAPI objects) tend to place a lot of lines that you just don't need so you will have to do some trial and error to find the exact order of events to create your Journal entry. See thread613-526541 for another example and further explanation.

When you have the basic routine working and are still having problems post your code with error explanations and we will have a look.

Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top