earizmendi
18th August 2007, 02:38
Hi everybody:

I have a problem working with my Suppliers Reconciliation AFS.

This process use the next sessions:

tfgld0110m000
tfgld1101s000
tfcmg2100s000
tfcmg2102s000
and ...
tfcmg2103s000

Everything works perfect, but when the execution comes to the open tfcmg2103s000 session only opens the session but i can“t do anything with his fields (The porpouse of this session is change document payment status), when i look into shell windows the process indicates that i have a tfcmg2103s000 process running, after all i close the session without problems.


Here's the code, if anybody can give an advice, i really appreciate...

Thks!!!

if retval then

retval = stpapi.mark("tfcmg2102s000",error.msg)

if retval then
stpapi.handle.subproc("tfcmg2102s000","tfcmg2103s000","add")
stpapi.continue.process("tfcmg2102s000",error.msg)

stpapi.get.field("tfcmg2103s000","tfcmg110.bank",rel)
stpapi.get.field("tfcmg2103s000","tfcmg110.tdoc",typo)
stpapi.get.field("tfcmg2103s000","tfcmg110.pdoc",pdoc)


| stpapi.get.field("tfcmg2103s000","bank.stpd",stpd)
stpapi.put.field("tfcmg2103s000","bank.stpd",str$(etol(tfcmg.stpd.complete)))
stpapi.put.field("tfcmg2103s000","bank.ramt","999")
stpapi.get.field("tfcmg2103s000","tfcmg110.pdoc",bnk.ramt)

stpapi.continue.process("tfcmg2103s000",error.msg)

stpapi.end.session("tfcmg2103s000")
endif
endif

mark_h
20th August 2007, 20:52
The first thing I think of is does this stpapi.continue.process("tfcmg2102s000",error.msg) command actually initiate the tfcmg2103s000 session? I think so but you need to confirm it. In some cases - I have actually had to do a find on sub-sessions to get them to work correctly. In other cases I have actually done a save first, before trying to actually modify the record. When running manually how does the session come up (insert or modify mode)? No promises that either of these options will work, but they have worked for me with some sub-sessions.

earizmendi
21st August 2007, 04:10
Thks Mark...

Opening the shell window I see the process with the tfcmg2103s000 running, that's is what I Think has been initiated.

In this session (tfcmg2103s000) the find, save and navigation choices are unavailable. But I going to change the form adding the find choice.

Thks for the advice, i let you know if we can find a possible way.

See ya...