How to get   ECC Mapped UserID

Hi ,
I need to get the ECC Mapped USerID (mapped in portal) and pass it to a BAPI. ANy Idea how do I get it from UME once it is mapped in Portal.
Thanks,
-Ashwani

Hi,
if you are using WD then your code will work will little modifications:
IWDClientUser user = WDClientUser.getLoggedInClientUser();
Iuser puser = user.getSAPUser();
IUserMappingService iumser = (IUserMappingService) WDPortalUtils.getServiceReferences.(IUserMappingService.KEY);
IUserMappingData iumdata = iumser.getMappingData("System Alias",puser);
Map map = new HashMap();
try {
iumdata.enrich(map);
} catch (Exception e) {}
String userid = (String)map.get ("user");
IWDClientUser and WDPortalUtils Api is already provided by webdynpro runtime,
apart from this you have to add saaj-api.jar ,usermapping_api.jar which you have already included,
and com.sap.security.api.jar for iuser.
if you are using NWDI then these jars excluding usermapping api jars are available in webservice and com.sap.security.api.sda lib dcs.
finally in webdynpro shared references you have to give the references like this:-
PORTAL:sap.com/com.sap.portal.usermapping
Regards,
Siddharth

Similar Messages

  • How to get ABAP mapping option in Interface Mapping

    Hi
    experts
    How to get ABAP mapping option in Interface Mapping . i need to do abap mapping . i didnt find the option
    plz help me

    Hi,
    If u2018ABAP-classu2019 and u2018XSL(ABAP ENGINE)u2019 does not appear under the u2018Mapping Program Typeu2019 in Interface Mapping, one has to make an additional entry in the Exchange Profile. 
    Only a user with the J2EE security role (administrator) can make the following settings in the Exchange Profile.
    It is achieved in the following manner:
    1) Open http://<host>:<port>/exchangeProfile/index.html
    2)Choose IntegrationBuilder ->IntegrationBuilder.Repository -> com.sap.aii.repository.mapping.additionaltypes
    Add: R3_ABAP|Abap-class;R3_XSLT|XSL (ABAP Engine)
    To check whether the data has been successfully read from the exchange    profile:
    1- Open http://<host>:<port>/rep/support/admin/index.html
    2- Choose Administration of Properties -> All Properties
    3- If the value associated to parameter com.sap.aii.repository.mapping.additionaltypes is not visible, press REFRESH button
    After doing above check in IR, if still don't find the option for ABAP mapping then refresh the cache.
    Award points if useful.

  • Google Maps - How to get "My Maps"

    Hi,
    I have Google Maps on my Palm TX, it's working fine.  How can I get the maps created in Google "My Maps" ?
    Thanks
    Francois
    Post relates to: Palm TX

    How did you get google maps to work on you palm TX?
    thanks
    Post relates to: Palm TX

  • How to get Hongkong Map to display 繁體 when cellpho...

    How to set Hongkong Map to display 繁體 but keeping cellphone lanaguage in English?
    I want to keep all interfaces in English, only local maps of China, Taiwan, Hong Kong & Macau to have street names in Chinese language (either 繁體 or 简体). The PinYin is an alien language to me.

    Thanks farby. It is a pity there is no option to switch between the languages. Most locals here are bilingual and for some reason prefer to have the menus set in English but the maps. And those pin-yin names of places are not proper English names either.

  • How to "get" message mapping from XI scenario

    Hi guys!
    Is there a way, how to export message mapping description in some way from PI? In XI 3.0 it was possible, but what about PI 7.0? Hope you understand me:)
    We need it to save this mm description as documentation.
    Thanx a lot!
    Olian

    Hey Oilan,
    with the message mapping open, hold ctrl + shift and right-click in the data-flow editor (the part of the screen where the function boxes and links go).
    a different menu will pop-up. just follow "export tools, export" or something like that. It is pretty straightforward.
    It will save the mapping in a .mte (or something like that) extension file. It is nothing but an XML. Good thing is that you can also import this .mte file in another message mapping (of course, with same source and target messages, or it won't be able to reference the links).
    Regards,
    Henrique.

  • How to get Win NT userid for setting VPD application context?

    We are planning to implement row-level security using VPD. For that to happen, we need to capture the Windows NT userid since all the applications connect through a generic Oracle userid which will not help us.
    Has anyone done this before? Your responses are appreciated.
    Thanks.

    SELECT osuser
    FROM v$session
    WHERE audsid = (SELECT USERENV ('sessionid') FROM dual)

  • How to get form's userid

    Private WithEvents SBO_Application As SAPbouiCOM.Application
        Private Form As SAPbouiCOM.Form
    '// Get the added form object by using the form's UID
    Form = SBO_Application.Forms.Item("manager")
    I have created a frmEmployee.srf file using screen painter.I converted this file in xml format and executed  LoadFromXML("frmEmployee.xml") function.
    But I can not get form's uid.What is this forms user id ? What value should be given insted of manager ?

    Hi Dilip,
        SAPbouiCOM.Form is an interface that represents any SBO form that exists or live in application. Since its not a class you cannot instantiate it but you can access any existing form opened by SBO or LoadForm() function and assign it to this. Each live form will be having a unique id to manipulate with it and get access of the form.
        For example you can open 2 Item master data forms. Each form will be having a unique id to identify for manipulation but these two forms will have a unique code. Using that unique code you can get that form instance and assign it to SAPbouiCOM.Form variable.
        But both forms are of same type 'Item Master Data'. In SBO it uses an number for each form type. For example 150 is an Item master data form type. This form type will be displayed on bottom left corner if System Information selected. Unique id is different and it will be unique across SBO application.
    LoadForm() will return Form object
    Try something like
    Dim objForm as SAPbouiCOM.Form
    objForm = ….LoadFromXML(xmlstring)
    //I think you used File Name. You should try with xmlstring
    HTH
    B Ravi Shankar

  • How to get particular maps for 701?

    Hi,
    I am in India. I have Nokia 701. Please help me to download maps for particular
    location.
    Thank you.
    -------------------If this post helped you, click on accept as solution.------------------
    -----------------------------Appreciate by clicking on white star.----------------------------
    Solved!
    Go to Solution.

    @Srikanthsd
    Should be three available methods:
    1) Via "Update" feature within Ovi Maps upon 701 using WLAN access point
    2) Via Ovi Suite > Maps upon PC
    3) Direct download of province(s) required and decompress .zip file from links here:/t5/Maps-Navigation-and-GPS/Maps-Data-File-size-di​screpancy/m-p/1166517/message-uid/1166517/highligh​...
    If I've helped in any way, a click upon the white star at bottom right of screen would always be appreciated.
    However if my answer also solves your problem clicking below it will benefit other users!

  • How to get MAP of materials on a particular date

    Hi all,
    How to get the MAP ( moving average price ) of the material on a particular date.
    With Rgds,
    Vamsi..

    Hi,
    You need to do slight Calculation to get the map as on date.
    Get the latest Material Document for the Material , It will have the Total Qty & Total value for the particular Date .
    MAP will be Total value of the material document Line item /  total qty for the Material Doc Line item.
    Report S_P00_07000139 provided you similar report as suggested by Ajit
    Regards
    Mascot
    Edited by: Manish Kumar on Apr 18, 2011 9:46 AM

  • How to update apple maps?

    I see Statue of Liberty fixed with correct 3D in maps app from a blog....but when I open my maps app,the statue was not fixed....I think that maps update did't came to me....I have a ipad 3 with always connected to net....how to get new map updates....I'm from Sri Lanka...

    Devi ~ See if the suggestion in THIS post helps.

  • How to get the  ESS & MSS users in ECC 6.0  into portal

    Hi Experts
    How to get the  ESS & MSS users in ECC 6.0  into portal
    Thanks
    Daya

    Hi,
    You need to have SSO in between ECC and portal and use ABAP engine as your UME.
    then ECC users can directly login to portal using the same user id and password.
    Or you can create the ECC system in portal and user mapping should be done for every user to the ECC system.
    Thanks,
    gopal

  • How to get G/L account and cost centres from ECC to SRM...

    Dear All,
    How to get G/L account and cost centres from ECC to SRM...
    Please let me know the steps...
    Thanks
    Ravi

    Hi
    GL account - You can define in SPRO- Cross application settings--Account assignment ->Define GL account for product category and account assignment category.
    or you can use BADI BBP_DETERMINE_ACCT.
    In Organisation Strucute - You can Map the backend cost center via KNT  cost center attribute .
    Regards
    Muthu

  • How to get SSO userid to URL-based app?

    I'm developing a web-app using Struts that will be accessed by Portal (I guess as a URL-based app). The web-app will not require login. The web-app will not be Portal "aware", except that it requires the SSO userid for auditing/logging purposes.
    I know little about Portal and SSO. How can Portal be configured to send the Portal userid of the logged-in Portal user? Can it send it as a parameter in a GET or POST?
    The version of Portal will be 9.0.2 (or greater).

    This topic is answered in the PDK forum here:
    How to get SSO userid to URL-based app?

  • How to get maximal value from the data/class for show in Map legend

    I make WAD report that using Map Web Item.
    I devide to four (4) classes for legend (Generate_Breaks).
    I want to change default value for the class by javascript and for this,
    I need to get maximal value from the class.
    How to get maximal value from the data/class.
    please give me solution for my problem.
    Many Thx
    Eddy Utomo

    use this to get the following End_date
    <?following-sibling::../END_DATE?>
    Try this
    <?for-each:/ROOT/ROW?>
    ==================
    Current StartDate <?START_DATE?>
    Current End Date <?END_DATE?>
    Next Start Date <?following-sibling::ROW/END_DATE?>
    Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
    ================
    <?end for-each?>
    o/p
    ==================
    Current StartDate 01-01-1980
    Current End Date 01-01-1988
    Next Start Date 01-01-1990
    Previous End Date
    ================
    ==================
    Current StartDate 01-01-1988
    Current End Date 01-01-1990
    Next Start Date 01-01-2005
    Previous End Date 01-01-1988
    ================
    ==================
    Current StartDate 01-01-2000
    Current End Date 01-01-2005
    Next Start Date
    Previous End Date 01

  • How to get audit id in coder template mapping

    Hello everybody,
    i am new in this Forum and new to the Oracle Warehouse Builder. I am Student and currently working on a approach of error handling by ETL processes.
    To my question:
    I am using a Code Template Mapping to load data in my target tables. In my target table i want to have a column which contains the Execution_Audit_Id of the current Code Template run. Can anyone tell me how i get this Audit ID in a Code Template Mapping? That would be great!
    OWB Version 11.2
    Regards,
    Jens

    Hi,
    You would need to create a parameter in your report called userloginid select the paramter data type to match that of the datatype this value is stored as in the table.
    then the correct syntax would be select * from table1 where userloginid=:userloginid
    Hope this helps,
    Domnic

Maybe you are looking for

  • Auto-Complete bugs in Adobe Reader X / Acrobat X

    When I open a PDF that has fillable forms, and auto-complete is enabled, it does a terrible job of managing it's suggestions and how it handles my desire to 'type through' the suggestions that it's offering. To test this, you'll need a PDF with multi

  • How do I rotate comments in a PDF?

    Sometimes when I export my comments to a data file, they will be rotated on the new document when I import them.  Is there any way to rotate the comments?

  • Server is restarting intermittently

    Dear all My sparc server 280R is running with solaris 9 From thw last one week we are facing a miscellaneous proble that our server is getting restarted automatically in the day time. The server is properly shutting down and gets restarted. If anybod

  • Updating blob files

    can somebody help me, can mysql update blob data fields? or is there another way to change data i blob columns/...

  • N95 video message help

    I have an N95 8gb but I dont seem to be able to receive video messages. i can receive pictures and sounds but no videos even though they are under 300k. I have been in touch with Vodafone who have said to do the following: 1.On the phone press the Me