In PI how do I convert the XML payload (input) to a text file and send out

I am extracting data from SAP and sending thru XI / PI to a file (non-sap system).
On the receiving end, I need the file to be a text file, with one row for each "FTZ_Row concatenated_data" tag in the input.  It needs to be just a plain text file with no XML tags.
Currently the file gets one record which matches exactly to the XML payload below.
I want it to create a file that looks like this :
           CONCATENATED DATA 1
           CONCATENATED DATA 2
            012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12
here is the payload going thru XI
  <?xml version="1.0" encoding="utf-8" ?>
- <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
  <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
  <FTZ_Row concatenated_data="CONCATENATED DATA 2" />
  <FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
  </n0:FTZ_Concatenated_Row>
thanks
jay

thanks for the input but I am still having issues - I get an empty file when I use the content conversion option.
My payload coming into XI is :
        <?xml version="1.0" encoding="utf-8" ?>
- <n0:FTZ_Concatenated_Row xmlns:n0="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" xmlns:prx="urn:sap.com:proxy:FI0:/1SAI/TAS0C0412CDBC3E782D0219:700:2008/06/25">
<FTZ_Row concatenated_data="CONCATENATED DATA 1" />
<FTZ_Row concatenated_data="CONCATENATED DATA 2" />
<FTZ_Row concatenated_data="012345678912345678MAKTX-TEST LB 123123123123 01/02/2009 Z001WCHA9876543210.12" />
</n0:FTZ_Concatenated_Row>
Here is the layout of my data type - I am using the same for input & output
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone" targetNamespace="http://intel.com/xi/INTEL_PROCUREMENT/ForeignTradeZone">
   <xsd:complexType name="FTZ_Concatenated_Row">
      <xsd:sequence>
         <xsd:element name="FTZ_Row" maxOccurs="unbounded">
            <xsd:complexType>
               <xsd:attribute name="concatenated_data" type="xsd:string" />
            </xsd:complexType>
         </xsd:element>
      </xsd:sequence>
   </xsd:complexType>
</xsd:schema>
I mapped these items :  FTZ_Concatenated_Row & FTZ_Row & concatenated_data
I set up my content convesion with :
  recordset structure   FTZ_Row
FTZ_Row.fieldSeparator     #
FTZ_Row.endSeparator     'nl'
I am not sure why the following row looks like this ??
    <FTZ_Row concatenated_data="CONCATENATED DATA 1" />
I thought FTZ_Row would be one tag and "concatenated_data" would be another one.
any help would be appreciated.
I have read many entries/blogs/etc in SDN but and tried many different setups, but nothing is working.
thanks

