cancel
Showing results for 
Search instead for 
Did you mean: 

User statuses

Former Member
0 Kudos

Hi,

i have a scenario. For Opportunities in our system we have user statuses and everything works fine.

the old opportunities with user status New in the system are to be made expired by another user status "expired".(Old document numbers are Uploaded to the system by a custom program). If the Opporunity has status "Expired" a Reason has to be automatically set. Status and Reason had to be set in order to save the document.

How can i change/maintain the user status and Reason at the same time? I tried using CRM_ORDER_MAINTAIN also CRMXIF_ORDER_SAVE. But the changes are not reflecting. I tried even CRM_SUBJECT_CHANGE_OW, CRMSTATUSOW.

Appreciate your inputs!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Use CRM_SUBJECT_CHANGE_OW & CRMSTATUSOW

followed by BAPI_TRANSACTION_COMMIT.

Best Regards,

Pratik Patel

<b>Reward with Points!</b>

Former Member
0 Kudos

Hi Pratik,

Thanks for the response. I also tried with Commit but no result!

Thanks!