Skip to Content
0

issues with CRM_ORDER_SAVE , BAPI_TRANSACTION_COMMIT, CRM_ORDER_INITIALIZE in WORKFLOW

Sep 04, 2017 at 08:04 PM

90

avatar image
Former Member

Hi All,

I have requirement that I need to update Contract Appointment dates, item status, partner function, attachment, custom fields update in single shot.

So I have created individual methods to update each one using crm_****maintain_ow. each inside I have used Save & commit FMs.

When I execute in dialogue mode it is getting success if I execute from WORKFLOW it is not returning any failures but changes are not saving.

Now I have Q's:

1. what is CRM_ORDER_INITILIZE how to use it

2. diff b/w INITILIZE vs COMMIT

3. please suggest how to achieve my requirement

Thanks.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Paul Bakker Sep 08, 2017 at 01:23 AM
0

This sounds more like a CRM question than a workflow question.

You need to make sure that your methods execute correctly in background (e.g., when called from another program). Once that is working, you can call them safely from workflow.

As you probably know, CRM programming can be quite tricky. You need to understand how & when to use CRM_ORDER_SAVE, CRM_ORDER_INITIALIZE, how to check for errors, and so on. One tip: try to do all the updates in one call.

Anyway, once you get all that working, there should be no workflow issues.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 08, 2017 at 04:45 AM
0

Thanks for you comment.

I was already fixed myself this issue.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Sep 08, 2017 at 04:46 AM
0

I was already fixed myself this issue.

Share
10 |10000 characters needed characters left characters exceeded