Getting processflow and mapping names at runtime

how can I indenfy at runtime in a generic way the name of my actual process flow or mapping so that I can refer to this (maybe for error logging aspects)?

Hi,
within a mapping, use an expression operator. For an output attribute, use the expression get_model_name
It returns the mapping name at runtime.
Regards,
Carsten.

Similar Messages

  • Get filename and directory name during runtime

    Hi guys,
    I am developing a file to file interface without content conversion, just a simple file transfer from one ftp server to another. I have to read the same filename (invent.txt) from multiple folders (mstransfer/M01/IN1, mstransfer/M02/IN1, mstransfer/M03/IN1....) that represent different stores and transfer it as it is with the same name to exactly the same directory name in the target ftp location.
    My problem is found inside a dummy mapping that I have created in order to specify the target directory and the name of the file. I am doing the following:
    A) A Java UDF to specify the filename
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
    String filename = conf.get(key);
    trace.addWarning("filename = "+filename);
    conf.put(key, filename);
    return "";
    //return filename;
    B) A Java UDF to specify the directory name
       //write your code here
    trace = container.getTrace();
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
    String directory  = conf.get(key);
    trace.addWarning("directory before = "+directory);
    directory = "/usr/sap/trans"+directory;
    trace.addWarning("directory after = "+directory);
    conf.put(key, directory);
    return "";
    //return "/usr/sap/trans"+directory;
    In receiver file adapter I do not specify neither a filename nor a target directory.
    When I am testing it, I always get a mapping runtime error.
    Any ideas?
    --Evaggelos

    Guys,
    First of all, I am doing an end to end testing, i.e. I let the FTP adapter pick the file up and another FTP adapter delivers the file to target folder. I am definitely not testing the mapping in mapping editor.
    I get the error in Request message mapping (pipeline step, which I can see in SXMB_MONI transaction) which is a dummy mapping between two message types that I have created and are based on two data types with two fields each.
    The UDF's that I have created go in-between the source and target fileds of the message types/data types.
    The error that I see in the trace section of the XML message in SXMB_MONI is the following:
    "<Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_MM_G_SRS_FileTransfer_MNS_</Trace>
      <Trace level="1" type="T">java.lang.NullPointerException at com.sap.aii.mappingtool.tf3.AMappingProgram.exceptionCaught$(AMappingProgram.java:59) at com.sap.aii.mappingtool.tf3.Transformer.checkParserException(Transformer.java:182) at com.sap.aii.mappingtool.tf3.Transformer.start(Transformer.java:149) at com.sap.aii.mappingtool.tf3.AMappingProgram.execute(AMappingProgram.java:102) at com.sap.aii.ibrun.server.mapping.JavaMapping.executeStep(JavaMapping.java:64) at com.sap.aii.ibrun.server.mapping.Mapping.execute(Mapping.java:91) at com.sap.aii.ibrun.server.mapping.MappingHandler.run(MappingHandler.java:90) at com.sap.aii.ibrun.sbeans.mapping.MappingRequestHandler.handleMappingRequest(MappingRequestHandler.java:95) at"
    I have included some trace.addWarning() lines in Java code to help me debug my code, but I cannot see them anywhere inside the trace to be getting executed.
    I will try Bhavesh's idea and I will write the code in the Java Section of my message mapping ( either Intialization or Destrcution ) section.

  • How to get table and column names thats being used in SQL , that's generating all my reports on SSRS.

    Good day,
    I searched through the forum and cant find anything.
    I have around 300 published reports on SSRS and we are busy migrating to a new system.
    They have already setup their tables on the new system and I need to provide them with a list of table names and column names that are being used currently to generate the 300 reports on SSRS.
    We use various tables and databases to generate these reports, and will take me forever to go through each query to get this info.
    Is it at all possible to write a query in SQL 2008 that will give me all the table names and columns being used?
    Your assistance is greatly appreciated.
    I thank you.
    Andre.

    There's no straightforward method for that I guess. There are couple of things you can use to get these details
    1. query the ReportServer.dbo.Catalog table
    for getting details
    you may use script below for that
    http://gallery.technet.microsoft.com/scriptcenter/42440a6b-c5b1-4acc-9632-d608d1c40a5c
    2. Another method is to run the reports and run sql profiler trace on background to retrieve queries used.
    But in some of these cases the report might be using a procedure and you will get only procedure. Then its upto you to get the other details from procedure like tables used, columns etc
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Get path and file name from Bfile

    Hi,
    I'm using Bfile to store images in a database. Is there a way to get the path and file name of the image from Bfile, because I need to pass that information into an image processing function.
    Many thanks.
    Sheldon

    Can you use FILEISOPEN in the DBMS_LOB package?
    See http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96591/adl03prg.htm#281893
    -- CJ

  • How to get DocID and Document name

    Hi All,
    I am working on BO XR R3.1 version.i am looking to get DocID by BO SDK.i am able to see there is one fuction to for CUID (getCUID()) in BO sdk) same way can i get DocId like(986752) with single docid and documnet name.
    or is there any fuction in BO SDK to show DocID & Documnet name of single report?

    Hi  Nitin,
    See if this helps.
    http://help.sap.com/businessobject/product_guides/boexir31/en/xi3-1_url_reporting_opendocument_en.pdf
    Regards,
    Shweta

  • How can I get IP and hots names of all the machines.....

    I need to get the IP addresses and host names of all the machines in my netowrk and need to select only is a HP / Compaq x86 machines finaly.
    If you know atleast a part of this please help me.
    [email protected]

    You coulduse the broadcast address (x.x.x.255) in an ICMP sweep to determine which hosts are alive (and accepting ICMP).
    But no, there's not a single (and definitive / sure) way to retrieve all IP addresses.

  • Get Recordcount and Column names

    Hi,
    Can any one help me out a way to get the recordcount for an sql query executed and the number of columns and there names that are returned by the query.
    The same way we do in ASP/VB.
    like rs.fields.name
    Hope so somebody will help me out.
    Thanks,
    Raji

    Hi,
    Below is the sample code that i am using this code works fine.
    I want to find the recordcount and the columnnames.
    I have jdbc driver 1.0 how can i update to 2.0?
    Can any body help me out as how to get the recordcount and column names?
    I would appreciate if you can add the code to the following code below.
    I am calling a beanDBConnect(input sql query;output recordset).
    Help urgently needed as early as possible.
    Thanks,
    Reji
    <HTML>
    <HEAD>
    <TITLE>
    JSP/BEAN/JDBC Test
    </TITLE>
    </HEAD>
    <BODY>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%
    ResultSet rs;
    String sSql = "SELECT * from employee";
    jspproject.DBConnect oConnectDB = new jspproject.DBConnect();
    oConnectDB.setsSql(sSql);
    oConnectDB.setaResultSet();
    rs = oConnectDB.getaResultSet();
    while (rs.next())
    out.println(rs.getObject("usertypeid").toString()+"<br>");
    out.println(rs.getObject("description").toString()+"<br>");
    rs.close();
    %>
    </BODY>
    </HTML>

  • GET IP and machine name of user....

    hi friends,
    i want to get IP address and machine name of the user who have access a form in web environment.
    be4 when i was working in client/server invorement i was using the following
    command
    SELECT SYS_CONTEXT('USERENV','IP_ADDRESS'),
    SYS_CONTEXT('USERENV','HOST'),
    SYS_CONTEXT('USERENV','OS_USER') from dual;
    when i try to implement this command for my web form... it gets the information
    (IP and machine name) of the server where applicaiton server resides and my application reside.
    how the get the information of user's mahcine and IP in web environment?
    please help!!!
    regards, imran baig

    hi again,
    thanks for the help, but i am still in problem. i am using forms6i and 9iAS for deployment.
    i tried to use d2kwutility and the code i used is:
    DECLARE
    OS_USER_NAME VARCHAR2(60);
    MACH_NAME          VARCHAR2(100);
    BEGIN
    OS_USER_NAME := win_api_environment.get_windows_username(toBoolean('Y'));
    MACH_NAME := WIN_API_ENVIRONMENT.Get_Computer_Name(toBoolean(MACH_NAME));
    INSERT INTO COMMON.COM_USER_INFO VALUES(:GLOBAL.G_EMPLOYEE_ID,:GLOBAL.G_MODULE_ID,SYSDATE,
    'SETUP > COMPANIES', 'F', :GLOBAL.G_USER_IP, MACH_NAME, OS_USER_NAME);
    COMMIT;
    CALL_FORM('COMPANIES_FRM',NO_HIDE,NO_REPLACE);
    END;
    :( BUT NO RESULTS..
    library is attached but it doest work...
    what to do now..
    Please help its very urgent..
    thanks, Imran Baig

  • Map.get(K) and Map.get(Object)

    When I first saw the new 2.0 generics compiler, I was very pleased to see that the signature of Map.get() has changed (since 1.3) from:
        interface Map<K,V> { V get(Object obj); }to:
        interface Map<K,V> { V get(K key); }because it means buggy code like this:
        Map<File,Integer> fileSizeMap = new HashMap<File,Integer>();
        Integer sizeOfFile = fileSizeMap.get("/tmp/foo");
        if (sizeOfFile == null) {
            System.err.println("File not found in map");
        }(where I have mistakenly called Map.get() with a String rather than a File) will now get a compiler error rather than a fault raised several months after the application has gone live.
    So, as I say, I am very pleased with the new signature for Map.get(), although I would also like to see the following methods changed:
        boolean containsKey(Object)   -> boolean containsKey(K)
        boolean containsValue(Object) -> boolean containsValue(V)
        V remove(Object object)       -> V remove(K)However, I just read on http://cag.lcs.mit.edu/~cananian/Projects/GJ/Bugs/v20/map.html that Neal Gafter says that putting Map.get(K) into 2.0 was a mistake, and that it will be put back to Map.get(Object) in the next version.
    I do hope I haven't missed something obvious, but keeping these methods with Object parameters seems to me to be a backwards step from the excellent type safety benefits provided by Generics.
    Does anyone else agree with me that having get(K) would be beneficial in allowing the compiler to identify bugs that would otherwise only be discovered much later?
    Or, could someone explain to me why having get(Object) is preferable, and whether this reason is more important than the type safety issue I identified in my example code above?
    Many thanks in advance
    Geoff

    Gafter wrote:
    The reason the argument type is Object and not K is that existing code depends on the fact
    that passing the "wrong" key type is allowed, causes no error, and simply results in the
    key not being found in the map.But "existing code" does not use Generics, and therefore as with all other non-generic code, the authors of that code can choose to either leave it as it is (in which case their Maps will become Map<Object,Object> and Map.get() will then take an Object), or to upgrade it to Generics, and take advantage of the helpful compiler messages that may highlight some design flaws in the original code.
    In Jakarta Commons Collections (this is "existing code"), there's a class MultiHashMap which extends HashMap. When you call MultiHashMap.put(someKey, someValue) it appends someValue to an ArrayList that gets stored as the value in the HashMap. However when you call MultiHashMap.get(someKey), it returns a Collection of values, rather than just a single value.
    If they try to upgrade MultiHashMap to Generics, they are going to come up with a problem: they would be needing something like this:
        public class MultiHashMap<K,V> extends HashMap<K,V> {
            public V put(K key, V value) { ... }
            public Collection<V> get(K key) { ... }
        }which of course is not allowed, since Map<K,V>.get() returns V, not Collection<V>.
    Now, I don't hear anyone saying: This "existing code" relies on Map.get() returning an Object, so in Generics we're going to make Map.get() return Object rather than V.
    No, instead we (correctly) say: That MultiHashMap code was wrong to abuse the flexibility provided by the use of Object as the return value of Map.get(), and if it wishes to use Generics, it will either need to become MultiHashMap<K,Object>, or if it insists on being MultiHashMap<K,V>, it will not be allowed to extend HashMap.
    I really don't see the problem in using Generics (and a typesafe Java Collections API) as a means of highlighting problems in existing code. As I said before, existing code will continue to work as before, because List will become List<Object> and Map will become Map<Object,Object>.
    This is no worse than "accidentally" trying to get() with a key of the right
    type but the wrong value. Since none of these methods place the key into the
    map, it is entirely typesafe to use Object as the method's parameter.Suppose for a moment that when String.endsWith() was first written, it took an Object parameter instead of a String. If I were to say to you: This method needs to change its parameter from Object to String, would you tell me that that there's no need to make the change, because a String can only ever end in a String, and so it is entirely typesafe to use Object as the method's parameter?
    Geoff

  • Getting links and its names from a html file

    Hi everyone
    My problem about the a getting links with name from a html file. For example
    &#304;n a web page in this site ?SUN? when use click SUN the browser open http://java.sun.com
    &#304; want both of them, so the links and name. I can succeeded the get link but i don t know how to get the link name.
    For example :
    <B>setRightComponent(Component)</B>
    &#304;n this code segment i want to get B tag. But how i don t know. To get A tag i used this code
    List result = new ArrayList();
    try {
    // Create a reader on the HTML content
    URL url = new URI(uriStr).toURL();
    URLConnection conn = url.openConnection();
    Reader rd = new InputStreamReader(conn.getInputStream());
    // Parse the HTML
    EditorKit kit = new HTMLEditorKit();
    HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
    kit.read(rd, doc, 0);
    // Find all the A elements in the HTML document
    HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
    while (it.isValid()) {
    SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
    String link = (String)s.getAttribute(HTML.Attribute.HREF);
    if (link != null) {
    result.add(link);
    it.next();
    &#304; can use B tag but i don t know hot to get its value because it has no prefix such as HREF....
    i am sorry if i use a bad explanation style or incorrect word.

    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks
        public static void main(String[] args)
            throws Exception
            // Create a reader on the HTML content
            Reader reader = getReader( args[0] );
            // Parse the HTML
            EditorKit kit = new HTMLEditorKit();
            HTMLDocument doc = (HTMLDocument)kit.createDefaultDocument();
            doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);
            kit.read(reader, doc, 0);
            // Find all the A elements in the HTML document
            HTMLDocument.Iterator it = doc.getIterator(HTML.Tag.A);
            while (it.isValid())
                SimpleAttributeSet s = (SimpleAttributeSet)it.getAttributes();
                String href = (String)s.getAttribute(HTML.Attribute.HREF);
                int start = it.getStartOffset();
                int end = it.getEndOffset();
                String text = doc.getText(start, end - start);
                System.out.println( href + " : " + text );
                it.next();
        // If 'uri' begins with "http:" treat as a URL,
        // otherwise, treat as a local file.
        static Reader getReader(String uri)
            throws IOException
            // Retrieve from Internet.
            if (uri.startsWith("http:"))
                URLConnection conn = new URL(uri).openConnection();
                return new InputStreamReader(conn.getInputStream());
            // Retrieve from file.
            else
                return new FileReader(uri);
    }

  • Getting the web application name at runtime

    Hello everyone!
    We got a pretty annoying problem here, which has to be solved. We have an online application running that is our major website. As development continued lots of stuff (completely different functionality) plugged into this application.
    Now we want to devide this huge mixture into "real" J2EE webapps and put them into a new server environment (weblogic 7).
    OK the following prob: The servlets are used by different applications. So they need to forward requests to different paths cause of the different applications.
    We need to determine the name of the application that the servlet is currently running in. Any idea how we could do that?
    Perhaps it is possible to get the documentRoot from web.xml?!
    <context-param>
    <param-name>weblogic.httpd.documentRoot</param-name>
    <param-value>azonline</param-value>
    </context-param>
    But how do we do that either??
    Thx for your help.

    Another sad self-reply :( ->
    Best practice is to use:
    getServletContext().getServletContextName()
    It returns the name determined in the web.xml in tag
    <display-name></display-name>
    Thx to me and all the dukes to me :p!

  • How to get Driver and url names from a connection pool

    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name of
    connection pool ? Is it possible to know the name of related pool , if I know
    the name of datasource?
    Thx
    Manish

    hi
    there are 2 ways:
    url must be: jdbc:weblogic:pool[:connectionPoolID]
    or
    jdbc:weblogic:jts[:connectionPoolID] (if you want to use jts with your JDBC connection.)
    see http://e-docs.bea.com/wls/docs60//javadocs/weblogic/jdbc/pool/Driver.html
    However, I think it is safer to configure and use DataSource to get connection.
    Nicolas
    "kumar" <[email protected]> wrote:
    >
    Hi,
    How to get the DriverName and URL from an existing pool, If I know the name
    of
    connection pool ? Is it possible to know the name of related pool , if I
    know
    the name of datasource?
    Thx
    Manish

  • Is it possible to get speedometer and maps on imovie??

    I bought a Contour+ camera with GPS, this is used in my sons cart...
    I prefer using my macbook pro and imovies, but i would really like to add the GPS data to the films, shoving speed, maps, g forces...
    there is a program called dashware that does this, but it is only for windows, so to be able to use dashware i need windows...???
    to use windows i need a paralells and all this makes my mac slow....
    is there an update or an app or something to add to imovies???
    There are many speed freaks out there... can we challenge apple to update imovies to show somthing similar to Dashware

    to use windows i need a paralells and all this makes my mac slow....
    No you don't. You can install Windows directly on the Mac with Boot Camp if you have a Windows installation disk.
    There are many speed freaks out there... can we challenge apple to update imovies to show somthing similar to Dashware
    http://apple.com/feedback/imovie.html

  • How to get work area - Variable name at runtime

    hi all,
    in this snippet.
    how can we retrieve the field name.
    this write statement merely writes the contents stored.
    how is it possible to write the field name.............?
    DO.
            ASSIGN COMPONENT sy-index
                   OF STRUCTURE <wa> TO <comp>.
            IF sy-subrc = 0.
              WRITE / <comp>.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
    Naveen...

    In More detail....
    Find the help ID for various fields:
    TYPES: MYTYPE LIKE SBOOK-CLASS.
    DATA: F1       LIKE SBOOK-LUGGWEIGHT,
          F2       TYPE MYTYPE,
          F3       LIKE F1,
          HLP(30)  TYPE C,
          NAME(30) TYPE C VALUE 'SBOOK-ORDER_DATE'.
    FIELD-SYMBOLS: <G1>, <G2>.
    DESCRIBE FIELD F1 HELP-ID HLP. WRITE: /(5) 'F1:', HLP.
    DESCRIBE FIELD F2 HELP-ID HLP. WRITE: /(5) 'F2:', HLP.
    DESCRIBE FIELD F3 HELP-ID HLP. WRITE: /(5) 'F3:', HLP.
    ASSIGN (NAME) TO <G1>.
    DESCRIBE FIELD <G1> HELP-ID HLP. WRITE: /(5) '<G1>:', HLP.
    ASSIGN F2 TO <G2>.
    DESCRIBE FIELD <G2> HELP-ID HLP. WRITE: /(5) '<G2>:', HLP.
    Result: The following help IDs are output:
       F1:   SBOOK-LUGGWEIGHT
       F2:   SBOOK-CLASS
       F3:   SBOOK-LUGGWEIGHT
       <G1>:
       <G2>: SBOOK-CLASS

  • HT5973 Maps has errors in it. It shows my subdivision with all of the houses, but shows the streets and street names in the middle of a field about a mile down the road. How do I report this to get it fixed.

    How do I get errors in Maps corrected? It shows the subdivision I live in, The streets and houses are in the correct place, however it does not name the streets. It then shows the correct street names in the middle of a field about a mile down the street from my subdivision.

    Similar issues here.
    I purchased five movies for download and having nothing but problems getting them downloaded. I keep receiving error messages and the download stops and I have to restart it, just to get another minute worth of download with each restart. Now Apple has my money and I have nothing.

Maybe you are looking for

  • [SOLVED] Sound no longer working

    I'm using alsa in gnome3 and wheen I look at the sound tab in gnome3's settings nothing looks awry. Thanks in advance, xrendan Last edited by xrendan (2011-08-08 05:28:24)

  • Finding an errorneous statement in sqlplus

    Hi All, I have a file with set of sql statements in it . Normally i am running it with sqlplus . Suppose in run time say second statement is failing ..before i process the next statement is there a way to check whether previous statement was successf

  • Isight shows blue or green images

    hi guys, can anyone tell me why my build-in isight images look blue or green? It's not totally blue just like looking from a piece of blue glass. Can I adjust the color of isight and how?

  • 10.3.9 - 10.4.6 upgrade - now no users!!!!!!!!!! can't login

    I've been running 10.3.9 for a long time with no problems. A recent app needed 10.4. So I puchased 10.4.6 from my local apple dealer. Inserted the disc. Clicked upgrade. Restart - can't login using my root login and password Select change password fr

  • SCANJET G4050

    Scanner worked fine until I downloaded an update from HP. now when I san a negative it errors out when I click finnish. The scan comes out good but will not save. error  4,[(3,33,o)] I have reloaded the software both from disc and web 3x, applied all