Is it possible to read the user in a user defined fuction in a PI mapping?

I am running PI 7.0. I have a service call to the HTTP adapter on my Integration Engine to initiate a message. I would like to capture the username used to connect to the HTTP service when this message was called.
The call is initiated with the endpoint http://<myhost>:<http port>/sap/xi/engine?type=entry&sap-user=THISUSER&sap-password=MyPassword&version=3.0&Sender.Service=MyBServ&Interface=MyNamespace^MyInterface
When I look at the message in the RWB, I can see that the username is captured as part of the SOAP Header, in the RunTime area of the input message,
<!-- Inbound Message -->
<SAP:RunTime>
<SAP:Date>20101216</SAP:Date>
<SAP:Time>102057</SAP:Time>
<SAP:Host>myhost</SAP:Host>
<SAP:SystemId>xxx</SAP:SystemId>
<SAP:SystemNr>xx</SAP:SystemNr>
<SAP:OS>OS400</SAP:OS>
<SAP:DB>DB400</SAP:DB>
<SAP:Language/>
<SAP:ProcStatus>000</SAP:ProcStatus>
<SAP:AdapterStatus>000</SAP:AdapterStatus>
<SAP:User>THISUSER</SAP:User>
Is there a way that I can return this username in a User Defined Function (UDF)?

You have to make use of the ASMA....dynamic configuration....sap-user will be a URL paarmeter....check point4  from this help section: http://help.sap.com/saphelp_nwpi711/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm
(sould be applicable for PI7.0 also)
Regards,
Abhishek.

