Grouping of Individual groups of Data Template in the RTF

Hi All,
We have a scenario where we may require the grouping of Individual groups of Data Template in the RTF.
Lets say
1. I have group of Invoices with the Group Name G_INV
2. I have a list of Payments done for the Invoices under G_PAY
3. I also have a list of Prepayment Applications that are happened on the Invoices G_PRE
All the three groups G_INV, G_PAY, and G_PRE are independent and they are at same level
G_INV (Main Header)
G_PAY (Main Header)
G_PRE (Main Header)
Extract
<ROOT>
<G_INV>
<INV>I1</INV>
</G_INV>
<G_INV>
<INV>I2</INV>
</G_INV>
<G_INV>
<INV>I3</INV>
</G_INV>
<G_PAY>
<PAY>P1</PAY>
<INV>I1</INV>
</G_PAY>
<G_PAY>
<PAY>P2</PAY>
<PAYINV>I2</PAYINV>
</G_PAY>
<G_PRE>
<PRE>PRE1</PRE>
<PREINV>I1</PREINV>
</G_PRE>
</ROOT>
But in the Report output,
we need the data to be displayed as follows
G_INV (Main Header)
G_PAY (Sub Group of Payments)
G_PRE (Sub Group of Prepayments)
Output
I1
P1
PRE1
I2
P2
I3
So, Can you please suggest us,
Whether we can get these Individual groups into the above required hierarchical manner. If so, please let us know how to achieve the same.
Also, it will be great if you advice us regarding the Performance, how best will be if we group the queries in this heirarchical manner in the RTF rather than getting the hardcoded dependency through linking of the Data Queries in the Data Template file.
Thanks,
Praveen G

Hi
I dont think you can stop the table growing using Word controls. The easiest way to do it would be to limit the amount of data coming in.
<?for-each:LOOPELEMENT[position()<5]?>
This is take only the first 5 rows
Tim

