cancel
Showing results for 
Search instead for 
Did you mean: 

CRMXIF_ORDER_SAVE

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

stephenjohannes
Active Contributor
0 Kudos

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

former_member314455
Participant
0 Kudos

Hi Stephen,

Can you please tell me if I can add items to the existing orders using CRMXIF_ORDER_SAVE?

If yes, please tell me how to achieve this.

Thank you.

Ajith

Answers (0)