Can you please let me know whether an adhoc approver can be deleted.
My requirement is to remove approver added as adhoc. Following are the findings:
1. The Remove Approver button is invisible even if the adhoc approver is added. I enabled programmatically through Web DynPro but it is enabled even in display mode.
2. I tried to execute standard code for ONACTIONREMOVE_APPROVER but it is firing class /SAPSRM/CL_PDO_DO_APV_50 method /SAPSRM/IF_PDO_DO_APV_EXT~REMOVE_APPROVER where no code is provided by SAP. I did an enhancement implementation and added code of /SAPSRM/IF_PDO_DO_APV_EXT~REMOVE_APPROVER method but without any result.
3. In POST-EXIT of ONACTIONREMOVE_APPROVER I read the context node HDR_STATUS and deleted the line item in question and bound through BIND_TABLE. It got removed from the screen but it is giving short dump while changing lead selection and additionally if I want to add same adhoc approver it is throwing error message that the approver already exists.
Can it be controlled through approval BAdI?
Looking for your valuable suggestion.