Question: map the whole source message into one field in the target.

Hi Friends,
Is there a way to populate the whole source message into one of the fields in the target message?
I am trying to do this in message mapping. Guide if this could be done in any other way or is there a way to do it in message mapping.
Waiting for your valuable guidance,
Regards,
Lakshmi

Hi Friends,
I tried to convert the source message into a string using XSLT mapping. It was successful, however i need to have the source message in XML format and not in any other format. This is because, I am mapping the source XML into a field in a WSDL. The webservice requires the entire source message be inside a field called "Request" in the WSDL (it is like XML inside another XML).
Is there any way to do this? Please suggest.. (Im not good at java programming... may be i dont know)

Similar Messages

  • Mapping complete input XML structure into one field on target

    Hi,
    I have a scenario where I need to map the complete input XML structure as it is, into one field on target side. so can we achieve this in Graphical Mapping? If yes, please share your valuable info.
    Regards,
    Shiva.

    Hello,
    this is the java map code.just compile it and made a .zip file import it and use it Interface Mapping.
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.Map;
    import java.io.*;
    public class PayloadToXMLField1 implements StreamTransformation {
        String strXML = new String();
       //Declare the XML tag for your XML message
       String StartXMLTag = "<DocumentBody>";
       String EndXMLTag = "</DocumentBody>";
       //String StartXMLTag1 = "<Code>";
       //String EndXMLTag1 = "</Code>";
        AbstractTrace trace;
        private Map param = null;
        public void setParameter(Map param) {
            this.param = param;
        public void execute(InputStream in, OutputStream out) {
            trace =
                (AbstractTrace) param.get(
                    StreamTransformationConstants.MAPPING_TRACE);
            trace.addInfo("Process Started");
            try {
                StringBuffer strbuffer = new StringBuffer();
                byte[] b = new byte[4096];
                for (int n;(n = in.read(b)) != -1;) {
                    strbuffer.append(new String(b, 0, n));
                strXML = strbuffer.toString();
            } catch (Exception e) {
                System.out.println("Exception Occurred");
            String outputPayload =
                StartXMLTag
             + "<![CDATA["
             + strXML
             + "]]>"
             + EndXMLTag;
            try {
                out.write(outputPayload.getBytes());
             trace.addInfo("Process Completed");;
            } catch (Exception e) {
                trace.addInfo("Process Terminated: Error in writing out payload");;

  • Source Message in one element

    Hi,
    Can I copy the whole source XML into one element using the graphical mapping ??
    rgds,
    Amair

    Hi AMair,
    Dependent upon what you want to do next : you might read my issue on the forum about the same thing :
    RFC : How to pass an entire xml node to a string
    rgds
    Dirk

  • When I save a PDF as an Excel File, all of the data in the PDF is put into one column (AdobeXI)

    Hi, thanks for taking the time...
    I'm running a machine with Windows 7, Office 2010, and Acrobat XI.  When I save a specific PDF as an Excel workbook, all of the data in the original PDF is sorted correctly in four columns.  When the same task is performed on this file on another user's machine, all of the data is sorted into one column.  The user has the same versions of Windows, Office, and Acrobat.  I've attempted the "Repair installation" option but the problem persists.  Any suggestions?  Thanks again for helping,
    -E

    Thanks for the quick reply.  I figured out how to get the desired results by using tagging.  For anyone who may reference this post in the future, I went to "Customize" in the top right corner of Adobe, then selected "Create new tool set...", looked under "accessiblity and found the "tag" option.  Hit ok, tag is added to the toolbar.  Then I highlighted the dataset in the PDF that was relevant to the output format, then clicked "tag", saved as spreadsheet.  Sorry I can't provide more details on how tagging works or if there's a more elegant solution available, but I'm sure one's out there.

  • XML into one field

    Hi , we have a scenario where we have to move entire source structure into one of the fields of the target structure.
    Example:
    Source:
    item1
    description
    store
    storedescription
    price
    batch
    Target:
    item1
    store
    xmlstring
    we would like to do following mappings:
    1. item1 in source to item1 in target
    2. store in source to store in target
    3. entire source structure in XML format into xmlstring in target
    we reffered following blog , but couldnt map to our requirement.
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    XML to single element: Attn: Henrique
    Thanks,
    Rajesh

    HI
    I think you need to write UDF for this. there is library from apache called XML Serializer. Below is the sample file how you achieve that using that. Use that code in your UDF.
    http://www.informit.com/articles/article.asp?p=31349&seqNum=3&rl=1
    Even just concatenate into one field in the target during mapping and the send the data . this could also achive your requirments. no need to go for Java mapping
    thanks
    Swarup
    Edited by: Swarup Sawant on Feb 15, 2008 11:42 AM
    Edited by: Swarup Sawant on Feb 15, 2008 11:42 AM

  • BI for NW04S: Concatenating multiple chars into one field in BI query

    Hi,
      We have BI for NW04S. We have a requirement of concatenating multiple characteristics into one field in the BI report. This single field should have the usual drill down and other olap functionalities that a single characteristic usually enjoy in a BI report.
      In BI for NW04 (Not the S) this probably can be done using the table interface in WAD. However in BI7 WAD functionality are through Java.
      Also can this be done using Query designer alone.
      Can anybody help?
      Thanks

    Hi,
      Can you please elaborate on your Query designer option. You can always have a variable and in the user exit can write code, but what is not clear that
    1> How will you acheive the contatenation done for every row of the report in the BEX user exit variable( since it's called during the beginning of the query execution and not for all rows of the report
    2> How do you transfer the char variable into a char field in the report.
    Please elaborate .
    Thanks

  • How to show $ sign alongwith the value in message styled text field.

    Hi,
    How to show $ sign alongwith the value in message styled text field.
    The value is coming from the table column in VO.
    I am working on OAF R12.

    Hi,
    Resolved.
    I used the below code in CO for the solution.
    Formatter currencyFormatter = new OADecimalValidater("$#,##0.00;($#,##0.00)",
    "$#,##0.00;($#,##0.00)");
    OAMessageStyledTextBean msrpField = (OAMessageStyledTextBean)webBean.findChildRecursive("MSRP11");
    msrpField.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, currencyFormatter);

  • Premier After Effects... How does one places the whole movie clip into AF?

    After years of using Premiere, I’m looking at using After Effects. Premiere does most of what I need (I don’t need moving graphics and titles) but the masking and rotoscoping seems to be better in After Effects. I’ve started a great video by Tom Green at school. This is probably silly question- I don’t understand is how does one places the whole movie clip into AF? I only see 30 seconds or so of the 5 minute clip on the timeline in AF.

    Ahh, thanks. I simply add more minutes (the length of the clip) into the "new composition".
    A new problem: When I try a dynamic link with premiere AE says “Failed to connect to adobe Premiere Pro Dynamic Link”, but PP will link with AE. I just installed AF last week. Do I need to uninstall and reinstall them (along with the rest of the Creative Suite)?

  • Combining two messages into one

    Hello,
    I have a mapping issue, I have a business process in which I have to combine two messages into one.
    To do so, I have defined a message mapping in which there are two source message types, and one target message type.
    When testing the message mapping in the IR, it works fine, but when I define and test an interface mapping with that same message mapping, I receive this error message:
    "Cannot produce target element /ns0:Messages/ns0Message1/MY_IDOC_TYPE/MY_SEGMENT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd."
    What am I doing wrong ?
    How am I supposed to combine two messages into one ?
    Thanks,
    Elad.

    Hi Elad,
    Just see if you have included both you source message interfaces and one target nessage interface correctly in while doing your interface mapping.....
    The most common mistake made when we do scenarios which include combination of two source message types into one target type are:
    - we forget to include both the source message interfaces.
    - or we interchange between one of the source message interface with the target.
    Just see if either of the 2 is aplicable in your case and just activate all components as and when you create them..
    Regards,
    abhy

  • Append two message into one message in BPM

    hi,
    i have to receive two different outbound message interface in fork step. as soon as two message received
    i have to append those message to one message as below;
    A message
    1001 AAAA  BBBB CCCCC
    1002 DDDD  BBBB DDDDD
    B message
    1003 CCCC  1321 12213
    1004 DAFD  DDDD DDDDD
    1005 EDDD  DDDD DDDDD
    target message for C
    1001 AAAA  BBBB CCCCC
    1002 DDDD  BBBB DDDDD
    1003 CCCC  1321 12213
    1004 DAFD  DDDD DDDDD
    1005 EDDD  DDDD DDDDD
    and then i have to send C
    is it possible on BPM? i think not mapping issue and correlation.
    how can i append two abstract message to one abstract message?
    thanks
    venjamin

    hi all,
    BpmPatternCollectMessageToBeCollected in basis in ir is not multi-row,  this message type structure is just for individual message..
    in my case, source message type can be received multi record in row in once.
    so, what i want to say is interface mapping regarding
    appending two abs message into one inbound message for transformation.
    if it is possible, we may not need to container operation step because we already have bundled message in target abstract message. we can just send target abstract message.
    if it is not possible, how do you map to use in transformation step? and configure container operation?
    container operation should be appened from one structure message into one multi message.
    does it make sense?
    thanks
    venjamin

  • Issue in mapping.. Source message expect with prefix ns0 in input message!

    Issue in mapping.. Source message expect with prefix ns0 in input message
    Hi All,
    I used the XSD structure which I got from partner which starts like below.
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://xxxx.com/DirectSales/CustomerData" xmlns:prodata="urn:schemas-progress-com:xml-prodata:0001" xmlns="">
    <xsd:element name="CustomerRequest" prodata:proDataSet="true">
    I'm receiving the messages through SOAP adapter and the message looks like below.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <CustomerRequest xmlns='http://XXXX.com/DirectSales/CustomerData' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:SE='http://schemas.xmlsoap.org/soap/encoding/'>
    The message is failing during mapping. When i checked in message mapping, I found that the input source message is expecting with prefix "ns0" like <ns0:CustomerRequest...
    how I can solve this issue? Is there anyway I can add the prefix "ns0" before it comes to mapping step.?
    Thanks
    Deepthi

    Hi Guys,
    I tried to use the below paramter.
    anonymizer.acceptNamespaces         'http://XXXX.com/DirectSales/CustomerData  ns0
    The ns0 is coming in all the tags including segments and fields. I just want ns0 to come only at the root level ie <ns0:customerReq..>
    it is coming like below...
    - <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
    - <ns0:ttCustomer>
      <ns0:branch-num>1424</ns0:branch-num>
      <ns0:cust-num>121</ns0:cust-num>
      <ns0:contact-code>3</ns0:contact-code> 
       </ns0:ttCustomer>
      </ns0:CustomerRequest>
    I want the message to come as
    - <ns0:CustomerRequest xmlns:ns0="http://XXXXXX.com/DirectSales/CustomerData">
    - <ttCustomer>
      <branch-num>1424</branch-num>
      <cust-num>121</cust-num>
      <contact-code>3</contact-code> 
       </ttCustomer>
      </CustomerRequest>
    Kindly help me with the paramater value  to be passed for anonymizer.acceptNamespaces.
    Thanks
    Deepthi

  • How do I scan multiple pages into one document using the CanoScan LiDE 200?

    How do I scan multiple pages into one document using the CanoScan LiDE 200?
    I can't seem to find a way to get them to scan continuously, or a way to stitch them together afterwards.

    Hi dagda24,
    You can scan multiple pages into a single document with the scan to PDF option.  Use the following steps to do so:
    1.  Open MP Navigator.
    2.  Click One Clcik.
    3.  Click Save to PC.
    4.  Change the File Type from PDF to PDF (multiple pages).
    5.  Make any other changes as needed, then click scan.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • Why has iTunes seperated a album which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Why has iTunes seperated a album into indevidual songs, which I have copied over from my external hard drive into iTunes? How can you pull all the songs back together into one album again?

    Steve MacGuire a.k.a. turingtest2 - iTunes & iPod Hints & Tips - Grouping Tracks Into Albums - http://www.samsoft.org.uk/iTunes/grouping.asp (older post on Apple Discussions http://discussions.apple.com/message/9910895)
    Quick answer:  Select all the tracks on the album, File > get info, and either give them all a single "album artist", or check the "compilation" flag (as in https://discussions.apple.com/message/17670085).
    If these are from multiple-CD sets you may also need to enter the appropriate information in the disc number fields.  If they are not a multiple CD set you still need to make sure the disc number fields are set correctly or all empty.

  • My Revolution Not Receiving The Whole Text Message

    Hello, lately I have been having a problem receiving the whole text message. People with smart phones text sometimes page length texts. I have no problem sending out page length text, but when someone sends me one, from many different companies and phone types, I only receive what the phone recognizes as the first part of the text message.
    An Example is:
    "Hello, I was wondering what you are doing later. I was thinking we could go to the shopping later at the mall. Do you ha"
    I primary text people so when I do not receive the whole text it is very frustrating.

    It's lies that you haven't received any other complaints on this issue.  1) because I have called repeatedly on this exact issue among many others with this phone and 2) here are some of about a dozen posts on this:
    https://community.verizonwireless.com/message/876695#876695
    and another:
    https://community.verizonwireless.com/message/875860#875860
    and another:
    https://community.verizonwireless.com/message/875820#875820
    granted some are recent, but if you search your forums you will see plenty.
    You used to and still state that you never hear of any of the many issues with this phone, including when it would randomly reboot.  Same phrase, "we have yet to hear of other cases with this device."  Bull...
    I too will be heavily considering leaving Verizon after over 10 years of being a customer not due to an LG phone sucking this bad, but your company's repeated refusal to acknowledge our concerns and treat us like we are ******. 
    Like your master reset phrase above.  So you think that computing devices need a fresh start anytime something goes wrong is just not correct.  If that were the case every time I have fragments between nodes in a clustered server environment I'm supposed to factory reset them?!  NO, you debug it and get it working correctly!  This issue is fragmenting withing your sms/mms delivery system, so fix it!  As a sysadmin for a scientific super computing institute I guarantee I know more about computing devices than you ever will, and I can say your workarounds are asinine and only prolong your customer's issues with a clearly defective device. 
    As with this, although not your manufactured device, it is something you sell and therefore you debug these issues across your network or give those of us that can the ability to do so, but alas another locked boot loader and if we were to root the device to mitigate these issues then we screw our self by trying to help our self.  It's always our fault, as we must have done something wrong.

  • JMS message from one application to the another appl in the same container?

    I have a question.
    Can I send JMS message from one application to the another application in the same container?
    If yes ...can you provide me info.
    I want to know in regards of EJB2.0 and EJB3.0.
    Thanks,
    Rahul

    So the receiver application is a Message Driven Bean, right?
    In your container, do you have a mean to ensure that it is correctly configured to listen the desired destination? Like an administrative console that would show the destinations, the number of pending messages, the number of active consummers...?
    btw what is the destination type? A queue or a topic?

Maybe you are looking for

  • APP not picking correct numbers

    Hi, I assigned one number range (eg: 100 to 200) for two document types ZP and ZV. While running the payment program the system is picking the numbers differently. Eg: when i run payment run on 01.04.2007 the system is picking number ranges 100,101,1

  • Prime Infrastructure 2.0 - Fan Status

    Hi, I created a Custom SNMP template to check  the devices' Fan status. I deployed this template for all my devices (3750, 4510R, Nexus 7k and Nexus 5596). I noticed that is getting data for all unless Nexus 5596 ( 5.1(3)N2(1b)). The strange is that'

  • Debugger Presets possible for Automation Controller?

    Hi, While debugging programs using controls it is important to set in the debugger settings the flag 'automation controller: always process requests synchronously'. I find it annoying that I have to set this flag every single time! Does anyone know i

  • Show Me Messages When I Launch Reader

    I have created a package ArcoRead.msi with a MST. I was wondering if I could automate the following settings: - Show Me Messages When I Launch Reader - Don't Show Messages While Viewing A Document I want the first one to be deselected and the second

  • JRadioButton problem...could you help me please?!?

    I've an array of JRadioButton tha are created in a "for struct" but when I try to add an ActionListener the compiler don't like that!! here is when I create JRadio button: for (cnt = 0; cnt < items; cnt++) { cmdID = (int)rMsg.getCIdAt(cnt); System.ou