cancel
Showing results for 
Search instead for 
Did you mean: 

Add substitute

Former Member
0 Kudos

Hello all, I am working in SRM 4.0 and when I go to approval tab on web transaction and I try to add a substitute, I press this button, then I select active substitution and I put on substitute field value Z* for example, when I click on Find button, system shows me all users for all countries in the company. How can I do to the system shows me only the users that appears in a country? For example in this case only for Spain (this is a company code in my organizational structure)

Thanks

Rosa

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi. I have never seen it used, but try BADI WF_SUBSTITUTE method MAINTAIN_SUBSTITUTE.

It has an error message table you could populate if the user selected does not belong to the same company code as the user logged on. It passes you the substitute ID and you have SY-UNAME for the user logged on and you can use function BBP_READ_ATTRIBUTES to compare.

Regards,

Dave.

Former Member
0 Kudos

Hi David, thanks for your answer. But in this case, what is the standard behaviour for a substitution process?

When you put Z* in the field approver, the system shows a list of all users in the organizational structure?

Thanks

ROsa

Former Member
0 Kudos

Hi. No, if you put Z* it should show you all users in all company codes who's details start with a Z.

I think it checks user ID, first name and last name, so any user with a Z at the start of any of these should be returned.

If it is giving you users who have not got Z at the start then raise a message with SAP, it must be a bug.

Regards,

Dave.

imthiaz_ahmed
Active Contributor
0 Kudos

It's the standard. If you have to, then customize the screen in Fn Grp BW02, screen 1328. Refer the corresponding service bbpapproval-->saplbw02_1328.html

Regards, IA