Tuesday, 7 May 2013

Generate XML file using dbms_xmlgen.getxml


select dbms_xmlgen.getxml('select SHORT_NAME,CHART_OF_ACCOUNTS_ID,PERIOD_SET_NAME from gl_sets_of_books
         where rownum <= 3') xml
  from dual

It will generate xml data:


<?xml version="1.0"?>
<ROWSET>
 <ROW>
  <SHORT_NAME>NCR-SDL</SHORT_NAME>
  <CHART_OF_ACCOUNTS_ID>50205</CHART_OF_ACCOUNTS_ID>
  <PERIOD_SET_NAME>NCR Calendar</PERIOD_SET_NAME>
 </ROW>
 <ROW>
  <SHORT_NAME>NCR SG</SHORT_NAME>
  <CHART_OF_ACCOUNTS_ID>50205</CHART_OF_ACCOUNTS_ID>
  <PERIOD_SET_NAME>NCR Calendar</PERIOD_SET_NAME>
 </ROW>
 <ROW>
  <SHORT_NAME>NCR JP</SHORT_NAME>
  <CHART_OF_ACCOUNTS_ID>50205</CHART_OF_ACCOUNTS_ID>
  <PERIOD_SET_NAME>NCR Calendar</PERIOD_SET_NAME>
 </ROW>
</ROWSET>




No comments:

Post a Comment

CREATING A SUPPLIER IN R12 (Functional and SUPPLIERS IN TCA)

Who is a Supplier? Let us now understand who is a Supplier with the help of a simple example: We consider us as a business, who sell...