Saving Values in a Report
Hello all,
I currently have a report that displays days of the week and a task associated to the days. The report allows the user to enter time against the given task for the week. The report is a time tracker. How do I create a save button on the report that inserts my data from the report into the database?
Currently my sql for the report is:\select
"REF_ACTIVITY_TYPE"."ACTIVITY_TYPE_NAME" as "STAFF_TS_ACTIVITY_ID",
"WORK_ITEM"."WR_NUM" as "STAFF_TS_WR_ID",
"STAFF_TS_DETAILS"."STAFF_TS_MON" as "STAFF_TS_MON",
"STAFF_TS_DETAILS"."STAFF_TS_TUE" as "STAFF_TS_TUE",
"STAFF_TS_DETAILS"."STAFF_TS_WED" as "STAFF_TS_WED",
"STAFF_TS_DETAILS"."STAFF_TS_THU" as "STAFF_TS_THU",
"STAFF_TS_DETAILS"."STAFF_TS_FRI" as "STAFF_TS_FRI",
"STAFF_TS_DETAILS"."STAFF_TS_SAT" as "STAFF_TS_SAT",
"STAFF_TS_DETAILS"."STAFF_TS_SUN" as "STAFF_TS_SUN",
"STAFF_TS_DETAILS"."STAFF_TS_REF_ID" as "STAFF_TS_REF_ID",
"STAFF_TS_DETAILS"."STAFF_TS_DETAILS_ID" as "STAFF_TS_DETAILS_ID"
from
"STAFF_TS_DETAILS",
"WORK_ITEM",
"STAFF_TS_SUMMARY",
"PLAN_ACTIVITY",
"REF_ACTIVITY_TYPE"
where
"STAFF_TS_DETAILS"."STAFF_TS_WR_ID" = "WORK_ITEM"."WR_ID" and
"STAFF_TS_DETAILS"."STAFF_TS_REF_ID" = "STAFF_TS_SUMMARY"."STAFF_TS_SUMMARY_ID" and
"STAFF_TS_DETAILS"."STAFF_TS_ACTIVITY_ID" = "PLAN_ACTIVITY"."PLAN_ACTIVITY_ID" and
"PLAN_ACTIVITY"."ACTIVITY_TYPE_ID" = "REF_ACTIVITY_TYPE"."ACTIVITY_TYPE_ID"
Can someone please help?
Thanks
Ryan
Hi amalrose,
here is a useful link for u to refer....
https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=72220689
Regards.
Similar Messages
-
Problem printing duplex even though it's saved in the Crystal Report.
I'm using VS.NET 2010 with Crystal Reports 13.0.10.1385
We have a set of Crystal Reports that were created with Crystal 8.5 and they print duplex and the printer and printer preferences are saved with each Crystal Report.
The problem is this, I'm pulling in these reports to my VS.NET 2010 Project using Crystal Report Viewer and it will not keep the printer preferences when you print the report. Why, it works using VB6.0? The only way I can get it to print duplex is to manually set the printer preferences before printing the report.Hi Bill,
Update the reports to CR 2011 or above then that info should be saved. If not add this line of code to your app:
rpt.PrintOptions.PrinterDuplex = PrinterDuplex.Default; // you can change the last value
Or if using RAS use this:
CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions RASPO = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
RASPO.PrinterDuplex = CrPrinterDuplexEnum.crPrinterDuplexSimplex;
And comparing RDC to .NET doesn't work. RDC used COM and DEVMODE, .NET uses the System.Printer API set.
Don -
Expression or Calculation tag value are reset to last application saved value when PC reboot
I'm doing daily logging data for daily report and for the daily flow calculation, I'm doing those step:
1- When Timer1 = 11h55 -> Daily_Volume = (Actual_Volume - Yesterday_Volume)
2- When Timer2 = 11h56 -> Yesterday_Volume = (Actual_Volume )
3- When Timer3 = 11h58 -> Log to database Daily Volume
The problem is that when you restart the application or the PC, the calculation tag "Yesterday volume" reset to the last saved value.
Exemple 2012-01-01 last saved application changes,
- 2012-01-01 my Actual_Volume = 1000 USGal moved to my Yesterday_Volume.
- 2012-01-02 my Actual_Volume (1100 USGal) - Yesterday_Volume (1000 USGal) = Daily_Volume (1000 USGal) move the Actual_Volume to Yesterday_Volume.
- 2012-01-03 my Actual_Volume (1200 USGal) - Yesterday_Volume (1100 USGal) = Daily_Volume (100 USGal)
We've got a power shutdown or any PC reboot. On the 2013-01-01
- 2013-01-01 my Actual_Volume (19000 USGal) - Yesterday_Volume (1000 USGal) = Daily_Volume (18000 USGal) move the Actual_Volume to Yesterday_Volume.
- 2013-01-02 my Actual_Volume (19100 USGal) - Yesterday_Volume (19000 USGal) = Daily_Volume (100 USGal) move the Actual_Volume to Yesterday_Volume.
Those values reset to the last application saved value cause bad data in my daily, monthly, yearly reports. How can we retain calculation tag value to avoid those reset problem?In Edit mode, File->Modify Process, there is an option "Save state file every xxx minutes". Is this one checked or not?
The value of objects should be saved in the state file when you close the process, or periodically saved according to this setting. The saved value will be loaded next time you open the process.
Ryan Shi
National Instruments -
Facing Problem with passing Values from One report to another
Hi,
I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
Please, let me know whats going wrong.
Thanks for the help.sorry for the late updation.
My First Report, Summary level is a Pivot Table.
I tried the same report with Table option, the value is passing correctly.
Is there a way to get rid of this situation using Pivot table.
Thanks for your help.
below is the original request.
Hi,
I am Hemanth, I have developed 2 reports. Firast Report High Level Summary, Secong is detailed. First report is developed using Union(4 union) , I am having 4 columns. The report is generating the data. I have used Navigation option on Client Column to move on to Second report. In Second report with in Filter i am using Prompted option. Due to some problem, the client value from first report is not passing to the second one. The second report is getting generated for all the clients.
Normally i have used this Navigate option in other reports and that works fine. I have even tested with Union, it works. This time it is giving some trouble.
Please, let me know whats going wrong.
Thanks for the help. -
Unable to pass the values from one report to another using navigation links
Hi All,
I am facing a strange issue where I have to pass a column value from one report to other.
I have kept navigation link in the 1st report and 'is prompted' option in the 2nd report
Issue was , I'm not getting the filtered result in the 2nd report (all the records are being displayed)
Can anyone advice where I was going wrong
Thank you,
AOHi,
The column which you have given navigation link and 'is prompted' column should same and exist in both the reports.You have to give the guided navigation in the value interaction of the column in the report1.
mark if helpful/correct.........
thanks,
prasanna -
Display Currency symbol with value in ALV Report
Hi Experts,
I need to display currency symbol with value in ALV Report like if currency type is dollar then $200.
Here I am using field catalog type slis_t_fieldcat_alv and suing field merge catalog FM: 'REUSE_ALV_FIELDCATALOG_MERGE'
I tried like this
IF <fs_fieldcat>-fieldname = 'STPRS'.
<fs_fieldcat>-seltext_s = 'Std Cost '.
<fs_fieldcat>-seltext_m = 'Std Cost'.
<fs_fieldcat>-seltext_l = 'Std Cost '
<fs_fieldcat>-tabname = 'MBEW'.
<fs_fieldcat>-ctabname = 'T001'.
<fs_fieldcat>-cfieldname ='WAERS'.
<fs_fieldcat>-datatype = 'CURR'.
ENDIF.
Please any one can suggest the solution for this.
Advance Thanks.
Regards,
Bala AchariHİ,
Check this link.
http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=24379571
Take care.
Çağatay -
Tool Tip Text for field values in ALV report
Hi,
How to get the tool tip text for the field values in ALV report.
Thanks & Regards,
Pallavi.Hi,
In fieldcatalog specify the TOOLTIP.
<b>
LVC_S_FCAT-TOOLTIP
</b>
In this speicfyteh tooltip you want.
Then append this to the fieldcatalog.
Hope this solves ur problem. -
Sorting and null for monetary values in a report
All,
I think this should be an easy one, and I've just missed something obvious.
I have a standard report in APEX 3.2.1 that includes a column with a monetary amount in it. I want the column to show the UK Pound sign, be sortable, and show nulls where appropriate.
The issue I have is I can't find a way to achieve all 3 in a satisfctory way. As I see it the options would be:
1) In the SQL for the report, concat the pound sign to the column required, e.g. SELECT '£'||amount FROM....
The issue is that this makes this field a CHAR field, so sorting would not sort in the same way as for a number field.
2) Use the Number format FML999...etc. in the Column Attribute.
The problem with this is that this is a multi-country database, and the default monetary unit is set to the US dollar.
3) Use the HTML expression box in the Column attribute to display £#COL#
This fulfills the pound sign and retaining the number format, but unfortunately a null value is displayed as a £ sign with no numbers. I can't think how to get it to leave that value in the report as completely blank.
As I said, I'm sure I've missed soemthing obvious. If anyone can spot how to achieve this it'd be much appreciated.
Regards,
Jon.>
2) Use the Number format FML999...etc. in the Column Attribute.
The problem with this is that this is a multi-country database, and the default monetary unit is set to the US dollar.
>
The NLS currency symbol can be modified on the fly if you have some means of identifying user location/preference: {thread:id=990848} (ignore the last post)
However, it probably doesn't make sense to do that—£100 ≠ $100 (at least I hope not!)—unless there's some kind of conversion occurring in the report? Is there a currency stored along with the amount?
>
3) Use the HTML expression box in the Column attribute to display £#COL#
This fulfills the pound sign and retaining the number format, but unfortunately a null value is displayed as a £ sign with no numbers. I can't think how to get it to leave that value in the report as completely blank.
>
Use 2 columns, one for the amount, and one for the currency, with a switch to include or exclude the latter as necessary:
select
ename
, comm amount
, nvl2(comm, '£', null) currency
from
emp
where
job in ('SALESMAN', 'MANAGER')
ENAME AMOUNT CURRENCY
ALLEN 300 £
WARD 500 £
JONES
MARTIN 1400 £
BLAKE
CLARK
TURNER 0 £ Then use both columns in the Amount HTML Expression:
#CURRENCY##AMOUNT# -
How to get rid of unassigned values in the report
hai to all,
here is the issue,
while running a report(sales per country), iam getting the data,after that when i drill down on <u><b>sales document number</b></u> iam getting some unassigned data, with Sales document number as #, and some value in the keyfigure.what is the reason behind this?
Here is another issue that i want to find all the sales documents which have the value # in the report?, is it possible? the same case with <u><b>Customer country</b></u>, on the same report.
pl anyone help me
br
venkat/shyamHi Shyam.
Regarding the first issue: Well, you've loaded some data records into your cube where the "Sales Doc Field" is empty. Did you load through PSA? The best way to scan your PSA (I believe) is to find the underlying table and have a look at it via SE16. In this way you don't have to scan through every data single package. This can be done via "display data flow" from your cube and switch on technical names. There you have it. (It's called /BIC/B00...etcetc you might have to add i few zeroes though when you enter it into SE16). Get request ID from "Infocube Managment". In SE16 seelction screen use F2 to set the "sales Doc No." field even to blank.
Second issue is a bit easier: in your query (or a working copy of your query) restrict on "Sales Doc No" or "Customer Coutry" to only include value "#". In the same way you can remove the unassigned values be excluding value "#".
Hope this works for you.
Chears, Jørn -
Passing Value from Crystal Report (special function) to Business View parameter
Friends,
Í have a scenario where i need to pass value from Crystal Report to a Business view's parameter.
Eg : CurrentCEUsername (func in crystal report)-- gives login user which i should pass to parameter in a Business view (used in the same report).
Will be able to explain more if required.
Thanks in Advance,
BharathI guess you got the picture wrong. User_id is not a report_level parameter .
In Data Foundation, below query is used..
select Acc_Number, Account_Group,User_id from Accounts where user_id={?User_id}
where in {?User_id} is the BV parameter...
The Filter was a solution. But it takes long time to Query all the data from DB and then filter at BV level.
How do i pass the CurrentCEUsername to {?User_id}
Value should ve CurrentCEusername always. so that query will be
select Acc_Number, Account_Group,User_id from Accounts where user_id=CurrentCEusername
It will restrict the data pulled from DB to BV .. right? -
Printing parameter values in xml report, and displaying it in header of the
Hi All,
Can anybody give me an idea to print the parameter values in the xml report.
My requirement is like, I have 10 parameters in report builder, I have generated the xml file and created the .rtf template and finally registerted in oracle apps. But now, the requirement is to print the parameter values in the report output.I don't see any xml tags in the xml output.
Any suggestion will be appreciated.
Thanks in advance.I think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter. -
Value sets and Report Parameters
Hi
these are my requirements
i have developed report using scott where the
parametes are
dname
empinfo
(1)If i select Department 1o then
in parameter empinfo should display the value only from department 10
(2) i have created a value set for report parameters empinfo
it only shows two columns like EMPNO AND eNAME AND THERE only two column space to be shows
how could i make columns to be displayed in addition to ename and empno
RegardHi KittyCat101,
If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
Right-click the tablix or dataset to open the properties dialog box.
Select Filter in the left pane, then add a filter like below to filter Status field:
Expression: =Fields!Status.Value like (Parameters!Status.Value & "*") Type: Boolean
Operator: =
Value: true
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to include input user parameter values in XML report output?
How can i include input user parameter values in XML report output. I a have a report which can be run by providing start date and end date. I would like to include value of these parameters in XML output to enable me to figure out dates for report, just by looking at XML output.
Rgds,
manishI think all the XML attributes can contain lexicals. If you bring up the property palette against the report object you can just set the following:
XML Tag Attributes: myParameter="&<P_1>"
where P_1 is your user parameter. -
How can we read the screen field values from the report selection screen wi
Hi expart,
How can we read the screen field values from the report selection screen with out having an ENTER button pressed .
Regards
Razzuse this code...
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_posnr.
**Read the Values of the SCREEN FIELDs
CALL FUNCTION 'DYNP_VALUES_READ' -
How to change drill filter values of all reports at the same time
Hi,
The Webintelligence users in our environment usuallly use drill filters in their document's reports. We'd like to find a way to change the drill filters' values of all reports when one value is selected. I mean, we need a work around to change the drill filters of all reports at the same time.
We are using Business Objects XI 3.1 (a lot of webintelligence documents available, over than 2500).
Does someone know a way to do that? I've already looked for that a lot, but I couldn't find anything.
Thanks in advance,
Gustavo BorgesHello Gustavo,
as you refer to a Webi problem I recommend to post this query to the [BusinessObjects Web Intelligence|SAP BusinessObjects Web Intelligence; forum.
This forum is dedicated to topics related to the creation and design of Web Intelligence documents using the Web Intelligence Report Panels. This includes areas such as universe connectivity, prompts, charting, formatting, filters, and formulas.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Webi queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk
Maybe you are looking for
-
Document Search in BoB shop fails
Dear ISA Guru's, The document search in Business-On-Behalf Webshop does not give me any results. It works fine for the direct webshop. I am using ISA 5.0 SP 11 with Ecommerce 6.0 as back end. Appreciate your hlep here. Thanks! Surya.
-
How to add new columns in predefined matrix in system form
Hi all, I am new to SAP B1. I am going to add New column to Good Receipt PO matrix. I faced the one error " Matrix Line Exists " While adding new column to good receipt PO matrix". ========================================================= Private Sub
-
Hello, I just installed Arch on a new Acer Aspire One 751h. I have used Arch before, but haven't installed a graphical environment since hwd was recommended. Anyway, I got HAL to autodetect all of my hardware correctly (as far as I can tell, so far
-
Script to play sound if time = :00 or :30
Tell me if it's possible .... I would like to make a BIG BEN chime on every :00 & :30. Basically I have a sound clip of one big ben chime. If time equals on the hour or half Play mp3 using system sound and system events. Osx 10.5.6 Thank You Tyson Me
-
All of a sudden my mac started running very slow. first i opened activity-monitor to see what was wrong. I didnt see any unusual ram-usage. But the kernel_task had a CPU-time of 32 000. I cant seem to find any other explenation for why this is happen