Can I retreive user parameter from SolMan to use in Portal?

Hi gurus!
Is there a way to use paramters from Solution Manager (SolMan) in portal? To explain further here is our scenario: we are going to use the portal as an interface for Retail Store in R3. We use SolMan as authentication database for the portal instead of the portals internal one and that works nicely. Further more we have an Application Integrator iview that shows/connect to an external index engine. As of now we logon with ONE user in each store and this Id, which actually is the store number, is sent as an parameter through the URL AppInt iview to the index engine. It's in the form of <LogonUserID> or <User.UserID>, either works fine.
Now for the problem: we have faced the need to use a separate logon Id for every computer instead of one for each store. This means we no longer can't send the parameter LogonUserId since this no longer is the store number. But we connect the parameter Werks (technical name WRK) to the users in SolMan, the question now is if it's possible to reach this parameter from SolMan "through" User or in another way, if it's possible whatsoever... Does anyone have any suggestions? It will be immencely appriciated.
Best regards
Benny Lange

For my SSM this code works,
public java.lang.String getPortalContactState( )
          String portalState = "";
          String epUserName = "";
          try {
               IWDClientUser wdClientUser = WDClientUser.forceLoggedInClientUser();
               com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
               if (sapUser.getName() != null) {
                    epUserName = sapUser.getName();
               if (sapUser.getState() != null) {
                    portalState = sapUser.getState();
               } else {
                    wdComponentAPI.getMessageManager().reportException(
                         "State hasn't set for "
                              + epUserName
                              + " Please Contact Your System Administrator ",
                         true);
          } catch (Exception ex) {
               wdComponentAPI.getMessageManager().reportSuccess(
                    "Exception=" + ex.getMessage());
          return portalState;
Regards,
Nitin

Similar Messages

  • Can viewObject get a parameter from sessionScope to binding variable?

    hello,
    using Jdev11g ADF Fusion application
    Can viewObject get a parameter from sessionScope and assign into binding variable ? without using executeWithParameter
    Thanks
    greenApple

    A. Safwat,
    As I said before, I was not trying to be offensive, but simply to explain some of the shortcomings of one solution over another. One of the reasons people give such short answers is that many questions (including this one) have been asked and answered many many many times before on the forum. As to my reasons:
    1). Overkill - overkill because you are writing code to do what the framework already provides for you.
    2). Not bind-variable friendly - you are gluing in literals into a SQL statement. That means that Oracle will have to hard parse the query for each new value of the filter clause, yielding to poor performance, particularly in a multiuser environment. It should ideally be done using bind variables.
    3). Insecure (think about what happens if you put "'xyz' or 1=1" into the filterValue there) - not using bind variables is a security hole. Think through what happens if a filter criteria comes through like the one I mentioned.
    4). Inflexible - because you are overriding executeQueryForCollection, this VO becomes inflexible and can only be used in this particular place. Using the declarative approach outlined by Timo is more flexible
    5). Bad (ok, that's my opinion there) - OK, perhaps this was a bit offensive ;)
    Please don't take a critique of a post as offensive, as I assure you it was not intended to be in that spirit. As I mentioned, I greatly appreciate when people point out issues/problems/etc with my ideas, as that is the best way for me to learn. I have in the past written applications that were not bind-variable friendly, and I learned the downsides the hard way (system was horribly non-performant) - I wish someone had reviewed my approach and told me "bad idea" before the application made it into production.
    Respectfully,
    John

  • What are user parameters? and how can i add user parameter

    Hi Experts,
    what are user parameters? and how can i add user parameter and how can i add a user parameter
    HR_DISP_INFTY_NUM with value X?

    user parameters are used give reference grps and counntry grouping use SU3 tcode as amite said

  • How can I send an email from Sharepoint Online using sandbox solution?

    How can I send an email from Sharepoint Online using sandbox solution?
    If possible I do not want to use workflow.
    Is It possible to do it without using workflow?

    hello Steven Andrews,
    when any user sends a message using contact us page in SharePoint online.
    1. We are inserting item in Contact Us List . - This is working fine
    for anonymous users also. We have used Office365 anonymous codeplex wsp and it is working fine. Anonymous user is able to insert new record in the Contact Us List.
    2. Once, new record is inserted in Contact Us list, we want to fire email notifying thanks to the user on his email id as well as to our company x person for notification of new inquiry. 
    We tried using Workflow having impersonation step for  anonymous user but it is not working for Anonymous users. Workflow is able to sent the email if someone logged into system but not working for Anonymous user although workflow is getting started
    but not able to send email although used Imperonsation step.
    We are stuck into implementing second step.

  • How to transfer range parameter from vb when using bapi calling

    Hi,everyone.how to transfer range parameter from vb when using BAPI calling?

    Did you get the solution to your problem?  Can you please share it with me. I have a similar problem. I have a VB program that calls RFC function. It works with a single parameter but not with a range of parameters. If you have the solution, could you please share sample codes with me? Thank you so much.

  • Get the connected users count from sql server using powershell

    Hi,
    I am working on SharePoint 2013,I am having SQL server 2012.
    I want to get the Connected Users count from  sql server using power shell.
    Can any one please let me know how to implement.
    Thanks in advance.
    Regards,
    Phani Kumar R

    Sorry Tom, I dont like to hear "There is no way" :-(
    There is always a way in computer to get what you need (at least it is good as Rule of thumb). I am not sure we will find it here (in a voluntary supporting forum).
    Now we (or better the architect of their system) should think of the way :-)
    Of course doing so in the forum, while we do know the system and only got a glimpse on what is needed, is not the best idea. I will point some issues which can be related to a solution. Those are not a solotions as it is but something we can use for a solution
    once something look in the right way.
    * A web connects counter is one of the easier thing to do. The basic idea is just to use the connect event and the disconnect event an adding 1 or removing 1 from the counter. This is best to do in the application using static variable as any way the second
    the application is down the counter can be go to hell as we know there is no one connect (there for a counter do not use database usually). Using a web dot-net (or asp 3) application this is done most of the time using the global.asa/global.asax file, which
    include the application and session events. for example using the method Session_Start
    protected void Session_Start(object sender, EventArgs e) {
    // Code that runs when a new session is started
    * IIS have a build-in loging system where we can log each and every request/response or only logins users. There is lot we can do with this log files including data mining. Using small bulk insert script we can use the SQL agent to insert those logs to the
    database and get the information we need.
    * any web developer i want to believe know about the Fiddler application which we use to monitor traffic. A proxy is not the only way to to monitor traffic (it is not good for our case as this is in the client side), there are several option in the server
    side.
    * SQL trigger on logon can be use to get information on who is loging on and can be logging only specific source (like our sharepoint IP or any sharepoint application). This information (what is the application which connect to the server can be retrive
    in several solution without using a trigger as well)
    *** (I'll be brief ... I'm getting bored... probably the reader feel the same)
    * using extended events and/or profiler we can monitor any connection and save the data or just remember it in shared (static) variable (this
    blog show how to do it by the way). Again we can monitor specific application or use any filter in order to get only the sharepoint users
    .... and i can continue for several days more :-) ...
    "If there is a willing, then there's a way"
    "If you can't do it, Then someone else probably can"
    "Never say never"
    I hope this help somehow :-)
    [Personal Site] [Blog] [Facebook]

  • Can 2 different users with 2 different Iphones use the same itunes to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    can 2 different users with 2 different Iphones use the same itune program to backup each phone separately? if not how can I have a backup for 2 different iphones on the same laptop?

    Here is your answer:
    http://support.apple.com/kb/HT1495

  • Can i by iphone 5c from usa and use it in Belgium

    can i by iphone 5c from usa and use it in Belgium???

    Planning on coming to the US to do so? Factored in import duties? Aware that your warranty/support will only be valid in the US? Aware that the US phone most likely won't support LTE where you live?
    Not a good idea, but the phone will work.

  • How can i unlock iphone 4G from japan to use jn nepal

    How can i unlock iphone 4G from japan to use jn nepal??

    You cannot. Japanese carriers will not unlcok the phone. There is no legitimate way to unlock a Japanese iPhone.

  • Can read or write possible from MQ Cluster using Oracle Interconnect

    Hi,
    Can we read or write from MQ Cluster using Oracle Interconnect? If we can then how can we do it?
    Regards,
    Koushik

    Sorry guys if I am missing something here but would you not be better just using the available Oracle ESB AQ Adapter?
    I've been able to pick messages up from an AQ Queue and on to both Oracle and another vendors JMS queues and vica-versa
    Cheers
    A.

  • Can't connect to facebook from candy crush using my iphone 5?

    can't connect to facebook from candy crush using my iphone 5

    Returned home only to find the same situation with my home network. Much time on chat support with Apple. Short story long: Must have been corrupted software. Had to restore original original software then add back apps and music. Couldn't back up before doing the restore so I lost a bunch of pics, but at least the phone is working once again.

  • Can my old HP print from my iPad using airport express

    Can my old HP print from my iPad using airport express.
    If yes what can be done.
    Thank you.
    Merry Christmas

    You might be able to get the iPad to print to the HP by installing an App like Print Central on the iPad.
    There are no guarantees that this will work, so worst case you will be out about $10 U.S.
    PrintCentral for iPad on the iTunes App Store

  • Can i buy i phone from US and use it in India or different part of the world after unlocking it? if yes, than will apple unlock it or need  to do it by myself?

    can i buy i phone from US and use it in India or different part of the world after unlocking it? if yes, than will apple unlock it or need  to do it by myself?

    There are no officially unlocked iPhone 5's available, in the US, at the present time. No announcement, as to availability has been made. The only unlocked iPhone, available now, is the iPhone 4 or 4S. Either of these versions will work, but will have no warranty or support in India. They can only be purchased directly from Apple, no where else.

  • Can i buy an iphone from us and use it in my country?

    can i buy an iphone from US and use it in my country?
    an unlock one or a without contract one?

    You have to buy an unlocked iPhone from Apple Store.
    Note: There is no warranty outside of US. iPhone 5 unlocked is not available at the moment.

  • Can't get user account from 10.7.5 to Mavericks with Migration Assistant

    I am perplexed about this one.  I want to use migration assistant to get a user account from an old Mac Pro running 10.7.5 to a 2012 iMac that has Mavericks on it.
    I've tried:
    1 - Migration assistant over the network - migration assistant says the Mac Pro needs a higher operating system, but the computer can't be upgraded.
    2 - Target mode of Mac Pro to iMac: Migration assistant sees the volume, but doesn't acknowledge any user accounts.  It only acknowledges applications, and other files.
    Any ideas folks.  I simply want to bring the user accout over to the new computer and perhaps the applications.

    LOL - I figured it out.  I had to update the Mac Pro which included a new migration assistant update.

Maybe you are looking for