on 11-27-2007 3:49 PM
Hi all,
I saw that I can call CRMXIF_ORDER_SAVE with multiple GUIDS..so I can process more orders by calling the function ones. Is it correct?
I try to do this but sometimes if an error occurs on one order, other orders don't be processed.
Can anyone help me?
Best Regards
Raffaele
Raffaele,
You are correct that multiple orders could be processed by the function module, however this goes back to the basic LUW concept.
If we work on 10 objects all at once and one object fails then the entire block fails since the rollback statement will rollback all entries made.
If you truly need to each entry to be processed independent of one another, then you need to call the function module per order and then commit work per transaction. Each transaction that fails then would be rolled back and logged.
Another concept that I can not guarantee will work is the following:
-Call the CRMXIF_ORDER_SAVE n times for the block of n transactions you want to save
-Commit work regardless of errors per each block
I believe you should get only the "valid" transactions saved and the invalid transactions not saved. This keeps the transactions as "separate" bdocs, but allows for performance benefits of group processing.
When you pass all the orders in at once, you are technically create "one bdoc" that would pass/fail on the whole.
Good luck,
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.