How to get a Parent Message Id in Mapping?

Hi,
I have a scenario to post the idoc to file to mulitple receivers. I have to get both Message ID and Parent Message ID in mapping. I am able to get Message ID but not Parent Message ID. I tried to get it from Table sxmspmast but it does not contain the entry during runtime.
Any suggestions to get the Parent ID while in Mapping.
Thanks,
Manikandan R

you can create a UDF,say getMSGID,  to get current message ID:
String headerField;
java.util.Map map;
// get runtime constant map
AbstractTrace trace=container.getTrace();
map = container.getTransformationParameters();
String key = "MessageId";
// get value of header field by using variable key
headerField = (String) map.get(key);
return headerField;
pass this output to an RFC  lookup UDF which calls this FM in XI ABAP stack:
FUNCTION ZGET_PARENT_MSG_ID.
""Local Interface:
*"  IMPORTING
*"     VALUE(I_CURRMSGID) TYPE  CHAR40
*"  EXPORTING
*"     VALUE(E_PARENTMSGID) TYPE  CHAR40
DATA: lv_currmsgid type SXMSPMAST-MSGGUID,
      lv_parentmsgid LIKE SXMSPMAST-PARENTMSG,
lv_currmsgid = i_currmsgid.
select single PARENTMSG from SXMSPMAST into lv_parentmsgid where MSGGUID = lv_currmsgid.
e_premsgid = lv_parentmsgid.
ENDFUNCTION.

