Unable to get Portal User in a Remote DB

Hello,
We are developing an application with Portal on Instance A and the application tables on Instance B. We have DB triggers on the application tables in B and would like to capture the Portal USER using wwctx_api.get_user. Have created a DB link and PUBLIC SYNONYM in B to access the package in A. However, when we call the function in B, we get the following error -
ORA-00164: autonomous transaction disallowed within distributed transaction.
Has anyone tried something similar?
Thanks.

Hi,
If you submit your form to a procedure in the portal instance you can get the portal user inside of this procedure.
you can then send this value to the table in the other instance.
Regards
Michael

Similar Messages

  • 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

  • Get portal users

    Hi,
    We are developing an abap program that need to get a list of sap portal users. With the configuration we
    have on our sap portal, the portal users aren't the same as R/3 users, therefore, portal users are independent of sap R/3 users.
    Another option would be to get portal users from sap portal. It is possible?
    Thank you very much.
    Marc

    Hi,
    I think it would be easier to create a portal web service (you have all the API and the data at hand) and use it as a data source for Visual Composer. See this link for more info:
    [Consuming Web Services Using Visual Composer|Consuming Web Services Using Visual Composer]
    Hope that helps,
    Romano

  • How to get Portal user from a standalone Java application

    Hi,
    I have a standalone Java application from where I need to fetch the Portal User Information like userid and email id.
    I am using the below line of code
    iUser = UMFactory.getUserFactory().getUserByLogonID("e017939");
    I have included the jar file com.sap.security.api , But it was giving me the below exception
    java.lang.NoClassDefFoundError: com/sap/tc/logging/Location
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:55)
         at com.am.wcas.java.mailscheduler.kmaccess.FetchDataFromKM.getiUser(FetchDataFromKM.java:29)
         at com.am.ScheduleEmails.main(ScheduleEmails.java:89)
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Then I went throught he SDN threads and they asked me to include the
    logging.jar and com.sap.security.perm.api .
    I Included them, then also, it is giving me Exception
    java.lang.NoClassDefFoundError: com/sap/engine/lib/logging/LoggingHelper
         at com.sap.security.api.UMFactory.<clinit>(UMFactory.java:56)
         at com.am.FetchKMData.main(FetchKMData.java:30)
    Exception in thread "main"
    and I am getting a pop Up message from the Java Virtual Machine Launcher, saying a Fatal Exception has occured and the Program will exit.
    Kindly let me know if it is possible to access the User info using UMFactory in a standalone Java application. If yes kindly let me know where i am going wrong.
    Regards,
    Shilpa B.V

    Hi Shilpa,
    1. Check that you have added com.sap.security.api within the Your Project>Libraries folder (under navigation tab) and also added jars in the build path of the Your Project under project>properties>Build Path.
    2. In case you have a DC instead of Web Dynpro Project then you have to add the com.sap.security.api under Your DC>Used DCs and have compile time and runtime dependency added.
    Here java.lang.NoClassDefFoundError is caused basically due to only build time dependency added and reference to the jar missing at runtime. Rest the code to retrieve the current user id using UME API and getUserByLogOnID("....") method with/without portal environment would not be an issue at all.
    Regards,
    Tushar SInha

  • Unable to get Windows User Name using Oracle Forms 6i, Jinitiator 1.3.1.17

    Hi,
    Requirement: Get Windows User Name using Oracle Web Forms 6i.
    Tools Using: Windows NT, Oracle web forms 6i, Oracle 10g DB.
    Description: I am using GetClientInfo JBean from otn.oracle.com, which gets windows user name, IP address and machine name. The demo I got from oracle web site uses Jinitiator version 1.1.7.18. While we are using the latest version Jinitiator 1.3.1.17. Due to this reason, I am unable to use Javakey which comes with older version but doesn't come with newer version, that's why I can't create the new JavaBean Java identity (PJC).
    Please advise what to do. All environment variables are set everything is done, this is the only thing bothering me.
    I went through the article 202768.1 from metalink, but on step 5, it gives an error keytool error: java.lang.Exception: Input not an X.509 Certificate.
    Also, please let me know if there is any other workaround for this requirement.
    Thanks & Best Regards,
    Mo

    Hi,
    Thanks for your kind reply. Actually there was a problem in creating a certificate, now it is okay with the same method. Certificate got imported on client and everything is ready.
    Now, the problem is when I try to set Bean Area Implementation Class property with oracle.forms.demos.GetClientInfo, it gives an error FRM-13008 Cannot find JavaBean with name 'oracle.forms.demos.GetClientInfo'.
    I went through the articles 1072329.6, 196824.1, and set ClassPath and Path variables with proper values. Also, I have copied jar file and signature file in forms60/java folder. I don't see any problems. Please let me know what I am doing wrong. My limitation is that I have to do all this in forms6i.
    I searched forums on metalink and found out that someone installed Patch 15, and everything went okay for him. Do you think I should install Patch 15? if YES, how will I do it, I mean should I first uninstall my forms and then install patch15 or install the patch on my forms?
    Thanks so much for your help.
    Thanks & Best Regards,
    Mo

  • Get portal user logon details from abap web dynpro

    Hi all,
    I am developing an abap web dynpro which will be added via an iview to our ees/mss portal. What i need to know is how do i get the current user logon details in my web dynpro! i.e. if a user is loged into the portal using personnel number 111111 i need to be able to capture this value so that i can retrieve hr data for this personel number! any information would be much appreciated!
    Regards
    Mart

    Hi Mart,
    You can pass "iv_user=<User.LogonUid>" as application parameter in iview.
    add iv_user parameter in HANDLEDEFAULT method of default window of webdynpro component.
    that's it.
    when u run your webdynpro application, you can have value of portal logged on userid in iv_user.
    hope this will help u a lot.
    [Visit this thread|Re: WD4A: pass portal logged in userID to WebDynpro ABAP IView.]
    -Haresh Khandal

  • Unable to get parameter values from a remote database

    I am linking to a remote database view via a synonym in Oracle and trying to retrieve parameter values from it.  The username and password are the same for the local and remote database and I can run the SQL query using SQL plus against the database and values are returned.  However, when I try and run the same query in Crystal Reports (XI) I receive an Oracle error:
    "An attempt was made to connect or log in to a remote database using a connection description that could not be found.
    Action: 
    Specify an existing database link. Query the data dictionary to see all existing database links. See your operating system-specific Net8 documentation for valid connection descriptors. "
    How can it be that Crystal cannot run the query when it is valid in SQL plus?
    Any tips/info would be appreciated.
    many thanks
    Claire
    Oracle is version 10

    When running one of the reports in VS.Net this is the error I receive:
    "A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in crystaldecisions.crystalreports.engine.dll
    Additional information: Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]
    Failed to retrieve data from the database.
    Error in File C:\DOCUME1\CLAIRE1.REE\LOCALS~1\Temp\{0C6C6DD5-B958-4E10-A2AA-928C58E1B7CE}.rpt:
    Failed to retrieve data from the database.
    Details:  [Database Vendor Code: 2019 ]"
    When running the same report in Crystal Reports designer I receive this error message:
    "Prompting failed with the following error message: 'List of Values failure: fail to get values. [Cause of error: Failed to retrieve data from the database.  Details: [Database Vendor Code: 2019].  Failure to retrieve data from the database.  Error in File UNKNOWN.RPT.  Failure to retrieve data from the database.  Details: [Database Vendor Code: 2019]]'.
    Error source: prompt.dll Error code: 0x8004380D"
    So this one is also failing in the designer.
    All the parameters in the main report are static and the ones in the subreport are passed in from the main report.

  • How can i get portal user creation date?

    Hi,
    In my web dynpro java application i must get user creation date.
    How can i get user creation date?
    Thanks.

    user.created()

  • Suddenly unable to get new users IP's  (Probably DHCP issue)

    Hi,
    I just took over the support for a small business and while fixing a "roaming profiles" issue I realized that new computers (clients) were not able to get new IP Address or they don't have internet.
    I have verified the physical connections and the obvious: (Server has internet, rebooted machine, restarted DHCP Service) but I didn't get proper documentation about the server.
    I think it's a Gateway and from the DNS I see it has all Secondary zones set up.
    The connected clients don't have any issue anymore.
    How can I verify if DHCP is running fine?
    Why would the server suddenly stop allowing new IPs?
    I have to figure this out by tomorrow so anything you need I'll be following very closely all posts.

    I am seing these in the logs:
    Nov 14 00:01:43 bumblebee bootpd[190]: DHCP DISCOVER [en0]: 1,0:1c:10:b7:91:2e <207.115.108.186>
    Nov 14 00:01:43 bumblebee bootpd[190]: service time 0.001088 seconds
    Nov 14 00:01:45 bumblebee bootpd[190]: DHCP DISCOVER [en0]: 1,0:1c:10:b7:91:2e <207.115.108.186>
    Nov 14 00:01:45 bumblebee bootpd[190]: service time 0.000325 seconds
    Nov 14 00:01:49 bumblebee bootpd[190]: DHCP DISCOVER [en0]: 1,0:1c:10:b7:91:2e <207.115.108.186>
    Nov 14 00:01:49 bumblebee bootpd[190]: service time 0.000391 seconds
    Nov 14 00:01:57 bumblebee bootpd[190]: DHCP DISCOVER [en0]: 1,0:1c:10:b7:91:2e <207.115.108.186>
    Nov 14 00:01:57 bumblebee bootpd[190]: service time 0.000347 seconds
    Is this something normal?

  • HT3325 I am unable to get any version of Keynote Remote to link my devices except version 1.1!

    Is anyone esle having this problem? I have an iPad 3, Keynote '09 and a MBP 2010.
    I have tried loading Keynote Remote 1.3 (newest version) on several devices and NONE of them will link to my Keynote application on my MBP. I guess that would eliminate it down to being a laptop issue, but I've followed as many "fixes" as I can...Bluetooth, deleting certain preferences, starting with extensions off...etc. I'm out fo ideas.
    Now when I reload version 1.1 of KNR on ANY of my devices (iPad, iPod Touch 2nd gen) it links up fine!
    So...I'm down to wondering if there's something in 1.3 that is glitchy?

    Use the serial number found in Settings > General > About
    Key it in here:
    https://selfsolve.apple.com/agreementWarrantyDynamic.do
    Edit:
    I've done it for you: It's iPhone 3G and not iPhone 3GS.
    Message was edited by: ckuan

  • Unable to get User Email Using PDK API

    I have to get portal user email in my jsp portlet. I have use the PDK API :
    PortletRenderRequest pr = (PortletRenderRequest) request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    String Email = pr.getUser().getEmail();
    But the result of Email is null and i have inserted the user email in portal user profile. Does anybody can help me on this?
    Thanks
    Siti

    What's your Portal version? In 9.0.2.6 and above you can retrieve Email information from the Oracle Internet Directory (OID).
    Take a look at the Installing the Oracle Internet Directory Portlets and the An Overview of Provider & Portlet Security PDK articles.
    Peter

  • How to get the portal user id into the web dynpro iview at runtime?

    Hi,
    Can any one let me know, How to display portal id and as well as backend SAP user id into Web Dynpro iview at runtime. I am using Adaptive RFC model in my web dynpro application.
    Raj.

    Raj:  check this thread. I think that will help you.
    Can i get Portal User's details in webdynpro??
    I had the same requirement and its works whit this solution.
    regards.

  • Portal Users name for auditing

    Hi,
    How can i get the name of portal users. Some one told me that there is some Portal_api through which i can get Portal user and then i can write custom code to insert that name for auditing purpose in tha database table. Can any one tell me what that Portal_api is? If any has done this before then can you expalin it with some example.
    Your help in this matter will be highly appreciated.

    muhammad
    I can't tell you the exact name of any particular api but I can tell you where a good place to look.
    If you are familiar with any of the MONITOR functions on the Oracle main page, there is one sub category for "chart by user". The contents for these are located under the navigator -> contents -> monitor -> chart by user.
    I haven't drilled down far enough to find any specific calls, but since documentation seems so lacking for these thints, I have to go find an example to take apart for the pieces I need.
    Hope this helps.
    Mike

  • Portal user details

    HI
    I need to develop a web dynpro application which gives the details of the portal user details who logs into portal
    Can anyone provide me the code how to fetch the details of the users who logs into portal
    thanks in advance

    Hi,
    Make sure that your WebDynpro Applications Authentication property is set to True.
    To get Portal User Details you can use the following UME Api's
    try
    IWDClientUser user = WDClientUser.getLoggedInClientUser();
    IUser loggedInUser = user.getSAPUser();
    catch(UMException ume)
    //do something
    this Iuser objects holds all the Properties of Portal User Except its Password.
    and You can retrieve it like this
    loggedInUser.getFullName();
    if you know the Logon id of Portal User you can Also get the IUser object like this:--
    IUser user = UMFactory.getUserByLogonId("Administrator");
    To use UME APIS in Webdynpro you have to refer com.sap.security.api.jar in the Build path of your WebDynpro Application.
    If You Are Using NWDI then you have to use the com.sap.security.api.sda lib Dc available in NWDI for Compilation in WD DC
    Hope this Help.
    Regards,
    Siddharth

  • Federated Portal Network - Error-"Unexpected Error - Unable to get IView

    Hi,
    I have configured FPN with EP and BI, both are on same SP level.The connection and the producer registration is successful.
    The producer contents can be navigated in Consumer and I can able to copy and paste the producer content in the consumer.
    But when I see the preview the content it shows error "
    500 Internal Server Error
      BEx Web Application
    Faile to process request; contact your system administrator
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Unexpected error - Unable to get IView:fpn:<consumer>/pcd:portal_content/Iviews_ID/BTMP_20110425_065001:NFd1NOBZQUPn2gQkVO65Lw%3D%3D:1:
    I have checked the following thread, but I'm not able to find out solution,
    Federated Portal Network - Unexpected Error - Unable to get IView
    what could be the reason,
    Really appriciated for your reply.
    Regards,
    Mahee.

    Hi Shanti,
    Thank for reply.
    I have checked with same user in both consumer & producer portals, In that case its working fine.
    If you checked with other consumer users its asking password.
    For this I have tried usermapping with producer id under goto personolize -->remote iviews --> select default alias -->enter id/pwd and save  for other consumer id.
    How we manage  for all consumer users, is there any option to mapping to all users at time.
    really appriciate your inputs.
    Regards,
    Mahee.

Maybe you are looking for

  • How can i set resolution in ipad

    Dear Friends, I am facing a problem with resolution, i installed one of my enterprises software on our ipad am not able to view some features when i checked with the software vendor they are saying its due to resolution problem is there any one havin

  • Using External_Stage can we specify a location other than staging dir

    While using external stage mode for weblogic(I am trying for weblogic92)we must manually copy the deployment files(web app) to the staging directory of each target server before deployment. Is there a option to copy the deployment files to another lo

  • When I can get MirrorLink App for my Iphone 4S?

    Hello, in my car is a Sony XAV-601BT Radio in it. You can use with the radio a Smartphone with the APP MirrorLink, than you can see all your Apps from the phone on the mirror of the radio. But it is noch nice, that I can´t find the APP MirrorLink noc

  • FQDN replacing server name in TED distributions

    In a TED application distribution, the server name is changing to a FQDN in the distributed application. The application does not resolve the FQDN as being the server name. Any ideas?

  • Wierd Language

    I have been having a very strange language isssue. When I goto "About This Mac" and select more info, the langauge changes out of English. I have gone to the international settings and English is at the top of the list, then British English, Candadia