Get name of XI System in mapping

Hi,
we have a three system landscape, i.e. we have an XI installation for development, test und production. In a mapping program, is it possible to retrieve dynamically the name of the XI system, on which the mapping is running?
I need this to replace an e-mail adress in test scenarions, so I want to determine, if I'm on test or on production system. In a productive scenario, the dynamically determined e-mails adresse are not to be replaced.
Regards,
Torsten

Hi,
In IP we can access through context object ,
also we can access this info from username and the part of the username
yes you can use context objects:
http://help.sap.com/saphelp_nw04/helpdata/en/6e/ff0bf75772457b863ef5d99bc92404/content.htm
how to get them fomr the mapping (take a look at my weblog):
/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
if you're using idocs then you have those values in edi_dc40 segment (sender port, receiver port) which are sap sid numbers
also see the below link
Availability of System id value in a BPM
Regars
Chilla..
<i>reward points ..</i>

Similar Messages

  • How to get name or unix id of last switched System Events process?

    Hello
    I am writing a script to be used as an idle function to send a command to a process as soon as it's not frontmost anymore. So far, I can figure how to get the unix id or name of the frontmost process, but not of the previous process . Here is what I have:
    on idle {}
    my handleProcesses()
    return 5 --- '5' tells idle () to run every 5 seconds.
    end idle
    on handleProcesses()
    tell application "System Events"
    set FrontApp to (get name of every process whose frontmost is true)
    set PrevApp to (get name of previous process)
    end tell
    --- my command here, like tell PrevApp to hide...
    end handleProcesses
    My problem is that "previous process" is not in the System Events dictionary. I cannot use "frontmost if false" either, because this would return all other opened applications, not just the previous one.
    I know one partial solution would be to use Command-Tab, get the name of frontmost, and use Command-tab again. But, it's not really pratical nor elegant.
    What I need is a function which can get my frontmost process name (which is easy), and return it when the process is inactive (no more frontmost).
    Thanks.
    Vic

    You can do what you want if you maintain a record yourself of what used to be frontmost:
    tell application "System Events"
    set FrontApp to (get name of every process whose frontmost is true)
    set lastFrontApp to FrontApp
    repeat while FrontApp = lastFrontApp
    set FrontApp to (get name of every process whose frontmost is true)
    end repeat
    set BackApps to (get name of every process whose frontmost is not true)
    if lastFrontApp is in BackApps then
    --the app is open in the background
    else
    --the app was closed
    end if
    end tell

  • Parse comma separated value and map with other table to get Name and change it back to comma separate.

    Hi,
    I have one existing view(with around 15 fields), in which I have to add few more fields from table called PI.
    Now these fields have values like (55C4444F-D83B-4F96-A011-367A3755BA6C , F52388E2-485B-49DF-8534-FDF46D23F59E , 722432E1-F063-4CBD-B83D-1B97836E82953) 3 values comma separated.(Sometimes only one value and sometimes 4 or 5 or 7-8 depend on user has entered
    on web page)
    Also I have another table called PHA and this tables has 2 fields Values and Name so I have to map this two tables based on VALUES fields and get Name from this PHA table and show in view and that also Comma separated.
    So basically I have to Parse the PI table's Values field 1st, map it with PHA table to get Name and then Make it comma separated in that existing view.
    To make fields comma separate I used below query,
    (SELECT DISTINCT SUBSTRING
                SELECT ','+ PI.[Name]  AS [text()]
                FROM [DB].[dbo].[Table] PHA1
    Inner Join  [DB].[dbo].[Table] PI
    ON PHA.[Value] = PI.[VALUE]
                WHERE PHA1.PId =PHA2.PId and PHA1.CId = PHA2.CId
                ORDER BY PHA1.PId
                For XML PATH ('')
            ), 2, 1000) 
    FROM [DB].[dbo].[Table] PHA2
    Inner Join [cSharpSite_profiles].[dbo].[PetAllergies] PA
    Inner Join  [DB].[dbo].[Table] PI
    ON PHA.[Value] = PI.[VALUE]
    ) [Name]
    Vicky

    Wait, this sounds wrong. You have a view where you group values into a comma-separated list. While that surely will make some purists cringe, I can see that it makes sense from a presentation perspective.
    But if you want to use these concatenated values as atomic values again, you should go back to the base tables and them from there. Building views on views may sometimes be a good idea, but if you are too keen on reuse you can cause a performance disaster.
    So do it right from the beginning.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to get the domain name from the System

    I need to get the domain name from the system in JDK 1.1.8
    Any Ideas?

    InetAddress.getLocalHost().getHostName() will get you the name of the computer the code is executed on. If that isn't the "domain name" then perhaps you could give more detail about what "domain" you are trying to find the name of.

  • How to get Data Source Name and Source System for InfoPackage

    Hello Guys,
    I'm creating a routine that can be use by any InfoPcakges...
    how can I get the Source System and Data Source in a Routine?

    Hi
    Please check the table RSLDPIO,
    In this table search with Info Package-->You will get Data source related to this info package
    then goto RSDS >here search with Data source>you will get from which Source system this is extracting data
    Hope this helps
    Regards,
    Venkatesh

  • I'm trying to connect my MacBook Pro running on OS 10.8.2 to a Linksys EA3500 router and when I go to click on the set up icon I get an "unsupported operating system". Any suggestions on what to do? The Linksys site is useless.

    I'm trying to connect my MacBook Pro running on OS 10.8.2 to a Linksys EA3500 router and when I go to click on the set up icon I get an "unsupported operating system". Any suggestions on what to do? The Linksys site is useless. Do I need some kind of upgrade?

    Don't use the CD software its not necessary.
    Infact put it in the trash.
    Your router will have an IP address in the range 192.168.1.1
    Connect your router to your Mac via Ethernet cable (They usually supply one with the router and don't worry which end goes where the Mac LAN socket is bi-directional)
    Also connect your router to your telephone line.
    Now open your Web browser Safari . Type in the IP address above and a Javascript control panel will launch
    Enter the default password and username (They are on a label on the router )
    Your now have the ability to set up your router.
    Your will need the password and user name supplied to you by your ISP at a minimum.
    Enter these and most modern routers automatically configure the basic networking setting.
    You now need to go to the security setting and set this as WPA2 Personal (NOT Enterprise) or WPA2 with AES and TKIP which ever it refers to and create a pass-phase. WRITE it down
    You should be online.
    Now remove the cable and connect to the Wifi and enter that passphase.

  • Smartforms - difference in auto-generated FM name in different systems

    Hi,
    The situation is:
    I have created a smartform in our Dev application server and tested it to achieve the view I needed. The Dev system generates FM with automatic name /1BCDWB/SF00000005. I have successfuly transported it to our test system and checked with data. After some short time I found an error in smartform and made a fix in a Dev. system. When trying to test it I found that the system modifies the FM name to /1BCDWB/SF00000006. This leads to modification in my source code, from where I call this FM with actual parameters (not test).
    The problem occures when I transported both the smartform and report from where I call it to the test system again. I obtained a shortdump with message like:
    '...FM /1BCDWB/SF00000006 does not exist...'
    After short investigation I have found, that in our Test system this smartform still generates *** and corresponds to *** the FM with name /1BCDWB/SF00000005.
    Next, I'm unable to transport FuGr /1BCDWB/SF00000006 from Dev. to Test because it does not have Dev.Class assosiated and asks for Licence Key (furthermore, I'm not sure this should be done in this way).
    Now in our Dev system FM named /1BCDWB/SF00000005 corresponds to another smartform (made by me more than year ago).
    And, what is pitty, If I try to release a transport with report which calls FM named /1BCDWB/SF00000005 from Dev, I have about 17 extended program errors (during extended program check) saying that 'there is no such FM'...
    For me this is missing of some consistency. What should I do to get consistency between our systems back? (means to have corresponding smartform relation to the same FM name in all the systems)
    Any help whould be highly appreciated.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    SAP BC Consumtant

    Hi Ivaylo
    Smartforms Name are system dependant !
    They are dynamically generated.
    You have to use :
    data : function_name type rs38l_fnam.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname           = 'ZFORM_NAME' "Smartform name
          direct_call        = 'X'
        importing
          fm_name            = function_name
        exceptions
          no_form            = 1
          no_function_module = 2
          others             = 3.
      if sy-subrc <> 0.
      erreur.
      endif.
    and then, you call your smartform with :
    call function function_name
          exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
          control_parameters         = st_ssfctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
          output_options             = st_ssfcompop
          user_settings              = ' '
    Good luck,
    Regards,
    Erwan.
    Message was edited by: Erwan LE BRUN

  • Report issue , logical name of the system has been changed

    Hi
    Recently our system has been upgraded to ECC5.0. In a particular report  while drilling down we get  error. The error says the original doc can not be shown as it belongs to logical system ( DRH-123) . Now we know that this logical name of the system was in old box . The new logical name is DRH-100 . We are saying it's a basis issue and the basis team is saying it's FICO issue.Has any body encountered this type of problem. ? In my report  i have never mentioned logical name of the system.Hence unable to understand it. But so far what I have understood , that the each box  has been partioned and given a system name which is called logical name.Now that logical name they have changed in new box.My initial response was change the logical name but basis says that is a big task and more over it has been a while when they changed it.
    Gurus, Kindly shed some light on this mess.
    Thanks in advance
    Satya

    Which report are you pulling out? T-code?
    This link has some that may help you:
    www.scribd.com/doc/24447/SAP-R3-IDoc-Cookbook-for-EDI-and-Interfaces-by-Axel-Angeli
    Do CTRL+F to find Logical Systems
    If the link doesnt work use the following keywords and google it, shoose second result: EDI IDOCS interface axel angeli sap
    You may also want to get in touch with the person who was involved in developing LS. Talk with your ABAPer, they normally have an idea about these things (well atleast my ABAPer knows!)
    Message was edited by:
            Vj

  • Reg: Table name where logical system name will store in R/3 and CRM..

    Hi
    We are trying to replicate the sales order from CRM 5.0 to ECC 6.0. we mainatined publication, site, subscription and rfc connections. When the sales order is created in the CRM the BDOC is getting posted but it is picking up the wrong logical system which we were using earlier. Due to this wrong logical system, out-bound queue is getting generated in CRM but In-bound queue is not getting generated in the ECC.
    Can anybody tell me where (in which table) we need to modify the things for getting the correct logical system.
    Regards

    Hi,
    In CRM:  look for the table CRMMLSGUID. This should have the logical system name of the R/3 that it is connected to CRM and also the GUID. To check if the GUID is correct cross check with GUID from R/3 table CRMPRLS.
    In R/3: look for the table CRMRFCPAR. This will give you all the RFC connections that R3 is connected to. If you want to check whether the CRM RFC value is defined correctly compare it with RFC destination in the Administration Console (smoeac) from CRM.
    If the entries are matching then the systems are connected correctly if not you need to look at the RFC destinations from SM59 transaction.
    Hope this helps.
    Thanks,
    Karuna.

  • How to get the current logical system?

    Dear Abapers:
    I can't find the logical system value from the table SYST, pls tell me how to get the current logical system name, Thanks!

    Hi,
    Check with the table T000, the Logical system field name is LOGSYS.
    Regards
    Thiru

  • Java.lang.Exception: Could not get name for DC project

    Hello Experts,
    We have a code which is downloaded from SVN repository.
    I have imported the code from my desktop into NWDS and when I try to deploy it throws,
    java.lang.Exception: Could not get name for DC project
    I have referred few threads in SCN and solution suggested is to change the workspace and create a new DC & copy the _comp from old DC.
    I tried the above solution but there are lot of build errors as we have few RFC models and it is throwing build errors for missing model reference.
    Kindly help me on how to fix the error.
    Thanks, Swarnaprakash

    Dear Swarnaprakash,
    The Web Dynpro DCs Import C:\----\user\.dtc\LocalDevelopment\DCs\sap.com\test and
    the related package for DC  is missing once check it after try to import.
    Depending on which Java compiler preferences are set, you may see some
    warnings in the "Task" view after importing the project. If the severity level for problems of type "Unused imports" (set in Preferences – Java – Compiler) has the value "Warning", the compiler will issue a warning for unused import references. Ignore these warnings!
    Still You getting means delete your .metadata before take the backup.after open the NWDS again it will set new configurations in your system.
    Thanks & Regards,
    Durga Rao.

  • Same Logical System Name, different Business System

    Hi all,
    I have a problem regarding SLD and Integration Directory. The client is requiring me to use the same logical system name for two different business systems. It seems that this is not possible in XI. When I tried activating the business system in ID, I'm getting the error, 'Logical system XXX already exists in communication component YYY'. Please help. Thanks!
    IX

    Hi,
    You cannot have same logical name for two business systems....
    Why you need it?? How will the SAP system understand which which system the message was sent for?? Some workaround like
    1. Create a business system with this logical system
    2. Overwrite sender/receiver business system in the receiver agreement for messages sent to 2nd business system..
    This may lead to discrepancies....
    Regards
    Suraj

  • Get name of startup disk JS

    I've got an applescript that get's the name of the startup disk using
    set macname to get name of startup disk
    I'm wondering if the same can be done in a javascript that runs in InDesign CS3....
    I need to make the scripts work across platforms and am new to Java Scripting.
    Thanks in advance for any feedback.....

    Hi Kasyan!
    This is a very old thread, but I came accross it while searching for a solution to put the name of my startup disk in front of a file path in the "ancient" notation where the folder hierarchy is represented with a ":" devider istead of the "/".
    For all lurkers here:
    When exporting to fixed layout EPUB using the epubFixedLayoutExportPreferences in InDesign CC 2014, you sometimes need this "ancient" notation when working on a Mac. In the epubFixedLayoutExportPreferences you can assign an array of file paths to external CSS and JS files. And these file paths are in the notation:
    "NameOfTheDisk:NameOfFolder:NameOfOtherFolder:external.css"
    Instead of:
    "/NameOfFolder/NameOfOtherFolder/external.css"
    If you do the folder devider with "/" and the root is simply written as a "/" at start of the file path, the export will fail to include the external CSS and JS files.
    See this thread in the Adobe InDesign EPUB Forum for example:
    Script EPUB export not including JS/CSS with epubFixedLayoutExportPreferences
    So let me thank you for this AppleScript snippet to get the name of the startup disk!!!
    I have added some lines of code to get the name of the InDesign app more accurately equal of its version number.
    I've tested this on my MacBook with OSX 10.7.5. Hope, that the AppleScript part will not break on later instances of Mac OSX.
    Here your code with my small addition:
    //Kasyan Servetsky
    //https://forums.adobe.com/message/2336686#2336686
    //Some small addition by Uwe Laubender
    var myDisk = GetStartUpDisk();
    $.writeln("The name of my start up disk is: \"" + myDisk + "\"");
    function GetStartUpDisk() {
        //Get the name of the application for Mac users:
        var myAppName = decodeURI(File(app.fullName).name).replace(/\.app$/,"");
        if (File.fs == "Macintosh") {
            var myScript = 'tell application \"Finder\"\r'
            myScript += 'set myStartUpDisk to get name of startup disk\r';
            myScript += 'end tell\r';
            /* CHANGED LINE: I replaced the original line (now commented out) with a more general approach */
            /* myScript += 'tell application \"Adobe InDesign CS' + ((parseInt(app.version.substr(0, 1)) - 2) + "") + '\"\r'; */   
            myScript += 'tell application \"'+myAppName+'\"\r';
            myScript += 'tell script args\r';
            myScript += 'set value name \"myScriptArgument\" value myStartUpDisk\r';
            myScript += 'end tell\r';
            myScript += 'end tell\r';
            app.doScript(myScript, ScriptLanguage.applescriptLanguage);
            var myStartUpDisk = app.scriptArgs.getValue("myScriptArgument");
        else if (File.fs == "Windows")  {
            var myStartUpDisk = String(Folder.system).charAt(1);
        return myStartUpDisk;
    Hm, now the question is: How can I get the name of a disk, that is not the startup disk?
    Could one of the AppleScripters here in the forum comment on that?
    All the best to you, Kasyan!
    Uwe

  • Droplet - getting name of dropped file

    This post does not need answering, as I have already solved the problem described. I have put it here in case it might help someone else save a bit of time. However, feel free to make comments and observations for further enlightenment of myself and others who are grappling with various aspects of AppleScript.
    Recently, I decided to learn to use droplets and open handlers. In my first attempt, I set out to modify an existing script which prompted the user to choose a file which is then processed in various ways. My aim was to drop the file on the new droplet version of the script, with the droplet identifying the file automatically, and have it run as before from there onwards. So far, through trial and error and a fair bit of internet searching, I have been able to work out most things in a reasonably short time. One that took me a while involved getting the name of the file which is dropped onto the droplet - the file name could be anything, but the script needed its name for the various things which happen in the script.
    I quickly discovered that a droplet can quite happily and easily give a list of the names of files inside a folder which is dropped onto it. When it comes to just one single file, it took a bit of work.
    I started off with something like this (with a few variations):
    (the display dialog bit is there to show if I got exactly what I wanted - it's not necessary for the correct running of the droplet, but droplets don't have "Result" and "Event Log" available for seeing what's happening)
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to name of Dropped_File+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    There was usually an error message such as: Can't get name of {alias "Macintosh HD:Users:username:Desktop:filename.txt"}, or another one about not being able to make the acquired information into the right data type. Generally I was getting the complete pathway of the file, but couldn't separate out what I wanted from the rest of it.
    As part of my looking for a solution, I tried duplicating the file and getting the name of the copy. Success, in the sense that I could get the name of the copy.
    +on open Dropped_File+
    +tell application "Finder"+
    +set CopyOfFIle to duplicate Dropped_File to desktop+
    +set NameOfCopyOfFIle to name of CopyOfFIle+
    +display dialog NameOfCopyOfFIle+
    +end tell+
    +end open+
    After more experimentation I found the "info for" command (in StandardAdditions), and ended up with the following successful droplet:
    +on open Dropped_File+
    +tell application "Finder"+
    +set NameOfFile to (name of (info for Dropped_File))+
    +display dialog NameOfFile+
    +end tell+
    +end open+
    I hope this saves somebody some time. About a third of my scripting attempts are usually assisted unknowingly by someone else who has been trying something similar and, having succeeded, posted their results online for others to benefit from.

    Hi Pierre,
    I tested both at the same time with the following code:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (item 1 of Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (item 1 of Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    Both versions gave the desired result - just the name of the file - whereas when I had tried using "as alias" (obviously not in the same place and not using "item 1 of") I had received error messages. From memory, I think I had tried "name of (item Dropped_File) as alias".
    I "fiddled" with your suggestion a little, and found that the following (omitting the "item" and "item 1 of") also works:
    +on open Dropped_File+
    +tell application "Finder"+
    +set Name1OfFile to name of item (Dropped_File as alias)+
    +display dialog Name1OfFile+
    +set Name2OfFile to name of (Dropped_File as alias)+
    +display dialog Name2OfFile+
    +end tell+
    +end open+
    It looks the correct placement and usage of "as alias" did the trick.
    Thank you very much for taking the time to examine the problem and come up with a solution which should work equally well under both System 10.4 and 10.5.
    Message was edited by: Steven Jones

  • How to get name of sbRIO programatically

    How to get "name" and "Comment" of sbRIO which I write to sbRIO-9602 in MAX in Identification box (Model, Serial number, MAC address, Name)?
    Solved!
    Go to Solution.

    That shows:
     - IP settings
          - IP adress:        136...etc.
          - DNS name:      MyMaster5                   - THAT IS WHAT I NEED, just in wrong place - in MAX it is not in IP settings, that's why i didn't searched for it there.
          - subnet mask    255.255.255.0
          - gateway          136...
          - DNS server      136...
     - MAC address        00800...
     - serial number        16....
     - system state        Running
     - model name         sbRIO-9602
     - model code          7373
     - password protected restarts?    T/F
     - halt if TCP/IP fails?                   T/F
     - locked?                                   T/F
     - use DHCP?                             T/F
    Still there is no "comment" as in MAX. But that's not so important now.
    I have LW Development system 2009 SP1 Profesional, Realtime Development 2009 SP1
    Thanks very much!

Maybe you are looking for