Unable to map the portal user with back end user through web dynpro coding

Hi All,
I 've a portal user which is mapped to back end user by  system in the portal.
i 'm able to get the portal user from web dynpro application.
But unable to get the mapped back end user
this is my code
String systemalias = "SAP_CRM_PROD";
Map mapattr = new HashMap();
          //     IPrincipal principal = (IPrincipal) request.getUser();
//   get user user mapping information
IUserMappingData userMapping =
               //(IUserMappingData) UMFactory.getUserMapping().getUserMappingData(systemalias, principal, mapattr);
               (IUserMappingData) UMFactory.getUserMapping().getUserMappingData(systemalias,principal,mapattr );
//                  For testing purposes only
               //mappingData = userMapping;
               HashMap map = new HashMap();
               userMapping.enrich(map);
               mappedPassword = map.get(UMAP_KEY_PASSWORD).toString(); //String "user"
               mappedUserId = map.get(UMAP_KEY_USER).toString(); /
following is the error reported .
The project was not built since its classpath is incomplete. Cannot find the class file for javax.xml.soap.SOAPMessage. Fix the classpath then try rebuilding this project.
please help.

Hi Sanjay,
   request component need to be initialized before using it. Include these lines before ur code.
IPortalComponentRequest request = (IPortalComponentRequest) this.getRequest();
String mappedPassword = null;
String mappedUserId = null;
Also check these threads for ur help.
Accessing Mapped Username / Password
How to access user id and password via UserMapping ?
Reward points for helpful answers.
Regards,
Harini S

