Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_PO_CHANGE - USER NAME

Former Member
0 Likes
1,084

Is there a way to modify the user name with which a bapi IS CALLED, IF THE USER NAME IS NOT IN THE Bapi interface?

Is there a way to modify the user name with which a bapi IS CALLED, IF THE USER NAME IS NOT IN THE Bapi interface?

3 REPLIES 3
Read only

Former Member
0 Likes
754

Hi,

If the BAPI has any user exit that allows this, yes. You can use the user exit for changing.

Otherwise, one way is to write a Wrapper BAPI around the standard BAPI you use, in which you can change the user name.

Hope this helps,

Bhanu

Read only

Former Member
0 Likes
754

Hi Tjaart,

If you want to change the user executing an RFC, you

can use the rfc SUSR_INTERNET_USERSWITCH, to switch the

userid after logging into SAP.

Usually this is used, when you have made a connection

with a generic user from an external system, but in order

to make the transaction audit have the name of the user

who executes it, you have to change it to a specific user.

Regards

YM

Remember to award points for helpful answers

Read only

0 Likes
754

Hi Yuvaraj,

I am working on a reprot where in i have to change the user name to specific user name and create a BOM. i have seen your post on the FM SUSR_INTERNET_USERSWITCH. Can you please tell me how to user this fucntion module.

Thanks in advance

Best Regards,

Sharat K.Chandra