Skip to Content
0
Former Member
Aug 22, 2013 at 11:22 PM

Changing SY-UNAME in SAP CRM at Run Time

96 Views

Hi,


We have a redetermination program custom program developed which will redetermine the transactions as per latest employees etc..

when a user runs this program say USER1, all the updates on the transactions that changed with that program change history is updated with his user id i.e USER1. But we want to change that to a generic username like ZSERVICE instead of logging USER1 on the change history we want to update change history as ZSERVICE.

Not sure how to do that, I tried to change/switch user using FM :SUSR_INTERNET_USERSWITCH from USER1 to ZSERVICE

but problem is this FM switches users of Service type only(with this I am getting exceptionCURRENT_USER_NOT_SERVICETYP as the current logged in user USER1 is of type Dialog), not sure how to overcome this issue.

Any thoughts/suggestions around this are most welcome.

Thanks in Advance!!

Regards

reddy ys.