Sie sind auf Seite 1von 13

How to get the report output in XLS, RTF, HTML etc. directly. 1.Pre-requisites Patch.

Patch # 4561835 This will be an add-on menu for your Microsoft Word.

2. Choosing the standard report. Let say our user has asked us to make Asset Addition report in xl format. Here is the current output. (Selected area will be opening into XL sheet as per the user)

3. Re-registering the report in XML format. Navigate to System Administration responsibility and go to Concurrent Programs Define Find (B) Asset Additions Report

Through Copy to button we will re-register the report

Two things to remember here as highlighted 1) Report Short name

2) Report output

Now assign this new report to your Request Group and run it to get the output in XML. Save the XML output into your local drive.

4. Analyzing XML data After getting the output you need to identify the group. From which group you will be selecting the data. In our case we have identified the repeating group called G_Asset tagged as <G_ASSET>

Repeating Group

5. Designing the output in Microsoft Word. Open new document in Microsoft word and start building the output. First step is to Load the data into MS word.

Design your report in any desired format. In my case I want in this format

6. Placing XML Tags onto your columns In MS word enable the Forms toolbar. View Toolbars Forms

Once you enable the forms option your toolbar will be having Text Form Field button

Click on it and place it inside the table which you have made. Double click to assign an xml tag to it

In the help text we will type <?for-each:G_ASSET?>. <?for-each: this is a reserve word which means to repeat the value whenever our G_ASSET group changes

Press OK.

Now we need to place our tags on the appropriate columns. Again press Text form field button and place it beneath the Asset Group tag. Double click to change the option

In Form field Help Text give the same tag name <?CF_DEPTNO?>as mentioned in the XML output. Similarly we can have other columns in the same fashion. In the end place the closing tag for the group. The reserve word for closing the group tag is <?end for-each?>

Finally you view the output on the fly rather than putting on the server and submitting the report

Template Builder Preview Excel

Here comes our output in Excel. This is done now next step to register it in the application.

7. Registering it in XML Publisher Administrator Registering it in XML Publisher is a straight forward method just remember the short name of the report as mentioned earlier & attach your template. I believe below screen shots are self-explanatory. Home Data Definition

This shortName should match to report shortName

This shortName should match to report shortName

This shortName should match to report shortName

8. Submitting XML Report Through Standard Report Submission (SRS) run the report. Before submitting click on the Options & select the format to get the desired output.

Here is our desired output.

Note : Please make sure that your XML Publisher patch set level is 11i.XDO.H

Das könnte Ihnen auch gefallen