Similar Messages

  • Sychronisation AD - OID: Is it possible to read the user password from AD?

    Hi.
    We are using the Oracle Internet Directory shipped with the Oracle 9i Database Rel. 2 (9.2.0.1).
    I try to synchronise the user accounts from AD to OID using JAVA JNDI. I'm able to read all necessary user information except the user password (MD5 value). Even if I connect to the AD using SSL, it's not possible to read the attribute userPassword.
    Is anybody out there who got this work or knows a way (may also be by the use of another programming language or tool) to get the user password out of AD? Is this possible? How does the Oracle Integration Agents accomplish this?
    Thanks in advance.
    Hermann S.

    Hermann,
    I am working with this as well, though from AS10g, not RDBMS. According to the OID Administrator Guide chapter 43, page 43-52:
    <snip>
    Synchronizing passwords from Microsoft Active Directory to Oracle Internet Directory is not possible in the Oracle Application Server 10g release because passwords in Microsoft Active Directory are not accessible by LDAP clients. However, if a deployment requires passwords to be available in Oracle Internet Directory, then the following two methods are recommended:
    Build a custom plug-in for Microsoft Active Directory that captures a password change and synchronizes it with Oracle Internet Directory
    Manage Active Directory passwords from the Oracle environment. This enables passwords to be available in both Oracle Internet Directory and Microsoft Active Directory because the Active Directory connector can synchronize passwords from Oracle Internet Directory to Microsoft Active Directory.
    </snip>
    As10g can however look up the password in AD using the "Active Directory External Authentication Plug-In". This is documented in the same chapter.
    Hope this helps,
    Jens

  • I am still using my Apple G4 1.25 Ghz MDD running Leopard 10.5.8 with iTunes 10.6.3 installed. Can I use an Phone 4s with iOS 5 with this set up? I have read the iPhone iOS 5 user guide and it appears that I can but is anybody actually doing it ?

    Hello to all my readers.I am still using my Apple G4 1.25 Ghz MDD running Leopard 10.5.8 with iTunes 10.6.3 installed. Can I use an Phone 4s with iOS 5 with this set up? I have read the iPhone iOS 5 user guide and it appears that I can but is anybody actually doing it ? My current phone is a £10 Nokia and I've neither wish nor cash to spend more than a grand upgrading to an intel based machine (at the moment) ! Regards to you all.

    If you can find an iPhone running iOS5 and those are the specs for iOS5, there is no reason it should not work.
    If you want a more current version of iOS or a more current device, a Windows computer is always an option at significantly less cost. 
    Granted, there is no requirement to have a computer to use an iPhone.

  • Could not read the profile path for user S-1-5-21-1272265863-3531003469-187

    hi
    I was doing the installation of the crm702 on MAXDB+WINDOWS.IN THE FIRST PHASE OF EXECUTION(CREATE USERS FOR SAP SYSTEM) I GOT THE ERROR MENTIONED BELOW.CAN SOMEONE HELPE ME    :
    An error occurred while processing option Enhancement Package 2 for SAP CRM 7.0 > SAP Application Server ABAP > MaxDB > Central System > Central System( Last error reported by the step: Could not read the profile path for user S-1-5-21-1272265863-3531003469-18741865-1021 from the registry: The system cannot find the file specified. .). You can now:
    Choose Retry to repeat the current step.
    Choose Log Files to get more information about the error.
    Stop the option and continue with it later.
    Log files are written to C:/crmfeb.

    Hi,
    Delete all keys in registry (regedit) with: S-1-5-21-1272265863-3531003469-18741865-1021. You can do it by find it - F3.
    After that restart sapinst.
    Regards.

  • Is it possible to read the file using File Adapter which is in client machi

    Is it possible to read the file using file Adapter which is in client machine(on the same network).Then what is thee need of FTP Adapter?

    You can achieve that by exposing your client machine as a drive, then you can go using file adapter.
    FTP adapter will help you to communicate with different machine which is in different network.
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Thanks,
    Vijay

  • Is it possible to read the description of videos that you can see in iTunes on your iPod Touch 4th Gen or 5th Gen?

    I was wondering if it's at all possible to read the description of videos that you have on your iPod Touch 4th or 5th Generation. It's available on iTunes, but I was wondering if there was a way to see it on your actual device.
    Any answer would be a great help! Thanks

    You can omit the title altogether in the URL (together with the succeeding slash, of course). For example, my own podcast URL in the Store is
    https://itunes.apple.com/gb/podcast/the-sound-of-78s/id166389425?mt=2
    but this works perfectly well:
    https://itunes.apple.com/podcast/id166389425
    Indeed you can even put your own title:
    https://itunes.apple.com/podcast/any_old_title/id166389425
    So it's as simple as that!

  • Is it possible to read the backups of my iPod's ipad documents on my win7 computer?

    Is it possible to read the backups of my iPod's ipad documents on my win7 computer? I guess I am looking for a backup document reader/editor
    And is it possible to remove or add text documents to the ipad's documents without emailing them and cut and pasting them in?

    - Note some of those can get them from the iPod as well as the iPod backup that iTunes makes
    How to perform iPad recovery for photos, videos
    Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official     
    http://www.amacsoft.com/ipod-data-recovery.html
    iPod recovery software to restore lost music files      
    - For the second questin it depends upo what ap y ae using. If you are using Pages thengot to icloud.com, log in and go to Pages Beta

  • Error when reading the access data(URL,user, password) for Adapter Engine

    Hi,
    We are getting this error in production system 
    "SXMBSysErrorAlerts, Category INTERNAL, Error code: AE_DETAILS_GET_ERROR error text: Error when reading the access data (URL, user, password) for the Adapter Engine".
    Please tell what can be the cause of error. Where are the access data (URL, user, password) for the Adapter Engine read from?
    Its urgent.  We are in support project.
    regards,
    john

    Hi jhon,
              please check the following threads to resolve the problem.
    AE_DETAILS_GET_ERROR
    Error : no_adapter_engine_found: Unable to find Adapter Engine
    regards
    mahesh.

  • Is it possible to get the URL from which user came to Apex Application?

    Hi,
    I have 1 web site which is created by Apex. And I have to create similar sites with slight differences. For example, even though the contents are almost same, each telephone # have to be modified.
    So, if possible, I want to use only 1 web site and depending on the URL from which user came, change some information on the page. Is it possible?
    And if it is possible, what if the user set Apex URL as favorite and visit it after some days?

    Thank you Scott,
    This is the one.
    But I have another issue.
    If a user comes to our page from their link directly, I can identify where he come from. But if he added our site to Bookmark and comes to our site through the link, is it possible to identify his original route?
    If it is impossible, I will create other Apex Application and put each URL to the link in order to catch where the user is from.

  • Dev question - is it possible to read the iPhone serial port?

    Hi,
    apologies if this is not the right place to ask this question. If so, please let me know the correct place.
    I am new to iPhone sw development and would like to know if its possible for a non-jailbroken 3G iphone to read/write data to the serial port (dock connector). Am trying to find out before I invest in a special device I'd like to connect.
    thanks much,
    'mark

    http://developer.apple.com/iphone/program/accessories/
    For additional information, refer to the documentation for the iPhone 3.0 SDK or ask in the iPhone developer forums.

  • Is it possible to read the contents of an Excel cell in DIAdem and assign its value to a variable in a VBS script.

    Hi All,
    Initially I thought this little problem would be relatively straight forward but now I’m not so sure. I am familiar with the mechanism by which DIAdem communicates with Excel and how to change the contents of a cell via a VBS script. In my task the contents of the cell in the first row, first column of MyProblem.xls contains the text “DIAdem”. I would like to be able to read this value and assign it to the variable MyString. I originally thought of doing something simple like this:
    Dim MyString
    Dim Excel, ExcelSheet
    Set Excel = CreateObject(“Excel.Application”)
    Excel.Workbooks.Open(“C\MyProblem.xls”)
    Set ExcelSheet = Excel.Workbooks(“MyProblem.xls”).Sheets(“Sheet1”)
    MyString = ExcelSheet.Cells(1,1)
    At this point I would have hoped that MyString would have been set equal to “DIAdem” and I could have used MyString to change the name of a channel in the data portal if I desired using the following code:
    Data.Root.ChannelGroups(1).Channels(1).Name = MyString
    Doesn’t seem to work though. I’m guessing it is because MyString has not picked up the value of the contents of the cell? Can anybody propose a solution to my problem or indeed confirm whether what I am proposing to do is technically feasible.
    Thanks in advance for any responses.
    Matthew

    Hi Matthew,
    Just staring at your ActiveX code, it looks fine to me.  My first thought is that this should work as you outlined it, and I've done this sort of thing many times, so I know it can work.  My second thought though, is that what you probably really want is a DataPlugin and not a VBScript.  Then you could just drag&drop the Excel file into the Data Portal and load all the properties and channels you want from the Excel file.  If you have DIAdem 2010 or later you can use the SpreadSheet reader object in the DataPlugin to avoid the Excel ActiveX functions (and Excel's jealously with other applications trying to read a file it has open already).
    Feel free to send me a few sample Excel files and describe what you want to load from the various cells, and I'd be happy to help you get a DataPlugin written to load your data.  You can also email me at [email protected]
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • HT203428 Is it possible to read the distorted text message that I received from someone?

    It was a message from the carrier T-Mobile to the carrier Airtel (which is the network I use). The message has imcomprehensible characters. Is there a way to read them, how do I change them to normal ASCII format?

    no, but there are 3rd party software solutions that can probably do this for you.   try google.

  • Is it possible to read the vROps Database (Oracle / MSSQL)?

    Hi everyone,
    is there a way to access the vROps Database and collect all necessary information's on virtual machines without using the web interface or API.
    There is an Oracle / MSSQL Database which is used by the system, but I guess it's for internal operations only, but it would be much faster to get reports using the db - I guess
    Thanks for any help and clues
    smsys

    The VAs have Postgrs, xDB, FSDB.. etc databases under the covers and they are not directly accessible in any programmatic means other than the vR Ops API. They vApps do not run Oracle or MSSQL.

  • Is it possible to control the cursor of a XY-graph via Keyboard and read the y value of the curser x-position?

    I have following problem when I control the cursor via an attribute note, it is neccersary to free the cursor, but then it is not possible to read the y-Value of the cursor position. I want to control the cursor via keyboard and buttons, but with the funtionality of attribute setting "cursor fixed to plot".

    You know the X position so just read the Y value by reading it straight from the Y array instead of from a property node...
    Alternatively unlock the cursor if the position control has changed...and lock it again if it is constant for n milliseconds; to produce the Y value from the Y property.
    MTO

  • Limit the number of concurrent users

    Is it possible to limit the number of concurrent users for the application in Websphere or at the http management level?

    You don't say what version of Websphere you are using, but here's how you might limit the number of sessions in Websphere 4.0 Advanced Edition (other versions may differ):
    Open the Administrative Console. Go down the tree to Nodes, Application Servers and click on the server you want to control (likely Default Server). In the right panel, click on the Services tab. In that panel, click on the Session Manager Service and click the Properties button. That pops up a new dialog.
    Select the Advanced tab here. Put a number in the Maximum in-memory Session Count field and uncheck the Allow Overflow checkbox. Click OK, etc, etc, and you'll probably have to restart Websphere.
    I said "might" because I don't know if this will do what you want or not. Read the help file associated with that dialog and judge for yourself.

Maybe you are looking for