Changing the XML Structure in "Submit as XML"

Dear all,
We have two PDF Templates which are submitted via a WebService using Submit as XML. For both templates we need the same structured XML output.
Form 1 has the hierarchy like this (all subforms):
Company
Subsdiary
Responsibles
Footer
so the xml looks like
<creditrequest>
<company>...</company>
<subsdiary>...</subsdiary>
<responsible>...</responsible>
<footer>...</footer>
</creditrequest>
Form 2 has the hiearchy like this (all subforms):
Responsibles
Subsidiary
Company
Footer
and the xml looks like
<creditrequest>
<responsible>...</responsible>
<subsdiary>...</subsdiary>
<company>...</company>
<footer>...</footer>
</creditrequest>
So my question is how can influence the XML output order without changing the PDF hiearchy. This way I can change the XML output for Form 1 or Form 2 and both files would have the same XML structure to submit.
I have checked the presubmit event and the javascript API to change XML string programmaticly but I couldn't find any possiblity to read/write the XML to submit.
Thanks,
Koray

You can use JDOM and DOM. They are classes that load the XML File on memory and then you can modify it. I strongly recommend JDOM.

Similar Messages

  • Changing the directory Structure of Jsp and web.xml files

    Hi,
    I am using the JDeveloper 11g preview. Can any one tell me how to change the Jsp and web.xml files ( not in WEB-INF directory of the application) to another directory.
    Thanks in Advance
    Gopal

    Hi Frank,
    Is it possible for me to change the folder structure which JDeveloper is providing for web project?
    By default JDeveloper is giving the following folder structure.
    In the project's root folder there is a public_html and src folder along with .jpr file.
    In public_html folder thre is an WEB-INF folder and a jsp file
    In WEB-INF folder there is an classes folder along with web.xml file.
    I need to have the following folder structure :
    The WEB-INF folder should be in root folder of project not in public_html folder
    src folder must be in WEB-INF folder.
    Thanks in Advance
    Anil Golla

  • How to change the default structure when exporting data in CSV format?

    Hello,
    can some one tell us how to change the default structure in CRM when exporting lists in CSV format (with Option "Always use unformatted list format (CSV) for download" ? Because we want to add a new structure for our own -is it possible ?
    If it is possible where can we find these structure ? In the blueprint customizing ?
    Thank you very much,
    Christian

    There is a workaround to move from 1.5 version to the older 1.4 version. But this could be specific to the browser setting the JRE version.
    Excerpts from sun docs:
    However, a user can still run older versions. To do so, launch the Java Plug-in Control Panel for the older version, then (re)select the browser in the Browser tab.
    Example:
    Assume you are running on Microsoft Windows with Microsoft Internet Explorer, have first installed version 1.4.2, then version 5.0, and you want to run 1.4.2.
    Go to the j2re1.4.2\bin directory where JRE 1.4.2 was installed. On a Windows default installation, this would be here: C:\Program Files\Java\j2re1.4.2\bin
    Double-click the jpicpl32.exe file located there. It will launch the control panel for 1.4.2.
    Select the Browser tab. Microsoft Internet Explorer might still appear to be set (checked). However, when 5.0 was installed, the registration of the 1.4.2 JRE with Internet Explorer was overwritten by the 5.0 JRE.
    If Microsoft Internet Explorer is shown as checked, uncheck it and click Apply. You will see a confirmation dialog stating that browser settings have changed.
    Check Microsoft Internet Explorer and click Apply. You should see a confirmation dialog.
    Restart the browser. It should now use the 1.4.2 JRE for conventional APPLET tags.
    Details are here
    http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/jcp.html
    My system (Windows XP) has the version 1.5_09 set as the default. However i just installed JRE 1.5_06 and would like to revert back to _06 as the default JRE..
    Will update if i find more information

  • How to restrict the user to change the project structure but not the documents?

    Hi,
    I have created one project assigning different users in Solution manger. I want to risitrict some of the users to change the project structure but simultaneously allwoing the project documents to be created, edited or deleted using solar01 under Project documentation tab. For that I have followed the steps provided in the follwoing link.
    http://wiki.scn.sap.com/wiki/display/SM/Howto+Restrict+Changes+to+Project+Nodes+to+Assigned+Team+Members
    I am able to restrict the users to change the project structure, but I am not able to allow access to the project documents. It gives me the message "You are not authorised to change the project". This fulfills my one of the requirements. But, Is there any way  to restrict the user to change the project structure but not the documents?. Any help will be apperitiated.
    Thanks,
    Rutvik Uapdhyay. 

    Hi Rutvik,
    Basically there are 2 different authorization role ...you should look for and customize as per requirement in Z* namespace.
    role  - SAP_SOLAR01_ALL
    this take care of objects in Solar01 like tab access etc
    role -SAP_SOL_KW_ALL
    this takes care of entire documentation within solman
    hope this helps
    Regards
    Prakhar

  • Changing the extract structure MC02M_0ITM

    Hi,
    When I am trying to change the extract structure MC02M_0ITM, I am getting the following error:
    "struct. from appl. 02 due to open v3 proc. not changed -> Long text" , "Message No. MCEX 140". All I was doing  was adding more fields from communication structure to extract structure and I am getting above error message. Can someone shed some light on that. Appreciate your help. Thanks.
    Wen.

    Hi Wen
    You have to
    1) Clear LBWQ Queues if you are using Queued delta
    2) Move all records from RSA7 - two times to BW under delta update call from BW - so that the records stored for repeat delta are also emptied
    3) Empty the statistical set-up table - LBWQ transaction in R/3
    then you can modify the structure in LO cockpit
    Arvind

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How can i change the windows structure into mac structure

    Before i had a mac i used my iPod on a windows computer. When i connect my iPod to my mac i see that i can only repair my iPod. I can't update . It sais that only Ipods with a mac structure can be updated.
    So is there a way to change the windows structure to a mac structure?

    You cannot change a Windows iPod into a Mac iPod without restoring it, which erases its contents. To restore it, use the repair button you saw.
    (24236)

  • Changing the std structure

    hi
    I am changing the std structure PRODHS
    so I have created the domain zprodh1and I need to add it to std data element prodh1.
    I have given the access key and entered in change mode for the data element ,then it is showing in display mode ,I am unable  to change it to change mode to do necessary changes to the data element(toreplace std  domain with customized domain zprodh1)
    plz advice me
    thanks
    karna

    hi
    it is reqt of changing the product hierarchy level from 3 to 5.(PRODHS)
    it is a 18 character word with 5/5/8. Now I need to change to 3/3/3/4/5.
    so for that system already define 9 std data elements.I created teh respective domains with required lengths,now I am changing the data elements with these domains ,I am having the access key for  changing the data elements,but it is displaying in display mode,I am unable to replace  the std domain with customed one.
    regds
    karna

  • How can  change the folder structure in Bex Analyser to match the Web

    Hi Experts,
    When I create a report using the Web Analyser and save it in My Portfolio or Bex Portfolio, I can't find the report (or folders) in Bex Analyser.
    How Can i change the folder structure in Bex Analyser to match the Web Analyser?

    Hi Reddy,
           As u have created reports and saved it in BEx portfolio or My portfolio it will be saved in the KM folder which is known as Knowledge management folder for the KM services such as feedback,rating etc.So u cant view them when u open in web analyzer.U can only see them when u save in favourites or the roles folders.
                              Hope this helps
                         Sunil Reddy

  • Unable to change the Extract structure

    Hi All,
    In LBWE in R/3, I need to the change the extract structure MC02M_0HDR for DataSource 2LIS_02_HDR, by including some fields using the maintenance tab, After doing the required changes when i give "continue", the system is throwing me the following error -
    <b>"Struct. from appl. 02 due to open V3 proc. not changed".</b>.
    The long text of the error message shows -
    Diagnosis
    Changing the extract structure MC02M_0HDR of application 02 is not recommended as there are no V3 update entries for the update module MCEX_UPDATE_02.
    If an extract structure is changed for which there are still open V3 updates, these can no longer be updated and the V3 collective update is terminated.
    Procedure
    Start the V3 update and delete those update entries that are already incorrect. You will find these in the update overview.
    Kindly reply me as soon as possible in this regard.
    Regards,
    Manickavasagan

    Hello,
    in transaction sm37 in the source system, you will find a job starting with LIS-BW-VB_APPLICATION*. Please select the job related to your application and in the menu Job->Delete, delte the same which is in the released state ready to be executed.
    then you can go ahead and enhance the extract structure.
    Hope it helps.
    thanks

  • How to update/change the value of elements in an xml file?

    Hi Everyone,
    Could any one of u tell me how to update the value of elements in an XML file, using java? The reason is i want to use an XML file as a data source (i.e. more or less like a database), without using any RDBMS, for simple applications such as to read a record and update the record. By the way, my XML file will have only one record, such as the current weather information, with fields such as temperature, humdity etc. for 1 city only.
    Thanks in advance.

    Here is a solution how to check a particular value or element name in an xml and update the changes e to an xml.
    Sample.xml
    <URLConstructor>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <resource>hello</resource>
    <value>val</value>
    </application>
    </URLConstructor>
    XMLWriter.java
    package com;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.JDOMException;
    import org.jdom.input.DOMBuilder;
    import org.jdom.output.XMLOutputter;
    // used for printing
    import org.apache.xml.serialize.XMLSerializer;
    import org.jdom.output.XMLOutputter;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.util.Iterator;
    import java.util.List;
    class XMLWriter{
    public void update(File fileName)
    try {
              DOMBuilder domBuilder=new DOMBuilder();
              Document doc=domBuilder.build(fileName);
              Element element=doc.getRootElement();
              getChildren(element);
              writeToXML(doc,fileName);
              getChildren(element);
    } catch (Exception e) {
    e.printStackTrace();
         * @param doc
         private void writeToXML(Document document,File filePath)
                   XMLOutputter xmloutputter = new XMLOutputter();
                        try
                             FileOutputStream fileOutputStream = new FileOutputStream(filePath);
                             xmloutputter.output(document, fileOutputStream);
                             fileOutputStream.close();
                        catch (FileNotFoundException e)
                             e.printStackTrace();
                        catch (IOException e)
                             e.printStackTrace();
         public void getChildren(Element element)
                        if(!element.hasChildren())
                             return;
                        List childrenList = element.getChildren();
                        Iterator itr=childrenList.iterator();
                        while(itr.hasNext())
                             Element childElement=(Element) itr.next();
                             if(childElement.hasChildren())
                                       getChildren(childElement);
    //                                   System.out.println("Name "+childElement.getName());
    //                                   System.out.println("Value "+childElement.getText());
                                       if(childElement.getText().equals("hello") || (childElement.getName().equals("resource")))
                                            updateInfo(childElement,"New_Resource","AddedText");
         * @param childElement
         * @param string
         * @param string2
         private void updateInfo(Element element, String elementName, String value)
              element.setName(elementName);
              element.setText(value);          
    static public void main(String[] args)
    XMLWriter xmlWriter=new XMLWriter();
    xmlWriter.update(new File("c:/sample.xml"));
    After execution the file will be changed to
    <URLConstructor>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    <application name="cp_outage">
    <New_Resource>AddedText</New_Resource>
    <value>val</value>
    </application>
    </URLConstructor>
    Regards,
    Maheswar

  • Change the width of a field using XML

    Hi,
    I customize a report -set the width of a field- using XML but my
    data is truncated.
    Is it posible to set vertical elasticity for this field using
    XML?
    My XML file is:
    <?xml version="1.0"?>
    <report name="Rep" DTDVersion="1.0">
    <layout>
    <section name="main">
    <field name="F_1" source="CP_FIELD" textColor="red" width="0.5"/>
    <field name="F_2" source="CP_FIELD" width="0.5"
    alignment="center"/>
    <field name="F_3" source="CP_FIELD" width="1"/>
    </section>
    </layout>
    </report>
    I will appreciate any suggestion.
    Thank you

    You can change the size of the label, the text input box, and the field itself (border around the field in the design tab) - however there is one exception to being able to control the size of every field individually:
    Fields that have "Labels left" or "Labels right" that are also the first field in a row will all share the same label width.
    This is probably what you are encountering, this is how the fields work for now, those first in a row label left/right labels are all the same width.
    Thanks,
    Josh

  • Change the JSESSIONID name in sun-web.xml

    Hi,
    i saw the sun document, we can change the JSESSIONID to user defined name. This we can set in the sun-web.xml. I did this, but still it's using the JSESSIONID. How can we change the JSESSIONID to my own name. It will be very great if any one provide the solution.

    Could you please shed some light on what exactly you're refering to with the 'sun document' and the 'sun-web.xml' ?
    I'm only asking this because I've never heard of customizing the JSESSIONID to your own name in the web.xml ...
    BTW, the session id having to a unique identifier in order for session tracking to work correctly, I don't think it is such a good idea to be able to customize it to your own name, since names (even indian names) are far from being unique.

  • Help in changing the layout structure

    HI,
         I have created a layout from the <b>com.sap.portal.layout.framework</b>. I have selected the <b>WAandNavPanel.jsp</b> component. This layout has two colums which is WideNarrow, so i have to keep the Detailed Navigation (DTN) in the right side. Iwant to change the layout from WideNarrow to NarrowWide column layout ot keep the DTN in the Narrow left side column.
    how to change the layout from the WIdeNarrow to NarrowWide in the WAandNavPanel.jsp of the above mentioned par
    Thanks in advance
    Thx
    Saravanan

    Hi Saravanan,
    The JSP file describes the layout properties within the page. You should only replace the width values of the cells (<hbj:gridLayoutCell .... width="...") with the new values that you want.
    In the portalapp.xml file you should also change the description of the layout so it will match your new need (from "WideNarrow" to "NarrowWide").
    Please award points if you find this answer helpful.
    Regards,
    Amit.

  • Change the attribute structure of a dynamic query object

    Hi,
    As seen below, the attribute structure is a Z structure..
    I want to revert/change it to the std structure CRMT_BUPA_IL_HEADER_SEARCH
    I don't find any display/change buttons there...how do I achieve it?
    Thanks
    Madhukar

    HI Deepika,
    Thanks For your reply...
    My component - BT116S_SRVO.
    I have added Customer appointment date and customer appointment time and prodcut delivery statud date and prodcut delivery time in service order reslut screen.By using AET i have created all the feilds and ihave added same fields in result screen...
    Now in component - BT116S_SRVO , ihave implemented the logic of getter method of CUSTOMER appointment date is as follows.,Now date and time is coming..but it is perfromance problem na..so for avoid this issue we need to do in BADI implementation rite?could you please tell me the steps and how to implement the logic..please help
    GETTER METHOD
    DATA: current TYPE REF TO if_bol_bo_property_access.
    DATA: dref TYPE REF TO data,
    lv_guid TYPE crmt_genil_object_guid.
    value = ' '. "#EC NOTEXT
    IF iterator IS BOUND.
    current = iterator->get_current( ).
    ELSE.
    current = collection_wrapper->get_current( ).
    ENDIF.
    lv_guid = current->get_property_as_string( iv_attr_name = 'GUID' ).
    DATA : lr_current TYPE REF TO cl_crm_bol_entity,
    lr_parent TYPE REF TO cl_crm_bol_entity.
    * lv_guid TYPE crmt_genil_object_guid.
    DATA : lv_appt_type TYPE string.
    DATA : lv_time_from TYPE string.
    DATA:
    lt_header_guid TYPE crmt_object_guid_tab,
    lt_orderadm_h TYPE crmt_orderadm_h_wrkt,
    lt_orderadm_i TYPE crmt_orderadm_i_wrkt,
    ls_requested TYPE crmt_object_name,
    lt_requested TYPE crmt_object_name_tab,
    lt_appointment_wrk TYPE crmt_appointment_wrkt,
    ls_appointment_wrk TYPE crmt_appointment_wrk.
    INSERT lv_guid INTO TABLE lt_header_guid.
    ls_requested = 'APPOINTMENT'.
    INSERT ls_requested INTO TABLE lt_requested.
    * append ls_requested to lt_requested.
    CALL FUNCTION 'CRM_ORDER_READ'
    EXPORTING
    it_header_guid = lt_header_guid
    it_requested_objects = lt_requested
    IMPORTING
    * et_orderadm_h = lt_orderadm_h
    et_appointment = lt_appointment_wrk
    * CHANGING
    * CV_LOG_HANDLE =
    EXCEPTIONS
    document_not_found = 1
    error_occurred = 2
    document_locked = 3
    no_change_authority = 4
    no_display_authority = 5
    no_change_allowed = 6
    OTHERS = 7.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    READ TABLE lt_appointment_wrk INTO ls_appointment_wrk WITH KEY appt_type = 'ZCST_APT'.
    IF sy-subrc EQ 0.
    CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
    EXPORTING
    date_internal = ls_appointment_wrk-date_from
    IMPORTING
    date_external = value
    EXCEPTIONS
    date_internal_is_invalid = 1
    OTHERS = 2.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    ENDIF.
    Thanks
    Kalpana

Maybe you are looking for

  • How do I sync Google Contacts groups to iPhone

    I have all my Google contacts in different Groups.  I would like to have those same Google contacts groups synced to iPhone Contacts app. I followed instructions to sync iPhone Contacts with my Google account.  All my Google contacts did sync to iPho

  • How to use FM format element in number format model

    Dear all, Could anybody explain what is FM format element for in number format model? I read the documentation, it doesn't show a clear description as it those in Datetime Format Model section. regards, Valerie

  • Adapter Specific Message Properties not available in SP 15

    Hi In the <b>/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 blog Michal is saying that <b>Adapter Specific Message Properties </b> option in File adapter  will be avalible from XI with SP

  • Selecting an option in a SELECT feild

    lets say i have a form which allows me to edit details of products stored in a database. on this edit form, i have a select box where the user can indicate the color of the item. since it is an EDIT form, there is already data abotu the product in th

  • Audio stops playing on page turn

    hello, Hope any of you can help me. I added a audio file to a page, in a chapter. I want to the audio to start playing when the page is opened, I selected the "play on page load" option, BUT I also want to the audio to continue playing whilst I flip