Generating XML for an instance of a custom type

I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriy

also see http://edocs.bea.com/wls/docs81/webserv/customdata.html#1052981
Bruce Stephens wrote:
>
Hi Dimtriy,
I've attached an example using a custom codec with clientgen. If you
could take a look and see if this ser/deser can provide you with some
guidelines on what is required. Also, if you could bundle a small
example that illustrates your custom type, it would be helpful.
Thanks,
Bruce
Dmitriy Myaskovskiy wrote:
I apologize for a silly question...
How do I use the codec object that <autotype> generates for a custom type?
The schema and WSDL files are written by hand, <autotype> generates java representation
of the types along with serializer/deserializer classes for nested types and the
main codec class fine. Now I need to manually generate XML for a particular instance
of my custom type (at runtime). The codec class declares XML_TYPE as a private
variable while it seems to be exactly what needs to be passed to codec’s serialize(),
and the codec class is a final class... so how’s this class supposed to be used?
Same with de-serialization.
Any help will be greatly appreciated!
Dmitriy------------------------------------------------------------------------
Name: custom_codec.zip
custom_codec.zip Type: Zip Compressed Data (application/x-zip-compressed)
Encoding: base64

Similar Messages

  • Cannot generate XML for the List of Values (UX 00072)

    Hi,
    I had issues with a .LOV file associated with an object.
    Cannot generate XML for the List of Values (UX 00072)
    [LOV Name] This LOV contains data that does not originate from Corporate Data.
    The object maps to data in a table of the DB that will be populated in the future. The LOV file is "empty", but I have to pass the universe into production waiting for the data.
    This error doesn't permit me to go from Development to Prod.
    Regards,
    Riccardo

    You need to set the display-property="<<Your name property>>" in item-descriptor tag.
    e.g. <item-descriptor name="myItem" display-property="name" />
    Cheers
    R

  • How to generate XML for following?

    Hello Everyone,
    I have following snippet of PLSQL code with for loops and record type arrays. Each loop can return separate number of rows and iterate that many times. For e.g. the for loop tab_rec may fetch 50 rows where as the for loop sql_rec may return 80 rows.
    I need to acoomodate all of these record arrays into a single xml file. Each for loop will repreesent one data set. Something like this.
    <dataset>
    <set value = tab_rec(kounter).tvalue >
    <set value = ?
    </dataset>
    Questions:
    1) How can I dynamically generate just one single XML file for all for loops metnioend below in this message?
    2) How can I dynamically generate tags for e.g. <set> tag above if I put XMLELEMENT() under a for loop kounter. To explain this in a better way consider pseudo code example below.
    for i in 1..kounter loop
    <dataset>
    <set value = tab_rec(i).tvalue >
    *<set value = *?*   -- How do i generate these <set> tags when tebrec(i).value will return many rows?*_
    </dataset>
    Thanks for reading this post. Again, the exmple for loops to generate one single XML file is given below.
    For loops in the issue are mentioned below
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;

    Sorry for delay in response.
    I have pasted the complete code that will show the relation ship between data and XML. What I am trying to do here is to prepare smal packets of XML through XML element and then roll it up to a final grand CLOB variable. and pass that through XML creation. I have used DBMS_JAVA package to append clobs.
    The issue now I am running into, it generates JUNK in xml. pure junk and nothing else Thanks R,
    FOR a IN tab_recc
    LOOP
    tab_rec (tab_kounter).tsegment := a.ebs_table;
    tab_rec (tab_kounter).tbytes := a.sizemb;
    tab_kounter := tab_kounter + 1;
    END LOOP;
    FOR b IN sql_recc
    LOOP
    sql_rec (sql_kounter).thash := b.hash_value;
    sql_rec (sql_kounter).texecution_read := b.reads_per_execution;
    sql_kounter := sql_kounter + 1;
    END LOOP;
    FOR c IN sess_recc
    LOOP
    sess_rec (session_kounter).tsid := c.SID;
    sess_rec (session_kounter).tvalue := c.VALUE;
    session_kounter := session_kounter + 1;
    END LOOP;
    FOR d IN user_recc
    LOOP
    user_rec (dbuser_kounter).tphysical_reads := d.physical_reads;
    user_rec (dbuser_kounter).tuser := d.username;
    dbuser_kounter := dbuser_kounter + 1;
    END LOOP;
    FOR e IN ebs_user
    LOOP
    ebs_rec (ebs_kounter).tuser := e.user_name;
    ebs_rec (ebs_kounter).ttime := e.rtime;
    ebs_kounter := ebs_kounter + 1;
    END LOOP;
    FOR aa IN 1 .. tab_kounter
    LOOP
    if aa = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id1 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (aa AS "Id",
    tab_rec (aa).tsegment AS "value"
    ).getclobval ()
    INTO tablob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR bb IN 1 .. sql_kounter
    LOOP
    if bb = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id2 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (bb AS "Id",
    sql_rec (bb).thash AS "value"
    ).getclobval ()
    INTO sqlob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR cc IN 1 .. session_kounter
    LOOP
    if cc= 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id3 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (cc AS "Id",
    sess_rec (cc).tsid AS "value"
    ).getclobval ()
    INTO sesslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR dd IN 1 .. dbuser_kounter
    LOOP
    if dd = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id4 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (dd AS "Id",
    user_rec (dd).tuser AS "value"
    ).getclobval ()
    INTO dbulob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    FOR ee IN 1 .. ebs_kounter
    LOOP
    if ee = 1 then
    SELECT XMLELEMENT
    ("dataset",
    xmlattributes (v_top50id5 AS "Id"),
    XMLELEMENT ("set",
    xmlattributes (ee AS "Id",
    ebs_rec (ee).tuser AS "value"
    ).getclobval ()
    INTO ebslob --clob type
    FROM DUAL;
    end if;
    END LOOP;
    SELECT XMLELEMENT
    ("Chart",
    xmlattributes (v_caption AS "caption",
    v_subcaption AS "shownames",
    v_xaxisname AS "showvalues",
    v_yaxisname AS "decimals"
    XMLELEMENT ("categories",
    XMLELEMENT ("category",
    xmlattributes (v_label1 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label2 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label3 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label4 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label5 AS "label")
    XMLELEMENT ("category",
    xmlattributes (v_label6 AS "label")
    tablob, --clob type
    sqlob, --clob type
    sesslob, --clob type
    dbulob, --clob type
    ebslob --clob type
    ).getclobval ()
    INTO v_top50 --clob type
    FROM DUAL;
    DBMS_LOB.append (v_xmlmessage, v_top50); --both are clob type
    v_filename := 'Top50.xml';
    writexml (p_dir_path => v_dir_path,
    p_filename => v_filename,
    p_xml => v_xmlmessage
    );

  • Generate XML for a given XSD

    I have seen this cool feature of generating XML sample file for a give XSD in XMLSPY. Is the same available in XDK by any chance through some PL/SQL API. We have this requirement in our product. Thanks.

    I have not run across this capability, but I haven't read everything.
    tom

  • Generating XML for query resultset

    hi,
    how to generate xml file for a query,,in sql server we use:
    select * from emp
    for auto xml do;
    it generates xml file for the result set of this query,,how to do it in oracle??
    regards
    umar

    Use dbms_xmlgen.getxml.
    Tom kyte has some good stuff at his site.
    http://asktom.oracle.com/pls/ask/f?p=4950:8:4444542233908715904::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:16020931845088,

  • MX 6 - prob generating xml for gallery example

    See
    http://coolabah.com/spry/demos/gallery/xml.cfm
    I have MX 6 and think this is a problem.
    I can generate what looks like xml in the browser, but when I
    try to save it to a file I get this sort of output for the above,
    <style>
    table.cfdump_wddx,
    table.cfdump_xml,
    table.cfdump_struct,
    table.cfdump_array,
    table.cfdump_query,
    table.cfdump_cfc,
    table.cfdump_object,
    table.cfdump_binary,
    table.cfdump_udf,
    table.cfdump_udfbody,
    table.cfdump_udfarguments {
    font-size: xx-small;
    font-family: verdana, arial, helvetica, sans-serif;
    cell-spacing: 2;
    etc.
    Can anyone help?
    Thanks,
    Kate

    You shouldn't search for line 145 into the CFM file but into
    the answer that is sent to the browser. The resulting XML sent by
    the CFM is invalid so you have to identify first the line 145 into
    the response and than to look where the line is generated.
    As Don did I opened the URL into Firefox and when the XML
    error displayed I look into the source (View Source). The server
    instead of serving a valid XML answer a HTML content which is not
    correct. (Maybe a CF server error ?!)
    Cristian

  • Generate XML for a COBOL Copy Book

    Hi All,
    How to generate an XML document out of a COBOL copy book. Can i get some sample code for a simple cobol copy book.
    Thanks
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Nataraj Vankadara ([email protected]):
    Hi All,
    How to generate an XML document out of a COBOL copy book. Can i get some sample code for a simple cobol copy book.
    Thanks<HR></BLOCKQUOTE>
    Check for the functionality of Datajunction utilities.
    I don't know what is Cobol copy book, but these utilitys has many functionality for converting any datasource to/from XML, including cobol.
    Best regards, Marcelo.
    null

  • Generate XML for EFM ISSUE

    Hi,
    I have a problem with a customer, he was using SAP Business One 9.0 pl 9 and everything works fine.
    When he upgrade to SAP Business One 9.0 pl 11 the eInvoice that was working on the patch level 9 stop working, but when i try to generate de new XML the file is incomplete, I attach the file of the new file XML generate in version 9.0 pl 11
    Please any help.
    Regards!!!
    David Almazán

    Hi San Xu
    That is my exact issue, I generate from my PC and appears incomplete, Generate from my customers productive System and its the same, Ive almost upgrade to PL12 and still with the problem.
    Any ideas or post a message to SAP?
    Regards David

  • What do I need to set in order for each instance of the step type in the sequence to act individually?

    I'm not able to change parameters on one step without it changing the parameters on another instance of the step within the same sequence.  Is there something in the step type properties that I need to set to change this?
    For instance, I have created a custom step called "Battery PWR" that the user can insert into a sequence, hit the "edit" button, set a control in a GUI to 12V and hit an "Okay" button so that the post-step condition causes the power supply voltage to change.  Then, later in the sequence I want the user to be able to insert the same custom step, hit the edit button, set the control to 0V and hit an "Okay" button so that the post-step conditition causes the power supply to go to 0V.  The problem is, when the user edits one of the steps, it causes the other step to change to the same value.
    I know that this has a simple fix, just can't seem to find it.

    I answered my own question.  I was reading and writing to a file global instead of the step parameters, so I was basically overwriting my variables each time I edited the step.  I'm obviously a novice TestStand user.

  • Generate xml using FOR XML PATH from table with hierarchy

    I need to create xml from a table like:
    EL1 EL2 EL3 Attr01 Attr02 Attr03 Attr04
    E10,    ,    ,a,b,c,d
    E10,E1010,    ,a,b,c,d
    E10,E1010,E101010,a,b,c,d
    E10,E1010,E101020,a,b,c,d
    E10,E1010,E101030,a,b,c,d
    E10,E1020,    ,a,b,c,d
    E10,E1020,E102010,a,b,c,d
    E20,    ,    ,a,b,c,d
    E20,E2010,    ,a,b,c,d
    E20,E2010,E201010,a,b,c,d
    E20,E2020,    ,a,b,c,d
    E20,E2020,E202010,a,b,c,d
    E20,E2020,E202020,a,b,c,d
    The hierarchy is EL1--EL2--EL3, and the 3 columns should be elements of xml;
    The other for columns Attr01,Attr02,Attr03,Attr04 should be attributes of xml;
    The actual table could have more than 500 rows(there are many values for El1,EL2,and EL3). 
    The expected xml should like:
    <root>
      <E10 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
        <E1010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E101010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E101020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E101030 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E1010>
        <E1020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E102010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E1020>
      </E10>
      <E20 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
        <E2010 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E201010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E2010>
        <E2020 Attr01="a" Attr02="b" Attr03="c" Attr04="d">
          <E202010 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
          <E202020 Attr01="a" Attr02="b" Attr03="c" Attr04="d" />
        </E2020>
      </E20>
    </root>
    I create a sample Src table:
    CREATE TABLE Src
    EL1 VARCHAR(10),
    EL2 VARCHAR(10),
    EL3 VARCHAR(10),
    Attr01 VARCHAR(10),
    Attr02 VARCHAR(10),
    Attr03 VARCHAR(10),
    Attr04 VARCHAR(10)
    GO
    INSERT INTO Src
    (EL1,EL2,EL3,Attr01,Attr02,Attr03,Attr04
     SELECT 'E10','','','a','b','c','d'
     UNION SELECT 'E10','E1010','','a','b','c','d'
     UNION SELECT 'E10','E1010','E101010','a','b','c','d'
     UNION SELECT 'E10','E1010','E101020','a','b','c','d'
     UNION SELECT 'E10','E1010','E101030','a','b','c','d'
     UNION SELECT 'E10','E1020','','a','b','c','d'
     UNION SELECT 'E10','E1020','E102010','a','b','c','d'
     UNION SELECT 'E20','','','a','b','c','d'
     UNION SELECT 'E20','E2010','','a','b','c','d'
     UNION SELECT 'E20','E2010','E201010','a','b','c','d'
     UNION SELECT 'E20','E2020','','a','b','c','d'
     UNION SELECT 'E20','E2020','E202010','a','b','c','d'
     UNION SELECT 'E20','E2020','E202020','a','b','c','d'
    GO
    I tried to use FOR XML PATH to generate xml for the sample data. When the records increase to a few hundreds, it's not a good idea.
    Here is my script:
    SELECT
    (SELECT Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101010'
    FOR XML PATH('E101010'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101020'
    FOR XML PATH('E101020'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E101030'
    FOR XML PATH('E101030'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E1010' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E1010'),TYPE
    ) AS 'node()'--1010
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E102010'
    FOR XML PATH('E102010'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E1020' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E1020'),TYPE
    ) AS 'node()'--1020
    FROM Src
    WHERE EL1 = 'E10' AND (EL2 ='' AND EL3 ='')
    FOR XML PATH('E10'),TYPE) 'node()'
    ,(SELECT Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E201010'
    FOR XML PATH('E201010'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E2010' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E2010'),TYPE
    ) AS 'node()'--2010
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E202010'
    FOR XML PATH('E202010'),TYPE
    ) AS 'node()'
    ,( SELECT
    Attr01 AS '@Attr01'
    ,Attr02 AS '@Attr02'
    ,Attr03 AS '@Attr03'
    ,Attr04 AS '@Attr04'
    FROM Src
    WHERE EL3 = 'E202020'
    FOR XML PATH('E202020'),TYPE
    ) AS 'node()'
    FROM Src
    WHERE EL2 = 'E2020' AND (EL1 <>'' AND EL3 ='')
    FOR XML PATH('E2020'),TYPE
    FROM Src
    WHERE EL1 = 'E20' AND (EL2 ='' AND EL3 ='')
    FOR XML PATH('E20'),TYPE) AS 'node()'
    FOR XML PATH(''),ROOT('root')
    If I get a few hundreds of rows, how huge the script should be. Does anyone have better solution for this? Thanks.
    Tao

    wBob,
    Thanks! And sorry for late feedback.
    The XSD requires the xml structures like the following
    <Schools>
    <School01>Some school</School01>
    <School02>Some other school</School02>
    </Schools>
    I have to use the number in the element name. 
    Right now I just use the nested FOR XML PATH, although I have to write thousand lines code.
    Thanks anyway.
    Tao
    Tao

  • How Create XML for Purcase Order

    Dea all,
    Please advise how to create standard SAP XML for Purchase Order .
    In customizing (WE20) we have set the partner profile, and the PO creates an IDOC on the system.
    Now what should be done to convert it to XML , and where is the definition of the destination for sending the XML file?
    Thanks,
    Moshe

    Various tools are available generate an XML document from a DTD.
    http://www.eclipse.org/webtools/community/tutorials/XMLWizards/XMLWizards.html
    http://www.altova.com/products/xmlspy/dtd_editor.html
    http://www.stylusstudio.com/xml_generator.html

  • Generate xml of a rpd created by OBIEE Administration 11

    I'm using this command "nqUDMLgen.exe -U Administrator -P Admin123 -R <location_to_rpd> -O <location_to_xml> -8" to generate xml for a rpd created by OBIEE Administration tool version 11. The error I get is "The repository <location_to_rpd> cannot be opened". But this works perfectly for a rpd created by version 10. I doubt in the username because the tools doesn't show the default username like that of version 10. What am I doing wrong?

    This works for me
    nqudmlgen.exe -P Admin123 -R C:\App11g\instances\instance3\bifoundation\OracleBIServerComponent\coreapplication_obis1\repository\SampleAppLite_BI0001.rpd -O one1.udml -8
    If it is helpful, please mark as correct or helpful

  • Issues in generating xml from Report Builder as per XSD provided

    Hi,
    We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
    But the problem come's when we have to define hirearchies.
    Like for example
    1. Our Report is based on the following query:
    SELECT DISTINCT '' as DUMMY
    ,               fil.file_number
    ,      TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
    , rp_bsu.service_user_number
    , rp_bsu.service_user_name
    ,     rp_ac.account_number
    , rp_ac.account_name
    ,     rp_ac.account_type
    ,     rp_ac.sortcode
    , NVL(ovr_lmt.account_section_value,0) AS
    account_section_value
    ,     NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
    , (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
    ) value_to_date
    , (NVL(ovr_lmt.overlimit_amount,0) -
    NVL(lmt_usg.limit_amount,0)
    ) amount_overlimit
    , ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
    limit_amount
    , lmt_usg.period_type,lmt_usg.currency
    FROM v_rp_bacs3day_service_user rp_bsu,
    v_rp_bacs_service_office rp_bso,
    v_rp_account rp_ac,
    t_file fil,
    t_over_limit ovr_lmt,
    t_limit_usage lmt_usg
    WHERE rp_bso.handling_bank_code = :p_scheme_member
    AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
    AND rp_ac.service_user_number = rp_bsu.service_user_number
    AND rp_bsu.service_user_number = fil.originator
    AND fil.status <> 'R'
    AND fil.processing_date = (SELECT cycle_date
    FROM t_cycle
    WHERE status = 1)
    AND lmt_usg.account_id = rp_ac.account_id
    AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
    AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
    (SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
    'YYDDD'),'DD-MM-YYYY')
    FROM t_cycle
    WHERE status = 1)
    2.The hierarchy as per xsd that we need to define is :
    <ServiceUserAccount>
    <ServiceUser>
         <Name></Name>
    <Number></Number>
    </ServiceUser> <SortCode></SortCode>
    <AccountNumber></AccountNumber>
    <NearOrOverLimitDetail>
    <AccountType></AccountType>
    <ProcessingDate></ProcessingDate>
    …………………..(there is a list of elements below it)
    </NearOrOverLimitDetail>
    </ServiceUserAccount>
    In the xsd for the complex element type “ServiceUser” we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
    And we get this hierarchy with missing Service User element
    <ServiceUserAccount>
    <SortCode></SortCode>
    <AccountNumber></AccountNumber>
    <NearOrOverLimitDetail>
    <AccountType></AccountType>
    <ProcessingDate></ProcessingDate>
    …………………..(there is a list of elements below it)
    </NearOrOverLimitDetail>
    </ServiceUserAccount>
    Please let me know if you have any solution to implement this ASAP as its very urgent.
    Thanks & Regds
    Anuradha.

    Hi,
    We are provided with XSD's for each report. Now we need to generate XML's from report that are as per the XSD's provided to us.
    But the problem come's when we have to define hirearchies.
    Like for example
    1. Our Report is based on the following query:
    SELECT DISTINCT '' as DUMMY
    ,               fil.file_number
    ,      TO_CHAR (TO_DATE (RTRIM (LTRIM (fil.processing_date)), 'YYDDD'),'DD-MM-YY') Processing_Dt
    , rp_bsu.service_user_number
    , rp_bsu.service_user_name
    ,     rp_ac.account_number
    , rp_ac.account_name
    ,     rp_ac.account_type
    ,     rp_ac.sortcode
    , NVL(ovr_lmt.account_section_value,0) AS
    account_section_value
    ,     NVL(ovr_lmt.overlimit_amount,0) AS overlimit_amount1
    , (NVL(ovr_lmt.overlimit_amount,0) - NVL(ovr_lmt.account_section_value,0)
    ) value_to_date
    , (NVL(ovr_lmt.overlimit_amount,0) -
    NVL(lmt_usg.limit_amount,0)
    ) amount_overlimit
    , ovr_lmt.over_limit_id, NVL(lmt_usg.limit_amount,0) AS
    limit_amount
    , lmt_usg.period_type,lmt_usg.currency
    FROM v_rp_bacs3day_service_user rp_bsu,
    v_rp_bacs_service_office rp_bso,
    v_rp_account rp_ac,
    t_file fil,
    t_over_limit ovr_lmt,
    t_limit_usage lmt_usg
    WHERE rp_bso.handling_bank_code = :p_scheme_member
    AND rp_bsu.sponsoring_bank_code = rp_bso.owning_bank_code
    AND rp_ac.service_user_number = rp_bsu.service_user_number
    AND rp_bsu.service_user_number = fil.originator
    AND fil.status <> 'R'
    AND fil.processing_date = (SELECT cycle_date
    FROM t_cycle
    WHERE status = 1)
    AND lmt_usg.account_id = rp_ac.account_id
    AND ovr_lmt.limit_usage_id = lmt_usg.limit_usage_id
    AND TO_CHAR (ovr_lmt.exceeded_date, 'DD-MM-YYYY') =
    (SELECT TO_CHAR (TO_DATE (RTRIM (LTRIM (cycle_date)),
    'YYDDD'),'DD-MM-YYYY')
    FROM t_cycle
    WHERE status = 1)
    2.The hierarchy as per xsd that we need to define is :
    <ServiceUserAccount>
    <ServiceUser>
         <Name></Name>
    <Number></Number>
    </ServiceUser> <SortCode></SortCode>
    <AccountNumber></AccountNumber>
    <NearOrOverLimitDetail>
    <AccountType></AccountType>
    <ProcessingDate></ProcessingDate>
    …………………..(there is a list of elements below it)
    </NearOrOverLimitDetail>
    </ServiceUserAccount>
    In the xsd for the complex element type “ServiceUser” we need to display Service User Name and Number. For this I created a separate query Q2 in reports and joined it using data link with the parent Q1(which has data grouped on processing date) . So that it can be displayed as a separate element parallel to other elements like Sort code ,Account Numbers. But when we generate XML for this, then tags for Q2 query donot appear in xml.
    And we get this hierarchy with missing Service User element
    <ServiceUserAccount>
    <SortCode></SortCode>
    <AccountNumber></AccountNumber>
    <NearOrOverLimitDetail>
    <AccountType></AccountType>
    <ProcessingDate></ProcessingDate>
    …………………..(there is a list of elements below it)
    </NearOrOverLimitDetail>
    </ServiceUserAccount>
    Please let me know if you have any solution to implement this ASAP as its very urgent.
    Thanks & Regds
    Anuradha.

  • MPOZ issue generating XMl file

    Hi,
    we have upgraded our ECC6 system to EHP5.Unfortunately one of the add-ons  FI-CAX was not upgraded.
    I want to generate XML file to upgrade this component.If I select EHP5 installation its picking up all the component which has already being upgraded.
    Can you pls suggest how can I generate XML for one particular  Add-on.
    Thanks for your help in advance.
    Regards!!
    Ravi

    Hi Ravi,
    As you said , ECC system EHP5 upgrade is finished but you need 1 add to upgrade seperatly now.
    Pls ensure your system landscape , in SMSY of SolMan is updated correctly with upgrdaed component version for ECC.
    Then try to download component via MOPZ , it sould auto calculate other latest vesrion to apply including your add on component.
    Regards

  • Generating XML from Database using XSQL

    Hi ,
    I have been using Reports as an intermidiate to generate XML (by giving concurrent program o/p type as XML). Now, i want it to be done from SQL or PL/SQL. I am able to achieve this using XSQL functions. I placed the SQL in a .sql file and registered it as a concurrent program. It was giving me XML output.
    I have two problems here.
    1. How can i know whether i have generated valid xml or not?
    2. When i am linking this concurrent program to XML Publisher, publisher is not able to read thie output from the concurrent prograam. It is erroring out. Why?
    Thanks
    sap

    Save the XML file - try to open it with IE and/or Firefox.
    If that doesn't work you know already something is wrong.
    You may try to cut&paste it into notepad and save as UTF-8.
    Then try it out with the Template Builder for Wrod.
    If you can't figure it out and run the report with a SMALL dataset six (ie. 1)
    and post it here.

Maybe you are looking for

  • JVM Using more than -Mx Memmory and RSS

    Hi All, Used -Xms256m -Xmx512m parameters for weblogic Admin server 10.0.1.0, 9.2.2, but the server is using more than the value specified and it is not happening for weblogic version 10.3, This was found while cross checking with ps and prstat. and

  • Have the clamshell mode requirements been relaxed?

    I'm experiencing what I consider to be some odd behaviour regarding an external display hooked up to my MacBook: With the external display being the only peripheral connected, the MacBook will enter clamshell mode when I close the lid. It was my unde

  • Error on testing connection in IDT

    Hello, I got a BI 4.1 SP03 over SBO. Connection is to MS SQL 12. got a strange error while trying to create measure inside IDT, after a while that evertyhing was working fine. Continued the 'investigation'  and found out the connection in the BO to t

  • Withholding tax due dates

    Hello Friends, The tax withheld on Vendors payments and invoices is to be remitted to the tax authorities within 30 days. Due date maintenance is nowhere found in IMG. We have seen for CIN there is u201CMaintain Tax Due Datesu201D available can this

  • LOTUS NOTES

    Hi All, ok can some one please tell me how to set up Lotus Notes to receive and send mail? Thanks.