Hello experts,
For some requirement, standard approve/reject button is to be hidden and based on certain zfield status, and custom button action, quotation should be approved. I am able to add the button. The quotation is created in an external system and is transferred to SRM. In SRM system, the quotation is created using BBP_PD_QUOT_CREATE. The quotation is visible in approver's UWL. Now when approver opens the quotation, custom button should be displayed instead of standard buttons 'Approve' or 'Reject'. Upto this, it is done.
On the action of the button, I am creating instance of class /SAPSRM/CL_PDO_BO_QTE_ADV in approval mode and using the method /sapsrm/if_pdo_bo_qte~approve or /sapsrm/if_pdo_bo_qte~action_approve etc.. none of them is working. For all the methods above, i am getting error - 'A PDO layer update method was called in display mode'.
Could you please guide me how can I approve the document using custom button action?
Regards,
Yayati Ekbote