on 04-23-2012 10:15 AM
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
Hello
Have you filled the ITEM_GUID of ET_MESSAGE in your BAdI Implementation ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.