cancel
Showing results for 
Search instead for 
Did you mean: 

where i can get Badi approvers..

Former Member
0 Kudos

Hello Friends,

is there any where can i find Badi approvers by giving sc #.. I want to pull approvers from approver preview by giving SC#..

the scenario is i need to develop a report needs to display approvers for a sc those who display in the approver preview..

thanks,

john.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

Few standard function modules which will definitely help.

*-- get Approval preview - on the Shopping cart applet information
      CALL FUNCTION 'BBP_PDH_WFL_PARAM_APPLET_FILL2'

*-- get applet information
    CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET'

*-- get reviewer workitems
      CALL FUNCTION 'SWD_API_REVIEW_WFS_GET'

*    Get WI-Liste for the parent workflow
      CALL FUNCTION 'SWW_WI_TO_OBJECT_FIND'

*  Reviewer-Workflow (fragment WF)
    CALL FUNCTION 'SWD_API_REVIEW_WF_OF_WI_ID_GET'

CALL FUNCTION 'BBP_WFL_DIN_VIRTPAR_GRAPH_GET'
CALL FUNCTION bbp_pdh_wfl_wi_from_object_get.

CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_FILL  
CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_FILL2 
CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_SPEC  
CALL FUNCTION BBP_PDH_WFL_PARAM_APPLET_TEXT 

<u>For more information, Please refer to the SRM transaction - <b>BBP_PD</b> to get the complete details.</u>

Regards

- Atul

Former Member
0 Kudos

Hello Friends,

Is there any FM or Table to help to find approvers as well the status ( Such as Approved,Awaiting For since , To be approved and when ) by passing Shopping cart number?

Thanks,

john.

former_member195032
Active Contributor
0 Kudos

Hi John,

I donot have exact information.

Still I can give some information.

FM BBP_PD_SC_GETDETAIL,Object_ID as SC Number.

Do F8 ,you will get intenal table E_STATUS filled with statues codes which can be found in TJ02 table.

Database View BBP_PDVIEW_LIST gives created by,changed by field based on Object_Type = BUS2121 and SC number as Object_ID.

Let me know if this information is helpful for you.

Regards,Nishant

Former Member
0 Kudos

Hi,

No- I need to list of all the appovers with status(Approved,Awaiting for Approve, To Be Approved ) by pass SC number.

Thanks,

John.

Former Member
0 Kudos

Hi John,

we have developed a similar report here (but it is our client specific). All you need to do is take the same logic which is applied in n-step approval BADI(if you are using it) and implement as report.

or

if you are using standard workflows. use FM 'RH_STRUC_GET" to get the org structure. delimit the approvers based on your rule (eg: Cost center based or approval limit based ... etc)

or

if you are using HR Org structure replicated from R/3 or ECC

you can use Standard function modules

like

RH_OM_GET_HOLDER_OF_POSITION to get holder of position

RH_GET_MANAGER_ASSIGNMENT to get manager assignment.

if it is going to be HR replication , then it is ease of work.

hope this helps.

thanks, Renga