Need to merge xml o/p from different sources to generate BIP Report from OA page

Hi,
Currently in our product Quoting , we are using many VO queries to generate the Report
Now we have created one data template file to combine all VO queries to generate xml o/p
The problem we are facing is that we didn't added Contracts VO query in our DT file so we need to merge
xml o/p coming from DT file and Contracts VO and pass to Process Template XDO api to generate the report
Please tell how to merge the xml o/p in OAF ?

Thanks Shridhar for reply ,  you provided code for xml coming from two VO
but I am having scenario where getting one xml o/p from data template file and seconf xml o/p getting from contracts api as -
ByteArrayOutputStream l_docXML = new ByteArrayOutputStream(1024);
// Here getting xml o/p from DT file
l_docXML = (ByteArrayOutputStream)this.getDataTemplateXML(transaction,"ASO","ASOPD",parameters1,null);
// Here getting xml o/p from contacts api
ContractTermsXMLGenerator.writeXML(PrintQuote,
                    (OutputStream) l_conXML,
   true,
   documentType,
   new Number(params[8]),
   new Number("0"));
// code to merge two xml into one xml m_docXML
try{
             if (l_conXML.size() > 0)
                  DOMParser dp = new DOMParser();
                  l_docIP = new ByteArrayInputStream(l_docXML.toByteArray()); 
                  dp.parse(l_docIP);
                  XMLDocument xDoc = dp.getDocument();
                  l_conIP = new ByteArrayInputStream(l_conXML.toByteArray());
                  dp.parse(l_conIP);
   XMLDocument cDoc = dp.getDocument();
   Node cNode = cDoc.getDocumentElement();
                  if (cNode != null)
                       Node xDocConNode = xDoc.adoptNode(cNode);
                       Node conData = xDoc.createElement("CONTRACT_DATA");
                       conData.appendChild(xDocConNode);
                       xDoc.getDocumentElement().appendChild(conData);
                     xDoc.print(m_docXML);
                     writeLog("GenerateCLMDoc::XMLMerge Complete");
           catch(Exception e)
       writeLog("GenerateCLMDoc:: Doc contract XML Merge - " + e.getMessage());
                  throw e;
    finally{
                    l_docIP.close();
                    l_conIP.close();
Please check if it is correct code , do I need to change it with code provided by you
can we chat over any messenger ?
once again thanks for your reply

Similar Messages

  • XML and Web Service Data Source Missing in Crystal Reports for VS

    I would like to use a Web Service as the data source for a Crystal Report that will be running outside of my Visual Studio application.  So setting the data source to the web service in code is not possible.  My understanding is Crystal Reports has a connection (in the Database Expert under New Connection) named XML and Web Service.  Here you can select web service and enter the WSDL URL for the web service.  However it does not appear in the list for Crystal Reports for Visual Studio.  Does this connection type come with the Visual Studio version of Crystal Reports and if not is their a way to obtain it? 
    Thank you for your assistance.

    None of the bundled versions of CR have the driver. Reason is that the driver responsible for these connections requires the Java framework and I suspect MS would not be too pleased if we installed the Java framework. The stand alone versions, since they are not part of any bundle can and do install the Java framework and the driver. Note that even the latest release of CR - CRVS2010 does not have the driver as it essentially becomes a bundle or a VS2010 plug-in.
    So, the short of it is; you have to obtain a stand-alone version of CR. I'd recommend CR 2008 (12.x) as CRXI R2 will run out of support in June of this year.
    - Ludek

  • Need to merge similar charecterstics comming from two sources

    Hi Experts,
    I have a requirement to upload data into BI from Two sources. one from ECC is business Sellout history data and from flat file is market sellout history data. Now one source has fields
    CALMONTH, Market, Sales Organization, Segment, Super Model, Model, Country Standard, Model Year, ZCOL, Power, Material No., Location, APO Version, Sell-Out History, UNIT
    Other source has fields
    Market,Model,Type Of Model.
    I need to upload this data to BI and merge Market, Model, as these fields are common in both the sources and display Type of model for the respective Market and Model.
    Can any one advice me how to proceed desgining this.
    Thanks in advance ...
    Santhosh.

    Hi
    An alternative to the above solutions, Create two DSOs and fields of the dsos should like below :
    DSO ECC :
    CALMONTH, Market, Sales Organization, Segment, Super Model, Model, Country Standard, Model Year, ZCOL, Power, Material No., Location, APO Version, Sell-Out History, UNIT, Type of Model
    Bold fields exists in DSO Flat file fields as well.
    DSO Flat file :
    Market,Model,Type Of Model.
    1. First load the data to the flat file DSO.
    2. while loading data to the DSO ECC you can populate the model type by writing an end routine to look up flat file DSO to find out the type of model using the condition DSO ECC- market = DSO-Flatfile- market & DSO ECC-Model = DSO-flatfile-Model.
    DSO ECC will have the merged data and DSO Flat file is used as a look up table in the end routine of the transformation.
    Also note that you can also cube in place DSO ECC if you dont want to stage data.
    Hope it helps.
    Regards
    Sadeesh

  • Need to Merge my OUTLOOK Mail from Carbon Copy to my OUTLOOK on my MBA under LION. How?

    Hi
    Not sure where to go so I am hoping APPLE can help.
    I have a removable Hard Drive with a CARBON COPY of my MAC BOOK PRO running Snow Leopard. I no longer have the SNOW LEOPARD MAC BOOK PRO, Only the HARD DRIVE with CC.  I now have a new Mac Book Air with Lion and was planning to export the SNOW LEOPARD OUTLOOK emails to import into outlook on the LION MBA, but now realize I can not boot from the CC with SNOW LEOPARD using a LION MBA.
    Can someone tell me how I can get the MAIL FOLDERS off the Snow Leopard HARD DRIVE and import into the LION MBA?
    THanks
    Art

    I suggest you post your question on Microsoft's own forums for their Mac products, as it's their software you're having issues with and that's where the MS experts hang out.
    http://answers.microsoft.com/en-us/mac

  • Need help linking spry tabbed panel from external page

    Could use some help.  I need to link to a specific spry tabbed panel on page "A" from a link on page "B"  I have tried several "solutions" on the web and had no luck.  When I add the code needed at the bottom of the code where you initiate the instance, it stacks the content of ALL panels in the first panel, and renders the tabs inoperable.  This is a key feature I need in a new site being developed.

    I need to link to a specific spry tabbed panel on page "A" from a link on page "B"  I have tried several "solutions" on the web and had no luck. 
    Have you tried http://foundationphp.com/tutorials/spry_url_utils.php ?
    When I add the code needed at the bottom of the code where you initiate the instance, it stacks the content of ALL panels in the first panel, and renders the tabs inoperable.
    Depending on what the code looks like, it can do all sorts of things.
    Please be reminded that the best way for us to help you is by you supplying a link to your site with a one sentence description of the problem.
    Gramps

  • Need Urgent help in passing items from one page to another

    Hi
    I have a page with item "X" holding a value. The page displays a report in which one of the fields "Devide name" is a link to Interface page. By clicking the link on "Device name" Im passing the value device name to another page and displayes all the interfaces under the device.
    But I need to access the variable "X" also in the second page i:e Interface page.
    Can somebody help me on this?
    ~rose

    The problem is is P29_IV_SERVERS is defined in page 29 and Im using
    UPDATE PROVISION_IV
                   SET PROVISION_STATE_ID = 2,SERVER_ID = :P29_IV_SERVERSin page 50. That was my initial issue. As suugested I used the '&' and its throwinf error..
    Here is my complete code.
    DECLARE
    LATEST_TASK_ID Number;
    TASK_NAME_IV varchar2(50);
    --TASK_NAME_ISM varchar2(50);
    SELECT_FLAG_IV Number:=1;
    --SELECT_FLAG_ISM Number:=1;
    DS_COUNT_IV Number;
    --DS_COUNT_ISM Number;
    DS_ID_IV Number;
    --SELECT_FLAG_IV:=1;
    --SELECT_FLAG_ISM:=1;
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F10.count
    LOOP
        UPDATE PROVISION_IV
                   SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = :P29_IV_SERVERS
                   --SET "PROVISION_STATE_ID" = 2,"SERVER_ID" = 2
                    WHERE
                    TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    SELECT DELIVERED_SERVICE_ID INTO DS_ID_IV FROM DELIVERED_SERVICE
    WHERE DELIVERED_SERVICE_NAME=APEX_APPLICATION.G_F11(i);
    SELECT COUNT(*) INTO DS_COUNT_IV FROM DELIVERED_SERVICE_MAPPING 
        WHERE TERMINATION_ID=APEX_APPLICATION.G_F10(i);
    IF DS_COUNT_IV=0 THEN
        INSERT INTO DELIVERED_SERVICE_MAPPING
        (ID,
        CUSTOMER_ID,
        EQUIPMENT_ID,
        TERMINATION_ID,
        DELIVERED_SERVICE_ID,
        LAST_MODIFIED_BY,
        LAST_MODIFIED_ON)
        VALUES
        (DELIVERED_SERVICE_SEQ.nextval,
        NULL,
        NULL,
        APEX_APPLICATION.G_F10(i),
        DS_ID_IV,
        :APP_USER,
        sysdate);
        SELECT_FLAG_IV:=0;
    ELSE
        UPDATE DELIVERED_SERVICE_MAPPING SET DELIVERED_SERVICE_ID = DS_ID_IV,
        LAST_MODIFIED_BY = :APP_USER,
        LAST_MODIFIED_ON = sysdate
        WHERE TERMINATION_ID = APEX_APPLICATION.G_F11(i);
        SELECT_FLAG_IV:=0;
    END IF;
    END LOOP;
    IF SELECT_FLAG_IV=0 THEN
        IF :P29_CHECK_TASK_NAME_IV=1 THEN
            IF :P29_TASK_NAME_IV is NULL THEN
                TASK_NAME_IV:=:APP_USER||'_INTERFACE PROVISIONING_'||SYSDATE;
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                TASK_NAME_IV,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            ELSE
                INSERT INTO TASKS
                (TASK_ID,
                TASK_NAME,
                CREATED_BY,
                CREATED_ON,
                TASK_ACTION,
                TASK_STATE_ID,
                SERVER_ID)
                VALUES
                (TASK_ID_SEQ.nextval,
                :P29_P50_TASKNAME,
                :APP_USER,
                sysdate,
                5,
                1,
                2);
            END IF;
        SELECT max(TASK_ID) INTO  LATEST_TASK_ID from TASKS where CREATED_BY=:APP_USER;
        FOR i in 1..APEX_APPLICATION.G_F01.count
        LOOP
            INSERT INTO TASK_DETAILS
            (TASK_DETAILS_ID,
            EQUIPMENT_ID,
            TERMINATION_ID,
            TASK_ID)
            VALUES
            (task_detail_seq.nextval,
            :P29_TO_INTERFACEPAGE,
            APEX_APPLICATION.G_F10(i),
            LATEST_TASK_ID);
        END LOOP;
        END IF;
    END IF;
    END;I have the variables P29_CHECK_TASK_NAME_IV, P29_TASK_NAME_IV and P29_IV_SERVERS defined in page 29.
    But the above query is written in page 50, so I want to access the value of these variables as set in pahe 29.. :-(

  • Can DTD schema for a XML file be a data source to the Crystal Reports?

    Hi All,
    We are trying to generate a crystal report having XML file as a source. And we want to use the DTD schema for the source XML file.
    Please suggest whether DTD schema can be used for crystal reports or not.
    Thanks
    Sriram

    Hi Sriram,
    I think it should work.
    1) Use this pdf for your reference
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90faaea7-8e1e-2b10-e6a7-ea82e11d9e8b ]
    2)if in case it does not help you can convert existing DTD to XSD using this online converter
    [http://www.hitsw.com/xml_utilites/]
    and  then use for generating report from XML file.
    Regards,
    Jeetsinh Parmar.

  • Passing sysdate in milliseconds from OAF page to PL/Sql proc

    Hi All,
    I have a requirement wherein I need to pass SYSDATE in milliseconds from OAF page to the PL/SQL package.
    Basically I will be calling a PL/SQL api from AM . So here I need to pass SYSDATE in milliseconds as one of the PL/SQL proc parameters.
    How do you I go about this ?
    Any help is aprreciated.
    Thanks in Advance

    get the current database date by
    oracle.sql.date currentDate=OADBTransaction's method getCurrenctDBDate ()
    (OADBTransaction object can be obtained from AM Object itself).
    Now you may convert this currentDate to java date object.
    currentDateObjAsJavaDate=currentDate.toDate()
    now miliseconds (since1970, I remember so, please see documentation) =currentDateObjAsJavaDate.getTime();

  • How to merge XML-Data of two variables of different namespace?

    Hi all,
    I am facing a problem manipulating XML data in a BPEL process. As I didn't get any response on my question in the BPEL forum, I decided to post it again in this forum. I am not very familiar with using XML up to this moment, so please don't blame me if this turns out to be a stupid question.
    I have to combine information coming from 2 different sources (1st delivered by BPEL-client input "FileInfo", 2nd delivered by a ftp-adapter "FileData") for passing it to another service.
    So there are 3 XSDs (2 in, 1 out), each with a different namespace. As every structure is composed of several elements, I don't want to copy them one by one. But when copying a whole node including child elements, the target structure yields empty nodes, because the target child elements maintain the source namespace!
    Using 2 XSLT's works well for each input, but in combination, the last transformation deletes the information of the first one.
    So, the only way to merge the data I figured out by now, is to use a XSLT for each input, transforming it into 2 separate Variables belonging to the same namespace and then copying the complete nodes of the two variables into the target (which of course belongs to the common namespace as well).
    Although there is an inconsistent indexing of the namespaces (see example), happily all data can be accessed.
      <CommonData>
        <CommonData xmlns="http://TargetNamespace.com/CommonData">
          <FileInfo xmlns="http://TargetNamespace.com/CommonData">
            <Name>testfile2.txt</Name>
            <Size/>
            <DateReceived>2009-02-10T17:15:46+01:00</DateReceived>
          </FileInfo>
          <FileData xmlns:ns0="http://TargetNamespace.com/CommonData">
            <ns0:KOPF>
              <ns0:Id>1</ns0:Id>
              <ns0:Value>1</ns0:Value>
              <ns0:Text>Hier könnten Ihre Daten stehen -</ns0:Text>
            </ns0:KOPF>
            <ns0:POSI>
              <ns0:Id>1</ns0:Id>
              <ns0:Position>1</ns0:Position>
              <ns0:Value>1</ns0:Value>
              <ns0:Text>eins ----</ns0:Text>
            </ns0:POSI>
            <ns0:POSI>
              <ns0:Id>2</ns0:Id>
              <ns0:Position>2</ns0:Position>
              <ns0:Value>2</ns0:Value>
              <ns0:Text>zwei ----</ns0:Text>
            </ns0:POSI>
          </FileData>
        </CommonData>
      </CommonData>Now for the question:
    Is this really the only way to merge variables? As it took 4 operations to achieve this, it seems to be too complicated, and therefore too inperformant to me.
    BTW: In real life there would be up to 9999 positions with much more payload (in total up to several MBs) to be processed!
    Having full control of the namespaces in this case, I could think of using one namespace for all XSDs too. But would this be a better solution? Is there a golden rule on using namespaces relating to design issues?
    Any comments appreciated,
    cheers, Marco

    Well, if you only want to change namespace (no other changes) I would use a single generic XSL that changes the namespace for any XML document into a given target namespace, keeping the rest. That will require two transformation calls, but only one XSL. I'm afraid I don't have an example available, but if you google perhaps you can find it, I have seen it somewhere.
    Normally when you have different namespaces the contents differ as well, though, and what you really want is a merge function. There is a way to pass two documents into a single XSL and that is to use parameters. You pass one source document the normal way and assign the other converted to a string to a paramter. You must use an assign with processXSLT in BPEL, not a transform activity. The processXSLT really takes three arguments and the third contains the parameters. Now to the difficulty - in the transformation you need to change the string into a nodeset (an XML document). In the current XPath version used by the platform there is no nodeSet function, but it is possible to write one in Java. If you have it you can select from both documents while building the third. I don't have an example handy and yes it is a bit messy as well, but much of the work only has to be done once and can be reused in other processes.

  • Need to Merge an Adobe XML file with a normal PDF

    The problem...
    I have created an order form in Adobe LiveCycle Designer (pre-ES).  The customer's requirements force us to merge their purchase order (a flat standard PDF) with the order form I have created to get the complete PDF to bill with.  Previously we were using a form created in another software and printing to PDF to merge the 2 PDF files.  The thought process with creating a form in LiveCycle Designer was "Oh 2 PDF's we can just merge them" ... we were very WRONG.  And please don't suggest "Packaging" the files... it won't work for our processing system... we've already tried .
    What we know now (had we known it before we'd have never purchased the licensing for LiveCycle Designer to start with)...
    You can NOT merge a PDF that has XML in it with Adobe Proffesional.
    Temporary Solution...
    We know we can print to PDF and then merge the files... this gets us the result we need, but it takes longer to print to PDF from these XML files than it did from the previous versions of the order forms in created in other software.
    Is there another solution? 
    Plea for help!  The users that are forced to do the process of printing to file and merging are ready to riot and/or go back to the "other" software.

    Hello!
    There are a couple terms you can google:
    "PDF Concatenate Forms iText"
    "Merge XML data with PDF Forms"
    Concatenating PDFs means you join multiple forms together into one PDF.
    Did you need to merge, or concatenate the forms?
    Either way there are a couple of methods to do this programmably.
    iTextSharp (.NET)
    iText (Java)
    FDFToolkit.net (.NET)
    iText products are open source, and have a learning curve, and support is provided on a Open mailing list.
    iText products are free ($) but can cost you time and money to research the methods.
    Useful Links:
    http://www.fdftoolkit.net/
    Message was edited by: NKOWA

  • How to merge two search button from different criteria

    How to merge two search button from different criteria
    this image show the question
    http://s24.postimg.org/4algthuj9/1111.jpg
    two different criteria for the same view and I need to merge it in one button as when I click
    on the button search result give from two criteria parameters

    You can!t using af:query. the af:query component comes as is. If you can't do it through the properties, you probably can't do it at all.
    As in your other thread, the way to go is to program your own search form. This way you can use a layout and functionality you like.
    For this you create a form with input fields for the values you are searching for, put them on hte page in a way you like and in the end by hitting on a button (e.g. called Search) map all inputfields to parameters of a service method you defined in your application module or VO. This service method then executes a view criteria returning all matches in the default iterator (just as if you had used af:query.
    Timo 

  • Icloud merged my contacts & calander from 2 different phones.

    me and my wife have an iPhone 4 each, and we only have 1 iTunes ID that we share.  Yesterday when I updated to the new IOS 5 the iCloud system merged the contacts & calander from both phones.
    Is this because we both have the same ID for iCloud? if so how do I create a separte ID for her iCloud so that our phones won't sync with eachother?
    Thanks in advance.

    To stop this, don't use the same Apple ID on both phones for iMessage and FaceTime.  (You can continue to use the same ID for iTunes; it doesn't need to be the same as the ID used for iMessage or FaceTime.)
    On one of the phones, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  Then do the same thing in Settings>FaceTime.

  • I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me?

    I see people from different ages at my work and every month I need to count how many people from each age I've seen that month. How can I do to give the entries to numbers in a single cell and make numbers count them for me? The final result would be a spreadsheet telling there were 8 people from 20 to 39 years old, 14 peolple from 40 to 59 and so on...

    jpqcampos wrote:
    This appears to be an 'input form' using 'Radio Buttons' to select the category. Neither of these features are supported in Numbers '09.
    You can input the data on one table and summarize it on a second table, but the input table will continue to hold data for each event.
    And by using the Reorganize button, you can hide all but two rows of that table to approximate the appearance and performance of an input form.
    Here are the two tables, Data on the left and Summary on the right. Notes below.
    The grey-filled columns in both tables are 'working' columns, and may be hidden (as shown in the image below).
    Data table:
    D1 contains the word "TRUE" (in capital letters). (This row is always shown.)
    D2 is empty, or may contain any value except "TRUE" (This row is always hidden under the Reorganize rule.)The rest of Row 2 of this table requires the data shown: a number outside the range to be counted (999), and two checkboxes, both checked.
    D3 (and filled down the rest of column D):   =AND(OR(B2,C2),NOT(OR(B3,C3)))
    The formula returns TRUE only for the first unused row in the table (ie. the first row for which neither checkbox has been checked)
    Summary table:
    Column A contains labels for the age ranges to be counted.
    Column B contains the same information in the form necessary for the formulas in columns C and D. They need a numeric value, and that value must be the largest acceptable value in the range to be counted.
    C2 (and filled right to column D, then both filled down to row 5):
        =COUNTIFS(Data :: $A,"<="&$B,Data :: B,TRUE)-SUM(C$1:C1)
    Two changes from the previous example:
    COUNTIFS is used to separate the Native and Foreign counts as well as the age range to be counted.
    The amount subtracted from each result is the SUM of the earlier results, and includes the text value in the first cell of the column (which is interpreted by SUM as a zero).
    See note below regarding my earlier formula.
    When the greyed columns are hidden and the checkbox in the Reorganize pane is checked, the two tables will appear as shown below:
    Close the reorganize pane, and the 'data entry form' is ready to use.
    To use, enter the age first, then check one of the boxes.
    As soon as one box is checked, the row will be hidden, and the next (unused) row will be shown.
    Regards,
    Barry
    Note regarding formula in my earlier post:
    The earlier formula will give erroneous results as it subtracts only the count directly above it from its count of persons in the age range 0-n.
    In E2 of that table, replace "-E1" with "-SUM(E1:E$1)
    Fill down to E8.
    Ignore the instructions (in that post) following "Fill down to E8."
    B

  • I need the XML elements appear in different paragraphs ...  Could do this with a script?

    I need the XML elements appear in different paragraphs ...
    Could do this with a script?
    Thanks...

    You can use this / Puedes usar esto
    insertTextAsContent("\n",XMLElementPosition.beforeElement);                  
    //  or             
    insertTextAsContent("\r", XMLElementPosition.afterElement);
    Necesitaria mas información,

  • What product do you recommend if I need to merge different documents & email forms to fill out?

    What product do you recommend if I need to merge different documents &amp; email forms to fill out?

    What kind of documents?
    What are "email forms"?
    If you mean PDF files, use Acrobat or the CreatePDF service.

Maybe you are looking for