Similar Messages

  • How to get the parent of a component in fx?

    Here is an example:
    Index.fx:
    Stage {
        title: "Online book library";
        width: 1024
        height: 768
        scene:Scene {
        fill: Color.WHITE
        content: [
           banner ,
           login = Login{translateX:715 translateY:135}
    };Login.fx:
    var logOn : Button = Button {
            translateX:25 translateY: 170
            text: "Log On"
            font: Font {size:11 name: "Verdana Bold"}
            action: function() {
                showHello();
    function showHello(){
       // add a label in index.fx whose text is "welcome!";
        }I want to show something on the index.fx but I don't know how to get the parent from the child component?
    In Flex, we use parent or parentApplication, Is there a similar function in JavaFX?

    Reusing the same Tile example, I had no problems, I suppose I was doing wrong the first time:
    def IMAGES_WIDTH = 100;
    def IMAGES_HEIGHT = 100;
    var COLUMN_NB = 3;
    var ROW_NB = 3;
    var scene: Scene;
    var previews: Container;
    Stage
      title: "Test of Tile layout"
      scene: scene = Scene
        width: 500
        height: 500
        fill: Color.LAVENDER
        content:
          previews = Tile
            hgap: 10
            vgap: 10
            layoutX: bind (scene.width - previews.width) / 2
            layoutY: bind (scene.height - previews.height) / 2
            columns: COLUMN_NB
            content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
              ImageView
                id: "IV{i}"
                image: Image
                  url: "{__DIR__}clock.gif"
                  width: IMAGES_WIDTH
                  preserveRatio: true
                onMousePressed: Hide
    function Hide(evt: MouseEvent): Void
      println("{evt.node} ({evt.node.id}) - {evt.node.parent}");
      var nm: Node = evt.node.parent.lookup("IV5"); // Middle node
      nm.visible = false;
      var ntl: Node = evt.node.parent.lookup("IV1"); //Top left node
      (ntl as ImageView).viewport = Rectangle2D { height: IMAGES_WIDTH/2, width: IMAGES_WIDTH/2 };
      (evt.node.parent as Tile).hgap = 20; // Strange effect, but works
    }

  • How to get custom defined messages in WAD

    Hi
    can you please help me how to get customized error messages in WAD.
    While I'm executing in RSRT the customer exit variable throws error message saying that 'No Sales orders exist for this Sold_To Party' but when I execute same query using Bex WAD, then no error message throwing for me for given sold_to party. I tried with all options as given in below code, but WAD gives me system error that "No values found for the customer exit variable 'Zxxxx'. Please help me in this regard. Should I do any settings in WAD to get custom defined messages. Kindly let me know
    my code is as below
    I_STEP = 2.
    CASE i_vnam.
    WHEN 'Custome exit variable'.
    IF sy-subrc = 0.
    ELSE.
                   MESSAGE e060(/bmc/bw).  "No Authorization exist
                    g_errflag1 = 'X'.
                   exit.
                   CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
                      EXPORTING
                        i_class  = '/bmc/bw'
                        i_type   = c_e                                    "'E'
                        i_number = '061'
                        i_msgv2  = l_msgv2.
                         RAISE NO_REPLACEMENT.
                    l_s_range-low = g_soldto.
              l_s_range-sign = c_sign_i.
              l_s_range-opt  = c_range_opt_eq.
              APPEND l_s_range TO e_t_range.
    ENDIF.
    I_STEP = 3.
      READ TABLE i_t_var_range INTO w_s_var_range
                  WITH KEY vnam = 'customer exit variabel'.
      IF sy-subrc = 0.
    Check the flag and throw message 'No Sales orders'.
        IF g_errflag1 = 'X'.
          l_msgv1     = 'No Sales orders'.
    Call the FM to populate message
          CALL FUNCTION 'RRMS_MESSAGE_HANDLING'
            EXPORTING
              i_class  = c_r9
              i_type   = c_e                                    "'E'
              i_number = c_000
              i_msgv1  = l_msgv1
            EXCEPTIONS
              dummy    = 0
              OTHERS   = 0.
         CALL FUNCTION 'RRMS_MESSAGES_SHOW'.
         CALL FUNCTION 'RRMS_MESSAGES_DELETE'.
          RAISE NO_REPLACEMENT..
        ENDIF.
    Thanks & Regards
    silu

    Hi
    Custom Messages WAD

  • How to get the parent window in sub-child controller class in javafx?

    how to get the parent window in sub-child controller class in javafx?

    You can get the window in which a node is contained with
    Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
    If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
    Window owner = null ;
    if (window instanceof Stage) {
      Stage stage = (Stage) window ;
      owner = stage.getOwner();
    }

  • How to get the parent Frame of a component ?

    Hi,
    I'm wondering how to get the parent JFrame (or JDialog) of a component.
    Thanks for tips

    I'm using this code:
    public Component getFrame(Component comp)
        Component frame = comp;
        while ((frame != null) && !(frame instanceof Frame))
            frame = frame.getParent();
        if (frame == null)
            frame = comp;  // no parent found
        return frame;
    }

  • How to get the Error message from hr_contact_rel_api.create_contact

    Hello All,
    I am using this API for creating a contact for an employee in R12.
    But, some times i am not able to create the contact successfully, and Unable to figure out proper reason for record erroring out.
    I dont find any out msg data variables for this API in order to check it for the Error.
    So, can any body help me how to get the ERROR Message for such APIs.
    Thanks inAdvance,
    Amarnadh Js

    user12243334 wrote:
    solved the issue on myselfIt would be nice if you could share the solution with us.
    Thanks,
    Hussein

  • Hierarchical query - How to get all parent records - Duplicate post

    Hi,
    In Oracle, START WITH, CONNECT BY commands will give all the direct and indirect child records. Other way round, is they are command which gives all the parent records till the root? Please let me know. I am working on Oracle 9i Release 2.
    Thanks a lot for your help.
    Edited by: skv on Nov 21, 2008 11:05 AM

    Duplicate post.
    Hierarchical query - How to get all parent records
    Please edit this post heading to duplicate post.
    Regards.
    Satyaki De.

  • How to get the XML messages from JMS Queue in BPM

    I have one requirement in my application.we are sending XML messages to the JMS Queue.How to get the XML messages from JMS Queue and how to Extract the details from XMl.
    can you please send me the code to get the XML messages from the JMS Queue.
    Thank you,

    Hi,
    Sure others will have some other ideas, but here's what I typically do to get the XML from a JMS queue. Inside the Global Automatic that pops the messages off the queue you'd have logic similar to this:
    artifactInfoNodes as Any[]
    xmlObject as Fuego.Xml.XMLObject = XMLObject()
    load xmlObject using xmlText = message.textValue
    . . . Once you have this, it's a matter of deciding what you want to do with the message. Most times you'll parse the XML (using XPATH statemens), set argument variables and create a work item instance.
    Hope this helps,
    Dan

  • How to get a parent clips name of a subclip in XMP ?

    Hi,
    How to get a parent clips name of a subclip in XMP ?
    Please clarify me.

    Do you mean you want to get the name of the master clip in XMP? Currently XMP doesn't contain this info.

  • How to get current suspended message ID from context

    Hi all,
    I'm trying to get the Suspended Message Id from my orchestration.
    I don't want to get the this inside the orchestration, because that I already know how to do it.
    I've search inside this forum and get a solution, but actually does not work. 
    Using this: Microsoft.XLANGs.Core.Service.RootService.InstanceId  
    (http://social.msdn.microsoft.com/Forums/en-US/95d2c9d9-5cbe-4bca-9cef-da7aba984d3c/how-do-i-access-instance-id-of-a-message-from-orchestration?forum=biztalkgeneral)
    Also, I have searched in "all" properties of Microsoft.XLANGs.Core.Service.RootService and didn't had any luck
    My goal?
    I have a service that logs, to SQL, all errors in my biztalk applications. Right now is not saving the message id, and I do need.  (I can easily change the method to receive the message id, but I'm trying to avoid that because I have 30 applications
    using the same method/application).
    Also, I have another service that is listening to all suspended messages.. In here I have the message Id (and other data) using WMI... 
    Now, I need to correlate both info..
    Any help would be appreciated
    Ricardo Bessa

    Hi,
    Thanks for the reply. My answers inline.
    I already understood the logic that you said and I'm working on it. However, if you have more good inputs to give, please do! 
    Thanks
    Hi Ricardo,
    Let us be clear with your requirement.
    “I
    have another service that is listening to all suspended messages.. In here I have the message Id (and other data) using WMI... ” 
    - What this “service” is? Is this some service external to BizTalk from where you want to access the detail of the suspended message? If so then you go to use some way similar to my earlier reply. When you want to access the suspended message details,
    you got to access it from management db. The code which I have given in my earlier reply would do that. No other option in this case.
    Yes, I am already doing that. I'm using a Windows service that is listening for all suspended messages in BizTalk. In this
    windows service I can access to everything that I want (message Id; service type id; instance id; and many other properties...). My issue is not in here.
    “Actually
    when i call Microsoft.XLANGs.Core.Service.RootService.InstanceId I'm getting the property SendingOrchestrationID.” 
    - Are you try to access the message Instance ID from another child orchestration?
    SendingOrchestrationID is the orchestration instance
    ID where the message originated and you would get it when another orchestration (subprocess) which has been triggered by another orchestration (parent orch whose ID is
    SendingOrchestrationID). Detail us about where and how
    to you get this SendingOrchestrationID.
    Because when you want to access “Suspended” Orchestration’s message instance ID, you can’t achieve it by calling it from sub-processes.
    I'm using a external (custom) class library. 
    I have a custom log which tracks everything that goes in our BizTalk applications. When errors / warning I write that to a database table.
    This is made in different times, so when I log the error to the database I need "something" that exists in my other service (MEssageID; service type
    id; instance id; or other 'unique' property). Also, I don't want to change the log method, because (if I do that, I would need to change 30 applications).
    That's why I'm looking for a 'global' property that I can use, without changing (a lot) my code.
    When an Orchestration is suspended, it will be marked as “Suspended” in db and to get the messages associated with it, access the suspended Orchestration instance
    ID from the db and use this ID from db to get its related contents/messages IDs.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.
    Ricardo Bessa

  • How to get the return message after running BD20 tranaction ?

    Hi Gurus,
    My requirement is to Post vendor invoice through ALE/IDOC ( Inbound IDOC ).
    - For that I had generated the IDOC using  Function module 'IDOC_INBOUND_WRITE_TO_DB '
    - Then I had processed that generated IDOC by calling the standard program rbdapp01(BD20-Tranaction ) using the below statment
    SUBMIT rbdapp01 WITH SELECTION-TABLE lt_seltab .
    Could any one suggest me how to get the report output of standard program (rbdapp01) to an internal table so that I dispaly as an seperated report like Posted Document number with messages or Error message
    Suggest me any Function module or any other standard program to process the IDOC so that I can fulfill my requirement.
    Regards
    Paul

    Use can read the IDOC status after processing...
    Eg.
      SELECT * FROM edidc INTO TABLE t_idoc_control_tmp
          FOR ALL ENTRIES IN t_update WHERE docnum = t_update-docnum.
    and then add your own logic IF SY_SUBRC EQ 0.
    I hope this will help you.
    Regards,
    Amey

  • How to get the parent node of the current node?

    Hi all,
    i want to get the parent node of the current node and the not the parent of the parent node.
    thank you very much

    Hi,
    the parent node of <subnode1-2>29.99</subnode1-2> is (node1), how can do to get <node1> throw <subnode1-2>29.99</subnode1-2> the sub node of <node1>.
    As per my understanding the parent node of <subnode1-2>29.99</subnode1-2> is book not the node1.
    If you want node 1 as a parent of subnode1-2 than your xml will look like this.
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <bookstore>
    <book>
    <fathernode>Harry Potter</fathernode>
    <node1>
           <subnode1>29.99</subnode1>
           <subnode2>29.99</subnode2>
    </node1>
    <node2>
           <subnode1>19.99</subnode1>
           <subnode2>19.99</subnode2>
    </node2>
    </book>
    </bookstore>
    and also if you want tom retrive float data than refer following XPATH.
    "//book[[price='1000']]/price/text()"
    Regards,
    Manoj Bilthare

  • TS3212 How to get error 2 message to go away when downloading on windows 7

    How to get itunes to download on windows

    Let's try a standalone Apple Application Support install. It still might not install, but fingers crossed any error messages will give us a better idea of the underlying cause of the issue.
    Download and save a copy of the iTunesSetup.exe (or iTunes64setup.exe) installer file to your hard drive:
    http://www.apple.com/itunes/download/
    Download and install the free trial version of WinRAR:
    http://www.rarlab.com/
    Right-click the iTunesSetup.exe (or iTunes64Setup.exe), and select "Extract to iTunesSetup" (or "Extract to iTunes64Setup"). WinRAR will expand the contents of the file into a folder called "iTunesSetup" (or "iTunes64Setup").
    Go into the folder and doubleclick the AppleApplicationSupport.msi to do a standalone AAS install.
    Does it install properly for you?
    If instead you get an error message during the install, let us know what it says. (Precise text, please.)

  • How to get rid of message "Backup disk not available"?

    I use an external disk for Time Machine.
    I switch the disk on every couple of days. In the mean time, I get a warning message every hour that:
    "Time Machine could not complete the backup, The backup disk is not available".
    How can I get rid of this message? It is really becoming irritating.
    Patrick

    patrick Wursteisen wrote:
    I switch the disk on every couple of days.
    that kind of beats the purpose of TM backups, which are usually happening on an hourly basis. if you intend to continue this way, you might as well forget about TM and rather create a bootable clone of your startup disk every couple of days. Carbon Copy Cloner or SuperDuper will even allow you to do incremental clones.
    another option would be to change the frequency of TM backups using _*Time Machine Editor*_.
    happy computing !
    JGG

  • How to get rid of message "Action Processed."

    When I save data in one of my reports, I get a confirmation message "Action Processed."... may I know how to disable it...?
    Thanks in advance

    Under the Page Process, see Messages - Process Success Message.
    Jeff

Maybe you are looking for

  • Newly Occuring CSS SSL Issue in Chrome, FF10, IE9 with L5 rules; 3 second delay, loss of L5 stickyness

    We recently started suffering an issue with our CSS11501S-K9 units not performing URL stickiness on our SSL wrapped L5 rules.  I've spent dozens of manhours working on the problem, and have quite a bit of information to report, including a solution. 

  • [SOLVED] What is the best way to use ZFS on linux-ck?

    Hi, I've recently gotten into ZFS to replace my Intel FakeRaid array I had set up for my /home folder. All is well under the stock kernel, but I'm running into issues while trying to run it under linux-ck. At boot systemd throws a fit, and in the eme

  • How to NOT monitor SQL database on specific servers only

    I have a test server with SCOM agent installed. I am using it for Lync watcher node to monitor Lync using SCOM. On this server there is a local SQL Express database. SCOM has MP for SQLs and alerts me about this SQL express database on test server th

  • Hdr not displaying all options

    Hi there, I seem to have a really strange problem with photoshop cs5. I installed on my samsung nc10 and when I go Image--> Adjustments-->HDR toning, not all the options come up, there are some missing, it's like the hdr toning window is "hiding" som

  • Backup hangs at 80%

    I'm trying to back up my N73 with PC Suite 6.84.10.3 on Windows XP SP2 via USB cable. It goes through 'User files from gallery', 'contacts', 'calendar', Notes', 'Messages' ok, then on the last bit 'Phone model-specific backup', the status bar just ha