Baanboard.com

Go Back   Baanboard.com > Forum > Baan SIGs > AFS/DDC/OLE: Function servers

User login

Frontpage Sponsor

Main

Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
37%
Installation Wizard into new VRC
39%
Manual into existing VRC
3%
Manual into new VRC
21%
Total votes: 38

Baanboard at LinkedIn


Reference Content

Closed Thread
 
Thread Tools Display Modes
  #1  
Old 15th November 2010, 16:35
cyrilchacko cyrilchacko is offline
Junior Member
 
Join Date: Aug 2008
Posts: 26
cyrilchacko is on a distinguished road
Baan: various - DB: various - OS: various
AFS stuck on synchronize API call

Hi,

Version: ERP Ln
OS: Unix

I am trying to run the AFS on the folowing sessions and this is their synchronize dialog values. Almost, like a recursive function.

Session: tdpur4100m000
Synchronize Dialog: tdpur4100m900

Session: tdpur4100m900
Synchronize Dialog: tdpur4100m000


I am currently trying to call an AFS on the Purchase Orders as mentioned in the below script. This is to insert a new record, however this, gets stuck on the synchronize call.

Below I am putting the code snippet and the scenarios and effects.


main.sess = "tdpur4100m900"
sync.sess = "tdpur4100m900"

ret = stpapi.synchronize.dialog(sync.sess, "add", err.msg)
if ret then
stpapi.put.field( "tdpur4100m900", "tdpur400.otbp", "XXXXXXXXX")
stpapi.put.field( "tdpur4100m900", "tdpur400.cotp", "XXX")
stpapi.put.field( "tdpur4100m900", "tdpur400.cofc", "XXXX")
stpapi.put.field( "tdpur4100m900", "tdpur400.orno", "XX")
ret = stpapi.insert( main.sess, true, err.msg)
if not ret then
ret = stpapi.recover(sync.sess,err.msg)
endif
stpapi.end.session(main.sess)
stpapi.end.session(sync.sess)

The AFS runs upto the synchronize dialog and stops further processing.

The below are the scenarios and errors I have faced
  1. Synchronize tdpur4100m900

    main.session = tdpur4100m900
    sync.session = tdpur4100m900

    When I run the above code with the these values. The synchronize opens both the sessions and gets stuck on the synchronized call.
    I can go to processes and kill the "tdpur4100m900" and on insert, gives me an error "Editable synchronized dialog box not started"

  2. Synchronize tdpur4100m900

    main.session = tdpur4100m000
    sync.session = tdpur4100m900

    When I run the above code with the these values. The synchronize opens both the sessions and gets stuck on the synchronized call.
    I can go to processes and kill the "tdpur4100m900" and the insert suceeds

  3. Synchronize tdpur4100m000

    main.session = tdpur4100m000
    sync.session = tdpur4100m000

    When I run the above code with the these values. The synchronize opens both the sessions I get the error message "Insert not possible on this session, use the synchronized dialog"

  4. Synchronize tdpur4100m000

    main.session = tdpur4100m900
    sync.session = tdpur4100m000

    When I run the above code with the these values. The synchronize opens both the sessions and gets stuck on the synchronized call.
    I can go to processes and kill the "tdpur4100m900" and the insert gives an error "Editable synchronized dialog box not started"

Thanks for your help

Cyril Chacko
  #2  
Old 15th November 2010, 19:32
mark_h's Avatar
mark_h mark_h is offline
Guru
 
Join Date: Sep 2001
Location: Kentucky, USA
Posts: 6,934
mark_h will become famous soon enough
Baan: Baan 4C4 A&D1 - DB: Oracle - OS: Sun Solaris
Search on tdsls4100m900 and read the threads. A couple of the threads mention tdpur4101m000 being a MMT session which do not work in AFS, but not sure if your tdpur4100m000 calls tdpur4100m000 directly.

Plus instead of AFS they really recommend you use the DAL2 funtionality.
__________________
Mark

GO Cards!
My latest mantra - make sure you have latest stpapi patches and the latest session object. If on LN then please explore the option of using DAL2 functionality.

Shared Solutions for Baan systems provided free by Baan Board.
Play the Google game and help Baanboard get better rankings. Do your part. Click here to find how.
  #3  
Old 18th November 2010, 16:19
cyrilchacko cyrilchacko is offline
Junior Member
 
Join Date: Aug 2008
Posts: 26
cyrilchacko is on a distinguished road
Baan: various - DB: various - OS: various
Hi,

Solved


Thanks mark.

will use the standard dll for the PO creation now.

Regards,
Cyril Chacko
Sponsored Links
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if Ln6.1 Fp2 api for AFS compatible with standard session sniper_99 AFS/DDC/OLE: Function servers 2 12th February 2008 05:34
AFS & API question Ash Gajjar Tools Development 1 13th November 2007 14:20
Call Win32 API from baan fredintaiwan Tools Development 3 25th May 2007 16:05
VBScript and Baan API Dwallace AFS/DDC/OLE: Function servers 1 27th May 2005 15:28
need sample code for API / AFS rohan_rege AFS/DDC/OLE: Function servers 4 9th September 2002 17:58


All times are GMT +2. The time now is 15:51.


©2001-2017 - Baanboard.com - Baanforums.com