cancel
Showing results for 
Search instead for 
Did you mean: 

CRM_ORDER_STATUS BADI

Former Member
0 Kudos

dear all

If order's <b> user status</b> was changed , for example to E0003 , i want to do some check and change it to aother status such as E0004 immediately in BADI CRM_ORDER_STATUS . how should i do this ? using which function?

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jacky,

Actually there is no need to use any FM for this in the BADI.

In this BADI , just check the user status from the input parameters, check if its E0003, if so just change the user status in the output parameter, CS_* status value to E0004, this will automatically change the status to the desired once BADI is executed.

Shud solve ur problem.

Siva

Former Member
0 Kudos

Hi Siva

there is no output parameter structure CS_*status in the BADI methods : BEFORE_CHANGE , AFTER_CHANGE , are you talking about the BADI : CRM_ORDER_STATUS. or some other BADI?

thanks

Former Member
0 Kudos

Hi Jacky,

Sorry i am refering to another BADI.

Any how here is the solution

In the method after_change,

call FM CRM_STATUS_MAINTAIN_OW by passing the required status and status profile. It shud defintely solve ur problem.

Siva

Former Member
0 Kudos

Hi Jacky,

Use FM <b>CRM_ORDER_MAINTAIN</b> to change the status and then use <b>CRM_ORDER_SAVE</b> followed by <b>COMMIT WORK</b>.

Regards,

Amit

Answers (0)