How to get the java code of the message mapping

how to get the java code of the message mapping,
I mean to ask how to get the background java code of the message mapping(graphical mapping).
And where to view it?

Hi Satya,
The JAVA code for graphical msg mapping is in below folder:
\usr\sap\<SID>\<DVEBMGS10>\j2ee\cluster\server0\temp\classpath_resolver
Here all the mapping jars are there in this folder.
Just decompile these jars and you can see the code.
Thanks,
Rajeev Gupta
Message was edited by:
        RAJEEV GUPTA

Similar Messages

  • How to get the message from a Runnable class

    The Schedule class is actually a JFrame, what I want to do is to "get" the message from Scheduler Class and display it in a JTextField, to let user know what is doing.
    How can I approach this?
    public class Schedule {
        @SuppressWarnings("static-access")
        public static void main(String args[]) throws InterruptedException {
            final Scheduler s = new Scheduler();
            Thread t = new Thread(s);
            t.start();
    public class Scheduler implements Runnable{
    private static int actionType;
    private static String msg;
        public static void setMsg(String msg) {
            Scheduler.msg = msg;
        public static String getMsg() {
            return msg;
        public void run() {
            //System.out.println((int)(Math.random() * 1000));
            actionType = 1;
            while(true){
                try {
                    switch(actionType){
                        case 1:
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 2:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 3:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                            case 4:
                            Thread.sleep(2000L);
                            setMsg("Process actionType: "+actionType);
                            break;
                    actionType++;
                    if(actionType>4){
                        actionType = 1;
                } catch (InterruptedException ex) {
                    System.out.println("Scheduler.run:"+ex.toString());
    }

    Or with only one loop:
            int actionType = 0;
            while (true)
                actionType = (actionType % 4) + 1;
                msg = "Process actionType: " + actionType;
                try
                    Thread.sleep(2000L);
                catch (InterruptedException ex)
                    System.out.println("Scheduler.run:" + ex.toString());
            }

  • How to get the message Sender's information in MSMQ?

    Hi, everyone
    I am going to develop a Windows server to monitor the messages in MSMQ. Now I wanna get the message sender's name(that is the API of this message, like class name or function name of who send the message.) I make a simple demo and it can easy to get
    the message body. But is it possible to get the sender's info by using any MSMQ method ? Looking forward any answers. Thanks so much.
    Shuo Lei

    Hi,
    Sender object is type of object any time if you want to use any property/attribute of sender object first you need to type cast it with your desire object.
    For more information, you could refer to:
    http://blog.jsinh.in/managing-msmq/#.VPe5mnkfqM8
    http://forums.asp.net/t/343932.aspx?How+can+I+get+values+of+sender+object+in+C+
    Regards

  • Create IDoc from flat file - How to do the message mapping

    Hi everybody,
    I want to create an IDoc from a flat file.
    The file structure looks like this:
    MT_XYZ
    - Node001       0...1
      - Leaf001
    - Node002       0...unbounded
       - Node003    0...1
          - Leaf002
          - Leaf003
       - Node004    0...1
          - Leaf004
       - Node005    0...1
          - Leaf005
    I have created a mapping and all the other stuff to set up the IDoc adapter.
    Now when I try to test the interface the IDoc is created properly but obviously no information from the nodes "Node003" to "Node005" is inserted in the IDoc. Only the information kept in the elements (leafs) of "Node001" are inserted.
    All IDoc segments and their "Segment" elements are linked to the root node of the file structure "MT_XYZ". I tried to link some IDoc segments only to "Node002" but then this segment is not created.
    So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    Thanks in advance for all answers!
    Regards,
    Torben
    Edited by: Torben Hönemann on Dec 14, 2009 4:26 AM

    Hi Torben,
    >>I want to create an IDoc from a flat file.
    So you are using File content Conversion on the sender side. Right?
    >>no information from the nodes "Node003" to "Node005" is inserted in the IDoc.
    Are these information available in the source XML (you can check in transaction SXMB_MONI-> Input Payload).. There is a limitation in File Content Conversion of File adapter and it is that I can make an XML structure of 3 level.. Since these nodes details are in level 4 and 5 they should be missing in Source XML structure itself (after content conversion of File adapter). check that
    >>So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    So you need to take an alternate approach where you do File Content Conversion and make 3 level structure.. then using a mapping convert this three level structure to your 5 level one and then try to map with the idoc.
    Check this blog for an idea
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-complex-structures/
    http://www.riyaz.net/blog/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical-mapping/
    Regards
    Suraj

  • How to Edit the message mapping in Quality server

    Hi Experts,
    Can you plz tell me, is there any way to edit the message mapping in QUALITY system?

    Hi,
    >>>>Can you plz tell me, is there any way to edit the message mapping in QUALITY system?
    the correct one:
    - correct on DEV
    - export/import
    and it's edited on quality
    if you edit on qulity by changing the SWCV to editable then remember to
    do the change in DEV later and export import and solve the version conflict on quality
    as if you forget to do this someone will have to solve in the future and will not know why....
    Regards,
    Michal Krawczyk

  • How to get the whole map image after zoom in?

    Hi,
    I use mapviewer API to generate map images and put them in JSP as well as in Java Applet. I called the method getGeneratedImage(). After I using the methods zoomIn() or zoomOut(), I got a new map image. But the size is fixed, so after zoom in I can only see a part of the whole map. I would like to use scrollbar to see other part of the map after zoom in.
    How can I solve this problem? I have the images as predefinied themes saved in database with MBR information.
    Thanks in advance.

    Hi,
    For the map request in MapViewer you may define the data area that you want to display, as well as the device size (width and height). The result is a java Image with width and height sizes. You can draw this image on a canvas with scroll bars, and if the size of the canvas is smaller than the image size, then you should see the scroll bars. But you have to code that. MapViewer will just return an Image with the specified size.
    The zoom in/out options just change the data area, but keeps the device size. Therefore you should use the API methods to set the data area (setBox or setCenterAndSize) and to set the device size (setDeviceSize), in order to control the size of your resulted image, and then draw it on your canvas with scroll bars.
    Regards.

  • How to get the message ID generated by the PI system during message mapping

    Hi All,
    I have a file to file scenario, where during the mapping, I want to map and send the Message ID generated by PI.
    Can anyone please help me with this?
    Kind regards,
    Joe

    Hi,
    You have write UDF for this.
    Please see the below code .
    java.util.Map map = container.getTransformationParameters();
    String MesID = (String)map.get(StreamTransformationConstants.MESSAGE_ID);
    return MesID;
    Hope this helps to you.
    Regards,
    P.Rajesh

  • I have yahoo email and it downloads, but there is nothing there when I open it.  Does anyone know how to get the message?

    I have yahoo email and it downloads, but there is nothing there when I open the message. Does anyone have any suggestions?

    First of all, thank you for your patience, this is driving me nuts, can't imagine what you must think right now....
    I made a screenshot that hopefully clears this up:
    On the left is what I see when I open up Finder preferences, and then the Sidebar tab. As you can see all boxes are checked. The Middle folder that is open is what I see when I open Finder from the taskbar. which is fine by me. On the right however I have opened Macintosh HD. And as you can see, there is no sidebar, it just opens up with 4 folders.
    Weirdly enough, when I tried to add a photo to my apple ID just now, the sidebar came up just fine. And I have found that it does that with more programs. So it is literally only when I open up Macintosh HD that it wont do it. I hope this clarifies it a bit more.
    and to answer this question:
    I'm not quite sure I understand. Is the sidebar layout you showed me not the one you want? Because if it is the one you want then you should just close the preferences window behind it.
    this sidebar only pops up when I open the preferences - general - show in new finder  part and then choose 'other'. I cant close the preference window behind it, because then it will close that pop-out folder as well..

  • How to get the port mapping to work on SR520

    I have been using CCA 2.0 and configured the device based on documents (a recurring story) and well it wont work...... again.
    This is the results of the 'show tcp brief'
    SR520#show tcp brief all
    TCB       Local Address               Foreign Address             (state)
    84C8EFD4  192.168.75.1.23             172.16.33.10.3227           ESTAB
    86479CB0  192.168.75.1.443            172.16.33.10.3078           ESTAB
    8647850C  192.168.75.1.443            172.16.33.10.3122           ESTAB
    84B08378  192.168.75.1.23             172.16.33.10.3062           ESTAB
    83B7FAB8  192.168.75.1.23             172.16.33.10.3041           ESTAB
    851D6704  *.443                       *.*                         LISTEN
    851D5CF4  *.443                       *.*                         LISTEN
    851D56B8  *.80                        *.*                         LISTEN
    85419B70  *.80                        *.*                         LISTEN
    85DAD264  XXX.XXX.XXX.194.ptr.us.443   *.*                         LISTEN
    SR520#
    It appears that CCA is not correctly adding the info into the configuration or is it.
    It made these acl entries:
    access-list 102 remark SDM_ACL Category=0
    access-list 102 permit ip any host 192.168.75.2
    access-list 103 remark SDM_ACL Category=0
    access-list 103 permit ip any host 192.168.75.2
    access-list 104 remark SDM_ACL Category=0
    access-list 104 permit ip any host 192.168.75.2
    access-list 105 remark SDM_ACL Category=0
    access-list 105 permit ip any host 192.168.10.12
    access-list 106 remark SDM_ACL Category=128
    access-list 106 permit ip any host XX.XX.XX.194
    It added this for one port but not for the others:
    ip port-map user-protocol--1 port tcp 3389
    and it added this:
    ip nat inside source list 1 interface FastEthernet4 overload
    ip nat inside source static tcp 192.168.10.12 3389 interface FastEthernet4 3389
    ip nat inside source static tcp 192.168.75.2 5060 interface FastEthernet4 5060
    ip nat inside source static udp 192.168.75.2 5060 interface FastEthernet4 5060
    ip nat inside source static tcp 192.168.75.2 1720 interface FastEthernet4 1720
    Yet none of these ports are allowed through the firewall.
    Please help me figure this out.
    Thanks

    I think the CCA team knows of some issue with this.  In May, I had heard that while configuration of NAT static entry is supported by CCA there is an issue in that CCA currently does not modify the firewall configuration to allow the statically mapped IP and TCP port to pass through.
    I heard  we were looking to resolve in a subsequent CCA release. I will find out when or ask that team to reply....
    Steve DiStefano
    SE Small Business Sales
    U.S. Field Channel

  • How to get the action-mapping in jsp page in struts

    Hi,
    I want get, in my login.jsp, the name of action mapping that call my
    login.jsp.
    Is possible?
    suppose abc.do called my login.jsp
    now i need to know the name of action-mapping here abc
    Thanks,

    Depending on what you need, I believe Struts 1.3 creates a request attribute called "org.apache.struts.globals.ORIGINAL_URI_KEY". In your case, it looks like this would be set to the string "/abc.do". There should also be a request attribute called "org.apache.struts.action.mapping.instance" that contains an instance of ActionConfig. I think both of those keys are defined by the Globals class.

  • How to get the values from struct data type using java code..?

    Hi ,
    I am newer to java.
    we are using oracle database.
    How to get the data from struct data type using java code.
    Thanks in Advance.
    Regards,
    kumar

    Hi Rajeev,
    To retrieve a FilterContainer you will need to traverse the report structure:
    ReportStructure boReportStructure = boDocumentInstance.getStructure();
    ReportContainer boReportContainer = (ReportContainer) boReportStructure.getReportElement(0);
    FilterContainer boFilterContainer = null;
    if (boReportContainer.hasFilter()) {
         boFilterContainer = boReportContainer.getFilter();
    } else {
         boFilterContainer = boReportContainer.createFilter(LogicalOperator.AND);
    Calling boDocumentInstance.getStructure() will retrieve the entire structure for the document.
    Calling boReportStructure.getReportElement(0) will retrieve the structure for the first report of the document.
    Hope this helps.
    Regards,
    Dan

  • How to get the source code of Java Concurrent Program?

    Hi,
    How to get the source code of Java Concurrent Program?
    Example
    Programe Name:Format Payment Instructions
    Executable:Format Payment Instructions
    Execution File Name:FDExtractAndFormatting
    Execution File Path:oracle.apps.iby.scheduler
    Thanks in advance,
    Senthil

    Go on Unix box at $JAVA_TOP/oracle/apps/iby/scheduler
    You will get class file FDExtractAndFormatting.
    Decompile it to get source code.
    Thanks, Avaneesh

  • How to get the source code of an HTML page in Text file Through java?

    How to get the source code of an HTML page in Text file Through java?
    I am coding an application.one module of that application is given below:
    The first part of the application is to connect our application to the existing HTML form.
    This module would make a connection with the HTML page. The HTML page contains the coding for the Form with various elements. The form may be a simple form with one or two fields or a complex one like the form for registering for a new Bank Account or new email account.
    The module will first connect through the HTML page and will fetch the HTML code into a Text File so that the code can be further processed.
    Could any body provide coding hint for that

    You're welcome. How about awarding them duke stars?
    edit: cheers!

  • How  to get the java code of the standard functions

    How  to get the java code of the standard functions in xi
    Example , hoh get the java code for a node function - removeContext.

    hi
    Click on the Standard Function.
    Hold Ctrl+Shift
    right click on the standard function to view the context menu. You will see options to view the source code by exporting
    regards
    krishna

  • Java SAX parser. How to get raw XML code of the currently parsing event?

    Java SAX parser, please need a clue how to get the raw XML code of the currently parsing event... needed for logging, debugging purposes.
    Here's and example, letting me clarify exactly what i need: (see the comments in source)
    public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
         //..Here... or maybe somewhere elsewhere I need on my disposal the raw XML code of
         //..every XML tags received from the XML stream. I need simply to write it down
         //..in a log file, for debugging purposes, while parsing. Can anyone give me a suggestion
         //..how can i implement such logging while the SAX parser only returns me the tagname and
         //..attributes. While parsing I want to log the XML code for every tag in
         //..its 'pure form', like it is comming from the server directly on the
         //..socket's input reader.
         if ("p".equals(qName)) {
              etc...
    }Than you in advance.

    YES!
    I've solved my problem using class RecordingInputStream that wraps the InputStream
    here is the class source code:
    import java.io.ByteArrayOutputStream;
    import java.io.FilterInputStream;
    import java.io.InputStream;
    import java.io.IOException;
    * @author Unknown
    class RecordingInputStream  extends  FilterInputStream {
         protected ByteArrayOutputStream sink;
        RecordingInputStream(InputStream in) {
            this(in, new ByteArrayOutputStream());
        RecordingInputStream(InputStream in, ByteArrayOutputStream sink) {
            super(in);
            this.sink = sink;
        public synchronized int read() throws IOException {
            int i = in.read();
            sink.write(i);
            return i;
        public synchronized int read(byte[] buf, int off, int len) throws IOException {
            int l = in.read(buf, off, len);
            sink.write(buf, off, l);
            return l;
        public synchronized int read(byte[] buf) throws IOException {
            return read(buf, 0, buf.length);
        public synchronized long skip(long len) throws IOException {
            long l = 0;
            int i = 0;
            byte[] buf = new byte[1024];
            while (l < len) {
                i = read(buf, 0, (int)Math.min((long)buf.length, len - l));
                if (i == -1) break;
                l += i;
            return l;
        byte[] getBytes() {
            return sink.toByteArray();
        void resetSink() {
            sink.reset();
    } Then here is the initialization before use with SAX:
    this.psock = new Socket(this.profile.httpServer, Integer.parseInt(this.profile.httpPort));
    this.out = new PrintWriter(this.psock.getOutputStream(), true);
    this.ris=new RecordingInputStream(this.psock.getInputStream());
    this.in=new BufferedReader(new InputStreamReader(this.ris));
    try {
         this.parser = SAXParserFactory.newInstance().newSAXParser();
         this.parser.parse(new InputSource(this.in),new XMLCommandsHandler());
    catch (IOException ioex) {  }
    catch (Exception ex) {  }Then the handler class looks like this (it will be an inner class, so you can access ris, from the parent class):
    class XMLCommandsHandler extends DefaultHandler {
         public void startDocument() throws SAXException {
              //...nothing
         public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
              // BEGIN - Synchronized logging of raw XML source code in parallel with SAX parsing :)
              byte[] bs=ris.getBytes();
              logger.warn(new String(bs));
              ris.resetSink();
              // End logging
              if ("expectedTagThatTriggersMeToDoSomething".equals(qName)) {
                   //...Do smth.
    }Edited by: patladj on Jul 3, 2008 12:30 PM

Maybe you are looking for

  • Background schedule

    dear experts, i am using these code to schedule a program to run in background export 'value' to memory id 'table'. call function job_open. submit 'zprogram' via job job_name  number job_number and return. call function job_close. in program 'zprogra

  • Retreiving old version of a change in transformation routine

    Hello Experts, I had made a change in a transformation routine 2 months ago. Due to some reasons, i want to revert the change i did in the routine. When i try to get the last version of the generated program, i cannot find any old version. Is it poss

  • WebDispatcher on ABAP and JAVA on serperate Servers

    Hi all, i read a lot of hours trough post concerning issues about web dispatcher, but i didn't find anything that suits my problem. We have a MSCS-Cluster. One Node has the db which is for ABAP and JAVA (different schemas). Than we have an SCS for AB

  • Please help with creating more diverse iweb blog entries

    I have a blog about sports memorabilia that I use iweb for: http://www.hoopography.com. I have come to a road block in creating blog entries. I have two issues: 1.) I would like to include more than one image for each blog. I tried to just add images

  • Solaris 10 x86 custom jumpstart pxe/dhcp install problem

    Ok, I have a custom jumpstart server installed and working (sort of...) when installing onto just a single client. It works perfect. It installs, reboots and comes up just fine. BUT... The DHCP portion of the server has 230 addresses allocated from a