How to add XML Header tag to XML output from XI?

Hi ,
My requirement is I need to genarate the XML according to client requirements.
I am able to genareate the XML with  <?xml version="1.0" encoding="UTF-8" ?>  as Header but client requiremetn is like this
<?xml version="1.0" encoding="UTF-8" ?>
<?Label MEXICO|PROFILE|2033169|SUCCESS?>
and hear MEXICO and 2033169 will change dynamically for every xml genaration. How it make as dynamical and how can I achive this.?
Plz guid me...
Thanks
Krishna

You can refer to the code provided in this thread XML Tag Issue: Need extra Line with Xml RooTag and Convert the IDOC XML file into single string? . Java mapping would do these steps -
a) Convert the incoming xml into string.
b) Modify it with some string function as per requirement.
c) Convert the string back to xml.
For more understanding about Java mapping, go through links provided in the thread java mapping .
Regards,
Sunil Chandra

Similar Messages

  • How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking

    How to add HTTP Header Response X-Frame-Options:SAMEORIGIN from OWA published via Forefront TMG 2010 to stop Clickjacking. I have put the IIS setting X-Frame-Options:SAMEORIGIN  on my Internal CAS Server. However as the OWA page is published through
    Forefront TMG 2010, the iFrame tag is not blocked when the page is first opened. Only when you login with your credentials to the OWA page inside the frame and the page reaches IIS on the Internal CAS it gets blocked. I want to block it in the first
    instance when it is opened from TMG.

    Hi,
    Thank you for the post.
    To modify the http header, please refer to this blog:
    http://tmgblog.richardhicks.com/2009/03/27/using-the-isa-http-filter-to-modify-via-headers-and-prevent-information-disclosure/
    Regards,
    Nick Gu - MSFT

  • Adding additional XML Header in Target XML structure

    Hi all,
    I have a requirement that i need add one additional XML header to target XML messages. At the moment i can see default XML header as ,
    <?xml version="1.0" encoding="UTF-8" ?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    But i would like to have one more additional header like below,
    <?xml version="1.0" encoding="UTF-8" ?>
    <?Siebel-Property-Set EscapeNames="false"?>
    <Test>
    <Add>Test Mesage</Add>
    </Test>
    Can some one help me to find a way to adding this additional header?
    Thanks in advance.
    Prasad Babu.

    Hi Prasad,
    Yes it is possible by Java Mapping. Please check my response for similar thread
    Re: Add XML header?

  • How to add a header to an InfoSpoke generated CSV

    Hello everybody,
    I would appreciate any suggestions on how to add a header line (with the field names) to the CSV-file generated by an InfoSpoke.
    Thanks for your help.
    Greetings,
    Martin

    if I recall correctly, that "header line" you're looking for, gets created automatically as a 2nd file... you could use a macro to combine both files in Excel?

  • How to add a header line to excel sheet?

    Hi Guru's
    I have download the scheduling agreement report in a excel sheet, I want to know how to add the header line  to that excel sheet.

    Hi
    See this sample code:
    Tables : zacg_cca,zacg_exsh.
    data: P_file like RLGRAP-FILENAME.
    Data: Begin of it_header occurs 0,
    Header(15) ,
    end of it_header.
    Data : begin of it_final occurs 0,
    ccode type zacg_cca-ccode,
    mat_cd type zacg_cca-mat_cd,
    ingr_desc type zacg_cca-ingr_desc,
    conc type zacg_cca-conc,
    quantity type zacg_cca-quantity,
    percqty type zacg_cca-percqty,
    flag ,
    APP_DATE type zacg_cca-app_date,
    rsamnos type zacg_cca-rsamnos,
    end of it_final.
    SELECTION-SCREEN : BEGIN OF BLOCK blk WITH FRAME TITLE text-000.
    select-options : s_Date for zacg_cca-app_date.
    SELECTION-SCREEN : END OF BLOCK blk.
    it_header-Header = 'Samp_code'.
    Append it_header.
    it_header-Header = 'Mat_code'.
    Append it_header.
    it_header-Header = 'Ingr_Desc'.
    Append it_header.
    it_header-Header = 'Conc'.
    Append it_header.
    it_header-Header = 'Quan'.
    Append it_header.
    it_header-Header = 'Perc'.
    Append it_header.
    it_header-Header = 'Flag'.
    Append it_header.
    it_header-Header = 'Date'.
    Append it_header.
    it_header-Header = 'Rsamnos'.
    Append it_header.
    it_header-Header = 'Mat_code'.
    Append it_header.
    select ccode
    mat_cd
    ingr_desc
    conc
    quantity
    percqty
    app_date
    rsamnos
    from zacg_cca into corresponding
    fields of table
    it_final where zacg_cca~app_date in s_date.
    loop at it_final.
    it_final-flag = 'T'.
    modify it_final.
    it_final-quantity = it_final-quantity * 2 .
    Modify it_final.
    endloop.
    CALL FUNCTION 'MS_EXCEL_OLE_STANDARD_DAT'
    EXPORTING
    FILE_NAME = 'E:\IT\P_FILE'
    CREATE_PIVOT = 0
    DATA_SHEET_NAME = ' '
    PIVOT_SHEET_NAME = ' '
    PASSWORD = ' '
    PASSWORD_OPTION = 0
    TABLES
    PIVOT_FIELD_TAB =
    DATA_TAB = it_final[]
    FIELDNAMES = it_header[]
    EXCEPTIONS
    FILE_NOT_EXIST = 1
    FILENAME_EXPECTED = 2
    COMMUNICATION_ERROR = 3
    OLE_OBJECT_METHOD_ERROR = 4
    OLE_OBJECT_PROPERTY_ERROR = 5
    INVALID_PIVOT_FIELDS = 6
    DOWNLOAD_PROBLEM = 7
    OTHERS = 8
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    regards
    Satish

  • How to add bad pixels to a DNG made from a CFA sensor raw data ?

    Hello all, I'm trying to build a proper DNG file from the raw CFA image acquired directly form an industrial camera.
    As usually there are a number of bad pixels around and I would like to mark them in the DNG so they can be correctly interpolated when the image is processed.
    In the latest DNG SDK (1.4) I've only found this rather thin references:
    "Defective Pixels
    There are two ways to deal with defective pixels in DNG.
    The first is to map out (interpolate over) the defective pixels before storing the raw data in DNG.
    The second is to include a bad pixel fixing opcode in the OpcodeList1 tag."
    OK, as each program/customer/etc. seem to have its own ( best ) algorithm to interpolate the bad pixels then OpcodeList1 it is.
    But then I've got this: FixBadPixelsConstant and I'm not clear about its usage, especially BayerPhase, is the same BayerPhase that is specified as a global property of the CFA or it is something separate and what ?
    Also is there some "industry standard" value for the Constant that will make more likely the established programs to process correctly the image ?
    And this Constant value is unique per DNG or can it be more ot them added, i.e. to somehow characterize the "badness" of the pixel, like reduced sensitivity, stuck at 0/max, etc ?
    In the end if somebody can share an one-liner on how to add programatically this tag using the SDK I'll be very grateful.
    Sorry for my newebie questions and many thanks for your help.

    Hello Dear
    Look FB60 screen has two parts :
    The one in which you enter information related to vendor is Header Level, in this case you already assign Personnel No. in Vendor Master so no field is required as Personnel no. will be picked up from Vendor Master level.
    The Other is line item level is bottom half part, if you want to assign personnel no. at Expense G/L level then if you scroll right you will find a field for Personnel no. If you can't see the field check your setting at OBVV for the field status group you assign to particular Expense G/L.
    Hope you Understood
    Cheers
    IMK

  • How to add my video library to iPad g3 from MacBook Pro?

    How to add my video library to iPad g3 from MacBook Pro?

    What sort of videos are they, and what app do you want to sync them to ? If they were taken with your camera and they are in a format supported by the iPad, then you could sync them to the Photos app - with the iPad connected and selected on the left-hand side of your computer's iTunes, you can use the Photos tab on the right-hand side of iTunes to sync photos and videos (there is an 'include videos' tickbox on that tab) to the Photos app.
    Or you can sync them to the Videos app. If you can add them to your iTunes library (File > Add To Library) you can then use Movies tab (instead of the Photos tab) to sync them to the Videos app. If you can add them to your library but they don't sync over because they aren't in a supported format then try doing Advanced > Create iPad Version and then try syncing those versions.

  • How to remove the header tag in the XML data ?

    Hi All,
    I am sending an XML data from SFTP to Proxy, in that I want to remove the header tag (first tag) from the xml, while loading the data. how to do that ?

    Hi,
          It is not about the thing that, whether your source is XML or flat file. If you dont want some thing in your source file , dont consider it and dont map it with your target structure. think that, your not getting the header in your source.  What is the header here.
    <Emp_details>
    <Emp_Id> Employee No </Emp_Id>
    <Emp_Name> Employee Name </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 1234 </Emp_Id>
    <Emp_Name> xxxx </Emp_Name>
    </Emp_details>
    <Emp_details>
    <Emp_Id> 5678 </Emp_Id>
    <Emp_Name> yyy </Emp_Name>
    </Emp_details>
    you have two fields under node Emp_details. What do u want to avoid here?
    Regards,
    Reyaz

  • How to add a digital signature in xml publisher report

    The problem is: There is a existing pick slip report.This is a xml publisher report and the data source is RDF. We have to add digital signature there. Now this signature is stored in a table with type Long Raw and format BMP. XML Publisher do not support Long Raw and BMP format. It supports BLOB and jpg format.
    Could you please guide how to add this signature in the existing RDF with datatype as BLOB and format as jpg.
    Please provide the steps with example.

    Hi,
    Have a look at this thread.
    Implementing electronic signatures on an existing AP check run
    Re: Implementing electronic signatures on an existing AP check run
    Regards,
    Hussein

  • How to add extra blank space in xml

    I open the xml file in notepad I get this
    <XXON_EXT_BANK_ACCOUNT_NAME>創名聯合會計師事務所                                        </XXON_EXT_BANK_ACCOUNT_NAME>
    But when I open the xml file in html format the blank space is gone.
    How can I add extra blank space in xml?

    Hi
    Why do you need the extra space for?
    This difference in display that you see between your browser and notepad/notepad++
    will not affect your generated report.
    Bogdan 

  • How to add styles to image in XML view ?

    Is it possible to add styles to Images in XML view ?
    <Image alt="alternate text " src = " " />
    I tried adding sytle= "align : right " but its not working. I just want to align this element in the view to the right.

    Hi Micheal,
    Pleas see the below code.
    View:
    <core:View xmlns:core="sap.ui.core" xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m"
      controllerName="testing.imageXml" xmlns:html="http://www.w3.org/1999/xhtml">
      <Page title="Image">
      <content>
      <Image id="img1" alt="alttextimage" src="images/img1.jpg" />
      </content>
      </Page>
    </core:View>
    Controller:
    onBeforeRendering: function() {
      this.getView().byId("img1").addStyleClass("myimage");
    Index.html :
    <!DOCTYPE HTML>
    <html>
      <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta http-equiv='Content-Type' content='text/html;charset=UTF-8'/>
      <script src="resources/sap-ui-core.js"
      id="sap-ui-bootstrap"
      data-sap-ui-libs="sap.m,sap.ui.commons"
      data-sap-ui-theme="sap_bluecrystal">
      </script>
      <script>
      sap.ui.localResources("testing");
      var app = new sap.m.App({initialPage:"idhome1"});
      var page = sap.ui.view({id:"idhome1", viewName:"testing.imageXml", type:sap.ui.core.mvc.ViewType.XML});
      app.addPage(page);
      app.placeAt("content");
      </script>
      <style>
      .myimage{float:right !important; width:300px; height:200px;}
      </style>
      </head>
      <body class="sapUiBody" role="application">
      <div id="content"></div>
      </body>
    </html>
    Output :
    Regards,
    KK

  • How to add a textline to an xml structure using xslt

    Hi,
    I am having a requirement where i need to add a textline to an xml.
    scenario: IDOC-File  and output format is an xml.
    Output should be like this:
    &&##AOC0MB000#AD15543390#BOIFCO#Z
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <messages>
         <batch>0800062844</batch>
         <message>
              <type>VPR</type>
              <action>A</action>
              </body>
         </message>
    </messages>
    The line that has been added to xml is the data that will be coming from IDOC. How can we append the textline to the xml using xslt.Will document() in xslt works for doing this?

    The required format in ur scenario is not an xml format, so u should not save the file in xml format. U may write an adapter module at receiver to achieve this.
    How can we append the textline to the xml using xslt
    This is not possible as the output of xsl transformation is an xml file.
    Regards,
    Prateek

  • Delete xml messagetype tag and xml versioning tag in target xml file

    Hi experts.
    i want to delete the xml version, starting (<MT_ZMPSSERRMSGMST_SEND>*and ending </MT_ZMPSSERRMSGMST_SEND> tags in below message.
    here i am bold the tags which i want to delete. please help me how to delete this.
    <?xml version="1.0"; encoding="UTF-8"?>
    <MT_ZMPSSERRMSGMST_SEND>
       <MESSAGE>
          <TABLENAME/>
          <ACTION/>
          <RECORD>
             <ERRORID/>
             <ERRCLASSID/>
             <SHORTDESC/>
             <DESCRIPTION/>
             <RESOLVE/>
          </RECORD>
       </MESSAGE>
    </MT_ZMPSSERRMSGMST_SEND>

    Hi Srinivas,
    You can delete the required content of the XML by editing the XML.
    Develop a custom adapter module and use the below code to edit the xml and deleting the highlighted content
    // to read the input XML
    strData = xmlData.getText();
    // get the length of <?xml version="1.0"; encoding="UTF-8"?> <MT_ZMPSSERRMSGMST_SEND>
    int strheaderlength = (strData.substring(0,strData.indexOf("<Message>")).length());
    // read the data from <MESSAGE>  to </MESSAGE>
    String payload=strData.substring(strheaderlength,strData.startIndexOf("</MT_ZMPSSERRMSGMST_SEND>"))
    // set the new payload to xmlData
    xmlData.setText(payload);
    appreciate if useful

  • How to add XSLT processing tag?

    Hello,
    I am using the following codes to generate xml with xslt processing tags.
    However it does not working. That is, it does not add the xslt processing
    tag into xml outputs. I am using 1.6.x. I must be doing something wrong?
    Document doc = db.newDocument();
    Element root = doc.createElement("myroot");
    doc.appendChild(root);
    ProcessingInstruction pi =
         doc.createProcessingInstruction("xml-stylesheet",
         "type =\"text/xsl\" href=\""+xslt+"\"");
    doc.insertBefore(pi, root);
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    OutputFormat format = new OutputFormat(doc);
    XMLSerializer serial = new XMLSerializer(pw, format);
    serial.asDOMSerializer();
    serial.serialize(doc.getDocumentElement());
    pw.flush();

    Instead of adding processing instruction directly inside DOM object, add the processing instruction while serializing XML like this
    Document doc = db.newDocument();
    Element root = doc.createElement("myroot");
    doc.appendChild(root);
    //ProcessingInstruction pi = doc.createProcessingInstruction("xml-stylesheet",
    //     "type =\"text/xsl\" href=\""+xslt+"\"");
    //doc.insertBefore(pi, root);
    StringWriter sw = new StringWriter();
    PrintWriter pw = new PrintWriter(sw);
    OutputFormat format = new OutputFormat(doc);
    XMLSerializer serial = new XMLSerializer(pw, format);
    serial.asContentHandler().processingInstruction("xml-stylesheet","type=\"text/xsl\" href=\"users.xsl\"");
    serial.asDOMSerializer();
    serial.serialize(doc.getDocumentElement());
    pw.flush();or use an alternate serializer like this one (coming from [http://exampledepot.com/]
        // This method writes a DOM document to a file
        public static void writeXmlFile(Document doc, String filename) {
            try {
                // Prepare the DOM document for writing
                Source source = new DOMSource(doc);
                // Prepare the output file
    //            File file = new File(filename);
                  StringWriter sw = new StringWriter();
                Result result = new StreamResult(System.out);
                // Write the DOM document to the file
                Transformer xformer = TransformerFactory.newInstance().newTransformer();
                xformer.transform(source, result);
            } catch (TransformerConfigurationException e) {
            } catch (TransformerException e) {
        }  

  • How to print between head-Tags of a Portal component

    Hello,
    is it possible to print between the -Tags of the generated HTML-Code? I need to insert a JAVAScript between the tags.
    Currently i am simply using the Writer-Object in the doContent() to print out the HTML-Code. But i found nothing how to access the head?
    With best regards
    Edited by: Björn Karpenstein on Aug 19, 2008 9:12 AM

    Hi,
    One way of doing this is by creating a new Servlet Responce in doContent method. This way you can set the head tag by yourself.
    Here is the code:
    // get the reference to the ServletResponse (exclusivly) and set the content type to HTML                         
    ServletResponse sResponse = portalComponentRequest.getServletResponse(true);                                                    
    sResponse.setContentType("text/html");                                                                           
    // get the reference to the PrintWriter                                                                         
      PrintWriter writer = sResponse.getWriter();                                                                               
    // write the HTML header                                                                               
    writer.write("<html><head></head><body>\n");
    Check if this suites your requirement, if not let me know.
    Regards,
    Praveen Gudapati

Maybe you are looking for

  • Import xml file from server to itab

    Hi all, I have a little issue loading data from xml file in server into my itab. With my file in local (C:\example\example.xml) works fine, but if try this with the same file in the server (e:\example\example.xml) dont work. This is my code resume. T

  • Hyper-V on Windows 8.1 64 bit, "Could not send keys to the virtual machine"

    Hi, I newly installed Windows 8.1 (not an upgrade, fresh install from corporate network) on a Dell Precision T7600 workstation and enabled the Hyper-V feature with the matching management. I created a couple of 2 GB RAM, 2 virtual CPUs VMs and am try

  • Data storage in aggregates,

    Hi Gurus,   Good morning. can any one help me in this issue please. aggregates are the subsets of our infocubes. then where the data is stored in the aggregates. do aggregates have fact tables. if fact tables are present in the aggregates then what a

  • Empty Folders on Time Capsule

    Is there a way for me to find empty folders on my time capsule without looking in each one? I have all my music on there and know some of the folders/albums contain no files/songs. Thanks!

  • Qmaster Crash

    Trying to compress. Getting error message "Cannot Submit Batch - Unable to Connect to Background Process" Qmaster crashes - Any ideas how to solve?