Is it possible to add variable defined as xmltype to an xmldom node?

Hi,
I'm trying to produce a complex XML document that doesn't lend itself well to using SQL XML functions (xmlagg, xmlelement, etc.) because various disparate data needs to be pulled together via seperate queries and then stuck into the final document in the correct spots.
So I've resorted to using the convoluted pl/sql xmldom functions. What I'm wondering though is if it is possible to take data in an xmltype variable and somehow append it as a node within my xml document? Something as in the following pseudo code:
begin
doc := xmldom.newDOMDocument;
main_node := xmldom.makeNode (doc);
select xmlelement("Address",...) -- more xmlelements containing related address info (street, city, etc.)
into l_address
from ...;
new_node := xmldom.appendChild (main_node, xmldom.makeNode (l_address));
end;
If possible, this would save me a tremendous amount of time from having to code every element and attributes via the xmldom functions.
Thanks,
Alan

I've done the same scenario you are describing, shove XML defined in an XMLType into a DOMDocument. I munged the code to hide system specific references so the code works, just not as pasted here. The document is being built in o_response_doc and goes after the node previously built in l_rsp_msg_nd. The input is l_xmltype. May be a better way but I never found one and came up with this based on the Oracle documentation and trial and error.
    -- Convert the XMLType to a DOMDocument so we can extract the needed node
    --  and insert it into the response DOMDocument
    l_temp_domdoc := dbms_xmldom.newdomdocument(l_xmltype);
    l_inq_nodelist := dbms_xmldom.getelementsbytagname(l_temp_domdoc,
                                                       'DesiredXMLTypeNodeName');
    l_inq_nl_len := xmldom.getlength(l_inq_nodelist);
    IF l_inq_nl_len > 0 THEN
       -- Take the node above and adopt it into the response document
       l_temp2_nd := dbms_xmldom.importNode(o_response_doc,
                                            dbms_xmldom.item(l_inq_nodelist, 0),
                                            TRUE);
       -- Remove the a: namespace that was autoadded.  (this was defined in the l_xmltype XML)
       dbms_xmldom.removeattribute(dbms_xmldom.makeelement(l_temp2_nd),
                                   <ns_pfx>,
                                   <ns_uri>);
       -- Put the node in the correct position in the response document                                          
       l_temp2_nd := xdb.dbms_xmldom.appendChild(l_rsp_msg_nd, l_temp2_nd);
    END IF;
    dbms_xmldom.freeDocument(l_temp_domdoc);

