Skip to Content
0
Former Member
Jun 03, 2008 at 03:26 PM

Validate manually added approvers in BBP_DOC_CHECK_BADI

26 Views

Hi all,

We have a requirement to check if the requisitioner has added approvers manually or not by clicking the add approver button in approval preview. This check has to be put in the BBP_DOC_CHECK_BADI before the shopping cart is ordered.

Below are the options which I tried but failed to achieve.

1. Used the BBP_PDH_WFL_APPROVAL_SIMULATE and BBP_PDH_WFL_PARAM_APPLET_FILL2 to get the approvers list. But using these function modules in the BBP_DOC_CHECK_BADI is giving wierd results in approval preview.

2. The workitem id is initial before the shopping cart is created. So the option of using the BBP_PDH_WFL* function modules to get the approvers list is also ruled out.

3. Before shopping cart is created, the manually added approvers are stored in the global table GT_WF_APPROVER of the function group BBP_PDH_WFL. I need any way to access this global table in the BBP_DOC_CHECK_BADI. Any suggestions?

4. When Transfer button is clicked i set a flag and import it into memory and later export and put a check in the doc_check badi - if the flag is set it is assumed that the approver is added else throw an error message "Please add approver". But I am facing an issue with the display of error messages. Even if i add the approver the error message is still displayed. Only when i click the check button the correct messages are shown.

Pointers to achieve this is very much helpful.

Thanks and Regards,

Asha