cyrilchacko
15th November 2010, 16:35
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
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"
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
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"
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
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
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"
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
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"
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