Skip to Content
avatar image
Former Member

issues with CRM_ORDER_SAVE , BAPI_TRANSACTION_COMMIT, CRM_ORDER_INITIALIZE in WORKFLOW

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Sep 08, 2017 at 01:23 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2017 at 04:45 AM

    Thanks for you comment.

    I was already fixed myself this issue.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 08, 2017 at 04:46 AM

    I was already fixed myself this issue.

    Add comment
    10|10000 characters needed characters exceeded