How to generate a file containing substructure of inboud interface

Hi Experts,
     My outbound interface structure is like below:
     <?xml version="1.0" encoding="UTF-8"?>
<ns0:File_Input xmlns:ns0="http:/training/POC">
   <NUM1>1</NUM1>
   <NUM2>2</NUM2>
</ns0:File_Input>
    My inbound interface is like below:
   <?xml version="1.0" encoding="UTF-8"?>
<ns0:File_Output xmlns:ns0="http:/training/POC">
<Filename></Filename>
<Output>
<TOTAL>3</TOTAL>
</Output>
</ns0:File_Output>
This is FILE to FILE scenario.
The input (sender or outbound) file is XML. Output file is also XML but I want it to be:
<ns0:File_Output xmlns:ns0="http:/training/POC">
<Output>
<TOTAL>3</TOTAL>
</Output>
</ns0:File_Output>
I don't want the node <Filename> in the output XML file even though the inbound interface structure contains the node <Filename>.  The output file name is dynamic and hence I am using the node <Filename>. I am populating this node in message mapping.
I tried File content conversion but it is not generating the file. I gave the following conversion values.
What am I doing wrong?
File_Output.fieldSeparator = nl
Output.fieldSeparator = nl
TOTAL.fieldSeparator = nl
Please help!
Thanks
Gopal

