cancel
Showing results for 
Search instead for 
Did you mean: 

Error Is Comming When using FM 'CRM_ORDER_MAINTAIN'

Former Member
0 Kudos

Hello,

I am using ' CRM_ORDER_MAINTAIN ' for change my opportunity STATUS and Reason For Rejection. When I change opportunity status from OPEN to LOST , also pass Reason For Rejection and press save button then opportunity save successfully done. But when i again click on save button more then one time for this same opportunity with same screen and same status then it is giving below Express Information and below DUMP is coming in ST22. Please help me what can i do for remove this error.

Regards,

Kshitij Rathore

+918087340641

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

During one of the bug fix we got similar issue where order maintain was getting failed. We found out that, 'handle' was hardcoded in the existing code, because of which system is considering it as a duplicate record.

devashish_bhattacharya
Active Participant
0 Kudos

Hello Kshitij,

Seems like it is not saving the same records again from the error.

If you are calling it via some report, why dont you just use a condition for the oppt status and reason ;

and if its not as you desire then only update the opportunity via the FM.

This will ensure that the same record doesnt get updated again.

Regards,

Devashish

Former Member
0 Kudos

Hi Kshitij,

Please call function module CRM_ORDER_INITIALIZE before CRM_ORDER_MAINTAIN to intialize the buffer.

Thanks,

Naresh

Former Member
0 Kudos

Hello,

Please Reply .

Regards,

Kshitij Rathore

Former Member
0 Kudos

Hi Kshitij,

How are you changing the status of Opportunity ,Via program ( or )  doing something in web UI ?

Explain code for changing status.