Using field highlighter to highlight records with a certain date range
I've been asked to highlight a field based on the fact that the "Submit" date is greater than a certain value. The problem is that there's no way to pre-determine what that value is. It changes.
The user wants to be prompted for the value when he runs the report. That value would then be stored as a variable which would be used in the script to determine if the field should be highlighted.
Does anyone know if there a way to do this?
Thanks for your quick reply Raghavendra.
How does that prompt the submitter for the Date value he wants to use and the date to compare the submit date against?
Here's the scenario.
A user wants to highlight all "new" tickets submitted since last time he ran the report. It's not like he runs the report every friday which would make it easy because then you'd compare the submit date to "today-7" so-to-speak. He runs the report randomly. He wants to be prompted for a date before the report runs to replace "today-7".
Could you help explain how to prompt the use for that date.
Similar Messages
-
2lis_02_scl extract records with wrong posting date for Good Receipts.
Hi Experts,
We are currently having issue of mismatch between BW Schedule Line data with R/3 values for the Goods Receipts posting date updating incorrectly in to BW.
Example.
In table EKBE purchase order history we have following records.
MANDT EBELN EBELP ZEKKN VGABE GJAHR BELNR BUZEI BEWTP BWART BUDAT MENGE
501 5600453404 00010 00 1 2010 5012473031 0001 E 101 23.01.2010 1.250,000
501 5600453404 00010 00 1 2010 5012473031 0002 E 101 23.01.2010 1.250,000
501 5600453404 00010 00 1 2010 5012473031 0003 E 101 23.01.2010 1.250,000
501 5600453404 00010 00 1 2010 5012693310 0001 E 101 26.02.2010 1.250,000
Which means we have on posting date of 23.01.2010 1250*3 i.e. 3750 quantity of Goods Receipts.
However when we check the extractor we get multiple records in internal table C_T_DATA and in psa.
Line BWV ETENR SLFDT MENGE ROCA BEDAT BUDAT EBELN
ORG NCEL
1 001 0001 20100125 3750.000 20100113 ZNB F 00000000 5600453404
2 001 0002 20100226 1250.000 20100113 ZNB F 00000000 5600453404
3 002 0001 20100125 3750.000 X 20100113 ZNB F 20100123 5600453404
4 002 0001 20100125 3750.000 20100113 ZNB F 20100123 5600453404
5 003 0001 20100125 3750.000 X 20100113 ZNB F 20100127 5600453404
6 003 0001 20100125 3750.000 20100113 ZNB F 20100127 5600453404
7 002 0001 20100125 3750.000 X 20100113 ZNB F 20100226 5600453404
8 002 0001 20100125 3750.000 20100113 ZNB F 20100226 5600453404
9 002 0002 20100226 1250.000 X 20100113 ZNB F 20100226 5600453404
As can be seen we have record no 8 for ETENR (Schedule line 1) with posting date 26.02.2010 and another record with posting date 23.01.2010.
Since we are getting 2 records the record with incorrect posting date overwrites the record with correct one.
Any idea if this could be a standard extractor problem or any other way to resolve this issue.
Any help would be appreciated.First of all, are you using a staging DSO? (You should ideally)
If yes, is it a Write Optimized DSO? (Again, this is ideal)
If its a standard DSO, the values maybe over-writing upon activation.
You have 3 records (quantity = 1250 * 3) that have been receipted on 23.01.2010, where Posting Date = 23.01.2010.
You also have a record (quantity = 1250 * 1) that has been receipted on 26.01.2010. Posting date = 26.01.2010.
Now, in RSA3 & in PSA you can see more records than intended.
This is because you have before & after images. (ROCANCEL = X or blank).
ROCANCEL = X --> Before Image (record before change)
ROCANCEL = blank --> After Image (record after change)
This is a standard property of the extractor.
Now, we also have something known as BWVORG (Process Keys). Each process, i.e. creating a PO, Goods Receipt, Invoice etc.. have different Process Keys.
Creation - 001
Goods Rcpt. - 002
Invoice - 003
We can see that record 8, i.e. BWVORG = 002 (GR) has been modified on 26.01.2010.
That is why there is before image and after image.
Which one should be the correct posting date? 23.01.2010?
Normally in a Write optimized DSO, you will have all the records (before and after images & others as well).
I hope this helps.
Please let me know if otherwise. -
Program to update info record with material master data
I am trying to determine if there is a standard SAP program that can be run as a batch file to update the fields in the info record with the same fields that are in the material master? ie: Planned delivery time, Tolerance, purchasing group etc.
Hi,
There is no standard report or transaction that can do this.
The data from these fields in the material master is brought in as a default to the info record when it is created. beyond this point the Info record is treated as being the correct data regardless of what happens to the material master data and so no updates occur in the standard system.
It would not be difficult to build an LSMW job to copy the data from the material master to the info records and this would be the recommendation if you want to do this.
Steve B -
Finding the record with the latest date
Post Author: sconlon
CA Forum: General
Hi,I am using CR 8 with an Access database which has a table that holds (multiple) sales records for each of our clients. I want to create a report that lists only the latest sale from each client. I am thinking that I first need to group by client and then create a sub-report that prints the necessary details of sales record with the latest date of sale. It's this last bit that I cannot figure out how to do. Can anyone suggest a way of doing this?Many thanks,sconlonPost Author: Jagan
CA Forum: General
Charliy's suggestion if fine, and does require sorting and displaying in the group header/footer according to the sort order. In case it's not clear, when you print in the group header you are using the first record's data; when you print in the group footer you are using the last record's data (first and last within the group that is).
Personally, I'd group on the client have a group selection formula of:
{table.date_field} = maximum({table.date_field}, {table.client_id})
so that there's no date sort required as you'll only get one record per client group - assuming that each record has a unique date of course. I'd probably still suppress the details section and display in the group footer, but it wouldn't matter if you use the details section either.
I believe the benefit with the group selection formula is that any summary formulas, running totals etc. you use would only have the one record per client to work on, rather than including all of the suppressed records too. -
Select records with in a given range
Hi Team,
I've very urgent requirement. I urge please help as soon as possible
I've two table like below
Subscriber Table
SID Sub_StDate Sub_Enddate
101 05-jan-2014 28-mar-2014---SET S1
101 01-apr-2014 29-june-2014---- S2
101 01-Aug-2014 14-dec-2014---S3
102 01-jan-2014 31-aug-2014---S4
Premium Table
SID pre_StDate pre_Enddate
101 01-jan-2014 28-feb-2014 --- SET P1
101 01-mar-2014 30-july-2014 --- SET p2
101 01-jul-2014 14-oct-2014----P3
101 15-oct-2014 31-dec-2014---P4
102 01-jan-2014 31-aug-2014 ---P5
i need to split subcriber table date range by comparing with premium table date range and keep them in temp table
i.e my temble should be
SID Stdate enddate
101 05-jan-2014 28-feb-2014
101 01-mar-2014 28-mar-2014
(mt S1 falls into P1 and P2 range)
101 01-apr-2014 29-june-2014(s2 falls in P2only)
101 01-aug-2014 14-oct-2014
101 15-oct-2014 31-dec-2014
(s3 falls in p3,p4)
102 01-jan-2014 31-aug-2014(direct)
That means i need to check my subscriber date range falls under which premium and i need to split time range accordingly for all subscribers. and my one more constraint is I have millions of records like this. If I use more loops,performance is getting down
very badly.
Please give optimized solution I've very less time to give it client. Please help. let me know still need more explanation on my requirement
thanks in advance
sundari
SundariHi, sqlsaga beat me by few minutes and he did good job!
The following code also in the same lines
SELECT S.[SID] AS 'SUBSCRIBER SID' , S.[Sub_StDate], S.[Sub_Enddate],
P.[SID] AS 'PREMIUM SID' , P.[pre_StDate], P.[pre_Enddate],
S.[SUBSCRIBER], P.[PREMIUM]
INTO #TEMP1
FROM
SELECT S1.[SID], S1.[Sub_StDate], S1.[Sub_Enddate], S1.[SUBSCRIBER]
FROM
SELECT 101 AS SID, CONVERT(DATE,'01/05/2014') AS Sub_StDate , CONVERT(DATE,'03/28/2014') AS Sub_Enddate, 'S1' AS SUBSCRIBER
UNION ALL
SELECT 101 AS SID, CONVERT(DATE,'04/01/2014') AS Sub_StDate , CONVERT(DATE,'06/29/2014') AS Sub_Enddate, 'S2' AS SUBSCRIBER
UNION ALL
SELECT 101 AS SID, CONVERT(DATE,'08/01/2014') AS Sub_StDate , CONVERT(DATE,'12/14/2014') AS Sub_Enddate, 'S3' AS SUBSCRIBER
UNION ALL
SELECT 102 AS SID, CONVERT(DATE,'01/01/2014') AS Sub_StDate , CONVERT(DATE,'08/31/2014') AS Sub_Enddate, 'S4' AS SUBSCRIBER
) AS S1
Subscriber Table
SID Sub_StDate Sub_Enddate
101 05-jan-2014 28-mar-2014 ---SET S1
101 01-apr-2014 29-june-2014 ---S2
101 01-Aug-2014 14-dec-2014 ---S3
102 01-jan-2014 31-aug-2014 ---S4
) AS S ---Subscriber Table
OUTER APPLY
SELECT P1.[SID], P1.[pre_StDate], P1.[pre_Enddate], P1.PREMIUM
FROM
SELECT 101 AS SID, CONVERT(DATE,'01/01/2014') AS pre_StDate , CONVERT(DATE,'02/28/2014') AS pre_Enddate, 'P1' AS PREMIUM
UNION ALL
SELECT 101 AS SID, CONVERT(DATE,'03/01/2014') AS pre_StDate , CONVERT(DATE,'07/30/2014') AS pre_Enddate, 'P2' AS PREMIUM
UNION ALL
SELECT 101 AS SID, CONVERT(DATE,'07/01/2014') AS pre_StDate , CONVERT(DATE,'10/14/2014') AS pre_Enddate, 'P3' AS PREMIUM
UNION ALL
SELECT 101 AS SID, CONVERT(DATE,'10/15/2014') AS pre_StDate , CONVERT(DATE,'12/31/2014') AS pre_Enddate, 'P4' AS PREMIUM
UNION ALL
SELECT 102 AS SID, CONVERT(DATE,'01/01/2014') AS pre_StDate , CONVERT(DATE,'08/31/2014') AS pre_Enddate, 'P5' AS PREMIUM
) AS P1
WHERE (
( S. [SID] = P1.[SID] )
AND
( S.[Sub_StDate] BETWEEN P1.[pre_StDate] AND P1.[pre_Enddate] )
OR
( S.[Sub_Enddate] BETWEEN P1.[pre_StDate] AND P1.[pre_Enddate] )
Premium Table
SID pre_StDate pre_Enddate
101 01-jan-2014 28-feb-2014 ---SET P1
101 01-mar-2014 30-july-2014 ---P2
101 01-jul-2014 14-oct-2014 ---P3
101 15-oct-2014 31-dec-2014 ---P4
102 01-jan-2014 31-aug-2014 ---P5
) AS P ---Premium Table -
Filter records with month and date
Hi,
i have records as follows in the table.
custno trn_dt amount
1 01-jan-06 100
1 10-jan-06 200 --->
1 15-feb-06 300
2 15-dec-06 111
2 15-jan-06 222 --->
2 01-fen-06 333
If i specify the runtime parameter as JAN-06 the output of the report should be with 2 records indicated with arrows above.
the query should pick up the record with the highest date for a specific customer.
in the above example for customer "1" 10-jan-06 is highest date and for customer "2" 15-jan-06 is the highest date.
hope the requirement is clear.
thanks in advanceSELECT custno, trn_dt, amount
FROM TABLE
WHERE (custno,trn_dt) IN
(SELECT custno, MAX(trn_dt)
FROM TABLE
GROUP BY custno)
There are many examples on this in SQL and PL/SQL forum. -
How to display record with most recent date in sapui5?
Hi
I have a local json data with me, in which I have number of records.
And in each record I have an "AENDATE" as a date property.
Now I want to display the record with most recent date in the records.
How I can I do it......????????
Please help me with this.
Thanks
SathishHow about sorting your json model descending, and display only first (index:0) item?
-
Updating a record on a certain date
Hi,
I have a little problem with updating a record on a certain
date specified in the same table.
OK so i have a table called 'users' and in that table i have
the following fields:
AdID
Username
AdStatus
AdStartDate
AdPeriod
(and a few more but i've listed the important ones here)
What i have done is, when a user places an AD, it inserts
into the table the user's username, the ad status (e.g. Active,
Suspended ect), the day on which the advert was placed, the period
the ad has been placed for (e.g 6 months, 1 yr, 2yr ect).
What i would like to do is to create an auntomatic function
that checks the date in the table, and see if it is 6 months, 1yr,
2yr old or whatever and if it is, update the status to suspended.
Problem is, i dont know how :(
I thought about adding a countdown script and when it reaches
Zero, run a stored procedure but i dont know anything about them.
Could somebody PLEASE help me this is driving me mad. I've
been trying all kinds of ways but no luck. Anyone with the 'know
how' that can point me in the right direction would be a BIG start.
I am using ASP.VB and MYSQL 5.
Thankyou in Advance,
Adammuzicmistro wrote:
> What i have done is, when a user places an AD, it
inserts into the table the
> user's username, the ad status (e.g. Active, Suspended
ect), the day on which
> the advert was placed, the period the ad has been placed
for (e.g 6 months, 1
> yr, 2yr ect).
>
> I am using ASP.VB and MYSQL 5.
I can't help you with the ASP side of it, but since you're
using MySQL,
you could simplify your problem by adopting a different
approach. Add an
expiry_date column (DATETIME type) and use the MySQL
DATE_ADD() function
to insert the date on which the ad expires. If your minimum
period is
one month, you can simply use MONTH as the the period in
DATE_ADD, and
use a variable to change the number of months (e.g., 24 for 2
years).
INSERT INTO myTable (expiry_date, other_cols)
VALUES(DATE_ADD(NOW(), INTERVAL x MONTH), other_vals)
http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html
Rather than have an active/expired column, just use the
expiry_date and
compare it with the current date. If it's greater, the ad is
still
active. If it's less, the ad has expired.
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/ -
I am trying to develop a query in MS Access 2010 to join two tables using three joins, one of which is a (between) date range. The tables are contained in Access. The reason
the tables are contained in access because they are imported from different ODBC warehouses and the data is formatted for uniformity. I believe this cannot be developed using MS Visual Query Designer. I think writing a query in SQL would be suiting this project.
ABCPART links to XYZPART. ABCSERIAL links to XYZSERIAL. ABCDATE links to (between) XYZDATE1 and ZYZDATE2.
[ABCTABLE]
ABCORDER
ABCPART
ABCSERIAL
ABCDATE
[ZYXTABLE]
XYZORDER
XYZPART
XYZSERIAL
XYZDATE1
XYZDATE2Thank you for the looking at the post. The actual table names are rather ambiguous. I renamed them so it would make more sense. I will explain more and give the actual names. What I do not have is the actual data in the table. That is something I don't have
on this computer. There are no "Null" fields in either of the tables.
This table has many orders (MSORDER) that need to match one order (GLORDER) in GLORDR. This is based on MSPART joined to GLPART, MSSERIAL joined to GLSERIAL, and MSOPNDATE joined if it falls between GLSTARTDATE and GLENDDATE.
[MSORDR]
MSORDER
MSPART
MSSERIAL
MSOPNDATE
11111111
4444444
55555
2/4/2015
22222222
6666666
11111
1/6/2015
33333333
6666666
11111
3/5/2015
This table has one order for every part number and every serial number.
[GLORDR]
GLORDER
GLPART
GLSERIAL
GLSTARTDATE
GLENDDATE
ABC11111
444444
55555
1/2/2015
4/4/2015
ABC22222
666666
11111
1/5/2015
4/10/2015
AAA11111
555555
22222
3/2/2015
4/10/2015
Post Query table
GLORDER
MSORDER
GLSTARTDATE
GLENDDATE
MSOPNDATE
ABC11111
11111111
1/2/2015
4/4/2015
2/4/2015
ABC22222
22222222
1/5/2015
4/10/2015
1/6/2015
ABC22222
33333333
1/5/2015
4/10/2015
3/5/2015
This is the SQL minus the between date join.
SELECT GLORDR.GLORDER, MSORDR.MSORDER, GLORDR.GLSTARTDATE, GLORDR.GLENDDATE, MSORDR.MSOPNDATE
FROM GLORDR INNER JOIN MSORDR ON (GLORDR.GLSERIAL = MSORDR.MSSERIAL) AND (GLORDR.GLPART = MSORDR.MSPART); -
Payroll operation: comparison with a certain date
Hello, everybody,
I am trying to compare the employee's date of seniority from IT0041 with a certain date (ex: first of september 2001) so as to calculate my seniority bonus (because the calculation rule is not the same for the employees who have the seniority date before or after entrering the first of september 2001). I have tried to use the payroll function NUM=F... but this gives me only the number of years, or months till the current payroll period, and not the month and year from infotype 0041 and I do not know how to compare the given date and the date coming from the infotype.
please help me
thanks in advance
natachalekYou can compare the employee's date of seniority from IT0041 with a certain date in a customer operation %xyz (model E7) created in tcode PE04.
The dates from IT0041 are available in an internal table DATUMSANGABE. Develop ABAP code as follows:
FORM op%xyz.
DATA: date TYPE d VALUE '20010901'.
READ TABLE datumsangabe WITH KEY typ = '01'.
IF datumsangabe-wert LT date.
vargt = 'X'.
ELSE.
vargt = '*'.
ENDIF.
PERFORM fillvargt.
ENDFORM.
In the payroll schema where the seniority bonus is performed, create decision operation %xyz. For the variable key 'X' process the bonus WT for employees hired before 1st Sep 2001 and for others use the branch with variable key '*'.
Regards,
Renata -
How to select Months with in a date range
Hi
I am working on a report which will list out Month wise totals in each row.
How should i select the Months with in a date range and do the sum ( User may select the date range for N number of years also. Example : 01/10/2000 to 01/01/2010 )
Thanks in advance
Thanks®ards
MrudulaHi
Use the following code:
data: l_date(8) value '03042007',
l_mname type t247-ktx,
l_c(25).
select single ktx from t247
into l_mname
where spras = sy-langu
and mnr = l_date+2(2).
concatenate l_mname l_date+6(2)
into l_c." SEPARATED BY space.
data: g_date(10) type c. " Processing date of Report
g_date = sy-datum.
concatenate g_date0(4) g_date4(2) g_date+6(2) into g_date.
data: g_date1(10) type c.
g_date1 = so_verab-high.
concatenate g_date10(4) g_date14(2) g_date1+6(2) into g_date1.
Regards,
Sreeram -
Can I use SYSDATE in the WHERE clause to limit the date range of a query
Hi,
Basicaly the subject title(Can I use SYSDATE in the WHERE clause to limit the date range of a query) is my question.
Is this possible and if it is how can I use it. Do I need to join the table to DUAL?
Thanks in advance.
SteliosAs previous poster said, no data is null value, no value. If you want something, you have nvl function to replace null value by an other more significative value in your query.<br>
<br>
Nicolas. -
Giving Add-DnsServerResourceRecordA a blank name yields an error (basically saying that the 'Name' parameter cannot be null or empty). In DNS Manager (dnsmgmt.msc)
adding such a host record yields a record with the same name as the parent folder, denoted by "(same as parent folder)" in the Name column.
Is there some flag I can pass to Add-DnsServerResourceRecordA to achieve the latter functionality? Is there some other way to achieve this in Powershell?
I currently have the line of PS below, and if $name="" I get the error.
Add-DnsServerResourceRecordA -IPv4Address $ip -ZoneName $zone -Name $name -ComputerName $dnsThanks, Calin!
This could be added as an example here: http://technet.microsoft.com/en-us/library/jj649925.aspx
Now that I see your answer Example 6 looks like it was supposed to use -Name "." but part of the line is missing so it just looks broken instead. -
Want to use "LINE-IN" but keeps recording with "BUILT-IN MICROPHONE"?
Set up Mac>System Preferences>Sound and choose LINE-IN......check!
Set up Audio MIDI setup default to Built-in Line-in, NOT microphone...check??
okay.. i've been trying to record with a microphone that i have.
i did everything i could to NOT record with the built-in mic.
hasnt succeeded. I do not know what to do..
I see other ppl with the same problem:
http://discussions.apple.com/thread.jspa?messageID=6418401
http://logicprohelp.com/viewtopic.php?p=19933&sid=cc5a97a30c63560ba8793515ecc5c1 91
No real helpful answer.If I am not wrong, you need data from SQL tables in form of
XML. Then you can get that straight from SQL by using FOR XML
clause. FOR XML modes can be of 3 types RAW, AUTO or EXPLICIT. You
can use the mode as per your need.
For more information, please visit the link below:
http://msdn2.microsoft.com/en-us/library/ms345137.aspx
Thanks -
How to pull records only for particular date range in Flex frm SAP wd table
Hi,
Can anyone help me with databing for datefield.
I am using two datefields in Flex for Start Date and End Date. When I click the Execute button, it should pull only the records for that date range from SAP wd table and display in my Flex datagrid.
Thanks,
Sri
Edited by: rmsridevi on May 17, 2011 4:38 PMHi,
Your query has mistakes as well. I corrected them.
Check this two different ways were in first you can define the period (month) you want and in second you have the option to select from the drop drown list :
SELECT T0.DocNum, T0.DocDate, T0.CardName,T0.DocTotal,T1.whsCode
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE t0.docdate >= '2011.01.01' and t0.docdate <='2011.01.31'
OR
SELECT T0.DocNum,T0.DocDate,T0.CardName,T0.DocTotal,T1.whsCode
FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry
WHERE t0.docdate >= [%1] and t0.docdate <= [%2]
Kind Regards,
Jitin
SAP Business One Forum Team
Maybe you are looking for
-
Unable to open a project created by another team member in my Captivate 4
I have installed Captivate 4 on two PCs. According to my license I am allowed to install on my home laptop and on my work PC. I am using Version 4.0.1 Build 1658. I also have all the latest updates as of October 13, 2009. I am able to develop and pub
-
Interactive form in web dynpro abap
hi experts, i am beginner to adobe interactive form in web dynpro using abap. my scenario: To use interactive form ui element and place all fields of lfa1 in view. my context look like con
-
Access a OCI Catalog from ABAP code
Hi Experts, We may need to access an OCI Catalog from an ABAP code. We will need to punch out the Catalog in a browser window, and somehow get the results from the browser back to the ABAP code. Any idea of how can this be accomplished? Thanks and re
-
What did you think of iMovie '11?
I am thinking about buying a new mac but I'm only really concerned about the movie making software. I have used iMovie a few years ago and I liked it for the most part but I want some personal feedback on it. What did you think of the new software? W
-
Somehow a file called 'keepsessionalive.aspcx' keeps appearing in my download manager. I have clicked 'stop' and then clear and it goes away only to come back later. In fact today I had to erase 5 of these downloads as they just kept piling up. I tho