guilmor
4th December 2002, 16:57
Hello Baanboard,

I've been reading about using AFS with session tdpur4120m000 and its child tdpur4131s000. I NEED to group several PO lines in one receipt (under the same reno/dino). I managed to finish successfully with just ONE PO line by receipt, but I'm not able to select (mark) several lines in tdpur4131s000.

I've also been trying to select just one line in tdpur4131s000, get back to main tdpur4120m000 and change its dqua, bqua, etc.. (success) THEN zoom again to tdpur4131s000 and try to select another line. This is where I'm getting crazy, because it doesn't work.

pedromrs
4th December 2002, 21:38
Hi guilmor,

I don't know what your index is but in our system you have to specify the supplier, date, order and line number to get the correct value. That is why you're doing the select, right?
So I would suggest you call:


retcode = stpapi.find("tdpur4131s000")


After you fill (put.field) orno,suno,ddtb and pono you then call stpapi.find. Actually in your code you're putting ddtb,pono & orno and immediately after getting the same fields :confused:

Also in our system, if you're in tdpur4120m000 and do a change.view it will always jump to the subsession. Hope that helps.

guilmor
5th December 2002, 13:32
Hello Pedro,

I''ve tried so many ways, that I can't remember them, but I'll try your way.

Tell you the results.

Guilmor