Similar Messages

  • It is possible to add a defined sized Digital Signature field at a certain location on the document using the Adobe SDK?

    I have a need to create a Digital Signature field of the same size, in the same location, on many PDF documents over and over.  I would like to do this automagically through the Adobe SDK if that is possible.  Has anyone done something like this before, and if so can you briefly describe how?  Thank you.

    You can do this most easily with JavaScript.

  • Is it possible to add a field to OKEK in configuration SCREEN?

    Hello SAPPERS,
    I would appreciate if someone could provide some input on the following issue.
    Is it possible to add a field to Define Account Determination for Internal Goods Movements (OKEK)?
    This table determines the GL accounts assigned when inventory is moved between plants.  Is it possible to add another column to the left hand side?  I would add the receiving plantu2019s VGCd, if possible.  Even better would be a profit center group (1100 for all 11xx profit centers for example).
    I know there are two ways to add field to the DB Table. They are INCLUDE and APPEND structure.
    Is it possible to append a field to table V_T8A00, and display it in config screen OKEK?
    Thanks for any advice

    Hello,
    On a transfer, the accounting treatment is different when the move is within the same division VS when it goes to another division. 
    When plant 1101 ships to plant 1102, we donu2019t want to post to account 360100.  When plant 1101 ships to plant 1301, we do want to post to 360100.  Having the receiving profit center group in the mix will enable this distinction.
    Thanks in advance

  • Is it possible to add a JToolBar to JSplitPane?

    When I try to add Jtoolbar to JSplitPane, it gives me the following exception:
    Exception in Thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: cannot add to layout: unknown constraint: null
    Is it not possible to add a JToolBar to a JSplitPane? Is it because I have not defined what is supposed to happen when the user clicks "next" or "previous" yet? What I ultimately want to happen is for something to move up in all the components of the split pane (it's a nested pane) when I hit "next," and to move back when i hit "prev" (buttons in the jtoolbar)

    I believe that you don't want to add the JToolBar to the JSplitPane, but instead you want to add the JToolBar to the Panel that holds the JSplitPane. For eg:
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Dimension;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JSplitPane;
    import javax.swing.JToolBar;
    class FuSwing1
        private JPanel mainPanel = new JPanel();
        private JSplitPane splitpane;
        public FuSwing1()
            JToolBar toolbar = new JToolBar();
            toolbar.add(new JButton("foo 1"));
            JPanel redPanel = new JPanel();
            JPanel bluePanel = new JPanel();
            redPanel.setBackground(Color.red);
            bluePanel.setBackground(Color.blue);
            splitpane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, redPanel, bluePanel);
            mainPanel.setPreferredSize(new Dimension(400, 400));
            mainPanel.setLayout(new BorderLayout());
            mainPanel.add(toolbar, BorderLayout.NORTH);
            mainPanel.add(splitpane, BorderLayout.CENTER);
        public JPanel getMainPanel()
            return mainPanel;
        public void setDividerLocation(double loc)
            splitpane.setDividerLocation(loc);
        private static void createAndShowUI()
            FuSwing1 fu1 = new FuSwing1();
            JFrame frame = new JFrame("FuSwing1");
            frame.getContentPane().add(fu1.getMainPanel());
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.pack();
            fu1.setDividerLocation(0.6);
            frame.setLocationRelativeTo(null);
            frame.setVisible(true);
        public static void main(String[] args)
            java.awt.EventQueue.invokeLater(new Runnable()
                public void run()
                    createAndShowUI();
    }

  • Is it possible to add a column to the Item matrix in the ItemLookup form (C

    Hi,
    Is it possible to add a column to the Item matrix in the ItemLookup form (CFL or Find Lookup).
    I need to display a value in the newly added column if the itemgroup in that row matches a certain value , how can I achieve this.
    Thanks

    Hi,
    You may check this: Can we add CFL to the  system/form defined textbox?
    Please close your previous open thread.
    Thanks,
    Gordon

  • User Exit to add user-defined selection critieria onto VL10G

    Does anyone know how to add user-defined selection criteria onto <b>VL10G</b> - Sales and purchase order display screen? OSS note <b>524424</b> states the userexit to transfer user-defined selection criteria from the selection screen to the report but no information on how to add the selection criteria on the screen. Is that something can be done through configuration or user-exit?
    Any advice or sample is greatly appreciated.

    I was in a hurry, I forgot to add, the user role specific selection screen assignment to VL10G is done at "delivery scenario" level
    The delivery scenarios that are predefined in the system can be found under Logistics Execution -> Outbound Process -> Goods Issue for Outbound Delivery -> Outbound Delivery -> Create -> Collective Processing of Documents for Shipment.
    You can make the following settings in a delivery scenario:
    <b>Selection screen</b>
    You can use the selection screen parameters to define the appearance of the selection screen used to select the delivery list.
    There are three combinations of selection parameters available that each include a different number of tabs.
    A long selection screen with no tabs
    A selection screen with three tabs
    A selection screen with six tabs
    The selection criteria is the same on all three screens in the standard system, it is simply arranged differently.
    This parameter also triggers scheduling of the report for processing the delivery list, with the same three available tab options.
    Customer enhancements are also possible in the LV50R_PREFZ1 program, which should be triggered from a delivery scenario.
    <b>User role</b>
    In the standard system, a predefined user role is assigned to each delivery scenario. If necessary, you can copy these user roles into your own user roles, make changes as required, and then assign them to a delivery scenario of your choice.
    If the user role assignment for a delivery scenario is changed in Customizing, the new settings are valid for all users that carry out this delivery scenario.

  • Is it possible to add automatic insertions in a RH 7 template?

    I'm new to RoboHelp and to HTML altogether, but learning quickly. I'm developing a help system with both General help and How to's. I was wondering if it possible to add automatic insertions in a RoboHelp HTML 7 template, as you would in a Word .dot with macros, or if I need to repeat creating tables and numbered steps all the time.
    Your support is greatly appreciated.

    Hi again
    Okay, clearer now what you need to accomplish.
    You could take a couple of approaches.
    Approach one - Create a topic and define a table. Configure as you would like to see it. Then when you need it, you open the topic containing the table, copy it and paste it where you need to use it.
    Approach two - Create a Table Template. Instructions for this are found on fellow Adobe Community Expert Peter Grainge's site at the link below.
    Click here to visit Peter's site
    Cheers... Rick
    Begin learning RoboHelp HTML 7 within the day - $24.95!
    Click here for Adobe Certified Captivate and RoboHelp HTML Training
    Click here for the SorcerStone Blog
    Click here for RoboHelp and Captivate eBooks

  • Can I Add User Defined Tab Dialog From just like kTextFrameOptionsDialogBoss?

    Can I Add User Defined Tab Dialog At Build-In kTabSelectableDialogBoss, just like kTextFrameOptionsDialogBoss?
    If it is possible, How?
    Pls Help Me...

    Impliment IUnitOfMeasure with custom units.

  • Is it possible to add pushbuttons to the SAP Easy Access Front Screen ?

    Dear gurus.
    Is it possible to add pushbuttons to the SAP Easy Access Front Screen when a person logs in?
    if so how can we achieve it ?
    Regards
    Saad Nisar.

    SAP Standard Menu
    SAP Standard Menu helps you in including your own menu within the Sap menu bar .It helps us in making own function related to the program, sub routines or any transaction. The main advantage of this standard menu is that u can even modify this menu according to your client or project needs.
    The main advantage of the SAP Menu bar is that it can find specific transaction without knowing the transaction code.           SAP Menu is determined by the task you are doing in the SAP R/3 system.
    Menu are like Drop down list ,as when you click on any particular menu item, further options will be displayed.
    You can have as many as standard menu bar in the SAP Standard menu.
    The SAP Menu Bar contains the menus for the functional and administrative areas of the system.
    Features of the Sap Menu Bar are as Follows
    Menu     Description
    System     It contains all the function that affect the system as a whole such as Create session, User profile and Log off
    Help     This menu provide various types of online help that are available in R/3 system
    Following are the Steps how to modify the SAP Standard Menu Bar
    Transaction code SE41 is used for displaying the Menu Painter Menu. 
    Now in the Program field ,Type the MENUSYST  as the Program Name.
    Now in the Status field choose the option MEN by using the F4 help .
    After choosing the MEN option for the Status field, click on the Change then the Following Screen will be displayed
    Click OK and move Forward , it is just Alerting that Menusyst is a user interface .
    After that the Following screen will appear with Modify Status Men in Program MENUSYST
    Double click on the Menu bar shown in the Left side of the Screen .Such as the Menu bar will open .
    Double click on the System such that list of menu will be displayed .
    Now you can See there  are two columns  present in the system menu ,One is Code column and other is Text column. Right Click on your desired location of these two column such that it will show the option.
    From the option menu choose the option Insert Entry . By choosing this option a new row is inserted in the System menu . when the New row is inserted then type Menu  in the code field and My Option in the Text Field as follows. Both the code field and the Text Field name depends on your requirments.
    Now Double click on the Menu of the Code field such that Function attributes window will open.
    In the fuction type choose the function type as T (Call a transaction).and then Click Ok.
    After Selecting the Function type . Click on the Ok button of the fucntion Attruibute Screen .
    After that activate the Function by selecting the Menu in the code field and click on the Fucntion Code button Present on the top of the Sap Screen .
    Now Save (Ctrl +S ) interface of the program MENUSYST  .
    Now Activate (Ctrl + F3) interface MENUSYST as follows .
    Now Come to the Initial screen of the Menu Painter i.e . SE 41 ,so as to test the modified SAP Statndard Menu ( by Pressing F3 )  and Type the Program As MENUSYST and status as MEN and then Click Test Button .
    After clicking the Test Button the Status Simulation Screen will appear , just click Excute button on that popup screen.
    Now the Menu Painter Intial Screen will appear such that you can test your function code there. Now Click on the System menu in the Menu Bar
    After clicking to the System Menu , the list of the option will open and our Customized /Modified SAP Menu will appear into it as follows .
    Now you can See that the My Option Menu appears on the Standard System Menu. There are various Advantages of the modification of the Standard Menu which are discussed as follows .
         Code Flexibility, As We can choose our own predefined Standard Menu fucntion in the Program as required by the client.
         Independency . Sap program is independent of various other supporting program that are supporting to the defined function.
         Ease of Code . More Uniformity is established between the Standard Menu function.We can include our own predefined fucntion module within this standard function module
    Deactivating of the SAP Standard Menu
    You can just move to the MENUSYST Prgram through SE41 Transaction Code . then Select the MENU option which you had customized and then click the Function Code again in the SAP screen.
    Then Message will be Displayed that Function MENU is Deactivated as follows .
    Now Save and Activate the interface MENUSYST. Test the Program using the Initial Screen SE41
    And check the System menu in the Menu bar ,then the My Option Menu is deactivated .

  • Is it possible to have user defined field in pick and pack manager

    HI,
    I would like to know whether it is possible to have user defined field in pick and pack manager row level.
    Manage user defined field there is only provision for <b>pick list</b> and not for <b>Pick and pack</b>.
    Regards
    Krishna

    The Pick and Pack Manger doesn't relate to any specific table (nothing saved to the database), so it does not make any sense having a userdefiend field on it. I would guess that you could add a column and bind it to a userdatasource (not a SAP database field), but if this make any sense depends on what you are trying to achive...

  • Is it possible to create user defined metrics in Grid Control 10.2.0.1 ?

    Hi,
    Is it possible to create user defined metrics(my SQL statement) in Grid Control 10.2.0.1
    (not 10.2.0.3) Linux/AIX ?
    Łukasz

    I am not sure if I am correct, but for reasons best known to them, Oracle replaced rather than add.
    Even if you want to do a smart search using the part# (e.g B16242-03) in oracle.com, you get a whole list of results, but when you click on them, you get http://www.oracle.com/errors/404.html
    I found this copy http://www.oracle.polcreate.pl/em.102/b16242/toc.htm

  • IS IT POSSIBLE TO ADD MULTIPLE ATTACHEMENTS?

    WHEN EMAILING ON IPAD, IS IT POSSIBLE TO ADD MORE THAN ONE ATTACHMENT? TWO OR MORE DOCUMENTS ON ONE EMAIL?

    The iPad requires you first to define the object you want to email and then open a send-mail page. Thus, natively you can only send one attachment. I looked at the app store and Mail2List allow sending up to six photos at once. AceMail allows sending multiple audio files and photos. I could not find anything to send more than one document.
    Also, please do not use all caps.

  • Is it possible to add an all time member to the time dimension

    We are on BPC 7.  Our time dimension has the normal Year, Quarter, Month rollup. 
    Is it possible to add an "All_time" member to the time dimension that would have all years rolling up to it or are our only choices Year, Halfyear, Quarter, Month, Week, or Day?

    TOTAL is not a valid selection for LEVEL.  Did you create this "TOTAL" manually some how?  I have seen "TOTAL" as a period but never a level.  Do you have a dimension file that you can get to work with this example in APPSHELL that you could share?
    According to the BPC Admin documentation it only comes with YEAR, HALFYEAR, QUARTER, MONTH, WEEK, DAY as valid options.  How do you get the TOTAL member added as a valid option for the LEVEL property:
    BPC Documentation Reference below:
    LEVEL
    Time can be a year, quarter, month, week or day. As described above, the PARENTH1 property is used to define the aggregation of the time periods.
    The LEVEL property is also very important in defining your time periods. You must have the correct Level (Year, quarter, month, etc.) for each member. You must follow the chronological format throughout the Time dimension. The correct format is:
    ·        YEAR
    ·        HALFYEAR
    ·        QUARTER
    ·        MONTH
    ·        WEEK
    ·        DAY

  • If is possible to add new local var to sequence from the outside?

    If is possible to add new local var to sequence from the outside?
    I mean insert a new local variable to Sequence.Locals list or via expression, or by LabView VI (Sequence Context). or any another way.
    Thanks.

    Hi,
    The simplest way would be to use the API TS method PropertyObject.SetValBoolean, PropertyObject.SetValNumber or PropertyObject.Set ValString. With the SequenceContext you create a PropertyObject using the method SequenceContext.AsPropertyObject, which you use as the reference for the the SetVal method.
    For the SetVal method, pass the full lookup string of your variable eg "Locals.MyString" and set the option parameter to 0x01 (insert if missing).
    If you are calling this from LabVIEW, then use the SetVal property VI.
    This will insert a varable into the Locals that is "in scope" of the step that is performing the task. 
    In the TestStand Help - "Using the API in Different Programming Languages" and in the TestStand User manuals there is more information to help you.
    This will only make a runtime version of your Local. ie when your sequencefile stop executing your Local will not exist in the Static version of the Sequence File.
    Hope this helps
    Ray Farmer
    Regards
    Ray Farmer

  • Is it possible to add new mappings for SRM?

    I am looking to replicate some of the "Request for Quotation" creation/management functionality from SRM in a custom application (for business/technical/ease-of-use reasons) and send the created RFQs over to SAP SRM. Can I use XI to send RFQs into SRM (I know I can retrieve them using XI for custom supplier apps, but can I send them in as well)?
    While reviewing the EBP mappings in Integration Builder, I see there is a mapping for RequestForQuotation_Create_Out, but not for RequestForQuotation_Create_In. Is it possible to add this mapping? Or in other words - <b>is it possible to create new mappings for SRM in XI that are in addition to the standard mappings that are shipped with SRM/XI? </b>
    Thanks for your help in advance.

    Hi Osvaldo,
      <i>I see there is a mapping for RequestForQuotation_Create_Out</i> --> I dont think you can find a mapping for the same. RequestForQuotation_Create_Out should be the name of the interface(outbound). What it means is you can have your own custom defined inbound interface and perform the mapping on your own in a new SWC. Pls update me if you can see a mapping for the same. Also you can have yor own interfaces and mapping in your SWC apart from the standard as suggested by Bhavesh and Abhy.
    Take care while desingning the interface for SRM part coz SRM has the ability to output in XML format. Check this functionality first and start designing your interface.
      Update us if you have more querries.
    Regards,
    Jai Shankar.

Maybe you are looking for

  • How to control a digital output signal using the DAQ assistant?

    I am using a USB 6251 DAQ board and would like to control a switch. I am gathering airflow, pressure, and acoustic data on the same board (analog input) and would like the switch to trigger when the airflow value is within a pre-determined range. Fin

  • Regarding Java proxy in PI 7.1

    Hi Folks, I want to implement the java proxy at sender side in one scenario and receiver side in another scenario. But when I open the IR> Goto Menu> Java Proxy Generation, it opens one pop up and asking the Archieve (you want to create new one or ed

  • 3k Screen Edition

    hey guy's im looking for a new notebook but noticed a few things witch give me doubts about how msi make their notebooks so have a few  question, 1. why is there only a 15" 3k edition and not a 17" 3k edition, 2. why does a 17" gaming notebook don't

  • SAP GRC 5.3 CUP Archiving Requests

    All, I have a question about archiving and re reviewing requests after they are closed (approved/rejected). Let's say I create a request, my manager performs a risk analysis and SOD violations occur, but my manager approves the request. If at some po

  • Windows 7 - No Safari Developer Certificate message in Extension Builder

    I have acquired and installed developer certificate for Safari 5 as per instructions provided along the way. But when i open Extension Builder, a red message appears on top saying "No Safari Developer Certificate" And it also keeps Install and Build