How to modify Data Template  ARXSGPO.xml

We are on EBS 12.1.1. My client want to customize AR Customer Balance Statement Letter. They need rtf to be modified as well as some additional info for which I need to modify Data Template ARXSGPO.xml .
But I am not able to modify above xml file. Update File button has been disabled. Could someone tell me how I can update existing xml file ?
Thanks in Advance

Hi
You could use the XDOLoader command to upload data templates.
http://bipublisher.blogspot.com/2008/01/bi-publisher-xdo-loader.html
But it would be better if you could create a custom report and attach the new date template, instead of modifying the standard report.
Regards
Nishka

Similar Messages

  • Problem with data template in XML publisher

    When I create data template in xml publisher and save it, I get next message:
    dbase:
    Failed to save data.
    Error occurred when creating xml data.
    undefined
    NaN
    NaN
    dbase is a database server
    JDBC connection name:asu_fox
    JDBC connection URL: jdbc:oracle:thin:@dbase:1521:ora03
    Text in data template:
    <?xml version="1.0" encoding="UTF-8"?>
    <dataTemplate name="data_report_2" description="data template for reports 2 and 10"
    dataSourceRef="asu_fox" version="1.0">
    <dataQuery>
         <sqlStatement name="Q1">
              <![CDATA[select kol_pl,kol_sv,trud_pl,trud_sv,nom_per_p,kod_polu_p,p_v,kod_tmc,liter,kol_skl,nom_per,shifr_dse,shifr_izd,kod_polu,kod_post,trud,kol_m,tip_rin,kod_op,kod_op0,order1,n_val,shifr_usel_val,sum_trud_val,sum_trud_val_sv from reporter.t_plan_report_2]]>
         </sqlStatement>
    </dataQuery>
    <dataStructure>
         <group name="group_all" source="Q1">
              <element name="kol_pl_l" value="kol_pl"/>
              <element name="kol_sv_l" value="kol_sv"/>
              <element name="trud_pl_l" value="trud_pl"/>
              <element name="trud_sv_l" value="trud_sv"/>
              <element name="nom_per_p_l" value="nom_per_p"/>
              <element name="kod_polu_p_l" value="kod_polu_p"/>
              <element name="p_v_l" value="p_v"/>
              <element name="kod_tmc_l" value="kod_tmc"/>
              <element name="liter_l" value="liter"/>
              <element name="nom_per_l" value="nom_per"/>
              <element name="shifr_dse_l" value="shifr_dse"/>
              <element name="shifr_izd_l" value="shifr_izd"/>
              <element name="kod_polu_l" value="kod_polu"/>
              <element name="kod_post_l" value="kod_post"/>
              <element name="trud_l" value="trud"/>
              <element name="kol_m_l" value="kol_m"/>
              <element name="tip_rin_l" value="tip_rin"/>
              <element name="kod_op_l" value="kod_op"/>
              <element name="kod_op0_l" value="kod_op0"/>
              <element name="order1_l" value="order1"/>
              <element name="n_val_l" value="n_val"/>
              <element name="shifr_usel_val_l" value="shifr_usel_val"/>
              <element name="sum_trud_val_l" value="sum_trud_val"/>
              <element name="sum_trud_val_sv_l" value="sum_trud_val_sv"/>
         </group>
    </dataStructure>
    </dataTemplate>
    I get this error with different data templates.
    Help me, please.
    Vladimir

    Hi Vladimir
    Can you test the data template posted here. http://static7.userland.com/oracle/gems/leslieStuddard/EMPLOYEES.xml
    It needs to connect to the sample scott schema, hopefully you have it installed?
    Let me know if you get the same error.
    thanks
    Tim

  • How to migrate rtf Templates in XML Publisher ?

    Hi All,
    I want the script so that i can download and upload the RTF files directly from my development instance to my production instance.
    For this i have come across 3 links
    How to migrate rtf Templates in XML Publisher?
    http://download.oracle.com/docs/cd/B40089_10/current/acrobat/120xdoig.pdf
    unable to migrate physical files using XDO Loader utility
    and from here i am running this command from /home/aryan directory
    java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD fnd -JDBC_CONNECTION sharp.apps.com:1522:tst1 -LOB_TYPE TEMPLATE -APPS_SHORT_NAME CUSTOM -LOB_CODE ZEMP -LANGUAGE en -TERRITORY US
    but it is giving me error "ksh: java: not found". could anyone can tell me how and from where i have to run the download and upload command
    Thanks
    Aryan

    Hi Hussein,
    I tried with applmgr also and still for java -version it is giving me error ksh Java not found
    and for which java it is giving me error no java found in different directories path.
    Thanks
    Aryan

  • How to define data-sources-alias.xml to use Oracle data source

    Hi,
    I created Oracle jdbc Data Source named "MYDS" in Visual Admin.  I added the alias = MYDS_ALIAS.  I set the Initial Connection to 2.  On the Monitor tab, I see a green line running across the screen.  The datasource MYDS is connected to the Oracle.
    Now, I would like to define "data-sources-alias.xml" to use MYDS.
    When creating data-source-aliases.xml it creates the alias by default on ${com.sap.datasource.default} which is the default DB.
    I followed the link --> How to point data-source-aliases.xml to another Datasource
    and my data-sources-alias.xml is now:
    <data-source-aliases>
         <aliases>
              <data-source-name>$</data-source-name>
              <alias>BRANCH50DS</alias>
         </aliases>
    </data-source-aliases>
    The "EAR generatation has finished successfully", but when "Deploy to J2EE Engine", I got the error below:
    1) How to define data-sources-alias.xml to use Oracle data source?
    2) I found the link (SDA Deployment error) talking about "sda-dd.xml".  How to create "sda-dd.xml" and make it use substitution variables "MYDS"
    Dec 20, 2005 3:53:41 PM /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] INFO:
    [003]Additional log information about the deployment
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7181 - 630_SP]/>
    <!NAME[C:\usr\sap\J2E\JC00\SDM\program\log\sdmcl20051220205339.log]/>
    <!PATTERN[sdmcl20051220205339.log]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%24d %s: %m)]/>
    <!ENCODING[Cp1252]/>
    <!LOGHEADER[END]/>
    Dec 20, 2005 3:53:39 PM  Info: -
    Starting deployment -
    Dec 20, 2005 3:53:39 PM  Info: Loading selected archives...
    Dec 20, 2005 3:53:39 PM  Info: Loading archive 'C:\usr\sap\J2E\JC00\SDM\program\temp\temp856850022Ear.ear'
    Dec 20, 2005 3:53:40 PM  Info: Selected archives successfully loaded.
    Dec 20, 2005 3:53:40 PM  Info: Actions per selected component:
    Dec 20, 2005 3:53:40 PM  Info: Update: Selected development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28' updates currently deployed development component '50022Ear'/'sap.com'/'localhost'/'2005.12.19.18.39.12'.
    Dec 20, 2005 3:53:40 PM  Info: Saved current Engine state.
    Dec 20, 2005 3:53:40 PM  Info: Error handling strategy: OnErrorStop
    Dec 20, 2005 3:53:40 PM  Info: Update strategy: UpdateAllVersions
    Dec 20, 2005 3:53:40 PM  Info: Starting: Update: Selected development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28' updates currently deployed development component '50022Ear'/'sap.com'/'localhost'/'2005.12.19.18.39.12'.
    Dec 20, 2005 3:53:40 PM  Info: SDA to be deployed: C:\usr\sap\J2E\JC00\SDM\root\origin\sap.com\50022Ear\localhost\2005.12.20.15.53.28\temp856850022Ear.ear
    Dec 20, 2005 3:53:40 PM  Info: Software type of SDA: J2EE
    Dec 20, 2005 3:53:40 PM  Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) *****
    Dec 20, 2005 3:53:41 PM  Info: Begin of log messages of the target system:
    05/12/20 15:53:40 -  ***********************************************************
    05/12/20 15:53:41 -  Start updating EAR file...
    05/12/20 15:53:41 -  start-up mode is lazy
    05/12/20 15:53:41 -  com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [MYDS].
                              at com.sap.engine.deploy.manager.DeployManagerImpl.makeTempEar(DeployManagerImpl.java:3727)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.makeNewEar1(DeployManagerImpl.java:3695)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:523)
                              at com.sap.engine.deploy.manager.DeployManagerImpl.update(DeployManagerImpl.java:512)
                              at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:196)
                              at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)
                              at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)
                              at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)
                              at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)
                              at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:46)
                              at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)
                              at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)
                              at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)
                              at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)
                              at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)
                              at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.doPhysicalDeployment(DeployerImpl.java:127)
                              at com.sap.sdm.app.sequential.deployment.impl.DeployerImpl.deploy(DeployerImpl.java:96)
                              at com.sap.sdm.apiimpl.local.DeployProcessorImpl.deploy(DeployProcessorImpl.java:67)
                              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                              at java.lang.reflect.Method.invoke(Method.java:324)
                              at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.requestRemoteCall(RemoteProxyServerImpl.java:127)
                              at com.sap.sdm.is.cs.remoteproxy.server.impl.RemoteProxyServerImpl.process(RemoteProxyServerImpl.java:38)
                              at com.sap.sdm.apiimpl.remote.server.ApiClientRoleCmdProcessor.process(ApiClientRoleCmdProcessor.java:81)
                              at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)
                              at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)
                              at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:280)
                              at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)
                              at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)
                              at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)
                              at java.lang.Thread.run(Thread.java:534)
    05/12/20 15:53:41 -  ***********************************************************
    Dec 20, 2005 3:53:41 PM  Info: End of log messages of the target system.
    Dec 20, 2005 3:53:41 PM  Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
    Dec 20, 2005 3:53:41 PM  Error: Aborted: development component '50022Ear'/'sap.com'/'localhost'/'2005.12.20.15.53.28':
    Caught exception during application deployment from SAP J2EE Engine's deploy API:
    com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [MYDS].
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
    Dec 20, 2005 3:53:41 PM  Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.
    Dec 20, 2005 3:53:41 PM  Error: -
    At least one of the Deployments failed -

    Hi,
    If you remove the $ and braces (as shown below) it will work.
    <data-source-aliases>
    <aliases>
    <data-source-name>MYDS</data-source-name>
    <alias>BRANCH50DS</alias>
    </aliases>
    </data-source-aliases>
    Regards,
    S.Divakar

  • How to get data out of XML?

    Hi,All.
    I am running SAX (JAXP1.01) in Applet to process XML file. My question is how to get data out of xml format according to the field name (@age,@rank etc)
    and write into string buffer seperated by comma.
    Should I use SAX or DOM? (file size is big)
    My xml as follow :
    <ROOT>
    <FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@team/relay}">
         <ObjectName>Field124</ObjectName>
         <FormattedValue>HUNTER</FormattedValue>
         <Value>HUNTER</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@age}">
         <ObjectName>Field125</ObjectName>
         <FormattedValue> 19</FormattedValue>
         <Value> 19</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field126</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{results.athrel_name}">
         <ObjectName>Field127</ObjectName>
         <FormattedValue>1-1 NORRIE</FormattedValue>
         <Value>1-1 NORRIE</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2}">
         <ObjectName>Field128</ObjectName>
         <FormattedValue>1:54.75</FormattedValue>
         <Value>1:54.75</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1course}">
         <ObjectName>Field129</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1std}">
         <ObjectName>Field130</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2course}">
         <ObjectName>Field131</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield2std}">
         <ObjectName>Field132</ObjectName>
         <FormattedValue>QT</FormattedValue>
         <Value>QT</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@points(left)}">
         <ObjectName>Field133</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@pointsdecimal}">
         <ObjectName>Field134</ObjectName>
         <FormattedValue/>
         <Value/>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:decimal" FieldName="{@points(right)}">
         <ObjectName>Field135</ObjectName>
         <FormattedValue>0</FormattedValue>
         <Value>0.00</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@timefield1}">
         <ObjectName>Field136</ObjectName>
         <FormattedValue>1:55.98</FormattedValue>
         <Value>1:55.98</Value>
    </FormattedReportObject>
    <FormattedReportObject xsi:type="CTFormattedField" Type="xsd:string" FieldName="{@Rank}">
         <ObjectName>Field137</ObjectName>
         <FormattedValue>43</FormattedValue>
         <Value>43</Value>
    </FormattedReportObject>
    Repeat...
    </FormattedReportObject>
    </ROOT>
    ------------------------------------------------

    For big files use SAX: quicker and less memory usage.
    The xerces parser from Apache has some examples. Basically what you do is scan the XML, remembering what tag you are and once you find the right tag, read the contents.

  • How to update data in a xml file.

    I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.

    Hi,
    For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
    Have you managed to find a solution ?
    (P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
    Best Regards,
    A.Dyankov.

  • Data template with xml over http

    Hi!
    I have a data template what should get data from xml file.
    <dataTemplate name="ccbXML" description="For xml output">
    <properties>
    <property name="debug_mode" value="on"/>
    <property name="include_parameters" value="true"/>
    <property name="include_null_Element" value="true"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="1000"/>
    </properties>
    <dataQuery>
    <xml name="DATA_XML">
    <url method="GET" realm="" username="" password="">http://my.site.sise/00000000070000000001.xml</url>
    </xml>
    </dataQuery>
    </dataTemplate>
    The result is:
    <CCBXML>
         <LIST_data_xml></LIST_data_xml>
    </CCBXML>
    When I use:
    <url method="GET" realm="" username="" password="">file:///D:\files\result.xml</url>
    then I get a parsal result from the XML (it is not structuated and it does not show all the xml content, only random tag's).
    In the end it is not possible for me to use the file protocol because the xml is generated dynamically in a http page. Is it even possible to use the http protocol in data template? Or is anything else wrong with my data template that I'm not getting the right result (even with file:///)?
    I work BI Publisher Enterprise Release 10.1.3.4
    Evelyn

    Could u please send the working example for http binding on SOA Suite 11 g.
    Thanks and Regards,
    Anil verma

  • Functions needed in Data Template for XML output

    Hi ,
    Are there any oracle functions like abs() available
    in data_template to be used as follows
    group name="listItem" source="Q2">
    <element name="amount" value="abs(amount)"/>
    <element name="serialNumber" value="TXN_SERIAL_NO"/>
    I want the absolute value of the amount .
    OR
    Can I HIDE the xml Element like
    <element name="amount" value="amount"/> (i want to hide this tag in output?)
    Please do not suggest to do the same in the SQL query as I am using the SQL query to do something else and resolve another issue.
    rdgs
    xyz

    You can do this abs in Template.
    use xdoxslt:abs or abs from xsl.
    if you want the data in the xml to habe absolute value , then write pl/sql package to this .
    <element name="amount" value="yourpcakage.yourabs(amount)"/>
    or do it in sql query, which you dont want to.

  • How to create Data Template for creation of BI Pulisher Report

    Hi,
    I m having all the steps for creation of BI Pulisher report using Data Template, like 1st create Data Template, Add new Data Definition, upload Data Template, Create Concurrent Program and run the request, save o/p and create rtf layout, upload Template and again run Concurrent program to view output.
    All steps are working fine.. but my simple question is every time we need to write code for Data Template i.e. xml file ? is there is tool or something which will create this Data template for us using rdf? or is there any other way ?
    Please guide ..
    Regards,
    Priyanka.

    Hi;
    Please see below note which could be helpful for your issue:
    NOTE:367394.1 - About Oracle XML Publisher Release 5.6.2
    Also see:
    http://www.adivaconsulting.com/adiva-blog/item/5-datatemplate
    http://apps2fusion.com/at/51-ps/262-xml-publisher-and-data-template-sql-query-to-develop-bi-publisher-reports
    http://blogs.oracle.com/xmlpublisher/data_extraction/data_templates/
    Regard
    Helios

  • Data template - no xml data?

    Hello,
    I have a data template that does not seem to want to display my data. I am at a loss as to why… The select works and returns the data correctly.
    Data I get when I run the select is from SQL Developer:
    01-JAN-08     Hourly     1155     31     0
    01-JAN-08     Salary     269     1     0
    01-FEB-08     Hourly     1196     56     2
    01-FEB-08     Salary     271     0     2
    01-MAR-08     Hourly     1396     45     0
    01-MAR-08     Salary     316     6     0
    My data template is here:
    <dataTemplate name="AZZ_HR_TURNOVER">
         <!-- Confidential and Copyright AZZ Inc. -->
         <properties>
              <property name="xml_tag_case" value="upper"/>
         </properties>
         <parameters>
              <parameter name="P_START_DATE" dataType="date"/>
              <parameter name="P_END_DATE" dataType="date"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q_AZZ_HR_TURNOVER">
                   <![CDATA[
    SELECT TURNOVER_MONTH AZZ_TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis) AZZ_PAY_BASIS,
    COUNT(
    CASE
    WHEN pps_date_start <= trunc(TURNOVER_MONTH,'MM')
    AND pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM')
    THEN 1 --active during period
    END) EE_ACTIVE,
    COUNT(
    CASE
    WHEN pps_actual_termination_date IS NOT NULL
    AND pps_actual_termination_date BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
    THEN 'T' --term during period
    END) EE_TERM,
    COUNT(
    CASE
    WHEN pps_date_start BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
    THEN 'N' --new hire
    END) EE_NEWHIRE
    FROM (
    SELECT ppb.name pay_basis,
    pps.date_start pps_date_start,
    pps.actual_termination_date pps_actual_termination_date,
    TURNOVER_MONTH
    FROM per_all_people_f ppf,
    per_periods_of_service pps,
    per_all_assignments_f asg,
    hr_soft_coding_keyflex hsck,
    hr_all_organization_units hou_gre,
    hr_all_organization_units hou,
    per_person_type_usages_f pptu,
    per_person_types ppt,
    per_pay_bases ppb,
    hr_lookups hrl_l,
    (SELECT DISTINCT(TRUNC(to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + rownum -1, 'MM')) turnover_month
    FROM all_objects
    WHERE rownum <= to_date(substr(:p_end_date,1,10),'YYYY-MM-DD') - to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + 1)
    WHERE ppf.person_id = pps.person_id
    AND ppf.person_id = asg.person_id
    AND asg.pay_basis_id = ppb.pay_basis_id
    AND pps.period_of_service_id = asg.period_of_service_id
    AND asg.soft_coding_keyflex_id = hsck.soft_coding_keyflex_id
    AND hsck.segment1 = hou_gre.organization_id
    AND hsck.enabled_flag = 'Y'
    AND asg.primary_flag = 'Y'
    AND asg.assignment_type = 'E'
    AND asg.organization_id = hou.organization_id
    AND ppf.person_id = pptu.person_id
    AND pptu.person_type_id = ppt.person_type_id
    AND user_person_type IN ('Employee','Ex-employee')
    AND hrl_l.lookup_type(+) = 'LEAV_REAS'
    AND hrl_l.lookup_code(+) = pps.leaving_reason
    AND date_start = (SELECT MAX(date_start)
    FROM per_periods_of_service pps1
    WHERE pps1.period_of_service_id = pps.period_of_service_id
    AND date_start <= last_day(TURNOVER_MONTH) )
    AND ppf.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_all_people_f ppf1
    WHERE ppf1.person_id = ppf.person_id
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND asg.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_all_assignments_f asg1
    WHERE asg1.person_id = asg.person_id
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND pptu.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_person_type_usages_f pptu1,
    per_person_types ppt1
    WHERE pptu1.person_id = pptu.person_id
    AND pptu1.person_type_id = ppt1.person_type_id
    AND ppt1.user_person_type IN ('Employee','Ex-employee')
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou.date_to, last_day(TURNOVER_MONTH))
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou_gre.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou_gre.date_to, last_day(TURNOVER_MONTH))
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hsck.start_date_active,last_day(TURNOVER_MONTH)) AND NVL(hsck.end_date_active, last_day(TURNOVER_MONTH))
    AND TRUNC(pps.date_start) != TRUNC(NVL(pps.actual_termination_date, to_date('31-DEC-4712','DD-MON-YYYY')))
    WHERE pps_date_start <= trunc(TURNOVER_MONTH,'MM')
    AND (pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM'))
    GROUP BY TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
    ORDER BY TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_TURNOVER_MONTH" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                   <element name="AZZ_TURNOVER_MONTH" dataType="varchar2" value="AZZ_TURNOVER_MONTH"/>
                   <group name="G_AZZ_PAY_BASIS" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                        <element name="AZZ_PAY_BASIS" dataType="varchar2" value="AZZ_PAY_BASIS"/>
                        <group name="G_AZZ_EE_COUNT" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                             <element name="EE_ACTIVE" dataType="varchar2" value="EE_ACTIVE"/>
                             <element name="EE_TERM" dataType="varchar2" value="EE_TERM"/>
                             <element name="EE_NEWHIRE" dataType="varchar2" value="EE_NEWHIRE"/>
                        </group>
                   </group>
              </group>
         </dataStructure>
         <dataTrigger name="afterReportTrigger" source="AZZ_HR_TURNOVER.afterreport()"/>
    </dataTemplate>
    And the only output I am getting are my parms and my first group:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <AZZ_HR_TURNOVER>
    <P_START_DATE>2008-01-01 00:00:00.0</P_START_DATE>
    <P_END_DATE>2008-07-15 00:00:00.0</P_END_DATE>
    <LIST_G_TURNOVER_MONTH />
    </AZZ_HR_TURNOVER>
    Any asistance is much appreciated.
    Scott

    Thanks, but I just found the problem... Never trust Oracle to handle date conversions, esp in BIP. The corrected template below -- only change was the dataType of my parms to char (!)
    Scott
    <dataTemplate name="AZZ_HR_TURNOVER">
         <!-- Confidential and Copyright AZZ Inc. -->
         <properties>
              <property name="xml_tag_case" value="upper"/>
         </properties>
         <parameters>
              <parameter name="P_START_DATE" dataType="char"/>
              <parameter name="P_END_DATE" dataType="char"/>
         </parameters>
         <dataQuery>
              <sqlStatement name="Q_AZZ_HR_TURNOVER">
                   <![CDATA[
    SELECT substr(to_char(TURNOVER_MONTH),1,10) AZZ_TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis) AZZ_PAY_BASIS,
    COUNT(
    CASE
    WHEN pps_date_start <= trunc(TURNOVER_MONTH,'MM')
    AND pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM')
    THEN 1 --active during period
    END) EE_ACTIVE,
    COUNT(
    CASE
    WHEN pps_actual_termination_date IS NOT NULL
    AND pps_actual_termination_date BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
    THEN 'T' --term during period
    END) EE_TERM,
    COUNT(
    CASE
    WHEN pps_date_start BETWEEN trunc(TURNOVER_MONTH,'MM') AND last_day(TURNOVER_MONTH)
    THEN 'N' --new hire
    END) EE_NEWHIRE
    FROM (
    SELECT ppb.name pay_basis,
    pps.date_start pps_date_start,
    pps.actual_termination_date pps_actual_termination_date,
    TURNOVER_MONTH
    FROM per_all_people_f ppf,
    per_periods_of_service pps,
    per_all_assignments_f asg,
    hr_soft_coding_keyflex hsck,
    hr_all_organization_units hou_gre,
    hr_all_organization_units hou,
    per_person_type_usages_f pptu,
    per_person_types ppt,
    per_pay_bases ppb,
    hr_lookups hrl_l,
    (SELECT DISTINCT(TRUNC(to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + rownum -1, 'MM')) turnover_month
    FROM all_objects
    WHERE rownum <= to_date(substr(:p_end_date,1,10),'YYYY-MM-DD') - to_date(substr(:p_start_date,1,10),'YYYY-MM-DD') + 1)
    WHERE ppf.person_id = pps.person_id
    AND ppf.person_id = asg.person_id
    AND asg.pay_basis_id = ppb.pay_basis_id
    AND pps.period_of_service_id = asg.period_of_service_id
    AND asg.soft_coding_keyflex_id = hsck.soft_coding_keyflex_id
    AND hsck.segment1 = hou_gre.organization_id
    AND hsck.enabled_flag = 'Y'
    AND asg.primary_flag = 'Y'
    AND asg.assignment_type = 'E'
    AND asg.organization_id = hou.organization_id
    AND ppf.person_id = pptu.person_id
    AND pptu.person_type_id = ppt.person_type_id
    AND user_person_type IN ('Employee','Ex-employee')
    AND hrl_l.lookup_type(+) = 'LEAV_REAS'
    AND hrl_l.lookup_code(+) = pps.leaving_reason
    AND date_start = (SELECT MAX(date_start)
    FROM per_periods_of_service pps1
    WHERE pps1.period_of_service_id = pps.period_of_service_id
    AND date_start <= last_day(TURNOVER_MONTH) )
    AND ppf.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_all_people_f ppf1
    WHERE ppf1.person_id = ppf.person_id
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND asg.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_all_assignments_f asg1
    WHERE asg1.person_id = asg.person_id
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND pptu.effective_start_date = (SELECT MAX(effective_start_date)
    FROM per_person_type_usages_f pptu1,
    per_person_types ppt1
    WHERE pptu1.person_id = pptu.person_id
    AND pptu1.person_type_id = ppt1.person_type_id
    AND ppt1.user_person_type IN ('Employee','Ex-employee')
    AND effective_start_date <= last_day(TURNOVER_MONTH) )
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou.date_to, last_day(TURNOVER_MONTH))
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hou_gre.date_from,last_day(TURNOVER_MONTH)) AND NVL(hou_gre.date_to, last_day(TURNOVER_MONTH))
    AND last_day(TURNOVER_MONTH) BETWEEN NVL(hsck.start_date_active,last_day(TURNOVER_MONTH)) AND NVL(hsck.end_date_active, last_day(TURNOVER_MONTH))
    AND TRUNC(pps.date_start) != TRUNC(NVL(pps.actual_termination_date, to_date('31-DEC-4712','DD-MON-YYYY')))
    WHERE pps_date_start <= trunc(TURNOVER_MONTH,'MM')
    AND (pps_actual_termination_date IS NULL OR pps_actual_termination_date >= trunc(TURNOVER_MONTH,'MM'))
    GROUP BY TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
    ORDER BY TURNOVER_MONTH,
    decode(pay_basis, 'CAN Hourly', 'Hourly', 'CAN Salary', 'Salary', pay_basis)
    ]]>
              </sqlStatement>
         </dataQuery>
         <dataStructure>
              <group name="G_TURNOVER_MONTH" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                   <element name="AZZ_TURNOVER_MONTH" dataType="varchar2" value="AZZ_TURNOVER_MONTH"/>
                   <group name="G_AZZ_PAY_BASIS" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                        <element name="AZZ_PAY_BASIS" dataType="varchar2" value="AZZ_PAY_BASIS"/>
                        <group name="G_AZZ_EE_COUNT" dataType="varchar2" source="Q_AZZ_HR_TURNOVER">
                             <element name="EE_ACTIVE" dataType="varchar2" value="EE_ACTIVE"/>
                             <element name="EE_TERM" dataType="varchar2" value="EE_TERM"/>
                             <element name="EE_NEWHIRE" dataType="varchar2" value="EE_NEWHIRE"/>
                        </group>
                   </group>
              </group>
         </dataStructure>
         <dataTrigger name="afterReportTrigger" source="AZZ_HR_TURNOVER.afterreport()"/>
    </dataTemplate>

  • How to read data with different XML schemas within the single connection?

    I have Oracle 11g database
    I access it through jdbc:oracle:thin, version 11.2.0.3, same as xdb.
    I have several tables, each has one XMLType column, all schema-based.
    There are three different XML schemata registered in the DB
    I may need to read the XML data from several tables.
    If all the XMLTypes have the same XML schema ,there is no problem,
    If the schemata are different, the second read throws BindXMLException.
    If I reset the connection between the reads of the XMLType column with different schemata, it works.
    The question is: how can I configure the driver, or the connection to be able to read the data with different XML schemata without resetting the connection (which is expensive).
    The code to get the XMLType data is textbook implementation:
    1   ResultSet resultSet = statement.executeQuery( sql ) ;
    2   String result = null ;
    3    while(resultSet.next()) {
    4   SQLXML sqlxml = resultSet.getSQLXML(1) ;
    5   result = sqlxml.getString() ;
    6   sqlxml.free();
    7   }
    8   resultSet.close();
    9    return result ;

    It turns out, that I needed to serialize the XML on the server and read it as Blob. Like this:
    1    final Statement statement = connection.createStatement() ;
    2    final String sql = String.format("select xmlserialize(content xml_content_column as blob encoding 'UTF-8') from %s where key='%s'", table, key ) ;
    3   ResultSet resultSet = statement.executeQuery( sql ) ;
    4   String result = null ;
    5    while(resultSet.next()) {
    6   Blob blob = resultSet.getBlob( 1 );
    7   InputStream inputStream = blob.getBinaryStream();
    8   result = new Scanner( inputStream ).useDelimiter( "\\A" ).next();
    9   inputStream.close();
    10   blob.free();
    11   }
    12   resultSet.close();
    13   statement.close();
    14
    15   System.out.println( result );
    16    return result ;
    17
    Then it works. Still, can't get it work with XMLType in resultset.On the client unwrapping XML blows up when trying to switch to different XML schema. JDBC/XDB problem?

  • How to write data to an XML file present under application server

    frnds: can ne one tell me, how to write data in to a file, which is present under a application server
    Ex: i want to write a string data in to a file test.txt which is present under "http://localhost:8080/<some_webapp>/test.txt"
    Note:i have deploted a service<some_webapp> under Tomcat/webapps dir

    Very simple. A servlet can writes to that file if it has the good rights.
    In the servlet get (or post) method, use a code like this:
    import java.io.*;
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) {
    try {
    String filePath = this.getServletContext().getRealPath("/text.txt");//See http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#getRealPath(java.lang.String)
             PrintWriter writer = new PrintWriter (filePath);
            //or BufferedWriter out = new BufferedWriter(new FileWriter(filePath));
            writer .println("aString");
           writer.flush();
            writer .close();
        } catch (Exception e) {
           e.printStackTrace();
    }Hope That Helps

  • How to delete data definition form XML Publisher Administrator

    Hi all,
    I want to ask is there any possibility to delete existing data definition from XML Publisher Administrator responsibility?
    Version: 11.1.0.7.0
    Regards,
    Alexander.

    Hi,
    Once you opened the page, before do any action in it follow the below steps.
    1. Click the link 'About this page' in the left bottom.
    2. Click the Expand All option under page definition
    3. Then click on the view object 'TemplatesVO2' against the view attribute 'Data Source Name'
    4. A select query will be appeared in that you can find the source table for that particular page.
    Regards,
    Sathya

  • How to modify date format for Standard Purchase Order  Template XSL-FO

    I am editing the XSL-FO for the Standard Purchase Order.
    I need to modify the promised date column to 'DD-MON-YYYY’' , tried to use substring in below line but it didn't work
    <xsl:value-of select="LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE"/>
    Any solution for this ?
    thanks
    Pravin

    Thanks for your response.
    I tried to change the code in below format but it was giving error.
    Original code
    <xsl:value-of select="LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE"/>
    modified to
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd/mmm/yyyy hh24:mi:ss',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    also tried with
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd-mmm-yyyy hh24:mi:ss',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    also tried like
    <xsl:value-of select="xdoxslt:format_date(LINE_LOCATIONS/LINE_LOCATIONS_ROW/PROMISED_DATE,'dd-mmm-yyyy','dd/mmm/yyyy',$_XDOLOCALE,$_XDOTIMEZONE)"/>
    Tried above 3 methods but it didn't work.
    right now the date format in pdf file is 24-MAY-2011 21:56:24 i need to remove 21:56:24 and have only 24-MAY-2011
    any suggestions.
    thanks

  • How to modify a template and use both old/new in the same library without interference

    OK first Thank you for reading this and hopefully being able to help me out. I got dumped this project on my desk to update two different templates already published in
    share point(2010) years ago. The original developer left the company 4 years ago. Since then anyone that tried to do anything with them made a big mess. I have done some heavy reading and am stuck on few issues.
    Please note the templates were created IP 2007 and I will be using IP 2007 to modify them. The temples have a small amount of C# that does not have to be changed. There is also a digital signature linked to them.
    After some heavy reading this week. I figured that I need to edit the template from Share point(2010)/IP(2007) and not copy the templates to a different location laptop/desktop
    because that will ruin the digital signature. There is also a large volume of submitted forms from these temples. The new version of the temples will be heavily modified deleting rolls columns changing names. My understanding is that since I want to keep the
    old submitted forms the way they are and still use the old template to open them. I would need a second version of the original template with all the visual modification to still use the original template's C# digital signatures and any other file that runs
    in the background.
    The plan:
    1)Turn off the automatic update to forms/template when a new version of the template is created.
    2) Copy the existing template (.xsn) file to a new document folder in share point(same network).
    3) Change the name of the .XSN file that I copied and modify it??????????? Will keeping the same name interfere with the old template/C# digital signature ect? I would like to change to something like SameName_version_2015 for example. or will changing the
    name cut the link to the old C# digital signature? or will it get modify the background files and break the old template/submitted files.
    4) Publish the new template in share point.
    5) Change the data connection to a new directory that I wish to submit all files.
    Please advice am I missing anything? and help me understand my step 3 better. Also I would love to get a better understanding of how i can backup and recover everything. Do I simple copy unmodified .XSN files somewhere and publish them if things goes wrong?
    Do I need to backup anything else?
    I am open to options if I can create a test folder in the share point for safety.
    Once again THANK YOU for trying to help.

    Hi, thanks for the reply!
    Just to follow up for what we did to disable the delete function for maintaining table records. We hided the Delete button by adding a "MODULE disable_delete" code in Screen Painter. So now only adding records to the table is allowed.
    Thanks,
    Jenny

Maybe you are looking for

  • Mass Creation of Purchasing Info Records

    Hi all, we want to change the vendor for a certain amount of articles (old vendor e.g. 102, new vendor e.g. 768). To order the articles (maybe approx. 1000) by the new vendor, we need to create new Purchasing Info Record (for vendor 768) for every ar

  • Internet videos are a black screen

    I just added a second screen to my desktop. After getting that working suddenly all internet videos are solid black screens. I hear the audio and see all the controls, but if I fiddle with the video it freezes on me and a pop up saying shockwave flas

  • Reservations are not deleted

    why are reservations for a certain material not deleted or removed, even if i had deleted a production order, or if an order has already been fully confirmed (even if clear reservations) have been corrected.?

  • Odisqlunload giving  java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 134217744 error

    Hi All, We are using SQLUnload to capture the records from one of the table and storing the records in xls file. While executing the SQLUnload procedure, we are getting the below error: java.lang.OutOfMemoryError: allocLargeObjectOrArray: [C, size 13

  • This is more of a computer question, but help is welcome!

    Okay. So I downloaded the program to get movies from a personal collection on an iPod, but my computer isn't reckonizing that there is a disc in the drive. I put the DVD in the drive, and it says to insert a disc into the drive. Can anyone help me?