Binary to XML format

Hi all,
To post a document to bank i have used digital signature using SSF functions. It is working fine. And my recipient received the data with digital signature.
Now I have a problem, when i use SSF function my input data is converted into binary format, which is not accepatble by the recipient system. They wanted the format to be in XML. How do I convert my binary data to XML format. OR am i doing something wrong.
My program flow is like this,
1. get the data from SAP.
2. using FM SSF_KRN_SIGN.
3. Output of SSF_KRN_SIGN, is passed to SSF_KRN_ADDSIGN.
4. Output of SSF_KRN_ADDSIGN is passed to HTTP_POST to the bank.
When I send data to FM SSF_KRN_SIGN, my input data is plain text format, the return value from this FM is in binary format.
Could any one help me in solving my problem .
Regards,
prabhu rajesh.

I believe that the XML and the digital signature are two separate things.  When you call SSF_KRN_SIGN it takes whatever input data you have and signs it - producing a binary output table. If your bank wants its dta in XML, you will have to change your input data to the function SSF_KRN_SIGN into XML before passing it to the function.  Use the iXML classes or if on 620 the Call Transformation command (Both of which have been discussed on this forum before) to change your data into iXML.  Output your XML Stream as a character Table.  Feed this Character table into the function modeul SSF_KRN_SIGN.  The results of this function module will be your XML stream, digitally signed, and in binary format.