Similar Messages

  • How i map the caf data with data of UWL in web dynpro

    Hi Experts,
    i created a bpm project with nwce 7.1.1 and it have a independent caf to keep it's data and status.
    now i have to create a view(use web dynpro) such like UWL,
    my question is
    how i map the caf data with UWL, and let the view can open the task(popup a window, just like UWL do) for user to finish their job?
    thanks.

    Hi Vic
    Your requirement is exect functionality of UWL based on WEBDYNPRO, CAF and BPM for automation? ,and question is How to use CAF with WD or CAF with UWL API's ?. please clarify it.
    Please fo through from given doc misght give u some idea
    1. [How to develop Web Dynpro UI for your CAF project |http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417300)ID0722080650DB02400261803144436507End?blog=/pub/wlg/5414]
    Best Regards
    Satish Kumar

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • Userid of a Portal-user in Web Dynpro ABAP

    Dear colleagues,
    we want to migrate our application from BSP to Web Dynpro ABAP and I'm looking for a procedure how I can get the userid of a Portal-user in Web Dynpro ABAP which is running inside an iView ?
    In BSP I used iView application parameter user_id and in the BSP the event handler for data retrieval with:
    userid = runtime->server->request->get_form_field( 'userid' ).
    Found a lot of entries how to do it in Java but no one for WDA ?
    Thanks in advance
    Michael

    Hi Michael,
    Actualy it is not so trivial. You have some options:
    1) In case user_id is parameter of iView you can read URL parameter like described here Webdynpro ABAP url-parameters
    2) In case user_id is not iView parameter you can use usuall ABAP <i>sy-uname</i> system variable.
    But pay attantion that it is not really EP user. Here we have 2 options: user mapping and SSO. In case of user mapping <i>sy-uname</i> will contain R/3 user which is mapped to EP user. In case of SSO <i>sy-uname</i> will contain same user name like in EP, because by using SSO user must ne the same on issuing and accepting systems.
    Best regards, Maksim Rashchynski.

  • Not able to get a link to the fron-end portal(ess) with back-end sap R\3 AB

    Hi,
       In the back-end i.e sap abap-hr , the required data (leave types) are available.But on front-end Portal(ESS) ,the drop-down menu in personal LOA forms shows only two leave types(personal & self-funded leave).i got struck in how to make few in remaining also viewable in the drop-down list.Can anyone help me on this?

    Bottom line,
    to configure the Leaves on your portal you have to do.
    1. Configure the Leave Types and all the customizing on T554S.
        opc. If you want to have quota deduction, and everything else you should check V_T559L, T556C, T556A as well.
    2. Configure the Leaves on the Portal.  This is done on the IMG path colleague replied:
    >Personnel Management
    >Employee Self-Service
    >Service-Specific Settings
    >Working Time
    >Leave Request
    >Processing Processes
       a. Create the Rule Groups - this step you just create them.
       b. Adjust feature WEBMO - The feature WEBMO is used to select the rule group. Most of the times based on MOLGA and Ctrl. Center.
       c. Define Processing Processes for Each Rule Group - define the processes such as how to record partial day leaves, details on to check PTREQ_HEADER tables for unposted leaves, and how to determine workflow's next agent (more info press F1 on each of these fields)
       d. Specify Processing Processes for Types of Leave - Associate the Leaves from T554S that you want to show on the portal. This includes Absences and ATtendances. Here you define data such as if you are allowed to create leaves on the past, present and future; field customizing, and other details.
    Since Time Management is an old part of SAP the F1 documentation is very complete so I really advise you to check.
    Also, check http://wiki.sdn.sap.com/wiki/display/ERPHCM/LeaveRequestCustom+Messages
    for how to have custom warning messages to show on your leaves.
    I hope I have clarified.
    Kind Regards,
    Bentow.

  • Exploring  the   possibility of running a BW query through  Web Dynpro

    Hi,
       I would like to extract data from BW query and its output of should  populate into the selection screen which is developed in Web Dynpro.
    Can anyone please help me out .....
    Regards
    Padma N

    I got a very useful answer from Thomas Jung (SAP) via a site he did setup with a couple of other SAP experts, also see http://enterprisegeeks.com/blog/2009/03/31/abap-freak-show-april-1st-acf-updownload-in-web-dynpro-abap/comment-page-1/
    My question:
    I think this new UI element ACFUpDownload cannot be used to do mass uploads/updates of data that need to be stored in SAP tables?
    Answer Thomas:
    This UI element is just about the transfer of data from the client machine to the server. It has nothing to do with how the data is used or processed after upload. Think of it as the equal to the CL_GUI_FRONTEND_SERVICES class and methods GUI_UPLOAD and GUI_DOWNLOAD.
    My question:
    Is there a tool like LSMW, CATT, eCATT that we can use for recording webenabled transactions (applications developed in Web Dynpro ABAP)?
    Answer Thomas:
    You shouldnu2019t need a tool like LSMW, CATT, eCATT that is tied to the user interface. With WDA you should be using MVC to design your application. This is part of the reason for MVC so that you have a clear separation of the model - business logic. You should always have a reusable class that can be called to input and create data with the same validations without going through the user interface. This is the process that SAP is following as we create new WDA screens. We use the enterprise services and their implementation classes as the Model for the WD Components. This ensures that you always have a clear API to use to mass import data.
    Although we wouldnu2019t recommend doing any kind of mass data load via the user interface any longer - eCATT will be supported for automated testing of Web Dynpro ABAP applications as of NetWeaver 7.0 Enhancement Package 2.

  • Call back-end report from Web Dynpro for ABAP

    Hi Experts,
    I have an web dynpro for abap application, I put it into an iView. I also have a report which have selection screen and ALV display in back-end. Now I would like to call the report from the web dynpro application and display it in the web.
    What steps need to be done to do it?
    Thanks,
    Anthony

    Anthony,
    you can create a custom transaction for your report "for example ZREPORT" and then create an IVIEW for ZREPORT.
    in your webdynpro you can create a button or link and in the action behind you can call OBN and pass the IVIEW parameters for the OBN call.
    OBN can be found in the webdynpro wizard tool.
    thanks!
    Jason PV

  • Search for users in a particular LDAP through Web Dynpro code...

    Hi Experts,
    Let me try explaining my problem. In my project we are using two ADAM LDAPs. One for storing internal users and the other for storing external users. I have configured the portal to connect to both the LDAPs. I am able to search for the users created in both the LDAPs through portal Indentity Management.
    I am trying to search for the users in a specific LDAP through Web Dynpro coding... I am not lucky enough to get it done. Let me explain you what I did.
    I created a custom attribute for UME through config tool. Gave a physical mapping for the custom attribute in dataSourceConfig_xxx.xml to the LDAP attribute distinguishedName which returns the distinguished Name for the user in ADAM LDAP.
    For Example: Custom attribute in UME is ldapuser which is mapped to distinguishedName attribute in ADAM LDAP in dataSourceConfig_xxx.xml.
    When I do a search for the users in a particular LDAP, I am trying to put a filter to the newly created ldapuser attribute to distinguish between the two LDAPs.
    The search will result if I pass the value as '*'. If I try to specify the user path for the LDAP in this attribute it doesnt result any data.
    For example:
    userSearchFilter.setSearchAttribute(
         "com.sap.com.cust.admn",
          "ldapuser",
         "OU=16482515,OU=Members",
         ISearchAttribute.LIKE_OPERATOR,
         false);
    The above code will not return the data, whereas
    userSearchFilter.setSearchAttribute(
         "com.sap.com.cust.admn",
          "ldapuser",
         ISearchAttribute.LIKE_OPERATOR,
         false);
    Will result with user list from both the LDAPs.
    If anyone tried searching for users in a particular LDAP through code, please help me with this issue.
    Thank you in advance.
    Regards,
    Rekha Malavathu

    I just figured it out. Under "group-policy GroupPolicy_COMPANY_SSL_VPN attributes", I had to add "vpn-simultaneous-logins 15". Apparently, it was using the value "vpn-simultaneous-logins 0" under the NOACCESS group policy.

  • How to map the bulk users with the required  roles in portal at one time

    Hi,
    Would anyone tell me how to map the bulk users with the required roles in portal at one time?

    Thanks for all the reply.
    <b>I need to assign 1 or 2 group to n((eg) 1000)number of users</b>
    I tried the first option like
    [group]
    gid=
    gdesc=
    user=
    Thr problem with this is I could n't put more no of users in the notepad.
    I would be able to put only 150 users in the single line of notepad. If it goes to next line it is not working.
    I tried creating seperate notepad but in Import it says "exists"
    I'm not sure about LDAP. Would anyone explain me the best approach to do this.

  • Mapping between portal user and business partner

    Hello all,
    I would like to store data of portal users using a business partner in an ERP system. How to map a portal user to a business partner? My idea was to store the business partner ID in a field of the portal user. But there is no such field.
    Thanks for your help!
    Felix

    Hi Felix,
    user mapping involves creation of a system object and the corresponding system alias, and then assigning this system alias to the user( this is what is called user mapping in this context). and then you create a corresponding iView for the same and assign this iView to a role where the user is already having this role.
    This is the common steps for user mapping when connecting with external landscapes. I hope the partner mentioned is a specific type
    <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4361">Try this link</a>
    under this concentrate on the system object creation area.
    and I hope you have a particular role already assigned to your role.
    Cheers

  • Request Error - The server encountered an error processing the request. The exception message is 'Unable to retrieve the requesting user's identity

    I'm trying to create an Orchestrator Connector in Service manager, It is not going well.
    The most resent alarm is
          <p class="heading1">Request Error</p>
          <p>The server encountered an error processing the request. The exception message is 'Unable to retrieve the requesting user's identity.'
       For the Orchestrator Web Service URL: I have http://Server_Name:81/Orchestrator2012/Orchestrator.svc/
    I created a new Run As account that uses Windows authentication, when I test the connection thats the alarm I get.
    Paul Arbogast

    Hi,
    Can you access the URL using a browser? Does it work with the credentials used for the RunAs account?
    Strange error message though - are the account you are running the console with, present in the SCSM CMDB?
    Regards
    //Anders
    Anders Asp | Lumagate | www.lumagate.com | Sweden | My blog: www.scsm.se

  • Unable to see the portal content directory in content adminstration

    Hi,
    I am unable to see the portal content directory in the content administration. I am not the super administrator.I have been assigned content admin role. But, I am unable to see the PCD.I see from previous blogs that permission has to be set for my role.
    Can any one help me in telling the procedure to set the permission.If permission is not the issue then do tell me the solution for it.
    Suganya

    Hi Suganya,
    The content admin role normally is sufficient to see / read the portal content catalogue (as far as the standard settings are concerned). But maybe they have been restricted on your implementation by some administrator.
    Some with sufficient permissions on the portal content catalogue has to right-click on the root (portal_content) object, "open", "permissions", and has to provide at least administrative "read" permission to you, some role (content admin for example) which is assigned to you or some group you belong to.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Unable to see the portal content directory in content administration role

    Hi,
      I am unable to see the portal content directory in the content administration. I am not the super administrator, i have been assigned other roles. But, I am unable to see the PCD. Please help me how this can be sorted out.
    Thanks much in advance,
    Sunitha.S

    Hi Sunita,
    Contact your systen admin people , he/she will assign the Read/Write or Full controls to content_admin_role in the system administration -> Permissions -> select portal content folder and right click the select open Permissions , There he/she has to add content_admin_role in Assigned Permissions category and under Administrator category select Full Control and select End user check box and save the changes.
    Then you can see the Portal Content and you can create /change the portal contents.
    Thanks and Regards,
    Hari

  • How to change the portal user id 's assigned employee in ESS configuration

    Hello Gurus,
        I now have a question related to ESS configuration. I want to know how to change the Portal user's pernr assignment in the ECC 6.0 system. Somebody had actually assigned my portal user ID a PERNR in the ECC 6.0 system. But now, for test purposes, I want to change the PERNR assignment to something else for my portal user id.
    Could any of you please guide me in doing these steps?
    Points will definitely be awarded for helpful answers.
    Thanks gurus in advance for your help.
    ~~LB

    Hi Leena,
    You can create a new user name with the username and password assigned to it, with the transaction SU01.
    Ex : ESS_USER1
    Go to transaction code : PA30.
    Enter the pernr you want to assign to the user ESS_USER1 that you have created earlier.
    Enter infotype number : 105
    Now go ahead and click on the change button.
    And assign the user name as ESS_USER1.
    Then the pernr number will be assigned to the ESS_USER1 that you have created.
    You can check the same when you go to the HRUSER transaction code.
    Please let me know if you still have any issues on the same.
    Cheers.
    Sandeep

  • Changing the portal banner with customized banner!

    Hi Friends,
    I want to change the portal banner with customized banner with logo. So for that, I created a customized banner and named as bg_banner.jpg by renaming the original as bg_banner1.
    I modified them in both paths
    D:\OracleBI\web\app\res\s_oracle10\b_mozilla_4\ and
    D:\OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\res\s_oracle10\b_mozilla_4
    Also restarted both Presentation Services and OC4J
    But still, I'm unable to view my customized banner instead I see the original LOGO missing. But able to view the rest of the banner with standard dashboard links.
    Please correct me, where am I missing and do the needful.
    Best regards
    User622248

    Use a copy of the original and paint in this.
    Than replace it there:
    \bi\web\app\res\s_oracle10\b_mozilla_4
    \bi\web\app\res\s_oracle10\b_mozilla_4\rtl
    \bi\oc4j_bi\j2ee\home\applications\analytics\analytics\res + rtl.
    Perhaps you forgot the \rtl\ banner?
    Regards,
    Stefan

Maybe you are looking for

  • Disabling enlargement of photos in iweb's photo template

    If using the photo template in iWeb, double clicking on a photo enlarges it. I was wandering if it is possible to disable this function so as to only use it as a thumbnail viewer? Thanks

  • Why can't I turn on Photostream?

    I open iPhoto and regardless if I go to the Photostream tab and click "Turn On Photostream" or go to iPhoto Preferences and check "Enable Photostream", nothing happens. The button does it's little animation to acknowledge I clicked it and the check b

  • Database problems

    Hi all I have for the past 3 days, tried to build some kind of database, without luck. All i need, is that the things the user changes in the menu, is remembered next time the program starts (URL links etc.). What is the best way to do this? And how

  • How to upgrade D9858 v3.02 to v3.96 or higher?

    how to upgrade D9858 v3.02 to v3.96 or higher? Thanks

  • Why won't my Macbook Pro read the SSD drive when I install it?

    When I installed my new Kingston SSD drive and tried to re install Mac OS Snow Leopard from the disk,  it did not read or see the SSD drive.  I had to re install the old HD and continue using that.  Any ideas? I have a MacBook Pro 13 inch Model mid 2