Oracle forms how to create excel format report
hello :)
these are my codes that generates report in live previewer. my problem is how to create an excel report producing the same output i can get in live previewer.
Declare
pl_id ParamList;
v_alrt number;
v_acct_ent_date date;
v_start_date date;
v_end_date date;
v_end_date1 date;
v_end_date2 date;
v_end_date3 date;
v_end_date4 date;
iss_group varchar2(100);
monthidentify date;
Begin
SELECT B.USER_GRP
INTO ISS_GROUP
FROM GIIS_USERS A,GIIS_USER_GRP_HDR B
WHERE A.USER_GRP = B.USER_GRP
AND A.USER_ID = USER;
Select max(acct_ent_date)
INTO v_acct_ent_date
FROM gipi_polbasic;
SELECT TRUNC(ADD_MONTHS(SYSDATE, -24))
INTO v_end_date1
FROM DUAL;
select LAST_DAY(:FILTERS.FROM_DATE)
INTO V_END_DATE2
FROM DUAL;
SELECT TRUNC (TO_DATE (:FILTERS.END_DATE), 'MONTH')
INTO V_END_DATE3
FROM DUAL;
IF :FILTERS.FROM_DATE IS NULL THEN
MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
MESSAGE('Please Enter a starting date in the format "MM/DD/YYYY"');
GO_ITEM('FILTERS.FROM_DATE');
Raise FORM_TRIGGER_FAILURE;
END IF;
IF :FILTERS.END_DATE IS NULL THEN
MESSAGE('Please enter an Ending date in the format "MM/DD/YYYY"');
GO_ITEM('FILTERS.END_DATE');
Raise FORM_TRIGGER_FAILURE;
END IF;
IF :FILTERS.FROM_DATE > :FILTERS.END_DATE THEN
MESSAGE('Starting Date cannot be greater than Ending Date');
MESSAGE('Starting Date cannot be greater than Ending Date');
:FILTERS.FROM_DATE := NULL;
:FILTERS.END_DATE := NULL;
GO_ITEM('FILTERS.FROM_DATE');
Raise FORM_TRIGGER_FAILURE;
END IF;
IF :FILTERS.DATE_FILTER = 'AED' and :FILTERS.FROM_DATE > v_acct_ent_date and
:FILTERS.END_DATE > v_acct_ent_date then
MESSAGE('No premium batch production occured between the given dates');
MESSAGE('No premium batch production occured between the given dates');
Raise FORM_TRIGGER_FAILURE;
END IF;
IF ISS_GROUP <> 2 or USER = 'MKMIF' THEN
/* IF :FILTERS.END_DATE <> V_END_DATE2 THEN
MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
MESSAGE('DATE PARAMETER SHOULD BE EXACTLY 1 MONTH');
Raise FORM_TRIGGER_FAILURE;
END IF;
IF :FILTERS.FROM_DATE <> V_END_DATE3 THEN
MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
MESSAGE('FROM DATE PARAMETER SHOULD BE THE FIRST DAY OF THE MONTH');
Raise FORM_TRIGGER_FAILURE;
END IF;*/
IF :FILTERS.FROM_DATE < V_END_DATE1 THEN
MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
MESSAGE('FROM DATE SHOULD BE 2 YEARS BEFORE OR 2 YEARS BETWEEN THE SYSTEM DATE');
Raise FORM_TRIGGER_FAILURE;
END IF;
END IF;
IF :FILTERS.DATE_FILTER = 'AED' THEN
BEGIN
Select acct_ent_date
INTO v_acct_ent_date
from gipi_polbasic where acct_ent_date between :FILTERS.FROM_DATE and :FILTERS.END_DATE;
EXCEPTION
When TOO_MANY_ROWS Then
Null;
When No_Data_Found Then
Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
Message('Premium batch productions can only be done at the end of the month. Kindly check the dates you entered.');
Raise Form_Trigger_Failure;
END;
END IF;
v_alrt := show_alert('PRINT_ALERT');
IF v_alrt = alert_button1 then
pl_id:= Get_Parameter_List('tmpdata');
IF NOT ID_NULL(pl_id) then
DESTROY_PARAMETER_LIST(pl_id);
END IF;
pl_id:=Create_parameter_List('tmpdata');
Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
Add_Parameter(pl_id,'start_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.FROM_DATE,'MM/DD/RRRR'));
Add_Parameter(pl_id,'end_date',TEXT_PARAMETER,TO_CHAR(:FILTERS.END_DATE,'MM-DD-RRRR'));
Add_Parameter(pl_id,'CREDITING_BRANCH',TEXT_PARAMETER,:FILTERS.BRANCH_CODE);
Add_Parameter(pl_id,'LINE_CODE',TEXT_PARAMETER,:FILTERS.LINE_CD);
Add_Parameter(pl_id,'INTERMEDIARY_NAME',TEXT_PARAMETER,:FILTERS.INTM_NAME);
Add_Parameter(pl_id,'INTERMEDIARY_TYPE',TEXT_PARAMETER,:FILTERS.INTM_TYPE);
IF :FILTERS.Date_Filter = 'AED' then
RUN_PRODUCT(REPORTS, 'PREM_PROD_AEDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
elsif :FILTERS.Date_Filter = 'ED' then
RUN_PRODUCT(REPORTS, 'PREM_PROD_EDALL.rep' ,SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id);
End IF;
END IF;
End;
-------------------------------------------------------------------------------------------------------------------------------------------------------------------
Hello,
build a standard report using REPORT BUILDER (Oracle 10g Release 2)
set
DESFORMAT=SPREADSHEET
Regards,
Tarun
Similar Messages
-
Reports 3.0.5 and Excel Format Report Generation
Hi Folks,
I need to create excel format report on my Windows based OS using Report Desiginer 3.0.5.
Can someone help in this matter as urgent as possible? Your help will highly be appreciated.
Thanks
ZahirThe problem is that you're going to have to jump through hoops to do something that's very, very easy in the release you're going to, so you need to seriously consider where to put your efforts. If you want to do this in 3.0, then you'll need to follow the data file report example in the 2.5 Building Reports manual (see http://otn.oracle.com/doc/reports25/bror2/ch6a.htm#toc096)
Regards,
Danny -
How to create a FSG report in pdf format
How to create a FSG report in pdf format?
Thanks In Advance
KrisHi,
There is an enhancement request at user group review to create FSG's in PDF format. However, I transformed the FSG output by using ascii2pdf shareware software (do a search on google.) I created a shell script that did the transformation and emailed the report from Oracle Apps. It seems to work ok.
Renee -
How to create a standard report that allows filtering?
Hi Guys and Gals,
Sometimes, the standard report is great because it gives the user the feeling of a grid. i.e. All of the values are editable on one page, kind of like a spreadsheet. That is sometimes very useful. But if there is a lot of data, a filtering mechanism is necessary.
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
Allowing the user to specify the number of rows displayed would be peachy-keen too.
Thanks,
Kim
P.S. I'm running Apex 4.1 with Oracle 11g.Kim2012 wrote:
Your idea sounds very promising, but I apparently need a nudge in the right direction. From "Create Page", I clicked on "Form" and then "Tabular Form". Why would you do this? The advice given was
create a standard report page using the Create New Page wizardi.e. go to Home > Application Builder > Application > Create Page and click Classic Report, this was suggested because the original post said:
>
So will one of you Apex gurus please tell me how to create a standard report that also allows data filtering?
>
Nothing about forms. Tabular Forms, Tabular Forms. Despite many enhancements over the last few versions, tabular forms still cause problems, especially for novices trying to go beyond their own competence and the built-in capabilities of wizard-generated tabular forms.
More good advice: Re: Newbie question-how does the tabular form work? How to populate prim key? and—if based on decent database design—out of the box you have a usable and robust application. Use an Interactive Report or a custom report template and add some CSS and you can get something a lot more powerful, flexible and better looking than any tabular form. Spend the time you haven't wasted on frustrated hacking of tabular forms adding more features and enhancements to your app. -
How to create Import format for building version Hirerarchy and Node
Hi
i Want to know how to create Import format for building version Hirerarchy and Nodes.Can anyone show me with example or format for version Hierarchy with few nodes for the hierarchy
i Want to Build this 1. Version1 (Version)
2.Account (Hirerarchy)
3. Balancesheet (Limb)
4. Assets (Limb)
5. Cash (Leaf)
Thanks,Please follow the DRM User Guide,
http://docs.oracle.com/cd/E17236_01/epm.1112/drm_user.pdf
Below is my preferred approach, by selecting only relation and Hierarchy sections,
The relation section contains the Node Name and Parent Name ( you can include any other properties, but as a best practice keep the Parent Node as the last column).
The Hierarchy ( Hier ) section contains the Hierarchy Name, Top Node and Hierarchy description
Follow the Import steps and provide a Name for the version.
++++++++++++++++++++++++++++++++
[relation]
AC_BalanceSheet AC_Account
AC_Asset AC_Account
AC_Cash AC_Account
[hier]
Account AC_Account AccountHier
++++++++++++++++++++++
Note: Please delete all the special characters (TAB) created at the end of [relation] and [hier] sections while you copy the content from an Excel sheet to a Notepad. -
How to create paragraph format in smartforms
Hi All,
Let me know how to create paragraph format in smartforms?
Thanks&Regards
MaheshHi
When we create a smartform we can see in <b>global settings</b> , <b>form attributes</b>.
In <b>form attributes</b> we set the over all style of the smartform. Goto <b>form attributes</b> and open the tab <b>output options</b>. Here you can see the <b>Style box</b>. In this style box we enter the smartstyle created in transaction code <b>smartstyles</b>.
Open transaction <b>smartstyles</b>.
Create a new style.
Upon creating a new style you will see 3 folder structures under style name.
1. Header data
2. Paragraph format
3. Character format
To create paragraph format right click on the paragraph format node and click Create Node. Give it name. Now you will get a screen with 4 tabs.
Indents and spacing
Fonts
Tabs
Numbering and outline
Here you can provide the look you want.
Now add this smartstyle in your smartform's form attribute.
You can also provide individual smartstyles to each text element you create by giving the name of smartstyle in its output options tab. Each text element has a individual output option tab here you can give any smartstyle.
Click on the general attribute tab of any text element and give the paragraph format directly or by going to SAPScript editor mode.
Any more questions you can ask me directly mailing me.
Please do reward points if satisfied. -
How to create .app format metadata.
Hi hyperion Experts,
how to create .app format metadata , can you give me any one steps pls ..
thanks in advance..- Open the HFM Client
- Click Extract Metadata
- Click on the selector button next to the Metadata Filename field
- in the 'Save AS Type' dropdown, select HFM Application Files (*.app)
- enter the file name you want in the File Name Field
- Click Save
- Click Extract
To edit, open in Excel or notepad, etc. (If using Excel, be careful on saving to make sure you save it back to the proper format)
If you want to make one from scratch, I'd extract something first to have a starting point. Once you see one, the format should be pretty straight forward.
Charles
Edited by: beyerch2 on Apr 17, 2012 8:55 AM -
How to create a daily report for sales order
hi
how to create a daily report for sales order. what fields it must consists of. what are the tables it need?Hi
You have to use the sales order tables VBAK,VBAP and VBEP
So keep date field on selection screen
and treat this date as Order creation data audat field in VBAK.
based on this fetch the data from VBAK and VBAP with the following fields like
VBELN, KUNNR,NETWR,POSNR, MATNR,ARKTX,KWMENG,WAERS etc and display in the report
<b>Reward points for useful Answers</b>
Regards
Anji -
How to create a consolidated report in report builder?
Hi,
How to create a consolidated report in report builder?
There are 8 tables in database.
All the tables have same columns with same column names.
I want all the values of 8 tables to be displayed in the same report, but in a particular order.
Can we do an 'order by' for tables??? like 'order by table_name' ???
Thank You.You can create a query like this:
select * from (
select 1 sort_order, * from t1
union all
select 2, * from t5
union all
select 3, * from t2
etc.
order by sort_order, <something else if needed> -
How to create a crystal Report using C# and SQL Server
Hi, im new in creating crystal report using SQL Server, and im making a project.. and could someone help me how to connect your .sdf (SQL Server File) from the bin to your crystal report? thanks a lot.. i followed some instructions like this one (https://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?referrer=http://social.msdn.microsoft.com/Forums/vstudio/en-US/48c0dd48-5b23-49da-8601-878f8406125e/how-to-create-a-crystal-report-using-sql-server-visual-c?forum=csharpgeneral)
but i got an error on the adding of server name and database portion.. thanks a lot in advanceHello,
Crystal Reports are supported on
http://scn.sap.com/community/crystal-reports.
Karl
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
My Blog: Unlock PowerShell
My Book:
Windows PowerShell 2.0 Bible
My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}}) -
How to create a snapshot report on the specific destination?
dear all
How to create a snapshot report on the specific destination?
thanks
johnuser8779435 wrote:
dear all
How to create a snapshot report on the specific destination?
thanks
john
Hi,
when prompted just input the full path with filename for example
Enter value for report_name: /tmp/awrreport.htmlHope this helps
Cheers -
How to create drill down report in sap query
how to create drill down report in sap query ,
hi,
The pdf below gives the steps to create drill down report.
http://www.sappoint.com/abap/eis.pdf
also check.
<a href="http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2">http://72.14.203.104/search?q=cache:k-SFYy_rjPIJ:www.hrexpertonline.com/archive/Volume%252003%2520(2</a>
regs,
jaga -
How to create a single report using 5 difftent reports
Hi Experts
how to create a single report using 5 repors in it.
Example
I have to create a Survey history report using
Reports like Surevy 1
Surevy 2
Surevy 3
Surevy 4
Surevy 5
Please suggest me.
SantoshUse Analysis Process Designer (RSANWB) to feed each of the survey BEX reports to one DSO. Assuming each of the surveys has something in common to compare. Could also be used as a snapshot storage for the surveys in case history needs to be compared/archived.
Build the Direct update DSO with the survey objects. Add needed time characteristics and/or version control objects to the key.
Data sources will be the 5 surveys.
Add formula to hardcode version/time for history.
Data target is the direct update DSO.
http://help.sap.com/saphelp_nw2004s/helpdata/EN/49/7e960481916448b20134d471d36a6b/frameset.htm
-SM -
How to create documentation for report programs and how to use it
how to create documentation for report programs and how to use it in the selection screen by placing an icon in the Applicatin Tool bar. If i click this icon the help documentation has to display.
Note: Exaple <b>RSTXSCRP</b> programs selection screenHi
1 goto SE38 transaction, give the program name
2 Click on documentation radiobutton & then press change
3 Write your PURPOSE, PREREQUISITES etc details
4 Save the same & Activae it.
The icon will come automatically on selection screen
Thanks
Sandeep
Reward if useful -
How to create Using Formatted Text Field with multiple Sliders?
Hi i found the Java Sun tutorial at http://java.sun.com/docs/books/tutorial/uiswing/components/slider.html very useful, and it tells how to create one Formatted Text Field with a Slider - however i need to create Formatted Text Field for multiple Sliders in one GUI, how do i do this?
my code now is as follows, and the way it is now is scroll first slider is okay but scrolling second slider also changes value of text field of first slider! homework due tomorrow, please kindly help!
// constructor
label1 = new JLabel( "Individuals" );
scroller1 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 10 );
scroller1.setMajorTickSpacing( 10 );
scroller1.setMinorTickSpacing( 1 );
scroller1.setPaintTicks( true );
scroller1.setPaintLabels( true );
scroller1.addChangeListener(this);
java.text.NumberFormat numberFormat = java.text.NumberFormat.getIntegerInstance();
NumberFormatter formatter = new NumberFormatter(numberFormat);
formatter.setMinimum(new Integer(0));
formatter.setMaximum(new Integer(100));
textField1 = new JFormattedTextField(formatter);
textField1.setValue(new Integer(10)); //FPS_INIT
textField1.setColumns(1); //get some space
textField1.addPropertyChangeListener(this);
//React when the user presses Enter.
textField1.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField1.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
label2 = new JLabel( "Precision" );
scroller2 = new JSlider( SwingConstants.HORIZONTAL, 0, 100, 8 );
scroller2.setMajorTickSpacing( 10 );
scroller2.setMinorTickSpacing( 1 );
scroller2.setPaintTicks( true );
scroller2.setPaintLabels( true );
scroller2.addChangeListener(this);
textField2 = new JFormattedTextField(formatter);
textField2.setValue(new Integer(10)); //FPS_INIT
textField2.setColumns(1); //get some space
textField2.addPropertyChangeListener(this);
//React when the user presses Enter.
textField2.getInputMap().put(KeyStroke.getKeyStroke(KeyEvent.VK_ENTER, 0), "check");
textField2.getActionMap().put("check", new AbstractAction() {
public void actionPerformed(ActionEvent e) {
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
// State Changed
public void stateChanged(ChangeEvent e) {
JSlider source = (JSlider)e.getSource();
int fps = (int)source.getValue();
if (!source.getValueIsAdjusting()) { //done adjusting
if(source==scroller1) {
System.out.println("source ==scoller1\n");
textField1.setValue(new Integer(fps)); //update ftf value
else if(source==scroller2) {
System.out.println("source ==scoller2\n");
textField2.setValue(new Integer(fps)); //update ftf value
} else { //value is adjusting; just set the text
if(source==scroller1) textField1.setText(String.valueOf(fps));
else if(source==scroller2) textField2.setText(String.valueOf(fps));
// Property Change
public void propertyChange(PropertyChangeEvent e) {
if ("value".equals(e.getPropertyName())) {
Number value = (Number)e.getNewValue();
if (scroller1 != null && value != null) {
scroller1.setValue(value.intValue());
else if (scroller2 != null && value != null) {
scroller2.setValue(value.intValue());
// ACTION PERFORMED
public void actionPerformed(ActionEvent event) {
if (!textField1.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField1.selectAll();
} else try { //The text is valid,
textField1.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
if (!textField2.isEditValid()) { //The text is invalid.
Toolkit.getDefaultToolkit().beep();
textField2.selectAll();
} else try { //The text is valid,
textField2.commitEdit(); //so use it.
} catch (java.text.ParseException exc) { }
...if :p3_note_id is null
then
insert into notes (project_id, note, notes_month, notes_year) So, p3_note_id is NULL.
Another option is that you have a trigger on table NOTES that generates a new note_id even for an update.
Maybe you are looking for
-
I am setting new Windows 8.1 Pro computers, and am installing Windows 8.1 Pro to bare drives. Everything goes fine until Windows Update starts installing updates, and then the computer goes for hours installing updates, and then "We could not comple
-
Dynamic Filename in Receiver mail adapter is it possible without module?
Hi, I need to send the file name in email adapter dynamically.Presently iam getting the filename as untitled.xml in the email .The keep attachments is checked in the mail adapter. I need to rename the file based on the input field name and timestamp
-
HT3702 Getting charged even though I deleted the app! HELP!
I tried out The Daily. It was free for 2 weeks. I then continued to use it paying 0.99 per week. After a while I really wasn't reading it so I deleted the app. However, I still get charged 0.99 per week! I did not select an automatic renewal option.
-
Single Employee has got OLIS plan in PRE-OFFER available...we need to block
Issue:During Enrollment for the Open offer an Employee who is single does have a OLIS plan ( Optional Life Insurance for Spouse ) in pre-offer available ( SAP provided HRBEN0001) we have a Custom Exit that calculates the age difference of Birthday a
-
IPhoto slideshow vs iDVD slideshow
Can a slideshow in iPhoto be added to iDVD? In iDVD when I select "add slideshow", it only lets you create a new slideshow. Not add an existing one.