Similar Messages

  • IF THEN ELSE in DATA TEMPLATE NOT IN RTF

    Hi,
    Can any one tell me How to Implement IF THEN ELSE or DECODE or CASE Logic in a DATA TEMPLATE not in RTF
    as I saw loads of Post about implementing them in RTF not in the Template itself.
    I have a requirement please click this below for the Detailed Version of this Post, Else Please Just give me a Snippet from which i can Implement the IF THEN ELSE Logic in a DATA TEMPLATE( the .xml file) bu please not via a RTF not using PL/SQL Package
    Logic to select Report name based on User's input.
    Thanks
    vasanthanand

    Hello
    I am looking to do the same type of thing did you ever get an answer without having to use a RTF format perhaps in another forum or through investigation?

  • Group and Individual Assets Legacy data load

    Hi, I work for a oil and gas company and I am having issues for the initial load for the group and individual assets into SAP .
    Any help in regards to this would be helpful.
    Below are the values that I would like to load into SAP for group ( grp 1 )  and individual assets ( Ind 1 and Ind 2 ) into SAP.  We would like the depreciation to be carried on the group asset level and allocated on the NBV of individual assets ( which I think seems not possible but the standard allocates the depreciation only on acquisition value ) .
    Asset              APC Value         Acc Depreciation      NBV
    grp 1                20,000.00           10,000.00                 10,000.00
    Ind  1               10,000.00            6,000.00                    4,000.00
    Ind  2               10,000.00            4,000.00                    6,000.00
    The problem is for intital load as well once the Ind 1 and Ind 2 are assigned to group asset grp 1 , it doesnt consider the acc depreciation at all , and the system allocations the accumulated depreciation based on apc values rather then NBV as of the load date.
    Also, if I plan to load only the NBV of the group and individual assets only, the clients wants the APC values as well for reporting , so not where I can get those from if I only load the NBV.
    Please let me know other approaches for initial load of group and individual assets that you guys might have worked on .
    Thanks
    bharani

    hi,
    Hope your requirement is to see the takeover values as on legacy asset takeover date, for those group assets mistakenly created with AS21...instead of AS81.
    Am i right...........
    Then you can do this by doing below.
    1) Go to OAAQ, for your CC, the last closed FY should be same as the FY, which is actually used during legacy asset upload.
    2) now go to AS82, for your wrongly created group assets and in takeover values tab, enter the values manually.
    Note: Assets created by AS01/AS21 can changed with AS92/AS82, then you will have takeover values tab in addition to normal AS02/AS22 transactions.
    once updation is finished, then again revert back the changes in OAAQ.
    This will solve your issue.
    Thanks,
    Srinu

  • 5.6.3 XMLPub Data Template

    Does anyone know how to call a 5.6.3 data template?
    I want to extract the data retrieved from the data template in the rtf doc using the xml tag.

    ashee1,
    Please refer XMLP User Guide Chapter 9. You need to define data definitions and upload the data template to DataTemplate filed.
    Create the Template Definition and upload your RTF Template.
    Create a Report Definition in Concurrent Program/Manager and set the executable as XDODTEXE. make sure the program short name is the same as Data Definition.
    Set the output type as XML and the OPP will pick your RTF Template.
    -Ashish

  • Group xml data from different sql queries in data template

    Hello,
    I need to do a mailing program with bursting that sends differents alerts in one mail.
    For example i can have alerts for late orders, alerts for shipping not confirmed, so really different address (I dont want to use union). I have done three sql statement in data template , it gives the following ouput.
    <GA_EMAIL>[email protected]</GA_EMAIL>
    <G_ALERTS_1>
    <ALERT>
    </ALERT>
    <ALERT>
    </ALERT>
    </G_ALERTS_1>
    </GA_EMAIL>
    <GA_EMAIL>[email protected]</GA_EMAIL>
    <G_ALERTS_1>
    <ALERT>
    </ALERT>
    </G_ALERTS_1>
    </GA_EMAIL>
    <GA_EMAIL>[email protected]</GA_EMAIL>
    <G_ALERTS_2>
    </G_ALERTS_2>
    </GA_EMAIL>
    I woud like the bursting or data template to group alerts when email is the same, because here it sends an email for each different alert.
    Ideal output would be:
    <GA_EMAIL>[email protected]</GA_EMAIL>
    <G_ALERTS_1>
    <ALERT>
    </ALERT>
    <ALERT>
    </ALERT>
    </G_ALERTS_1>
    <G_ALERTS_2>
    </G_ALERTS_2>
    </GA_EMAIL>
    But I don't know how to group different sql statements on a common field (email)
    Any ideas ?
    Thanks

    the for-each group works well in a rtf template, but the rtf template is only applied after the bursting (in order I get first data template (instead of a report) -> bursting -> rtf template)
    I want to be able to group xml data from the data template, so I can do bursting (by email ) but only once per mail.

  • Data template and procedure output parameters

    Hi all,
    I have multiple sql statements and a MSSQL procedure witch I have to call when generating a report.
    Therefore I use a data template.
    The MSSQL procedure I call with EXEC. It returns the table that it sould return and everything is fine.
    Except: the procedure also returns a punch of OUTPUT parameters and I don't know how to catch those parameters in my data template.
    I have declared all these parameters in the BIP and also in the data template, but there are no values for them when I execute the report.
    Here is a my current data template:
    <dataTemplate name="NameOfTemplate">
    <properties>
      <property name="include_parameters" value="true"/>
    </properties>
    <parameters>
         <parameter name="clientID" dataType="character"/>
         <parameter name="dept" dataType="number" /> <!--This is for MSSQL output-->
         <parameter name="forpay" dataType="number"/> <!--This is for MSSQL output-->
        <parameter name="name" dataType="character"/> <!--This is for MSSQL output-->
    </parameters>
    <dataQuery>
         <sqlStatement name="ARVE" dataSourceRef="connection1">
              <![CDATA[
              select
              from
                   OAP.ACCOUNTS
              where
                   ACCOUNTS.CLIENT_CODE = :clientID
              ]]>
         </sqlStatement>
         <sqlStatement name="ARVE_T" dataSourceRef="connection2" fixedSchema="false">
              <![CDATA[EXEC Dept_proc
                   @ID = :clientID,
                   @Volg =:dept,
                   @Ettemaks =:forpay,
                   @Nimi =:name]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="ARVE_TULEMUS" source="ARVE">
              <element name="ACCOUNT_SUM" value="SUMMA"/>
         </group>
         <group name="ARVE_TULEMUS" source="ARVE_T">
              <element name="ARVE_NUMBER" value="ARVENUMBER"/>
              <element name="ARVE_KUUPAEV" value="ARVEKUUPAEV"/>
              <element name="ARVE_LEPINGU_SALDO" value="VOLGUSUMMA"/>
         </group>
      </dataStructure>
    </dataTemplate>Where @Volg, @Ettemaks and @Nimi are MSSQL procedure output parameters that I want to show in my report.
    Can anyone give ma an example how to do this?

    Hi all,
    I have multiple sql statements and a MSSQL procedure witch I have to call when generating a report.
    Therefore I use a data template.
    The MSSQL procedure I call with EXEC. It returns the table that it sould return and everything is fine.
    Except: the procedure also returns a punch of OUTPUT parameters and I don't know how to catch those parameters in my data template.
    I have declared all these parameters in the BIP and also in the data template, but there are no values for them when I execute the report.
    Here is a my current data template:
    <dataTemplate name="NameOfTemplate">
    <properties>
      <property name="include_parameters" value="true"/>
    </properties>
    <parameters>
         <parameter name="clientID" dataType="character"/>
         <parameter name="dept" dataType="number" /> <!--This is for MSSQL output-->
         <parameter name="forpay" dataType="number"/> <!--This is for MSSQL output-->
        <parameter name="name" dataType="character"/> <!--This is for MSSQL output-->
    </parameters>
    <dataQuery>
         <sqlStatement name="ARVE" dataSourceRef="connection1">
              <![CDATA[
              select
              from
                   OAP.ACCOUNTS
              where
                   ACCOUNTS.CLIENT_CODE = :clientID
              ]]>
         </sqlStatement>
         <sqlStatement name="ARVE_T" dataSourceRef="connection2" fixedSchema="false">
              <![CDATA[EXEC Dept_proc
                   @ID = :clientID,
                   @Volg =:dept,
                   @Ettemaks =:forpay,
                   @Nimi =:name]]>
        </sqlStatement>
      </dataQuery>
      <dataStructure>
         <group name="ARVE_TULEMUS" source="ARVE">
              <element name="ACCOUNT_SUM" value="SUMMA"/>
         </group>
         <group name="ARVE_TULEMUS" source="ARVE_T">
              <element name="ARVE_NUMBER" value="ARVENUMBER"/>
              <element name="ARVE_KUUPAEV" value="ARVEKUUPAEV"/>
              <element name="ARVE_LEPINGU_SALDO" value="VOLGUSUMMA"/>
         </group>
      </dataStructure>
    </dataTemplate>Where @Volg, @Ettemaks and @Nimi are MSSQL procedure output parameters that I want to show in my report.
    Can anyone give ma an example how to do this?

  • XML Data template. Using the SUM() function

    Hi there,
    I have a data template where I want to create a summary column based on the child group.
    *<group name="G_RO_ESTIMATES" source="Q_RO_ESTIMATES">
    <element name="ESTIMATE_TOTAL" value="G_RO_ESTIMATE_LINES.CHARGE" function="SUM()" />
    <group name="G_RO_ESTIMATE_LINES" source="Q_RO_ESTIMATE_LINES">
    <element name="CHARGE" value="CHARGE" />
    </group>
    </group>*
    ESTIMATE_TOTAL returns 0
    even though the value of the CHARGE column is 760.
    I got the SUM() function to work on another group further down in my data template but for some reason this will not work.
    Does anyone have a clue on what's wrong?
    Thank you in advance.
    BR Kenneth

    give the name of the element diff as CHARGE_TEST
    *<group name="G_RO_ESTIMATES" source="Q_RO_ESTIMATES">
    <element name="ESTIMATE_TOTAL_TEST" value="G_RO_ESTIMATE_LINES_GRP.CHARGE_TEST" function="SUM()" />
    <group name="G_RO_ESTIMATE_LINES_GRP" source="Q_RO_ESTIMATE_LINES">
    <element name="CHARGE_TEST" value="CHARGE" />
    </group>
    </group>*
    sometimes the name get overlapped which results in zero.. keep the names unique
    (i guess , i already logged a bug for this sometime back)

  • How to generate xml using "Data Template"

    Hi,
    Can any one please tell me the steps to create xml using "Data Template".
    As per the user guide the execution method for "data Template" is "Java Concurrent Program" and the Executable mentiones is "XDODTEXE".
    But there is no information about the "execution file name" and "execution path name" which is mandatory.
    Thanks and Regards,
    Sandhya

    Hi Sandhya,
    To put a Data Template into use, you don't need to define any new executables. XDODTEXE executable is already registered in the system, as it ships with the application. The Data Template is not an executable as such, but a collection of instructions for what queries to perform and what should the resulting XML look like. XDODTEXE knows how to interpret those instructions, and produce the XML output.
    (And if you add a layout template, handle that too.)
    You do need to do the following:
    1) Create a new Data Definition (XML Publisher Administrator > Data Definitions)
    2) Upload your Data Template (remember the Code for the next step)
    3) Create a Concurrent Program that is linked to the Data Definition (Short Name = Code) (System Administrator > Program > Define)
    4) Add your Concurrent Program to a Request Group (System Administrator > Security > Responsibility > Request)
    I recommend you take a look at the XML Publisher Administration and Developer's Guide, you will find more information there.
    (http://download-west.oracle.com/docs/cd/B40089_02/current/acrobat/120xdoig.pdf)
    Best Regards & Happy New Year 2008,
    Matilda Smeds

  • The alignment problem for a reused group in other groups

    Hi Developers
    I am using jheadstart 11g tp2
    I have a common group which can be used in different groups for App Def.
    I include it as ADF Region for other groups.
    my problem is when I run jheadstart application generator and execute my program, that common group is at the bottom of the main group.
    it might be needed to put it in the middle of a page or at the top of them.
    how can I change the position of that reused group.
    Thanks for your help
    Setareh

    Setareh,
    Create a control group, not bound to a data collection as the top group, and add the group region to this group, without adding any other item.
    Add the "normal" groups as detail groups to this control group.
    Steven Davelaar,
    Jheadstart team.

  • PA_CONTRACT_XSLFO: How to invoke a RTF-template with related data template

    Dear Reader,
    actually I want to extend the standard Document Type Layout for a Purchase Agreement Contract with additional data from approved supplier list (ASL).
    Therefor I have created a RTF-template and a data template with the needed sql-statement. For testing I put this in a standalone concurrent programm and it works fine (result was a blue table with all data rows).
    Next step for me was to invoke the RTF-template into the PA_CONTRACT_XSLFO template for extending the Document Type Layout for my Purchase Agreement Contract. So I put the neede invoke-statements
    <xsl:import href="xdo://XXOC.XX_RTF_TEMPLATE.de.00/"/>
    and
    <xsl:call-template name="XX_RTF_TEMPLATE"/>
    into the XSLFO-template. Also I extend the RTF-template with the define template statement
    <?template:XX_RTF_TEMPLATE?>
    So all seems to be fine.
    As result I get the standard document for Purchase Agreement Contract with the additional blue table from RTF-template BUT WITHOUT DATA !
    From my point of view there is no execution of the sql-statement in data template. But I dont know why.
    Do Oracle support a combination of XSLFO-template with data template?
    [XSLFO-template] with related [XSD-data definition]
    calls [RTF-template] with related [data template (with included sql-statement)]
    Thanks for your help.
    Best regards
    Mario.

    How to call a rtf template from another rtf template by passing a value try in main template create hyperlink of url with parameters for another template
    http://bipconsulting.blogspot.ru/2010/02/drill-down-to-detail-or-another-report.html
    When user pull a quote report from siebel this new rtf template should attach to the quote at the end.it'll be only another report
    IMHO you can not attach it to main. it'll be second independent report
    you can try subtemplate but it's not about rtf from rtf by click
    it's about call automatically rtf subtemplate from main rtf based on some conditions
    for example, main template contain some data and if some condition is true then call subtemplate and place it instead of its condition

  • Getting error when try to upload xml file into Data Template

    Hi,
    Getting error when try to upload xml file into Data Template.error:"The uploaded file XXSLARPT.xml is invalid. The file should be in XML-DATA-TEMPLATE format."Plz anybody help me.
    Thanks,
    Prasad.

    Hi,
    Anybody Help Plzzzzzz.
    thx,
    Prasad

  • How to acquire the concurrent request id in data template?

    Hi all,
    I want to know how to acquire the concurrent request from my report data template. I've created a placeholder for my parameter +<parameter name="p_conc_request_id" dataType = "number" defaultValue="0"></parameter>+ and for nothing ... i've got the 0 value.
    I need the concurrent request id in order to detect the user who launched the report. Is there other way on getting the user ??
    Thank you!
    All the best,
    Laurentiu
    Edited by: laurentiu on Jul 8, 2009 5:29 PM

    Hi,
    I read your previous post about this solution but i was not able to retrieve it. Here is step by step what i've done:
    - added the parameter to my data template
    - added the parameter to my concurrent program
    - added the parameter in my pl/sql package
    - i've run my concurrent request and the value returned in my xml is 0 for the concurrent request id parameter
    I don't know where i'am getting wrong ?!?
    Thank you!
    All the best,
    Laurentiu
    Edited by: laurentiu on Jul 8, 2009 6:47 PM

  • HTML tags not displayed when using Data Template

    Hi All...
    I'm developing a BI Publisher report in which one of the columns is a clob data type. I'm using an xsl stylesheet to format the data present in the clob column.
    I've developed the report using data template as the data set. The problem is the clob column which has the HTML tags where not displayed properly...for example
    the tag starting with
    <
    is replaced with
    & lt;
    I did a couple of searches in this forum and in tim's blog but couldn't find a proper solution...
    http://blogs.oracle.com/xmlpublisher/2007/01/formatting_html_with_templates.html
    API and HTML Formated Content
    Re: Problem with text data elements containing escaped HTML codes
    HTML Output from CDATA
    Re: HTML formatted output
    Re: Special characters in CLOB are making report fail
    Re: Formatting of HTML tag problem
    I'm using BI Publisher standalone:Release 10.1.3.2. In one of the threads..
    Re: Special characters in CLOB are making report fail
    I came to know that data template cannot generate proper HTML tags for release 10.1.3.2. Is there any work around way to get the proper HTML tags when data template is used as a data set?
    Thanks in Advance...
    Edited by: user10280715 on Dec 9, 2008 3:13 PM

    Issue could be with the data that is selected in the other environment. It generally happens that the ALV will not give the same results as in the DEV in the other systems.
    Possible errors could be the control break statements in the loop...endloop block. validate the correctness of the control break stmts if any.

  • Date issue - Data Template

    Hi,
    I am using a data template plus CP combination to generate XMLP reports. From CP i am passing a standard date parameter to the data template. The issue is that there seems to be a problem accesing this variable in the data template SQL where conditions.
    for ex:-
    The value that CP passes => "2007-05-11 00:00:00.0"
    In data template the parameter is like <parameter name="endDate" dataType="date"/>
    The where condition is like h.end_date <= nvl(:endDate,h.end_date)
    Here :endDate is always null. Interestingly in the XML output the date value is displayed properly for the parameter endDate like <endDate>2007-05-11 00:00:00.0</endDate>
    What is the issue here. Pls. suggest on how to handle dates.
    Thanks,
    Suresh.

    Hi,
    I am using a data template plus CP combination to generate XMLP reports. From CP i am passing a standard date parameter to the data template. The issue is that there seems to be a problem accesing this variable in the data template SQL where conditions.
    for ex:-
    The value that CP passes => "2007-05-11 00:00:00.0"
    In data template the parameter is like <parameter name="endDate" dataType="date"/>
    The where condition is like h.end_date <= nvl(:endDate,h.end_date)
    Here :endDate is always null. Interestingly in the XML output the date value is displayed properly for the parameter endDate like <endDate>2007-05-11 00:00:00.0</endDate>
    What is the issue here. Pls. suggest on how to handle dates.
    Thanks,
    Suresh.

  • Data Template construction AND data template validation questions:

    Hello World.
    I am new to Oracle BI and I have sucessfully used the BI Java APIs to create from start to finish a pdf report process. I use the DataProcessor, RTFProcessor, and FOProcessor classes to do this. My question is other than the most simple of Data Templates being used, how is everyone building their data templates? And I would also like to know how are developers validating the actual data template file? I have submitted a request through my MetaLink account for obtaining either a "dtd" or "xsd" file that could be used to validate a constructed data template. I have not received any real answers. I plan on using either XMLSpy or MyEclispse 6 to create my data templates, but I need a "rule book" dtd or xsd file in order to use the auto prompting feature. Making a data template "in the dark" cannot be the method of choice for all of the developers that visit this forum. I see some really fancy/detailed reports and I would like to see how people are building there data templates. Building the data template is at least half the battle when constructing a BI report.
    Thanks for your time.

    Notepad is the developer's choice for data definitions, seriously.
    I have seen and used XMLSpy and have Stylus Studio but they are really a bit of overkill for the data templates. I use Stylus Studio for some of our XML-FO format templates, but that is another story.
    Scott
    Edited by: ScottC on Oct 22, 2008 3:00 PM

Maybe you are looking for

  • Can I backup to Time Capsule after disk repair has failed? How can I save my files?

    Downloaded and installed most recent edition of Mountain Lion OSX. All of a sudden, drive is full. Delete photos, unused user accounts. MacBook freezes. Shut it down with power button. Now - drive verified. There are issues. Disk repair has failed -

  • Return from a servlet

    Is it possible to return from servlet? I have a servlet where i catch exceptions.To display the error messages i call a function from the service method which outputs the error string to the response in a html page.After the error has been displayed

  • Main Menu in SAP gets flickering when i starts my Addon

    Hi All, My Problem is ,When i starts my addon by using addon-Manager,the Main Menu gets flickered....It will occur till the menu's in my addon get loaded... Can anyone please help me to find a solution for the Problem? in order to avoid this flickeri

  • How do I set locations in Photos?

    How do I add locations to photos I import from a camera that does not have GPS?  This was very easy to do in iPhoto, but I cannot find it anywhere in Photos.

  • How to close apps in the new operating system .

    How to close apps in the new operating system