Asynchronous Processing in Header Detail

AS400Guru

AS400Guru

Well Known Member
Hello List,

Just wondering if anyone of you folks have faced a similar problem.

While trying to enter a new Sales Order, the update does not take place
unless the user hits the 'OK' button.Since this being a asynchronous
process, it will be run as a seperate thread(Correct me if im wrong on this
one). The MBF will populate the columns that are not entered by the user. If
at in the 'OK' post Button clicked event, I try to do a fetch on the same
record that was added,Sometimes the record is not present in the So detail
file.
At what point does it actually add/ update to the tables?.
And which event would be a good place to do a fetch on the record just
added?.

Thanks so much.

Regards.

AS/400 V4R5 SP 13 Xe (Co-exist).
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
 
make the bsfn syncnronous.
retrieve updated rec immediattely after bsfn
process=success. no other way around it.

good luck.
lt


--- AS400Guru <[email protected]> wrote:
> Hello List,
>
> Just wondering if anyone of you folks have faced a
> similar problem.
>
> While trying to enter a new Sales Order, the update
> does not take place
> unless the user hits the 'OK' button.Since this
> being a asynchronous
> process, it will be run as a seperate thread(Correct
> me if im wrong on this
> one). The MBF will populate the columns that are not
> entered by the user. If
> at in the 'OK' post Button clicked event, I try to
> do a fetch on the same
> record that was added,Sometimes the record is not
> present in the So detail
> file.
> At what point does it actually add/ update to the
> tables?.
> And which event would be a good place to do a fetch
> on the record just
> added?.
>
> Thanks so much.
>
> Regards.
>
> AS/400 V4R5 SP 13 Xe (Co-exist).
>
_________________________________________________________________
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com
>
>
>
>
> --------------------------
> To view this thread, visit the JDEList forum at:
>
http://198.144.193.139/cgi-bin/wwwthreads/showflat.pl?Cat=0&Board=OW&Number=6889
>
>
*************************************************************
> This is the JDEList One World / XE Mailing List.
> Archives and information on how to SUBSCRIBE, and
> UNSUBSCRIBE can be found at http://www.JDELIST.com
>
*************************************************************
>


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/
 
Hi
Try this :
* Make a BSFN to update the F4211. Use it asynchronously at the end of event post button cliked (&Ok)(after the MBF End Dialog).

Regards

Erwan
 
Hi AS400Guru,

We faced many times just the same problem.

1.) If async MBSFNs run in the Post Button Clicked event then you can be sure only after the form ended that all the record are already in the database. Although I never tried but you can try to add your logic to the "End Dialog" event. Please, if you try it, share your results with us on the List/Forum anyway. I am curious to it.

2.) I our cases we resolved the problem turning all async BSFN calls to sync. It worked.

Good luck,
Zoltán

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

BF B4200310 F4211FSEndDoc actually updates F4211. Work files F42UI01, F42UI11 and F42UI12 are used to store temporary data but for me it was easier to make a modification on BF B4200310 F4211FSEndDoc to pass necessary parameters to custom BF after F42199 (Sales Ledger) append. Works fine for me. If you need some more information, feel free to e-mail or call. [email protected]
702.524.9239


Best Regards,

Bojan.
[email protected],
702.524.9239
B733.2, SQL7,NT4.0.
 
Back
Top