hi Gopal,
First thing, as Spantaleoni has said, you can not avoid the quotes.
It has been clear in your case itself. That's the reason that you have nl input_20110523T104117Z.xmlnl3 in between your filename "input_20110523T104117Z.xml" and total value "3". Had you put quotes, 3 would have come in the next line itself and there would not be nl explicitly.
As for your actual issue, if it is an xml that you want at the receiver end, why are you using content conversion? As Shabarish has mentioned in his blog, dynamic configuration is always better than variable substition.
You can set the filename dynamically in a udf which is mapped to a mandatory field at the target side.
Write the  below code in a udf and map it to a mandatory node at the target end , like "Output" node in your case.
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create(u201Chttp://sap.com/xi/XI/System/Fileu201D,u201CFileNameu201D);
String MyFileName = a + "_" + b +".xml";
conf.put(key, myFileName);
return "";
Regards,
Ninu

Similar Messages

  • How to generate MT100 file in XML ?

    How to generate MT100 file in XML ?
    Dear All,
    Base:      We are working on ECC 6.0 version and developing B2B with bank.
    Requirement:     For B2B bank requires payment orders in MT100 format wrapped in XML.
    At Present:     I am using PMW format MT100(standard) in payment method. With the use of this format system is generating MT100 text file.
    In this standard PMW format MT100, check box for u201Dmapping using DME engineu201D is not selected. 
    My Try:      I  change in format output from file to XML in Payment Media Format (T. Code OBPM1), but it doesnu2019t work.
    In data medium display (T. Code FDTA) system is showing the following error.
    The XML page cannot be displayed
    Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
    XML document must have a top level element. Error processing resource 'file:///C:/Users/888881/AppData/Local/Microsoft/Wind...
    In view source system is showing only this,
    <?xml version="1.0" encoding="utf-8"?>
    My Question:      How to generate MT100 file in XML ?
    Should I have to create DME Format Tree in ( T. Code DMEE )  and  create new Payment Media Format (T. Code OBPM1), with the mapping using DME engine ?
    Please give your valuable suggesions,
    Thank you,
    Rony

    Hi Prabhu,
    The program SAPFPAYM generates the payment Medium  on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
    Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
    Regards,
    Rony

  • How to generate xml-file for SAP Fiori (UI add-on) with Solution Manager 7.0.1?

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

    Hello Guru,
    could you please help with my issue with Fiori Installation.
    We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
    Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
    But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
    But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option  "install Add-on" as it written in Guide for ui add-on installation.
    Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
    If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
    Thanks in advance for any help!!!
    Bets regards,
    Natalia.

  • How to generate PNG file to the disk folder by IBOT?

    Is there a piece of code in JavaScript on how to generate PNG file to the disk folder by IBOT?
    thanks a lot

    Please disregard this message. The information below is only semi-accurate. When I get some kinks worked out I'll edit this again. -Bill
    FYI,
    Don't really know if I'm adding anything useful but here it is. I use NetBeans and I simply added an images folder so now I have my package (deckofcards) and a sub package deckofcards.images.
    The image:
    back: Image {
                url: "{__DIR__}images/B.JPG",
                backgroundLoading:true
                placeholder:bind placeholder
            };works and the value of "{__DIR__}images/B.JPG" becomes
    <CARD backUrl="jar:file:/C:/Users/Bill/Documents/NetBeansProjects/DeckOfCards/dist/DeckOfCards.jar!/deckofcards/B.JPG">
      ...when I marshal. That string (backUrl) will unmarshal correctly and can be use in the url variable to display and image too.
    -Bill
    Edited by: bthayer on Feb 21, 2009 6:04 AM

  • How to Generate Trace Files in SQL*Plus

    Hi Friends ,
    How to Generate Trace Files in SQL*Plus ?
    i have no idea
    thanks
    raj

    What trace files would you like to generate?
    Are we talking SQL trace files?
    ALTER SESSION SET sql_trace = TRUE;This will be generated in the user_dump_dest on the server.
    show parameter dump

  • How to generate TEMSE file in form 16

    Hi Experts,
    How to generate TEMSE file in form 16.Here i am unbale to get the values in page3 of f16  ""DETAILS OF TAX DEDUCTED AND DEPOSITED INTO CENTRAL GOVERNMENT ACCOUNT''
    PLease advice.
    Regards,
    Sai.

    Hi Dev...
    Thanks for the reply.Here i can able to get form 16 except  the acknowldgement numbers in firstpage and Details of tax deducted and deposited into central govt. account in page no three.
    What should i do inorder to get all those details in f16.
    Here i have given the tcode pc00_m40_f24.From here onwards i was unable to go furthur.
    Please advice.Points are sure.
    regards,
    sai.

  • How to generate .DTD file from IDOC?

    Dear All,
    On behalf of my colleague,
    How to generate .DTD file from IDOC? I want to generate this file for importing into the WebMethod Tool. Please share relevant content regarding the same.
    IDOC name is: BOMMAT01
    Let me know if you need any other information.
    Regards,
    JK

    Hi Jitendra,
    When PI receives idoc from ECC it will be in xml format.
    Are you telling that you want to convert this xml to .dtd file?
    check this for converting xml into .dtd file.
    How to convert XML file into DTD or XSD
    could you please explain about what you are doing in this requirement?
    After importing into WebMethod what is the next action?
    do they want to send the file to PI?

  • How to generate XML file based on XSD in SSIS

    please provide step by step process to create xml based on XSD in SSIS  

    Hi hemasankar,
    In SQL Server Integrated Services, we can generate XML Schema (XSD) file based on a XML file with XML Source Editor. If we want to generate XML file based on a XSD file, we can use Generate Sample XML feature in Visual Studio. For more details, please refer
    to the following steps:
    Click on "XML Schema Explorer" or 'Use the XML Schema Explorer...' to open XML Schema Explorer in Visual Studio. 
    If your Schema file is valid and you are having elements, right-click on element and click on "Generate Sample XML", this functionality generates XML file in temp folder and open ups in the XML Editor.
    The following two document about how to generate XML file based on a XSD file are for your reference:
    http://msdn.microsoft.com/en-us/library/dd489258.aspx
    http://www.codeproject.com/Articles/400016/Generate-Sample-XML-from-XSD
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to generate Trace files

    Hi,
    I have a package under which there are some procedures and functions.
    I am supposed to generate the trace files for each run of the procedures in the package.
    How to generate trace files? Pls help me out.
    Thanks in advance
    Regards,
    Vijay

    I dont have access to production server to see the
    trace file. Is there a way to see the content of the
    trace file from client machine?No. At least there isn't one without additional work from your administrator. I remember I've seen somewhere some kind of solution when user_dump_dest is used as oracle directory (specific oracle object) in your db and then use either external tables or utl_file or something like that to read the trace file. Of course this assumes your DBA should do some work before.
    However I'd say that simply getting trace file from server is much easier :)
    Consider, Autotrace option in sqlplus. With the help
    of Autotrace set option, we can see the trace output
    on the sqlplus screen for the anonymous blocks. Different tool, different behaviour.
    Is there a way to see the trace for the stored
    procedures?Explained above.
    Gints Plivna
    http://www.gplivna.eu

  • Best Practices:: How to generate XML file from a ResultSet

    Hi all,
    Could someone please suggest the best practices of how to generate an XML file from a resultset? I am developing a web application in Java with Oracle database and one of my tasks is to generate an XML file when the user, for example, click a "download as XML" button on the JSP. The application is basically like an Order with line items. I am using Struts and my first thought has been to have an action class which will extend struts's DownloadAction and through StAX's Iterator API to create an XML file. I intend to have a POJO which will have properties of all columns of my order and line items tables so that for each order I get all line items and:
    1. Write order details then
    2. Through an iterator write line items of that order to an XML file.
    I will greatly appreciate for comments or suggestions on the best way to do this through any pointers on the Web.
    alex

    Use a OracleWebRowSet in which an XML representation of the result set may be obtained.
    http://www.oracle.com/technology/sample_code/tech/java/sqlj_jdbc/files/oracle10g/webrowset/Readme.html
    http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/jcrowset.htm

  • How to generate PDF file through reports using forms 6i

    Hi all,
    I am using oracle 10g with forms 6i and reports 6i.I need to generate pdf file where clicking a button a report should be called and the report should be generated as a .pdf file in the source i have specified(ex. d:\...).Is this popssible with forms?.how can i achieve this.Kindly help me with suitable answers.Thanks :)
    Regards
    Vids

    hi,
    regarding report, there is a dedicated report forum. you should post there.
    but answer for your question is form is nothing to do with the pdf generation. you can call the report from the as usual.
    In the report you should set the properties like
    destype to 'file'
    desname to 'path with file name'
    desformat to 'pdf'

  • How to generate output file of a certain report in a specified directory

    Hello everyone,
    I wanna know how to generate the output file of a certain report in a specified directory.
    Now, the output file directory = /produits/OA/OAS/production/prodcomn/admin/out/PROD_us15k1bp/
    I wanna to generate the output file of a report in this directory
    /produits/OA/OAS/production/prodcomn/admin/out/PROD_us15k1bp/FACTCLIENT
    Cause the output of this report is very large, so I don't wanna to put it in the output drectory standard which reduce the performance.
    Could you help me?
    Thanks a lot,
    Kinkichin

    Hi,
    I wanna know how to generate the output file of a certain report in a specified directory.See (Note: 158088.1 - Is Possible to Redirect the Concurrent Processes Output to a Specific Directory for a Specific Responsibility?).
    Cause the output of this report is very large, so I don't wanna to put it in the output drectory standard which reduce the performance.There should be no performance issues you place the output file in the same directory where other concurrent request output files are located.
    Regards,
    Hussein

  • How to generate Excel files in Oracle Reports

    Hi,
    I've already built a JSP using oracle reports and Deploy on the report service. I also add a button to the left of the JSP.The next thing I want to do is:when user click on the button, the system will prompt a excel file contains the same content as the JSP file.
    Can anybody teach me how to do? Thanks very much

    Hi Ni,
    It may not be possible to see the output of the SAME report in Excel as well. You will have to design another report which can open in Excel. You can follow this demo:
    http://otn.oracle.com/products/reports/htdocs/getstart/demonstrations/excel/index.html
    Then you can add an action to your button so that it opens the new report in a new browser window. This new browser window will open MS Excel and show the report inside Excel.
    The reason that you can't output the SAME report in HTML as well as MS Excel is because we use page contentType to specify the application that the browser should open the document in (the application can be MS Word, MS Excel, etc). For example,
    <%@ page contentType="application/vnd.ms-excel" %>
    But we can only specify one contentType for a JSP, so the report can either be viewed as HTML or inside MS Excel.
    Navneet.

  • How to read a file containing bitmap message in binary format

    Dear all,
    Can anybody tell me how to read bitmap message which stored data in binary format? The messages are stores like this :
    A file contain some messages along with these bitmaps in square zeroes.
    I want to again convert it into ASCII.

    Double post: http://forum.java.sun.com/thread.jspa?threadID=587497

  • How to read text file contain chinese character ?

    Hi XI Expert,
    I have scenario to read text file contain Chinese Character using sender file adapter. but every i was check from sxmb_moni all the chinese character looks different. and also the target file also i has changes.
    Please advise me how to maintaine the chinese character in PI 7.0 SP17.
    Thank You and Best Regards
    Fernand

    Hi,
    Refer these threads..
    Receiver file adapter corrupting characters
    Problem in converting special characters in input text file
    Here is one more useful guide..
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Regards,
    Sarvesh
    Edited by: Sarvesh Singh on Nov 17, 2008 3:47 PM

Maybe you are looking for

  • How can I preserve PDF files in iBooks during synch or iOS updates

    I have lost many important PDF files saved in iBooks collections as a result of upgrading the iOS on my iPad. How can PDF files and other free books, NOT purchased through iBooks store that are opened and stored and organized in iBooks collections be

  • Previously purchased books not showing in 'Purchased' collection?

    For some reason my purchased books (with the exception of those not yet downloaded to this machine), are no longer showing up in the 'Purchased' collection. Normally this wouldn't be an issue, but I have begun to rely on the collection to seperate th

  • How to use a queue with dynamic data

    When using a collector I have found that it significantly slows down my loop times. I am using LabView7.1 on a Dell PC with Windows XP.  If I use a queue with dynamic data do you think that will require less of my processor and allow for faster loop

  • How do I change the language in my online profile?

    Hi, I live in Italy and thus my profile was automaticaly set to Italian. How do I change it to english. This is annoying... best p

  • How do you find who's on your network

    I have 6 machines on my AP network for my office & home business. I do not have it password protected. But I have a neighbor who says he can pick up my signal on his laptop. Is there a way to find out who's machine is on your network?