Displaying paramters in excel output
Hi, I am designing a report in excel format, using the 'True Excel' method.
Refering to the section "Declaring and Passing Parameters" in Link, it mentioned i can simply add this in the metadata worksheet.
XDO_PARAM_?1? <?param@begin:Country;US?>
XDO_?Country? <?$Country?>
And add XDO_?Country? as desired in the output worksheet as usual.
But I am not getting this work properly in running my report on R12 instance. The OPP log said Variable not defined.
Any ideas on this? Thanks in advance!
First, your default value needs to be surrounded by single quotes (use notepad to ensure they get ASCII characters)
XDO_PARAM_?1? <?param@begin:Country;'US'?>
Next, make sure you have defined this parameter in your report definition as well (i.e data model)
regards
Jorge
Similar Messages
-
Chart(graph) is not displaying in my Excel output
Hi All,
I was working with oracle EBZ R12, and bi publisher 10g,
I have developed a RTF with graph, when i moved the RTF and run the report through application (the Excel output is not showing the Graph,but in pdf output the graph is coming fine).
I have gone through this documents
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
and the forum question already raised for the same.
https://forums.oracle.com/thread/1018488
But i dont know the exact path of the web.xml file to change as mentioned in the links. Can any one help on this to resolve this issue.
Thanks & Regards
Srikkanth.MHi,
Its looks like this might be the customization issue please have a look at the OSS Notes 457497 and refer to the questions 2, 3 & 4 may be you can get the idea (Specially 4).
Why are some texts not printed at all?
Answer:
Which texts are printed depends on the Customizing settings of purchasing.
Go to Customizing for purchasing.
Choose "Messages -> Texts for Messages -> Define Texts for <Purchasing Document>". Choose "Print Document <Purchasing Document>". Select "Texts for Document Items" and add a new entry.
You must specify a value for the print sequence in the detailed screen for your new entry.
Let me know in case of any.
Regards,
SRinivas -
Display header for excel output using FM GUI_DOWNLOAD
Good morning experts,
I've been exporting my output in excel using the FM GUI_DOWNLOAD. The problem is, my header is not displaying. Kindly check what I've done wrong. Below is how I declared my header.
DATA: BEGIN OF header OCCURS 0,
head1(15),
head2(15),
END OF header.
*& FORM USER_COMMAND
COMMAND for ALV Grid Buttons
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
PERFORM write_header.
CASE r_ucomm.
WHEN 'XCEL'.
CONCATENATE: 'C:\' fname sy-datum INTO fname.
CONCATENATE: fname '.XLS' INTO FILENAME.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = FILENAME
WRITE_FIELD_SEPARATOR = 'X'
TABLES
DATA_TAB = jtab
FIELDNAMES = header
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ELSEIF sy-subrc = 0.
MESSAGE S000(38) WITH 'File ' fname 'saved in Drive C.'.
ENDIF.
ENDCASE.
ENDFORM.
*& Form write_header
text
--> p1 text
<-- p2 text
FORM write_header.
DATA: ctr(2) TYPE p.
DO 6 TIMES.
ADD 1 TO ctr.
CASE ctr.
WHEN 1. header-head1 = 'EMPLOYEE'.
header-head2 = ' NO '.
WHEN 2. header-head1 = 'EMPLOYEE'.
header-head2 = ' NAME '.
WHEN 3. header-head1 = 'LOAN'.
header-head2 = 'TYPE'.
WHEN 4. header-head1 = 'APPROVAL'.
header-head2 = ' DATE '.
WHEN 5. header-head1 = 'LOAN'.
header-head2 = 'CODE'.
WHEN 6. header-head1 = ' MONTHLY '.
header-head2 = 'AMORTIZATION'.
ENDCASE.
APPEND header.
CLEAR: header.
Please help me. All helpful advice will be rewarded points. Thanks a lot.Follow this Example. You can do it in the below manner
You need not add HEADER1 HEADER2 to the internal table. You can just declare one field like below and append all the header columns to the internal table HEADER
data : begin of IT_HEADING occurs 0,
TEXT(15),
end of IT_HEADING.
IT_HEADING-TEXT = 'Company Code'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Line Item'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'PO Currency'.
append IT_HEADING.
IT_HEADING-TEXT = 'Job Number'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Quantity'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Unit'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Amount'.
append IT_HEADING.
IT_HEADING-TEXT = 'SO Currency'.
append IT_HEADING.
move P_FNAME to L_FNAME.
call function 'GUI_DOWNLOAD'
exporting
FILENAME = L_FNAME
FILETYPE = 'DAT'
tables
DATA_TAB = IT_FINAL
FIELDNAMES = IT_HEADING
exceptions
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
others = 22.
if SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
Regards
Gopi -
Image is not displayed in SPREADSHEET excel output
hi all,
Could anyone help me to display an image in the Excel(Spreadsheet) option?
Thanks in Advance,
AmbikaWelcome to SDN
This is possibly because of inactive services in transaction SICF.
go to SICF and activate the following services apaprt from your own bsp application.
List of services to be activated for BSP(as per OSS note 517484)
/default_host/sap/bc/bsp/sap
/default_host/sap/bc/bsp/sap/system
/default_host/sap/bc/bsp/sap/public/bc
/default_host/sap/public/bc
/default_host/sap/public/bc/ur
/default_host/sap/public/bsp/sap/public
/default_host/sap/public/bsp/sap/public/bc
/default_host/sap/public/bsp/sap/system
/default_host/sap/public/bsp/sap/htmlb
Regards
Raja
since you are new to SDN , request you to have a look at the following weblog
/people/mark.finnern/blog/2004/08/10/spread-the-love -
Display Space in Excel output from BIP
Hi,
I am working on HR head count report , In column organization , if organization is Primary category it should be indented by 2 spaces and if organization is second category then it should be indented by three spaces.I handled this in code. But when i am seeing the output through internet browser. The spaces are not being showed.But when output is saved as xls and when viewed from local machine.the spaces are visible.Can anyone help me how i can see the added spaces through internet browser view.
Best regards,
mahesh
Edited by: maheshb2b on Feb 12, 2009 3:48 AMHi Tim,
Thanks for the quick reply.
The so called 'Excel templates' have been demonstrated to clients in this year's Oracle Open House (San Fransisco) i guess, and it is from there, that the need to develop such complex reports have come. It seems there was a demo that was given out to all the participants on this new technology. It would be great if you can share the demo with me or send me same/its link to my mail id ([email protected]). It would be extremely helpful in mapping the requirements with the upcoming tools from Oracle.
Expecting the demo on this Excel templates from you. Awaiting the release of the new version soon.
Thanks,
Nitin -
Image in Excel output of XML Publisher
Hi,
I have tried to generate output of an XML report in Excel format, its working fine.
There is an image in the RTF, the image is not displayed in the Excel output (its showing like 'X').
I have followed the following steps:
1)Insert > picture > from file > FNDSSCORP.gif
2) Right Click on picture > Format Picture
3) Enter as follows in the Web tab of Format Picture url:’${OA_MEDIA}/FNDSSCORP.gif’}
Can anyone please help me on this, this is very urgent.
Thanks, DivyaYou should put this issue on the XML Pub forum.
I remember some specific setting required for linking images off the instance top. Check the XML Pub dev guide.
--Shiv -
How to display Excel output in browser instead of client desktop
Hi,
Similar to PDF and Text output, Is it possible to display Excel Output In browser itself.
Whenever we try to view the report where the output type is excel, the output opens in Excel Desktop version.
We have a requirement where we need the output to be displayed in browser itself.
I have tried modyfing the Viewer profiles but was not able to get the desired result. We are currently working on E-Business Suite 11g.
Regards,
Sandeepfor ideas look at
Export to Excel of a Financial Reporting (FR) Report Opens the Excel File in the Workspace Browser Window (Doc ID 1300573.1)
and
How to configure Internet Explorer to open Office documents in the appropriate Office program instead of in Internet Ex…
so in your case it is vice-versa -
Is it possible to display a date as (DD-MON-YYYY) in excel output using excel template in xml publisher where date should be displayed as date only not string.
I've tried to use hierarchy node variables, but it seems like you can't specify a attribute of the hierarchy such as level. So with the WBS hierarchy, if you create a hierarchy node variable, you specify the WBS value to select (If I understand this correctly). I wish I could instead specify "give me all the WBS nodes that happen to have the value of the level attribute greater or equal to 3. If I understand Juergens post, he is saying make security access so that only certain WBS levels can be returned in the query. I suppose we can try that, but that would then preclude getting the level 1 and 2 in the future if the authorization is global.
-
Excel Output is being displayed as HTML in the browser
Hi All,
I am using PeopleSoft XML Publisher 5.6.2 to generate an Excel report using RTF template. The report runs successfully.
However, when I click the Output file link in the View Log page of process scheduler, the file is being displayed as a HTML page, though the extension of the file is .xls.
Also when I try to save the file by using 'Save Taget as' option, the browser prompts me to save the file as 'mhtm' file and not 'xls' file.
The following is an extract from the output file.
<html>
<!-- Generated by Oracle XML Publisher 5.6.2 -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>IM Top 10 Surplus & Deficit Locations</title>
After doing some research on Internet, I found the following blog post(dated back in 2008) to describe my situation and a workaround to the problem.
http://peoplesofttipster.com/2008/04/16/xls-xmlp-output-opening-in-browser-not-excel/
http://peoplesofttipster.com/2008/04/18/xls-xmlp-output-opens-in-browser-workaround/
Workaround described in the above blog post is to update the charset to us-ascii replacing UTF-8. This seems to work. But with limited file processing capabilities of peoplecode, this workaround is not a simple solution.
I also verified the mime-type mapping in the web.xml file in the webserver. Please find below the .xls mime-type mapping in the web.xml file.
<mime-mapping> <extension> xls </extension> <mime-type> application/vnd.ms-excel</mime-type></mime-mapping>
Question:
1.How do I force the browser to open the excel output file using either Excel plugin or Excel Application instead of displaying it as HTML page?
2.If not the above, how can I force the system to promt the user to save the file as Excel file instead of mhtml?
Additional details :
work enivronment
PeopleSoft FSCM 8.9
PeopleTools 8.48.17
Oracle 10g
Windows NT
Any help would be greatly appreciated.
Thanks & Regards,
Vamsi KrishnaPlease try this by Open windows explorer, Click Tools -> Folder Options ->,Click on File Types and Select XLS from the list, Click Advanced, select "Open" and Make sure the “Browse in same window” is not selected.
Hope this helps,
Ramesh -
Picture(Logo) not displayed in Excel output
Hi all, I have to display my company logo(picture) in excel output of a report.
I pasted the picture in RTF and I was able to view logo in PDF but not in excel..what could be the cause..?hi
refer to this thread
Re: CONVERT_OTFSPOOLJOB_2_PDF ?
hope this helps
regards
Aakash Banga -
Displaying negative numbers in brackets in Excel output
Hello all.
I have an RTF template...I tired displaying negative numbers in brackets like : (123.80) in Excel output
But, this is working in PDF and not in Excel.
Please let me know the way to dsiplay the numbers in brackets.varma wrote:
Negative numbers in bracket
add a conditional statement like below.
<?if: NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
<?if: NUMBER_TO_CHECK > 0?> <?NUMBER_TO_CHECK?><?end if?>
are you using the same template for PDF and EXCEL ?
if so, it has to be handled little differently.
Place this line in the beginning of the rtf
<?param@begin:_xf;''?>
add this condition on number column for Excel output
<?if:$_xf='excel' and NUMBER_TO_CHECK < 0?> <?concat('(',NUMBER_TO_CHECK,')')?><?end if?>
Try the above one it should work.
Have a Nice dayThis didnt work.
Say that I have element named 'market'
I placed this condiion <?param@begin:_xf;''?> at the beginningof RTF
Replaced the number field with this condition: <?if:$_xf='excel' and market< 0?> <?concat('(',market,')')?><?end if?>
This is giving me a blank output in place of the number.
> -
Hi Experts,
I have an Standard Report Materials Account Distribution Report that I have converted to XML report (excel output). The report shows correct values for about 4100 lines. After that, I find that the merged cells have split and hence partial values are hidden in the report. This is not the case for the initial 4100 items. Can anyone let me know the reason for this ?
Regards,
JayJayIt seems that the problem was caused by the "_en" termination (FLOW_EXCEL_OUTPUT_R&P_REGION_ID.*_en*).
But is there any way to get rid of the <||div id="report_33994800669487811_catch"> <||/div> tags from the begining, respective the end of the CSV file ?
Thanks,
Adela -
XML Publisher report not printing excel output due to special characters
Hello,
I am trying to create a xml publisher report which should display the output in excel. But the program completes with a warning status and the output is displayed as XML instead of excel, with some errors "An invalid character was found in text content. Error processing resource " and i think these errors are due to the special characters(eg: city/province - A Coruña, Cáceres). If i give rownum < 10 in my query, where there are no such characters it works fine and i am getting an excel output.
Tried changing the XML encoding and it doesn't help (both mentioned below)
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml version="1.0" encoding="UTF-8"?>
Do anyone have a solution for this
Thanks in advance
Edited by: user10317098 on Jan 16, 2012 10:58 AMHi,
Check this links that might help you..
https://forums.oracle.com/thread/1018488
http://docs.oracle.com/cd/E10091_01/doc/bip.1013/e05000/toc.htm
Here the Exact solution from Oracle
In the XML PUBLISHER ADMINISTRATOR Resp..
Click the administration..
then Click HTML Output
Then in the Base Image URI Give the url of your application for example
http://Test.Test.com:8000/OA_MEDIA/
And then
Image File Directory give this as per your application setup
/u01/app/oracle/apps/apps_st/comn/java/classes/oracle/apps/media/
Thanks & Regards
Srikkanth.M -
Problem with Excel output format
Hi Guys,
I am creating a report in XML Publisher (not standalone). I am facing some problems could anyone please help me to figure out the issues.
Is it possible to have all three output format (PDF, HTML & EXCEL) exact (same aligned) only by creating a single RTF Template? I am facing the problem with Excel output format the output format of excel is taking excels cell formatting.
Example Numeric fields --> Right Aligned, text fields --> Left Aligned
One more issue with excel is -ve(negative) values are getting displayed in red and in brackets like ($13) (with red color).
Our client want excel output on priority.
Is there any limitation for excel output format of reports?
It is very urgent for us please help.
Any help would be highly appreciated.
Thanks,
Pragati
Edited by: user11237443 on Aug 27, 2009 1:22 AMHi Mahi,
Thanks for your response. But i could not understand how can we write wrapper program could you please give some light on this or provide some link it would be helpful for me:-)
I have read that blog for excel limitations but i have more question?
1) What about the negative values?
if any field is displaying negative amount then excel not displaying right value for that:(
2)How can we align header or data?
Do XMLP with EBS provide any solution for formatting in excel?
3) If for the alignment of numeric value we concatenate them with any special character then how can we perform calculation that field?
Here are so many formatting issues do we need to write any code in xml for that?
Please help.
Many Thanks,
Pragati -
Problem with images in XML with excel output
Hello:
I made an XML concurrent program, with excel output, but i am having a problem:
The rtf template has a logo (bmp image), but it is not showing in the excel (if i execute the concurrent in the oracle applications). However, if i create the xml in Oracle Reports in my computer, and then load that xml in the rdf template in word, i can see the logo in the excel preview. I don't know why is it not showing when i execute the program in applications.
If someone can help me with this, i will be very grateful.
Greetings
Message was edited by:
user632438xml cP, will not give you a image in excel output,..
In RDF there is a placeholder for image, and the image is located in certain location, at runtime it picks and render the output with logo.
but xml CP, will get the data in xml type and merge with rtf to get the output you wanted..
if you have the rtf with logo embedded in it, if output is of pdf or rtf output , then it will display the logo ,.
in excel currently it is not possible to show the logo,..
excel you see could be xml-excel or csv-excel not the true binary excel.
to get the logo embedded ,for that you have to wait on tim for the excel template, which will be release in near future i guess..
Maybe you are looking for
-
it is not possible to open a new connection: contribute answers: is used by the connection "http:xx", give another internet-address. what do i have to do to open again. i reinstalled contirbute 4, doesnt work. i tried contribute 6.5, doesnt work. tha
-
Performance of DB Link VS Public Synonyms
1) In a single database(Oracle 9.2) , I have multiple schema say a, b ,c d ,e etc.Currently we are using public synonyms to access tables of other schema.There is a plan to split the database into two or three DB and to use db links instead of public
-
How do I enable the "Retry Job" and "Cancel Job" icons on the Project Server Queue?
Judy Washington
-
How to get br / or   to work in IE?
That is the question. If I use eiter if these in Firefox, I get a space between lines; not so in IE. How will I get that?
-
EBS 11.5.10cu2 database upgrade using network dpimp
Hi, I am upgradeing all my Oracle db's to 11.2.0.2 I have done the upgrade successfully for our custom student system, bpel and OEM. The plan I followed for this environments was: install Oracle db 11.2 on the new server (upgrading the hardware and O