Erratic QTP
george.j.wen@us.abb.com
george.j.wen@us.abb.com
Thu, 23 Jan 2003 15:46:52 -0600
A QTP program I have has multiple requests. I have one request from
within the program that
produces different results when run separately by itself. A user
brought to my attention that a
particular record was not updated (via a subsequent report). So I ran
the program in session
and sure enought the record in question was not being updated but when I
split the request out
to isolate the code so only the request in question here would run it
ran correctly and updated
the record the user called about . Any ideas?
I'm on 6.07 as/400 and that may or may not matter. I can try splitting
out the programs so this
request is on it's own but I wonder if there's another answer? Here's
the code:
Request GetQtyIssued
Access *QTEMP/T5731011 &
link QAOMCU, "II", QALITM viaindex F0911L1 &
to GLMCU, GLDCT, GLEXR of I0911
define SORT-FIELD char*50 = QAOMCU + GLDCT + QALITM
Sort on SORT-FIELD
temp D-QTY-ISSUE float*8
item D-QTY-ISSUE = D-QTY-ISSUE + GLU
Output T5731011 Update at SORT-FIELD on Errors Report
item ISSUE-NBR final GLDOC
item QTY-ISSUED final D-QTY-ISSUE
item D-QTY-ISSUE reset at SORT-FIELD
item PO-TYPE final GLDCT
Go