Similar Messages

  • Binary to XMl Conversion

    Hi All,
    I am trying to convert data from internal table to Binary and then taking the same in the XML format for Display.
    Steps 1 : from internal table to Binary conversion.
    create & set encoding
    lo_encoding = lo_ixml->create_encoding(
                       byte_order    = if_ixml_encoding=>co_none
                       character_set = 'UTF-8' ).
       CALL METHOD lo_xml_doc->m_document->set_encoding(
                     encoding = lo_encoding ).
    create output stream...
       lo_stream_fact = lo_ixml->create_stream_factory( ).
       lo_ostream = lo_stream_fact->create_ostream_xstring(
                      string = e_xml ).
    data : i_size like SY-TABIX .
    CALL METHOD lo_xml_doc->RENDER_2_XSTRING(
    IMPORTING
    stream = e_xml
    RETCODE = gd_rc
    SIZE = i_size ).
       x_test-e_xml = e_xml.   
    Step 2 : We are moving the same to application server using Legacy Binary mode 
    Step 3 : Again by some another report we are reading the file.
      OPEN DATASET XYZ FOR INPUT IN LEGACY BINARY MODE.  
    Step 4 : And finally converting the binary data in XML for display.
    CLASS cl_ixml DEFINITION LOAD.
    lp_ixml           = cl_ixml=>create( ).
      lp_xml_document   = lp_ixml->create_document( ).
      lp_stream_factory = lp_ixml->create_stream_factory( ).
    create input stream from lt_data...
    lp_istream = lp_stream_factory->create_istream_xstring(
                                        string = l_xdata ).
    define parser...
    lp_parser  = lp_ixml->create_parser(
                             document       = lp_xml_document
                             istream        = lp_istream
                             stream_factory = lp_stream_factory ).
    parse input stream --> fills lp_xml_document...
      ld_rc = lp_parser->parse( ).
      IF ld_rc <> 0.
        MESSAGE e000(ydb0060) WITH 'lp_parser->parse( )'.
        EXIT.
      ENDIF.
      CALL METHOD lo_xml_doc->create_with_dom( document = lp_xml_document ).
      CALL METHOD lo_xml_doc->display( ).
    My Problem is,
    Say I got 2 field in internal table Desc and Value.
    IT-DESC = 'Test' .
    IT-VALUE = '' .
    here the system should show me
    <item>
      <DESC>Test</DESCR>
      <VALUE />
      </item>
    but it is showing as
    <item>
      <DESC>Test</DESCR>
      </item>
    If the value field is blank then <VALUE /> is not getting displayed in XML
    Please guide,
    Thanks & Regards,
    Swapnil

    I've run into the same issue, and in response to why I would want to revert back to CLOB storage; it's because there seems to be a 32k limit on the content in the XMLType column when using binary storage.
    Previously in 11.2.0.1 we have no issues with this length of xml data stored in clob format but since moving one db to 11.2.0.2 the database completely dies when trying to read that column with >32k data length.
    DB dies with either:
    ORA-00600: internal error code, arguments: [kpolcsc1], [0], [], [], [], [], [], [], [], [], [], []
    or
    ORA-00600: internal error code, arguments: [kpolcbLobRead1: invalid len & bufp], [], [], [], [], [], [], [], [], [], [], []
    And I don't find any articles on MOS either searching the knowledge base or using the ora-600 lookup tool that aren't already fixed: kpolcsc1 was fixed in 11.1.0.6 according to ora-600 lookup tool.
    I would prefer to keep binary storage, and not have to revert to clob, but if I can't found a solution to 32k limit then im going to have to revert storage type.

  • Idoc is recieved as  xml format instead of text format

    hi i am new to XI , I am right now i am trying with Idoc to file scenario
    i am sending idoc from an R/3 system and i am receiving it as file in another R/3 system. In accordance to that i have designed &#38; configured all settings, But when i am sending idoc thru my communication channel i am able view a '" *.txt " file with all my necessary details  in xml  format instead of text format.
    desin details
    my source and target fields are
    FLCUSTOMER_CREATEFROMDATA idoc to the file which as the only few important fields of idoc.
    configuration details
    in communication cahnnel :
    adapter type : file
    message protocol: file
    processing parameters:
    constructution mode : create
    file type : binary
    advance mode
    row.fieldNames : with its fields seperated buy comma
    row.fieldSeparator : ,
    row.endSeparator : 'nl'
    i stuked up with this level for the past  10 days ur valuble suggestion will  help me lot to reach my target
    Regards
    saravanakumar P.K.

    You have selected the wrong message protocol: to get an file not XML you should select File Content converion as message protocol
    change it to folowing
    configuration details
    in communication cahnnel :
    adapter type : file
    message protocol: file content conversion
    processing parameters:
    constructution mode : create
    file type : binary
    advance mode
    row.fieldNames : with its fields seperated buy comma dnt use this
    row.fieldSeparator : ,
    row.endSeparator : 'nl'
    specify only field sepratator and endseparator dnt have to specify fielnames for receiver adapter in contant conversion.

  • Converting Sequence (XML format presaved) to my CUSTOM format?

    Hi Experts!
    I need Teststand Style Sheet for  XML. (e.g. TAGS explanation when you saved your sequence in XML's format)
     For example when I saved TestStand's sequence at XML format previously I got: __________________________________________________​___________ Main classname='Objs' valueflags='4194304'><value lbound='[0]' ubound='[]'/></Main><Setup classname='Objs' valueflags='4194304'><value lbound='[0]' ubound='[]'/></Setup><Cleanup classname='Objs' valueflags='4194304'><value lbound='[0]' ubound='[]'/></Cleanup><GotoCleanupOnFail classname='Bool' valueflags='4194312'><value>false</value></GotoCleanupOnFail><RecordResults classname='Bool' valueflags='4194312'><value>true</value></RecordResults> __________________________________________________​___________ I would like to know what EVERY of tags (<value>,<Main>,<GotoCleanupOnFail> ….and many others) means??? e.g. you can say that <value> is a tag that responsible for the LOOP value.    I need to deal with tags because I want from the present XML saved sequence to build my custom sequence in my CUSTOM format (e.g. TO CONVERT TestStand’s sequence to other format)
    Any ideas? any suggestions?
    Thank you!!!
    Thank you & Best Regards
    *I use LabVIEW 8.X & TestStand 3.5/4.0.1 versions only
    Solved!
    Go to Solution.

    TestStand does not support saving sequence files in other formats than the predefined formats (ini, binary and xml). So you have two different choices:
    a) Write a tool which converts one of the sequence file types into your custom format. This enables you to export the sequence to custom tools, but needs quite some work.
    b) Use "Sequence File Translator".  You can find info on this in the TestStand Reference Manual in chapter 15.
    Regarding b) i want to tell you some more things here in this post:
    - You can use it only to important any format into TestStand, not the other way round. So this is designed for customers who create sequences outside of TestStand but want to use it in TestStand for execution.
    - It requires the knowledge of the file layout you want to convert. You have write an DLL as described in the manual.
    - Changes done to the sequence within TestStand will never be saved back into the original file. You can save the sequence in a new TestStand sequence file though.....
    hope this helps,
    Norbert 
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Convert gzip files into XML format

    We have a requirement where we receive gzip files. These files are zipped file containing base64 binary format csv files. We would have to convert these files into XML format. Please let me know any of the following.
    1. Is there any Xpath query or XSL function (somthing similar like doTranslateFromNative() ) to convert from gzip files to XML format.
    2. If we need to unzip the zipfile outside fusion, then java code piece to unzip the gzip file. I guess after that we can use the usual doTranslateFromNative() function to translate to XML format, since after unzipping the gzip file, they are base64 binary formats.
    Thanks in advance,
    Toms

    There is an option to do pre-processing and post processing of Files when using File adapter. You need to create a valve which will first do pre processing and send the output to FileAdapter.
    You can get more information here:
    http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_file.htm#CACDHGGG
    under section: 4.2.14 Pre-Processing and Post-Processing of Files
    Essentially you will use Java to unzip the file first and then the unzipped content will be passed to the adapter.

  • SOAP-XML Format

    Hi all,
    I have a basic doubt regarding SOAP-XML format.
    Why the message in XI is transformed as SOAP-XML instead of just XML. What is the advantage of using SOAP concept?
    Thanks in advance.
    Regards
    Bhanu.

    Hi,
    Basically used for exchanging information in a decentralized, distributed environment
    A Web service is a software system designed to support interoperable machine-to-machine interaction over a network. It has an interface described in a machine-processable format (specifically WSDL). Other systems interact with the Web service in a manner prescribed by its description using SOAP messages, typically conveyed using HTTP with an XML serialization in conjunction with other Web-related standards.
    One typical use of SOAP attachments is
    *for transporting intact, binary data
    such as image files.
    *For another example, your system may need to transport
    XML documents to other parts of the system without the overhead of
    validating them. These XML documents that do not need to conform to your
    particular schema or DTD can be passed as attachments.
    *By using SOAP attachments, the SOAP message body is much smaller
    because it contains only a reference to the data and not the data itself.
    *Using attachments can be more efficient because smaller SOAP messages are
    processed more quickly than very large messages, and the translation of the
    data to Java objects is reduced for attachments.
    *SOAP attachments are implemented by wrapping the SOAP message and one
    or more attachments in an envelope of Multipurpose Internet Mail Extensions
    (MIME).
    Regards,
    Nutan

  • Sending data from final internal table  to application server in xml format

    hi to all ,
    can anyone send details about send data from final internal table to application server in xml format.right now i am able to download data to presentation server in xml format . love to here soon from all the abap gigs.

    welcome to SDN.
    are you using call transformation to convert itab to XML? the XML string is in which format?
    convert it to xstring and then use the following code to store it in application server.
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE.
    TRANSFER XML_content TO FNAME.
    CLOSE DATASET FNAME.
    where fname is the path to the file name.
    Regards
    Raja

  • I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the butten is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • How to generate Campaign details in XML format for sending to downstream sy

    Dear gurus,
    we have a requirement to send the Campaign details from CRM to some Downstream system in the XML format through PI interfaces. We want to include the following campaign details in the structure.
    <SAPTOAL DATE="03-MAR-2011" TIME="13:25pm">
          <CAMPAIGN>
                <ID></ID>
                <NAME></NAME>
                <RUNDATE></RUNDATE>
                <RUNTIME></RUNTIME>
                <STARTDATE></STARTDATE>
                <ENDDATE></ENDDATE>
                <RECORDCOUNT></RECORDCOUNT>
          </CAMPAIGN>
          <TARGETGROUP>
                <ID></ID>
                <NAME></NAME>
    </TARGETGROUP>
          <BUSINESSPARTNERS>
                <BUSINESSPARTNER>
                      <ID>001</ID>
                <TARGETGROUPID></TARGETGROUPID>
                <FIRSTNAME></FIRSTNAME>
                      <LASTNAME></LASTNAME>
                      <TITLE></TITLE>
                      <SUFFIX></SUFFIX>
                      <EMAIL></EMAIL>
                      <REPFIRSTNAME></REPFIRSTNAME>
                      <REPLASTNAME></REPLASTNAME>
                      <REPPHONE></REPPHONE>
                      <REPSIGNATUREURL></REPSIGNATUREURL>
                      <REPPICTUREURL></REPPICTUREURL>
                      <REPEMAIL></REPEMAIL>
                </BUSINESSPARTNER>
                <BUSINESSPARTNER>
                      <ID>002</ID>
                <TARGETGROUPID></TARGETGROUPID>
                      <FIRSTNAME></FIRSTNAME>
                      <LASTNAME></LASTNAME>
                      <TITLE></TITLE>
                      <SUFFIX></SUFFIX>
                      <EMAIL></EMAIL>
                      <REPFIRSTNAME></REPFIRSTNAME>
                      <REPLASTNAME></REPLASTNAME>
                      <REPPHONE></REPPHONE>
                      <REPSIGNATUREURL></REPSIGNATUREURL>
                      <REPPICTUREURL></REPPICTUREURL>
                      <REPEMAIL></REPEMAIL>
                </BUSINESSPARTNER>
          </BUSINESSPARTNERS>
    </SAPTOAL>
    We have already tried the following things in SPRO.
    CRM --> Marketing --> Marketing Planning and Campaign Management --> Campaign Execution --> Define File Export Variants
    But with this we were not able to get the full XML structure, as required above. We got only this much.
    <?xml version="1.0" encoding="utf-8" ?>
    <DATA>
    <ITEM>
       <Field_1>Test Email.</Field_1>
       <Field_2>Test Email.</Field_2>
       <Field_3>ABC Company.</Field_31>
    </ITEM>
    </DATA>
    Any pointers or help on this will he greatly appreciated.rgrds,
    Randhir Soni

    Hi Prabhu,
    The program SAPFPAYM generates the payment Medium  on the basis of your configuration and background settings, this program does not bydefault give the output in the XML.
    Varient creation for the PMW in T. Code OBPM4, use the same program, which i already done it, even without this it is not be possible to create any payment Medium.
    Regards,
    Rony

  • Concurrent request submission displays Output in xml format ?

    Hi ,
    I am submitting a concurrent request from workflow which is an xml publisher report . my problem when the program is run individually it displays the output correctly in rtf format but when the same request is submitted from worklfow the output comes in xml format ?
    What could be the problem ?
    I am using the standard submission "FND_WF_STANDARD.SUBMITCONCPROGRAM " program and assigning the values directly to it . the submission activity is working fine but the output comes as mentioned above.
    Regards,
    Skg

    Kiran ,
    I am not using fnd_request.submit request coc I don't need to capture the user information for my workflow .
    I am only using the standard " FND_WF_STANDARD.SUBMITCONCPROGRAM " . this Package only submits the concurrent program through workflow in a function.
    no need of backend programming.
    My job is to submit and move to the next function . the output will be determined via custom profile option.
    now, for this package I am directly assigning the values like appshort name , prog shrt name , and parameter.
    there is no mention of layouts anywhere in the standard workflow package .
    its very urgent for me friend.
    Regards,
    Shashank.

  • Problem with getting a D2K report in XML format

    Hi all,
    Could any body give a solution for this problem.
    I have a matrix report like following:
    Q_Statement_Of_Net_Assets ----> main query
    |
    G_Cross ----> Cross product
    | CS_VALUE
    | CS_NET_ASSET
    | CF_COSTI
    |
    | --------------------------------- |
    | | G_CTIF | | ------> Like this I have two more groups
    | --------------------------------- |
    ...... |
    -----------------------------------------------|
    My requirement is i want to print CS_VALUE, CS_NET_ASSET, CF_COSTI values in XML report, these values i am getting in a Normal/RTF format reports.
    But i am not getting in XML format report.
    thanks in advance.
    Vasu

    Thanks Schellyc
    actually I want to creat a new SOAPMessage for the very beginning like this:
    try{
                MessageFactory mf = MessageFactory.newInstance();
                SOAPMessage msg = mf.createMessage();
                SOAPPart sp = msg.getSOAPPart();
                //create the header container
                SOAPEnvelope se = sp.getEnvelope();
                SOAPHeader sh = se.getHeader();
                SOAPBody sb = se.getBody();
            }catch(Throwable e) {
                e.printStackTrace();
            }and I want to get the empty header from this newly created SOAPEnvelop and add my own content into the header as well as the empty body.
    I wrote the code by following the example from the jaxm api.
    can anybody tell me any further information about the NullPointerException?

  • Data is not converting in XML format in output while download in report

    Hi All,     While downloading the report in XML format value '&' is not changing its XML format '&amp', but showing in debug mode and sam thing while download its not showing in output. showing in debug like; MS NA - DCS Tooling & Automation but in output showing the data like:  MS NA - DCS Tooling & Automation because of this getting issue. Please help me out . Thanks and Regards Sankil

    In that case, it is correct.
    Try replacing & with &amp; before downloading xml in case you want & to appear as &amp; in web browser view.

  • How can I convert IDoc in XML format w/DTD into a string?

    I want to send by e-mail outbound IDoc in XML format with its document type definition (DTD).
    I want to be able to get the same output result into a string than the XML file IDoc port type with DTD activated.  I have created a FM (based on SAP "OWN_FUNCTION") assigned to an IDoc port of type ABAP-PI that executes the following processing steps:
    1-Extract outbound IDoc information to get the sender & recipient mail addresses (EDP13 / EDIPHONE tables).
    2-Convert & Transform IDoc data into XML string using FM IDX_IDOC_TO_XML.
    3-Prepare and send e-mail with XML attachement using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    I cand generate the e-mail with the XML file attachement but FM IDX_IDOC_TO_XML does not convert the IDoc with proper formating and DTD.
    What should I use to accomplish the IDoc conversion to XML w/DTD into a string?
    Should I use XSLT tools ?
    How does that work?
    Thank you
    Carl

    muks wrote:
    Use decimal string to number
    Specifically, you can define a constant with a different datatype on the input on the lower left if you need a different datatype (e.g. U8, I64, DBL, etc) Are all your values integers or do you also need to scan fractional numbers? In this case, you should use "fract/exp string to number" instead.
    LabVIEW Champion . Do more with less code and in less time .

  • How to get the metadata (in xml format) of all the fileds in SQl query ?

    Good day ,
    I am using the dbms_xmlgen.getXMLfunction to get the result of any query in xml format.
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.
    I tried to Google it but couldn't find any solution , it's easy to do it in java where I can get the resultset meta data from the resultset but I have to do it in Oracle function since I want the result in xml format and want to use the oracle XML API.
    You may think why I need metadata , the reason is the application will later use this information to sort the data contained in these fields according to their data type provided to.
    Regards
    Sajjad Ahmed Paracha

    Hi,
    Please always say which version of Oracle you're using (SELECT * FROM v$version).
    With this XML I also want the metadata information about all the fields used in the query (passed to getXML function). Is it possible and how can I achieve this.It is possible but with a bit of effort.
    I would use DBMS_SQL utility to parse the query, extract each column's description and then build a METADATA element with the required information.
    Here's an example (11g) :
    DECLARE
      v_query      varchar2(30) := 'select * from scott.emp';
      v_cur        integer;
      v_desc_tab   dbms_sql.desc_tab;
      v_col_cnt    number;
      v_col_lst    varchar2(4000);
      v_xml_query  varchar2(32767);
      xml_metadata_coll xmlsequencetype := xmlsequencetype();
      xml_metadata      xmltype;
      res          clob;
    BEGIN
      v_cur := dbms_sql.open_cursor;
      dbms_sql.parse(v_cur, v_query, dbms_sql.native);
      dbms_sql.describe_columns(v_cur, v_col_cnt, v_desc_tab);
      dbms_sql.close_cursor(v_cur);
      for i in 1 .. v_col_cnt loop
        if i > 1 then
          v_col_lst := v_col_lst || ', ';
        end if;
        v_col_lst := v_col_lst || v_desc_tab(i).col_name;
        xml_metadata_coll.extend;
        select xmlelement("COLUMN"
               , xmlattributes(v_desc_tab(i).col_name as "name")
               , xmlforest(
                   case v_desc_tab(i).col_type
                     when 1   then 'VARCHAR2'
                     when 2   then 'NUMBER'
                     when 12  then 'DATE'
                     when 180 then 'TIMESTAMP'
                     else 'UNKNOWN'
                   end as "DATATYPE"
                 , v_desc_tab(i).col_max_len as "MAX_LENGTH"
                 , v_desc_tab(i).col_precision as "PRECISION"
                 , v_desc_tab(i).col_scale as "SCALE"
        into xml_metadata_coll(i)
        from dual;
      end loop;
      v_xml_query :=
    'SELECT XMLSerialize(document
             XMLElement("ROOT"
             , :1
             , XMLElement("ROWSET"
               , XMLAgg(
                   XMLElement("ROW", XMLForest(' || v_col_lst || '))
             ) as clob indent
    FROM ( ' || v_query || ')';
      select xmlelement("METADATA", xmlagg(column_value))
      into xml_metadata
      from table(xml_metadata_coll)
      execute immediate v_xml_query into res using xml_metadata;
      dbms_output.put_line(res);
    END;
    /Ouput :
    <ROOT>
      <METADATA>
        <COLUMN name="EMPNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="ENAME">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>10</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="JOB">
          <DATATYPE>VARCHAR2</DATATYPE>
          <MAX_LENGTH>9</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="MGR">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>4</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="HIREDATE">
          <DATATYPE>DATE</DATATYPE>
          <MAX_LENGTH>7</MAX_LENGTH>
          <PRECISION>0</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
        <COLUMN name="SAL">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="COMM">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>7</PRECISION>
          <SCALE>2</SCALE>
        </COLUMN>
        <COLUMN name="DEPTNO">
          <DATATYPE>NUMBER</DATATYPE>
          <MAX_LENGTH>22</MAX_LENGTH>
          <PRECISION>2</PRECISION>
          <SCALE>0</SCALE>
        </COLUMN>
      </METADATA>
      <ROWSET>
        <ROW>
          <EMPNO>7369</EMPNO>
          <ENAME>SMITH</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7902</MGR>
          <HIREDATE>1980-12-17</HIREDATE>
          <SAL>800</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7499</EMPNO>
          <ENAME>ALLEN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-20</HIREDATE>
          <SAL>1600</SAL>
          <COMM>300</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7521</EMPNO>
          <ENAME>WARD</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-02-22</HIREDATE>
          <SAL>1250</SAL>
          <COMM>500</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7566</EMPNO>
          <ENAME>JONES</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-04-02</HIREDATE>
          <SAL>2975</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7654</EMPNO>
          <ENAME>MARTIN</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-28</HIREDATE>
          <SAL>1250</SAL>
          <COMM>1400</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7698</EMPNO>
          <ENAME>BLAKE</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-05-01</HIREDATE>
          <SAL>2850</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7782</EMPNO>
          <ENAME>CLARK</ENAME>
          <JOB>MANAGER</JOB>
          <MGR>7839</MGR>
          <HIREDATE>1981-06-09</HIREDATE>
          <SAL>2450</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7839</EMPNO>
          <ENAME>KING</ENAME>
          <JOB>PRESIDENT</JOB>
          <HIREDATE>1981-11-17</HIREDATE>
          <SAL>5000</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7844</EMPNO>
          <ENAME>TURNER</ENAME>
          <JOB>SALESMAN</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-09-08</HIREDATE>
          <SAL>1500</SAL>
          <COMM>0</COMM>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7900</EMPNO>
          <ENAME>JAMES</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7698</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>950</SAL>
          <DEPTNO>30</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7902</EMPNO>
          <ENAME>FORD</ENAME>
          <JOB>ANALYST</JOB>
          <MGR>7566</MGR>
          <HIREDATE>1981-12-03</HIREDATE>
          <SAL>3000</SAL>
          <DEPTNO>20</DEPTNO>
        </ROW>
        <ROW>
          <EMPNO>7934</EMPNO>
          <ENAME>MILLER</ENAME>
          <JOB>CLERK</JOB>
          <MGR>7782</MGR>
          <HIREDATE>1982-01-23</HIREDATE>
          <SAL>1300</SAL>
          <DEPTNO>10</DEPTNO>
        </ROW>
      </ROWSET>
    </ROOT>A couple of comments :
    <li> I handle only four datatypes here (VARCHAR2, NUMBER, DATE, TIMESTAMP). Of course you can add more.
    The list of Oracle Type Number is available here : http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#i54330
    Starting with 11g (not sure which release), DBMS_SQL package also declares these numbers through named constants.
    <li> I don't use DBMS_XMLGEN in this example. Instead I rebuild the query using SQL/XML functions and the list of columns that's just been described.

  • Customization of DAC to send emails in XML format

    Hi,
    We need to customize DAC to send emails in XML format to the support team whenever there is a failure of the ETL load.
    We use the HPSC ticketing system.
    Any help to achieve this functionality is much appreciated.
    we have tried to customize the existing email template of DAC, but it is not serving the purpose to generate the ticket in HPSC.
    To generate the HPSC ticket, we have a XML format. We need to customize DAC to use this format.
    This is the version of Oracle BI application we are using:
    Build: 10.1.3.2.1.070411.1900
    Release Version: Oracle Business Intelligence 10.1.3.2.1
    Package: 070411.1900
    Build: 7.9.1.032307.0900
    Release Version: Oracle Business Intelligence Applications 7.9.1
    Package: 032307.0900
    Regards,

    Hi,
    We have raised a SR with Oracle support and are in touch with Engineering also today onwards. However, would like to try out options while waiting for a solution/workaround for this issue.
    Regards,

Maybe you are looking for

  • How do i get my pictures back on my iphone after restoring and backing up my iphone

    hod do i get my pictures back on my iphone after restoring and backing up my iphone?

  • Communication problems? I think so.

    After them not alerting me that Tmobile snagged my phone number from them so I could use it on their Voip service. I find myself not receiving any phone calls, notices, nothing! I came to find my service shut off at random (DSL), worse of all I was m

  • Opening different cursor under same name?

    I have a problem that depending on a if statement I want to open two different cursors. The cursors have the same format for their ROWTYPE. Like: CURSOR a_cur IS SELECT a,b FROM c WHERE d=e; CURSOR b_cur IS SELECT a,b, FROM c WHERE d<>e; Then I want

  • How SYS_EXTRACT_UTC Works?

    Hi Guys, Please let me know how this SYS_EXTRACT_UTC function works.. does this function consider the system timestamp and do the conversion .. because if i use this function in my system it returns a differnet value and when my onsite runs the query

  • Available Serial Numbers in my DB.

    I have SAP B1 8.8 PL 12. I need to know what are all the available serial numbers in my system or if have a serial number i need to know if it is available to sell or not. what tables and flags can i see to get that information. Previously i used to