cancel
Showing results for 
Search instead for 
Did you mean: 

SC Rejection

Former Member
0 Kudos

Hi Workflow Experts,


My requirement is to make the approval note as mandatory whenever the SC is rejected.


I have implemented the BBP_DOC_CHECK_BADI in the following way.


1.     In the implemented class: ZCL_IMp_SC_VALIDATE.

2.     Use Function Module BBP_PD_SC_GETDETAIL to get E_LONGTEXT.

3.     Use method GET_CURRENT_DECISION of class /SAPSRM/CL_WF_APV_FACADE to get current decision. 

4.     Check if current decision is REJECTED.

5.     Check if E_LONGTEXT has TDID = NOTM.

6.     Populate error message "Please enter reason for rejection" to et_messages

Whenever the REJECT button is clicked,the error message is populated to et_messages in the check badi.But I am getting an error in the popup.

"Document check returned at least one error message. The action can not be carried out. For more details, see message area".Also no messages are appearing in the message area.

Could anyone please help me to resolve this issue?

Thanks and Regards,

Rohini

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

Have you filled the ITEM_GUID of ET_MESSAGE in your BAdI Implementation ?