Business function (NER) can return array?

Ramon1227

Member
Hi, Everyone

Now I have a knotty problem About the Business function,Could anybody give some advice on above issue? your prompt reply will be highly appreciated.

Q. In Xe, is it possible the business function (NER) can return an array of
records (say, the F4211 order detail lines) to its calling program ?

Best regards,
Ramon
 
Not having truely experienced Xe yet, I could be wrong but the answer would be No.Unless your BSFN returned pointers to reac record it had read.
What JDE normally does is have an idCursor that points to the record read, so that you can call function more than once, and it will just read the next record. I.e.

Set idCusror = 0
Call BSFN with Mode Set Selection (pass idCursor)
Call BSFN with Get Next (pass IdCursor)
Repeat while record found
Call BSFN with Get Next (pass IdCursor)
End repeat

Peter Hamilton
B7332 SP14, Windows NT, Unix
 
Hi Ramon,

As far as I know, the answer is NO.
You have to use Cache or Workfile to accomplish such type of tasks.

Regards,

Zoltán

B7332 SP11, ESU 4116422, Intel NT4, SQL 7 SP1
(working with B7321, B7331, XE too)
 
Back
Top