Similar Messages

  • Convert XML to text file and sending the same via Mail receiver adapter

    Dear All,
    I have a requirement like....
    I am getting a XML file as a result of mapping and it needs to be converted to a TEXT file and
    the converted file needs to be sent to a mail address in text format.
    Any body has idea how to achieve this?
    Thanks in advance for your help.
    Regards
    Hari

    >
    HP CReddy wrote:
    > Dear All,
    >
    > I have a requirement like....
    >
    > I am getting a XML file as a result of mapping and it needs to be converted to a TEXT file and
    > the converted file needs to be sent to a mail address in text format.
    >
    > Any body has idea how to achieve this?
    >
    > Thanks in advance for your help.
    >
    > Regards
    > Hari
    use the StructXML2Plain or XML2Plain from the standard MessageTransformBean
    Add the module to you Mail adapter before the mail adapters standard module itself
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/24/4cad3baabd4737bab64d0201bc0c6c/content.htm

  • How can I get the cursor's position in a opened file and display a menu?

    Hello,
    I want to make a program by which I will be able to display a panel/pops up menu at the corsor's current position, (In any text/doc file or in the desktop, we can display a menu by right click of the mouse.) Now I want my program to do the same task.
    More clearly-
    1. First I would save some words or sentences in a file(aa.txt).
    2. Then I would open another text file/ a word/ excel/ or any other editor( bb.txt / cc.doc / dd.xls / ee.html ).
    3. While editing or writing something in the opened file, if I click the right mouse button/ press a key (ctrl+space), a menu will appear containing the sentences I saved in the file(aa.txt) previously.
    My program will tell me the cursor's position in bb.txt / cc.doc / dd.xls / ee.html that i opened. And display a menu. my problem is not reading / writing in a file.
    My problem is how can I get the cursor's position in a opened file display a menu at that position by a mouse/key action*.
    Would you please help me on this regard.
    Thanks

    DrClap wrote:
    I think the OP wants to start up an application like MS Word and then operate it from a Java program.Doesn't The Monkey's Paw do that? What a second, according to Wikipedia:
    [http://en.wikipedia.org/wiki/The_Monkey%27s_Paw]
    <quote>
    ...the paw of a dead monkey is a talisman that grants its possessor three wishes, but the wishes come with an enormous price.
    The moral of the story is contained in this description of the paw: "It had a spell put on it by an old fakir," said the sergeant-major, "a very holy man. He wanted to show that fate ruled people's lives, and that those who interfered with it did so to their sorrow."
    </quote>
    So I guess that a non-sequitor ... or is it?

  • How to go to the next Page while generating a text file ??

    All,
    I am generating a text File dynamically based on the information from the Database. I need to give some Page breaks after every 80 lines. Does any one has any clue how can I do that.
    I am able to generate the file though.
    Also I need to set the Font to Courier.
    Please let me know if anyone has done anything like this.
    I am using "BufferedWriter" for generating the text file.
    Thanx

    Basically - I have to repeat the header if the records goes to the next Page. My records can increase decrease dynamically as the data is coming from the Database.
    I do not know how to find out whether it has reached the next page or not ??
    If you know by any chance how can I repeat the header once it goes to the next Page that would be a great help.
    Thanx

  • How do i compare the similarities between two or more text files?

    The subject says it all. I am familiar with a number of the diff tools that are available, but I have yet to find a tool or app that will find the similarities between two text files. Any suggestions?

    From http://hints.macworld.com/article.php?story=20030217061153119
    "FileMerge highlights the sections that differ in each file..."
    I need to find similarities. I was thinking something along the lines of the similarity-tester package in Ubuntu:
    http://unix.stackexchange.com/questions/1079/output-the-common-lines-similaritie s-of-two-text-files-the-opposite-of-diff/94532#94532
    Preferably a GUI tool, but command line is OK if I can figure out the proper syntax.

  • How to build an array based on inputs from a text file

    Hi
    I have ta text file that has the following format. The apmlitude is the first value then I have the start index number and last index number
    Other index values in between should be zero
    (amplitide, start index number, end index number)
    2, 2 ,3
    4, 6, 7
    5, 10,11
    using this format I should make the foloowing array
    0,0,2,2,0,0,4,4,0,0,5,5
    Could you please help me to implement it in LabVIEW
    Thanks

    A few notes:
    - You'll want to use the Initialize Array function for 1) and 3) (if this is, in fact, how you want to do this.)  This function takes two inputs when initializing a 1D array- element value and array size.   
    - Change the polymorphic instance of Read From Spreadsheet File.vi to "Double" or "Integer"- there's no reason to read in these numeric values as strings and convert them later.
    - Will the text file always contain 12 elements worth of data?  If not, you'll need to change your logic for the number of elements to initialize.
    As Altenbach said, this seems a lot like a basic logic/homework problem.  My suggestion was only that-a suggestion.  It is not the only way to do this. Figure out a sequence of steps to get you from point A to point B before you jump in and start coding. 
    Regards,
    Tom L.

  • How to zip a text file and send as email attachment in SAP version 4.6c?

    Hi Guru,
    How to zip a text file in SAP version 4.6c which doesn't have class CL_ABAP_ZIP?
    Please help.
    Thanks & Regards,
    Ari

    Hi,
    Try this link
    [http://sap.ittoolbox.com/groups/technical-functional/sap-dev/sapr3dev-zip-file-from-sap-1707099?cv=expanded]
    Cheers,
    Surinder

  • How can I convert the encrypted SQL data to clear text in CCM?

    I want to retrieve CCM information from SQL database but many of them display as encrypted as follows,
    {14AE763F-D1EE-44A2-93C1-00FB95578E43} {7FD1AACD-6E85-4B79-A0D1-5F25074414D0}
    Any way to convert to clear text?
    Thanks in advance,

    I need to summarize the current CCM configuration into spreadsheet and want to reduce the labor work by manually typing. For example, the Route List display in SQL as I mentioned instead of clear text.
    Any tool available to get all the configuration information as clear text?
    Thanks,

  • How can I convert these 250 data points in a spreadsheet file into an array???!!!

    I want to convert these points(see spreadsheet file attached) into a 1-D array of numbers and plot them using a vi. I am using the readfromspreadsheet.vi and it just gives me a number 4 and plots that. Please tell me what to do...I'm confused and have a project due!!!
    Attachments:
    ec1.xls ‏14 KB
    test.vi ‏14 KB

    Save the excel spreadsheet as tab delimited text file and use "Read From Spreadsheet File" vi to read it.

  • I just attempted to download a file and send to me, but  it may have gone out to all my contacts - how can I tell?

    I was just attempting first use of adobe send and it looks like I may have sent this to all my email contacts, how will I know?

    Did the unshare.  Thank you 
          From: bob.treitman <[email protected]>
    To: Robert Goldsmith <[email protected]>
    Sent: Tuesday, March 31, 2015 2:52 PM
    Subject:  I just attempted to download a file and send to me, but  it may have gone out to all my contacts - how can I tell?
    I just attempted to download a file and send to me, but  it may have gone out to all my contacts - how can I tell?
    created by bob.treitman in Adobe Acrobat.com Services - View the full discussionIf it says "Anonymous" then the only way that it would have gone out to all of your contacts would be if you sent it to them through your email client. And it would be in your email's Sent folder (not Adobe Send's). If you look at https://cloud.acrobat.com/sentfiles, does it show that the file has been Viewed? If the Views column shows a 0, then nobody has yet viewed it. If you're concerned, you can select the file by clicking the check box, then select Unshare. That will make the file inaccessible to anyone other than yourself. https://forums.adobe.com/servlet/JiveServlet/downloadImage/2-7392942-745487/900-90/SentTab .png  If the reply above answers your question, please take a moment to mark this answer as correct by visiting: https://forums.adobe.com/message/7392942#7392942 and clicking ‘Correct’ below the answer Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: Please note that the Adobe Forums do not accept email attachments. If you want to embed an image in your message please visit the thread in the forum and click the camera icon: https://forums.adobe.com/message/7392942#7392942 To unsubscribe from this thread, please visit the message page at , click "Following" at the top right, & "Stop Following" 
    Start a new discussion in Adobe Acrobat.com Services by email or at Adobe Community For more information about maintaining your forum email notifications please go to https://forums.adobe.com/thread/1516624.

  • How can i convert the HTML information in XML form to a PDF?

    Hi does any body know how can i convert the content of an HTML field in a XML Form in a regular text to include in a PDF in a Java program?

    Hi ,
    On the tool bar you have an option "Browser" which is next to "HTML Editor" .
    You know that for using these elements wo have to map them with Data Schema.
    Step by step
    1. In data Model Under Data Schema Add a child and name it Read_More.
    2. In the left hand corner ,click on tab Type and from the drop down select "rid"
    3.Click on the "Browser" from the toolbar (as told earlier) and drag and drop it on the form.
    4. Drag the Data schema which u have made(Read_more) and drop it on the browser on form. On right hand side u will se the mapping done.
    5.Click on the "Browser" which is there in the form and on the right hand side of the form u will see the property window.
    6.In property window change the value of action property to "Item Entry point"
    7. Repeat step 3 and 4 in Render and show form but using "label" nad not browser.
    Do not forget to add Save button in Edit Form.
    This will solve your problem.
    PS:Rewards Point Please.
    Regards,
    Naveen Gupta

  • How to write adapter module to convert the xml to pdf file

    Hi all,
      how to write adapter module to convert the xml to pdf file.
    Please any body assist step by step procedure.

    PI 7.1 XML to PDF transformation
    have you seen below links:
    http://forums.sdn.sap.com/thread.jspa?threadID=1212478
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/14363

  • How to convert a Form to a Text file and XML file?

    Hi:
    I want to convert a Form to a Text file and XML file,but I don't know how convert?
    Please help!
    Oracle Form Builder V10.1.2.0.2
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    Thanks in advance!

    ..or follow the steps in Mtalink note; Doc ID: Note:196924.1
    Forms XML Conversion Feature ( Converting Forms To XML)

  • I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    I need to convert PDF file to Word Document, so it can be edited. But the recognizing text options do not have the language that I need. How I can convert the file in the desired of me language?

    The application Acrobat provides no language translation capability.
    If you localize the language for OS, MS Office applications, Acrobat, etc to the desired language try again.
    Alternative: transfer a copy of content into a web based translation service (Bing or Google provides a free service).
    Transfer the output into a word processing program that is localized to the appropriate language.
    Do cleanup.
    Be well...

  • How can I get the XML structure from a flat structure?

    Hi all,
    in my XI SP 12 I use a JMS adapter to read information using the WebSphereMQ transport protocol.
    The structure that I receive have this format:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value>
    <NumberRecordType_B><NumberRecordType_c>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    <Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    the problem is that in this structure each line is not separated by a carriage return or a comma, I have all the information in a single line:
    <Name_A.KeyFieldValue><Name_A.fieldName_A1_Value>...<Name_A.fieldName_AN_Value><NumberRecordType_B><NumberRecordType_c><Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value>...<Name_B.KeyFieldValue><Name_B.fieldName_B1_Value>...<Name_B.fieldName_BN_Value><Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>...<Name_C.KeyFieldValue><Name_C.fieldName_C1_Value>...<Name_C.fieldName_CN_Value>
    and the customer don't want to insert a line separator.
    Then, the question is:
    How can I get the XML structure from this structure?
    If possible, I don't want to develop new Module and add it in the JMS Module Sequence.
    PS I have already read the article "How to Use the Content Conversion Module with the XI 3 J2EE JMS Adapter.pdf" and it doesn't seem to help me.
    Best Regards,
    Paolo

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

Maybe you are looking for

  • JMS Adapter Error after installing Websphere MQ 7.1 Drivers ?

    Hi, I have installed 2 ibm websphere mq 7.1 drivers into "com.sap.aii.adapter.lib.sda" and deployed using JSPM. but then after that all my others jms (using JNDI) that previously working fine become error (in red colour). The error message is : Chann

  • Free Bumper program ending Sept. 30th

    Hi all, just ordered my iPhone 4G yesterday and just wanted to check in on the "Free Bumper" program. In the conditions to the program Apple stated that the program ends for iPhone ordered by Sept. 30th. My iPhone is bound to be shipped only by mid o

  • Ild error when upgrading from WorkShop 6.1 to 6.2

    I'm trying to use WorkShop 6 update 2 to compile and link. The options are "-compat=5 -O -instances=static -features=bool -g -xs -O0 -library=iostream,rwtools7 -liostream -mt -lCstd -lCrun -lthread -lc ...". But link editor reports errors (seems mult

  • IPhone and BlueAnt V1 Issue

    I have been using a BlueAnt V1 with my iPhone for three weeks now without a problem. Today, everything changed when I attempted a phone call with mu headset; I heard a buzzing sound and the call was terminated. This was true for incoming calls as wel

  • SOME PICTURES ARE VERY SMALL

    Why some pictures became very small