cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos
1,682

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:

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.


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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, guys.

Problem is solved.