change user during abap ?

Question:
Hi,
this is maybe a strange question, but it's related to my previous posting (Submit abap with another user).
Is it possible to change the user (SY-UNAME) by a function module ?
I want to change the current user from USER to TOPUSER, and after a submit of an abap (with specific authorizations) back to USER again.
Did you try to use the extension SUBMIT ZXXX USER user...
Yes, see herefore my other posting
/forums/viewtopic.php?t=5184

(Submit abap with other user ?)
regards,
Hans
Answer:
Hi Hans,
I don't know if this would work. But how about creating another program with a submit statement for which the user has authorisation to run. And call this program in your program so that when the user runs this he will be submitting the program for which he has authorisation to TOPUSER. And since TOPUSER has all the authorisation the original submit will be successful.
But you have to be careful in assigning authorisations to correct users of both the Z programs.
Doesn't seem to be a neat solution though,even if it works.
_________________
Sunny

More Articles:

Format?
Adding fields to a selection screen dynamically - possible?
define dynamic internal table?
Default variant in a program?
What are table joins and sub-queries?!?
Objects in Transport Request?