Skip to Content
avatar image
Former Member

[CRM_ORDER_MAINTAIN] - Provider Contract Activation in Distribution (by Code)

Hi, guys.

I need to develop a program that simulates the "Submit" button of the provider order in CRM_UI. I debugged the standard by putting breaks mainly in CRM_ORDER_MAINTAIN and looking at all the functions that were executed on the stack, basically my program today consists of the following:

submit_button_in_provider

1- Set status "In Process" in the header of the provider order (by function CRM_STATUS_CHANGE_FOR_ACTIV_OW)

2- Set status "In Process" in the items of the provider order (by function (CRM_ORDER_MAINTAIN)

3- Set status "Order Modified, For Copying" in the header of the provider order (by function CRM_STATUS_CHANGE_FOR_ACTIV_OW)

4- Set status "Contract Accepted" in the header of the provider order (by function CRM_STATUS_CHANGE_FOR_ACTIV_OW)

5- Save the order, using the guid of the header of the provider (by function CRM_ORDER_SAVE followed by COMMIT).

Until then everything ok, the contract was generated and is being properly linked to my provider order ...

The problem is that at the moment of the distribution of the contract to S / 4 and to the CC the contract is getting stuck in the step "Call ERP Message contract activation MCC" (Status Waiting) and does not return with the replication / creation of the contract.

fullfilment_status_of_contract


log_of_fullfilment_status

I looked at the settings for "Settings for Joint Distribution and Multiple SAP CC Systems" and "Document Distribution" on SPRO, but it looks okay (which makes sense since firing the submit via the web the contract is usually replicated).



Has anyone ever had this problem? Any idea how to solve it?


Thanks very much,
Tiago.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Apr 13, 2017 at 09:42 PM

    Hi, guys.

    Problem is solved.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 23, 2017 at 08:39 AM

    Please provide details of the solution

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 22 at 04:47 AM

    Hi Leao,

    We are facing the same error, could you please extend your valuable help .

    the contract is getting stuck in the step "Call ERP Message contract activation MCC" (Status Waiting) and does not return with the replication / creation of the contract.

    Thanks & Regards

    Madhu

    Add comment
    10|10000 characters needed characters exceeded