Get Sap User Id

Hi
I am developing WD4A app and I was wondering what code to use in order to get the SAP USER ID from the portal?
In java I use the code:
WDClientUser.getcurrentUser().getSapUser();
Any help is appreciated
Regardfs
yuval

Hi
I am not sure but in the thread you mention, the url of the app has to pass in the user id.
In the HandleDefault you just read the url parameter attached to this url.
What I need is to extract the SAP USD ID drectly from the portal login id.
I think there is such a class in ABAP
regards
yuval

Similar Messages

  • Get SAP user Id and External E-mail Id From Position in SRM

    Hello All,
    I am fetching Position from Ztable, And i want to get SAP User Id and External E-mail Id from this Position. Is there any Function Module or any table through which can i get it? Please suggest me ASAP.

    Hi,
    I think FM BAPI_USER_GET_DETAIL will do. Structure ADRESS contains everything.
    If you like to display at screen - use BAPI_USER_DISPLAY.
    Kind regards,
    HP

  • Get SAP User E-Mail Address

    Hi,
    does anybody know where I can find the e-mail address of a sap user (The one which you can edit via SU01). I already took a look at all the usr* tables and of course adrc but this little bastard still hides in the dark
    Any help is greatly appreciated.
    regards
    Thomas

    Hi Thomas,
    offtopic request ...
    Could you send me your mail address? Did not find it on your BC, don't think we exchanged addresses there.
    Use my name to mail me at [email protected]
    Thx
    Max

  • Getting SAP user Date format

    Hi All,
    I have a webdynpro java application which i am using in ISA B2B. I need to show a date format of the backend user. Is there any way where i can fetch the SAP backend user date format in webdynpro java application using API. Kindly suggest me an idea on this?
    Thanks and Regards,
    Saravanan

    Hi Saravanan,
    You need to fetch data through RFC function module in webdynpro. You need costom build functiona module for user information.
    Refer to Linking [Remote Function Call to Web Dynpro - Model|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/761eba66-0401-0010-b982-d5f5bd9e8f90]
    Regards
    Arun Jaiswal

  • Find sap user id from release code and release group

    does anyone know any FM that can get sap user id from certain release code and release group?
    ex: if i input rel code 40, rel group N1 , then it should be sap user id A
    i would prefer FM rather than tables and tcode.

    Hello,
    Please find attached list of tables
    T16FB                          Release Indicator: Purchasing Document
    T16FC                          Release Codes
    T16FD                          Description of Release Codes
    T16FE                          Descriptions of Release Indicators: Purcha
    T16FG                          Release Groups
    T16FH                          Descriptions of Release Groups
    T16FK                          Release Statuses
    T16FL                          Release Indicators: Service Entry Sheet
    T16FM                          Descriptions of Release Indicators for Ser
    T16FS                          Release Strategies
    T16FT                          Descriptions of Release Strategies
    T16FV                          Release Prerequisites
    T16FW                          Assignment of Role to Release Code
    Thanks & Regards,
    Mihir Popat

  • How to get an user field in a sap form

    SBO2004
    I'm trying to get an user field in a sap form(651).
    My code is:
    Dim FrmT As SAPbouiCOM.Form
    Dim Itm As SAPbouiCOM.Item
    FrmT = GestorSAP.SBO_Application.Forms.GetForm("651", 1)
    If (Not FrmT Is Nothing) Then       
       Itm = FrmT.Items.Item("U_Project")
    End If
    Frmt is not nothing, but itm is ever nothing and gives me an exception(item not valid). If i go to sap and look at this form, with debugging info activated, i see:
    Form=651 Itm=U_Project Variable=1 OCLG,U_Project
    What am i ding wrong?

    Hi Miguel Angel.
    Try with form "-651".
    UDF form is the negative sap form.
    HTH
    Juli
    P.S:I'm not sure your code works, I never work with GetForm method, but yes with UDF form

  • How to get business partner name from sap user

    Hello,
    We want to get in the code the business partner name from sap user.
    What function modules should we use to perform it?
    Thanks in advance,
    Sergey

    HI,
    You can use the FM:CRM_CENTRALPERSON_GET
    pass the input parameter IV_USERNAME as the user name
    You can get the result in the export parameter EV_NAME as user's first name last name
    regards,
    PP

  • How to get email ID fo a SAP user

    Hi Experts,
    How can i get (From database tables) the email id of a SAP user.
    Thanks
    Yogesh Gupta

    From USR21 you can get the PERSNUMBER & ADDRNUMBER. Goto table ADR6 and get the email address for that PERSNUMBER & ADDRNUMBER (if maintained).
    Hope this is helpful.
    Thanks,
    Pavan

  • How to get BP number having SAP User ID .?

    HI all,
    How to get BP number of a user having his SAP User ID .?
    Help reg this.

    hi check this...
    In SUS Link between registered User ID and Business Partner (Vendor) Number
    Assign User to Business Partner
    regards,
    venkat .

  • Get all sap users based on company code

    Hi,
    In my workflow i need an activity which will popup all sap users based on the company code. can anyone guide me by giving the table which is having relationship between sap user and company code. Any direct relation or indirect relation?
    Thanks
    sheron

    Hi Arghadip,
    Actually the tables u were mentioning were HR Tables right.
    But these tables are not maintained in this project. This is an SAP-ISU project.
    regards
    sheron

  • How to get Portal User Context  in Web Dynpro application

    I have successfully integrate a web dynpro app into SAP Netweaver Portal.
    Within my web dynpro app, how can I get portal user context information such as first name, last name, job title or some newly created ume attibutes.
    Is there any programmatical approach to get portal user context in my web dynpro. I not sure whether I can use the following codes in web dynpro?
    IUserContext userContext = request.getUser();
    String firstName = userContext.getFirstName();
    String lastName = userContext.getLastName();
    If yes, can someone point me the name of the jar file I have to import.
    Note : The SAP Netweaver installation that runs my web dynpro app is same with the SAP Portal.

    Hi ,
    you can use the below code to get User details and  add com.sap.security_2.0.0 > lib > com.sap.security.api.jar
    try
              IWDClientUser clientUser = WDClientUser.getCurrentUser();
    String firstName = clientUser.getFirstName();
    String lastname = clientUser.getLastName();
    catch (WDUMException e) {
                wdComponentAPI.getMessageManager().reportException("Error Retrieving User"+e.toString(),true);
    Regards,
    Sunitha Hari

  • Getting the user logged in to be outputted into PLD Page Footer

    Good Day,
    As the subject declares, I need to be able to out the User Name of the person who is generating/logged in the report on the page footer section of the pld.
    I tried to follow the thread here
    |https://forums.sdn.sap.com/click.jspa?searchID=23110696&messageID=6827875]
    But I am still confused how to perform it, since I am a total newbie w/ no training for PLD.
    *Currently using SBO 2007A PL42
    Thanks,
    Sean Yu

    Hi Sean,
    That thread is taking about the UDF and FMS.  If you need get the user name on the PLD, that is necessary first step.  You have to create an UDF first and then assign that FMS query.  After this step, you will be able to put this new field on your PLD.
    Thanks,
    Gordon

  • How to get the user list under role

    Hi Gurus,
    in mdm console, if you select a role, you will see the users who are assigned to this role.
    how can I get this user list through java api.
    Ouser server is  MDM7.1SP5
    Best regards,
    John

    Hello John
    you cann't get users list.
    you can get user roles information since SAP MDM 7.1 SP3:
    com.sap.mdm.security.commands GetUserRoles Command
    A command to retrieve the array of roles for the specified user
    more about api  you can read here(What's New in MDM Java and .NET API - part):
    http://help.sap.com/saphelp_nwmdm71/helpdata/en/13/041975d8ce4d4287d5205816ea955a/frameset.htm
    Regards
    Kanstantsin Chernichenka
    Edited by: Kanstantsin Chernichenka on Mar 11, 2011 3:10 PM

  • How to disable web service authentication by sap-user string in url

    Hi Experts,
    I am publish some RFC function as webservice for my SAP AS ABAP, i set the authentication as basic. I can using http basic authentication to call the service and get the result. But it also accept passing user/password through the url string: http://localhost:8001/sap/bc/soap/wsdl11?services=BAPI_PO_CHANGE&sap-client=100&sap-user=myId&sap-password=myPassword
    I want to disable this, make it no user/password through url string. Can anyone tell me how to do it, thanks.
    Best regards,
    Peter

    Well, it's not a backdoor - but (extremely) bad style: an URL should never contain any authentication data (like UID & PWD) nor should it ever contain any (security) session ID (which, if valid, would allow to skip authentication).
    So, I agree with you / your customer: it should be (made) possible to configure the system to discard / ignore any authentication data which is contained in the URL.
    I recommend to submit a customer message to SAP (using message component BC-MID-ICF). You might refer to this SDN posting (by providing the URL) in the support ticket.
    PS: Basic Authentication is not much better but at least the information (UID & PWD) is not sent in the clear (although simply Base64-encoded) and not in the URL (but in the http header). Sending cleartext data in the URL is really the worst. The best is: use stronger authentication mechanisms (e.g. X.509 client certificates, Kerberos, Biometric authentication mechanisms, etc.).

  • SAP User Audit Report

    Hi Expert,
    I want to download SAP user audit report through USMM.
    but whenever i run USMM and click on system measurement its goes on background job.
    I need this report in PDF format. plz help 

    Hi Kumar
    1.  Once you’re all system measurement are getting over collect those data in to one system.
           Refer the PPT 's which provided the steps
    https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&cad=rja&uact=8&ved=0CC8QFjAD&url=https%3A%2F%2Fsupport.s…
    2 Transaction code  LAW perform a consolidation of user records and then send the information to SAP direct or email
    SAP Library - License Administration Workbench
    BR
    SS

Maybe you are looking for

  • What does spotlight take forever to index after the 10.7.5 update?

    Seems like lots of people have had this problem. Nothing from Apple. This *****.

  • DOM Based Cross-Site Scripting issue in RoboHelp 10

    We're using a WebHelp system originally deplyed using RoboHelp 9.0.2.271, and a recent security scan revealed the DOM based cross-site scripting issue. I recently upgraded to RoboHelp 10, migrated my help system to this version, and redeployed the sy

  • How to add custom attributes to UME

    hi gurus, I have developped an appliation in that I want add custom attributes to UME for the sake of retriving the BrandType. Please give me suggestion how to do this. Thanks in adance. Lohi

  • Counting number of elements in an array which aren't empty?

    i tried using this method to count an array which has 100 elements but it doesn't go past the while statement which i cant figure out? public static void countCust() int cntr = 0; int z; for (int c = 0; c < 100; c++) while (customer[c].indexOf(':') !

  • I am not able to view my call log

    I have been unable to view my call log for a couple of weeks now. everytime i click on the call log it goes straight back to the main screen.i have been into the apple store who have advised me to update it which i have just done but it still doesnt