cancel
Showing results for 
Search instead for 
Did you mean: 

How to determine if a user has pending SCs to be approved

Amey-Mogare
Contributor
0 Kudos

Hello,

We are trying to develop a function module that is expected to work as follows: -

1. Import param : userID : (user's sy-uname)

2. Export param : pending_approval_flag : (X or "")

3. Logic:

pending_approval_flag = X, if there are pending SCs to be approved for 'userID'.

pending_approval_flag = "", if there are NO pending SCs to be approved for 'userID'.

Could anyone please share the info on how to develop this logic?

Thanks & Regards,

Amey Mogare

Accepted Solutions (1)

Accepted Solutions (1)

ashish_shah
Contributor
0 Kudos

Hi Amey,

You can reuse the logic written in feeder class of POWL query SAPSRM_PA_PURCHASING_01_03.

I suppose it has a user name parameter in selection criteria which you can use.

Let me know if that helps.

Regards,

Ashish Shah

Amey-Mogare
Contributor
0 Kudos

Thanks Ashish!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Amey,

I am not sure whether it will helpful for you or not, SWI5 (workload Analysis) will provide you the status of SC's under approver (whether it is approved or pending for approval).

I hope you can see the sap standard program RSWILOAD to find the logic to determine SC pending status of an approver.

Best regards,
Govardhan

Amey-Mogare
Contributor
0 Kudos

Thank you, Krish!