Problems intermixing calls to F4211 and F4311 MBFs?

Erik_de_Rooij

Member
We have a custom batch which uses both the F4211 MBF (B4200310) and the F4311 MBF (XT4311Z1) to create Sales and Purchase Orders, all called from within a custom business function.
The calls to the BeginDoc, EditLine and EndDoc of both MBFs are intermixed. That is, we first call the BeginDoc for both MBFs, then (in a while loop) we call the EditLines several times and afterwards we call the EndDoc for both MBFs, giving us both a Sales and a Purchase Order.

This intermixing of calls seems to give us problems when submitting the batch to the Enterprise server (works fine locally on a fat client).
The F4311 BeginDoc seems to end prematurely, for some reason. We are not experiencing any errors or access violations in the logs and the functions return ER_SUCCESS.
When (for debugging purposes) we disable all calls to either the F4211 MBF of the F4311 MBF, the remaining code works fine.

My questions:
- Is anyone of you aware of problems when intermixing F4211 and F4311 MBF calls?
- Have you ever experienced the problem that code is behaving differently on the Enterprise server and on a fat client?
 
Back
Top