Skip to Content

SAP BPC 10.1 NW classic - query on user name

Hello Experts,

I am using the write back badi (WB) to process the data incoming from my input forms. In this WB, I need to read the id of frontend logged in user.

Now the logic in WB generates some output and passes this output set to a custom function module which writes the output to model based on the assigned security of the logged in user. To do that I presently pass the IS_USER-USER_ID variable from WB to the FM.

So instead of passing this user id to the FM can I read the SY-UNAME system variable within the FM ?

Will the SY-UNAME give me the frontend logged in user id consistently on parallel multiple logins ?

I am also trying to understand what/when is the difference between SY-UNAME and IS_USER-USER_ID on a real time perspective ?



Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 10, 2015 at 05:34 PM

    Hi Pankaj,

    Initially SY-UNAME and USER_ID are same, but USER_ID can be changed using SET_CONTEXT Method.

    You have to remember that WB is called not only when data is saved in EPM Add-in, but also when Data Load is running or some script is executed. So, SY-UNAME can be ID under which DM Package is running, but if it comes from front-end it should be ID of the user who clicked "Save". USER_ID can be changed, so it looks like for your purposes you need to use SY-UNAME.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.