Compare Hiredate with Current date in PCR
As per the requirement I have, a certain type of accrual needs to occur on the employee's anniversary date, this accrual should only happen on the first anniversary. How can I compare hire date with current date ignoring the year, and then ignoring the same logic from second year on-wards.
Can someone please help me with the possible method of implementing this requirement in a time PCR.
In my humble opinion, I think that you should achieve that by means of an ABAP program, it should be scheduled to run every day and compare the hiring date with the current date of every employee, then create a batch input to Infotype 2013... it would be easier to track and monitor, since you would have all logs in SM35
Best regards,
Federico.
Similar Messages
-
Stock Aging report with current date
Dear Experts
Can we able to take stock aging report with current date?
Thanks&Regards,
Vinoth Raj KYou're posting in the Portuguese B1 space.
You might want to post in the English one: SAP Business One Application -
How to pick the file which is created with current date
Hello All,
I have an FTP server where files are created with current date as PO_CONFIRM_20100701.txt.
Need to pick the file based on current date. How to pick the above file format using file sender adapter. i.e what file pattern can we use so that file will be picked only on today's date
Regards,
Sreenivas.Hi Srinivas,
It depends upon the OS you are using. If unix you can see an example script here:
http://www.computing.net/answers/dos/batch-file-to-rename-files-by-date/5517.html
If windows an example here:
http://en.kioskea.net/forum/affich-87157-finding-and-using-file-date-in-batch-command
You may need to change slightly to fit your exact requirements. But this would make you to start. Else you can also google to get the script. Here is one link:
http://www.google.com/#hl=en&source=hp&q=scripttorenamefileshavingtodaysdate&aq=f&aqi=m1&aql=&oq=&gs_rfai=CRE9SwTMsTNjiDpzGhgTm65iFCwAAAKoEBU_QC2i-&fp=e0fa4b5da4f245a4
Regards,
---Satish -
How to fill a prompt in webi with current date?
A webi report is being generated on BEx Query.
IN BEx query variables are defined for some date fields to prefill them with current date.
Foe ex. there is license start date. For this field variable is defined so that in variable screen License start date is automatically filled with greater than or equal to current date(which is system date). WHich is a mandatory variable.
On BO side, a webi report is being developed on a Universe (based on this BEx query).
When the webi report is run, the license start date(mandatory variable in BEx) is automatically prompted, but date is not getting prefiiled with current date.
How to prefill this prompt with current date?
the prompt should be like
LIcense start date >= <current date>Hi,
Yes, it isn't possible to reference anything like 'Current Date' in the universe (like you would with a SQL data source).
The solution I have seen recently goes like this, I don't know the exact details (so I might have some terminology wrong), but someone with ABAP skills should get what I mean.
Assuming you want to filter on 0CALDAY.
In ABAP, create a customer EXIT that calculates the current date as a number (so today might be 40651). Do the same for 0CALDAY.
In the BEx create a formula variable that references each of those, then a Formula Key Figure (I forget the exact name of them) that's just the current day number minus the 0CALDAY number. This gives you the 'age' of that row of data.
Your Webi report can then have a built in filter (or prompt with a default value) of, say Age <= 30. The report can be scheduled and will always run with the last 30 day's data.
We actually did the customer exists to show the 'age' in months.
Sorry I can't explain it any better, but it's working great for us.
Hope that helps. -
Compare previous with Current Value
Want to compare previous with current value and assign the right one..
COLA COLB
72 21356
41023 21356
90 78903
90 89078
90 78956
90 45632
41023 78903
41023 45632
Output I want is:
COLA COLB
72 21356
72 21356
90 78903
90 89078
90 78956
90 45632
90 78903
90 45632
Anytime the value in COLA is 41023, I need to look at value in COLB and compare it with the rest of values and assign the COLA value that is NOT 41023
Thanks...Not sure but here a try :
SQL> select * from tbltbl;
COLA COLB
72 21356
41023 21356
90 78903
90 89078
90 78956
90 45632
41023 78903
41023 45632
8 rows selected.
SQL> MERGE INTO tbltbl a
2 USING (select c.cola,b.rowid rwd
3 from tbltbl b,
4 tbltbl c
5 where b.cola=41023
6 and b.colb=c.colb
7 and c.cola!=41023) d
8 on (a.rowid=d.rwd)
9 WHEN MATCHED THEN UPDATE set a.cola=d.cola;
3 rows merged.
SQL>
SQL> select * from tbltbl;
COLA COLB
72 21356
72 21356
90 78903
90 89078
90 78956
90 45632
90 78903
90 45632
8 rows selected.Works only if colb is unique for non 41023 value.
Nicolas.
Oh, very very late.
Edited by: N. Gasparotto on Oct 3, 2008 5:05 PM -
Simple question: validate infocube data by comparing it with PSA data
Hi all,
I want to validate infocube data by comparing it with PSA data, for that i went through PSA via context menu. After that i generated export datasource. Then i am not able to find PSA Export datasource? where can i find that..
Thanks
rajuHi all,
I´ve tryied to VALIDATE INFOCUBE DATA BY COMPARING IT WITH PSA DATA making the step by step contained in the HOW TO ...
The problem is that I have the following error when i activate the transfer rules after aggregating the infoobjet 0TCTREQUID and don´t know how to resolve it:
" IDoc segment /BIC/CICA7ZBW_RECEP_DI could not be assigned to IDoc ZSCA002
Message no. RSAR240
Diagnosis
The transfer structure is assigned to IDoc ZSCA002 as an IDoc segment for the data transfer between source system and Business Information Warehouse.
This assignment failed.
System response
IDoc segment /BIC/CICA7ZBW_RECEP_DI not known to IDoc V2&. Therefore, no data import can take place from the source system for this InfoSource."
Any idea of what could have happend?
Thanks in advance,
Diego -
Create prompt with date-filter and initialize it with current date
Oracle BI 11 g
Hi!
I need to create dashboard prompt with date-filter and initialize it with current date. How can I do that?
I tried to create repository initialization block and add variable. But I don't know what should I write to DataSource? I tried to use functions Now(), Current_Date, sysdate (for example, SELECT Now() FROM tbl_Calendar) but without results - when I pressed "Test..." button I got errors - something like "Now() is unknown function" or "Incorrect syntax near key word Current_Date".
After that I tied to use Presentation Variable in Prompt, but also without success ((
Please, help me.I've created Repository Variable "CurrentDate", using SQL-query like this "select convert(varchar(10), getdate(), 104)" and now this variable is being initialized by value "07.04.2011". But I don't understand how to use this varible in DashboardPrompt! What item in list "Default selection" I should choose - "Variable Expression", "Server Variable" or something else? When I chose "Variable Expression" and write "CurrentDate" I got just string "CurrentDate" when preview Prompt. @{CurrentDate} gave me the same result.
-
How to initiate java.util.Date with current date
Hi
Thank you for readingmy post.
how i can initiate a Date object with current Date ?
Thank youPlease refer to the API for this type of information
Date()
Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond. -
How to compare user entered date with current date
Hi all
my requirement is, user allowed select one date, in code i have compare this date with current day date. it should be 15days gap other wise display error message.
I am worried about how to get current date in code. Is there any code to get current date. please reply me with code or mail me at [email protected]
Thanx
keerthiKeerthi,
Use the method <b>getDifference()</b> of the DateHelper.java available here.<a href="http://www.koders.com/java/fid14A61FEB1B45A64E42E1DCAD7070B46AE46340BA.aspx">DateHelper</a>
1. Create a new folder, say Util under your src folder. (com.xyz.util)
2. Put this DateHelper.java file in that folder,(com.xyz.util) .
3. Now, write an import statement for this java class in the required view.
4. Use the getDifference() method of this class to the difference in days between two days.
Or
Simply use this code.
// Get msec from each, and subtract.
long diff = currDate.getTime() - selectedDate.getTime();
int noOfDays = diff / (1000 * 60 * 60 * 24);
where currDate is today's Date and selectedDate is the Date selected by the User.
Bala -
How to auto populate a column/SharePoint list with Current Date?
I have a SharePoint list and I created a column called ‘CurrDate’.
I need this column to;
Display the current date,
Auto populate all rows with the current date in the SharePoint list
Dynamically update with the current date
I first tried creating the column using the default SharePoint interface Date Time but it’s not doing any of the steps listed above:
I even tried entering =[Today] in the Calculated Value field.
Still nothing…
So, I’m sure you will toss out a code snippet to make this work, which is great.
However, I’m a total noob with SPD, where the heck do I insert this snippet?
Always in need of help.Hi ,
I understand that you want to add a column to a list to hold current date. Here is a workaround:
Add a single line of text column to the list. Name the list as Today.
Add a calculated column to the list. Use the [Today] as the formula. Set the calculated column to be Date and Time type.
Delete the Today column from the list.
Thanks,
Entan Ming
TechNet Subscriber Support in forum
If you have any feedback on our support, please [email protected]
Entan Ming
TechNet Community Support -
Bar chart with current date in X axis
Hello
I have attached a vi that I hoipe somebody can help with.
If you look at the vi, there are two bars showing.
1.How can I attach the current date to the X axis.
For instance.....suppose the first bar (far left) was produced with data from yesterday...then the X axis would indicate yesterdays date.
The next bar was produced from data obtained today, so would show todays date.....etc
An array of dates is not suitable, as no prior date knowledge is assumed......just the current date when the bar was graphed.
2. Can the date be vertical....or even fancier....on a 45 degree slope, upwards and to the right
Thank you and best regards
Ray
Solved!
Go to Solution.
Attachments:
Bar chart.vi 16 KBHi, this will plot what ever data you got with the current date on the X Axis. But remember that since this is a graph, any new value plotted will erase the previous one. Dont have LabVIEW 9 otherwise would have checked your VI out. This plots each value with the current date.
LabVIEW 8.2,8.6,2009...still learning
Attachments:
Date Plot.png 16 KB -
How to convert a string to date and then compare it with todays date???
Hello.
I want to set a format first for my dates
DateFormate df = new SimpleDateFormate("yyyy-mm-dd");
once this is done then I want to convert any string to date object in the above formate
String str="2001-07-19";
Date d = null;
try{
d = df.parse(s);
}catch(ParseException pe) {
pe.printStackTrace();
First of all there is something wrong above,cus what I get for this is
Fri Jan 19 00:07:00 MST 2001
where as it should have been
2001-07-19... to my understanding.
once this part is done I need to get current date in the above set format and compare the
current date and the date I set.
I will appreciate the help.
Thanksfor the output part:
a date is a point in time
the output depends on the format you specify for output
using for example a SimpleDateFormat.
You only specified the format for parsing (which is independent for that of output) so java uses some default format ... see the DateFormat.format() method for details.
for the comparison stuff, I just posted a little code snippet in this forum a few minutes ago.
the hint is: Date.getTime() returns milliseconds after a fixed date
hth Spieler -
"Exp" utility script with current date dmp file format
Dear All,
I want to creat a window batch file script "oralce database 11gr2" in such a way that dmp file automatically created in c:\test folder with oralce _sid and current date.
C:> exp file=c:\test\ora-sid_date_format.dmp owner=test
Any help would be appreciated.
Regards,Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\comp>exp system/sm file=c:\%ORACLE_SID%_%date%_forma
t.dmp owner=test
^C
C:\Documents and Settings\comp>exp system/sm@test file=c:\%ORACLE_SID%_%date%_
format.dmp owner=test
Export: Release 10.2.0.2.0 - Production on Wed May 19 12:41:11 2010
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit
Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
About to export specified users ...
. exporting pre-schema procedural objects and actions
. exporting foreign function library names for user TEST
. exporting PUBLIC type synonyms
. exporting private type synonyms
. exporting object type definitions for user TEST
About to export TEST's objects ...
. exporting database links
. exporting sequence numbers
. exporting cluster definitions
. about to export TEST's tables via Conventional Path ...
. . exporting table AGENTSINFO 7 rows exported
. . exporting table ARCHIVE_SETT 3 rows exported
. . exporting table ARC_CPAYMENT 0 rows exported
. . exporting table ARC_CREDIT 2596 rows exported
. . exporting table ARC_DEBET 4 rows exported
. . exporting table ARC_DPAYMENT 4 rows exported
. . exporting table BRANCHESCASH 2 rows exported
. . exporting table CANCELCOUPON_OPRCODES 17 rows exported
. . exporting table CHECK_PAYMENTREQUEST 36 rows exported
. . exporting table CORPCODES 0 rows exported
. . exporting table CREDIT_MESS 0 rows exported
. . exporting table CREDIT_PAYMENT 0 rows exported
. . exporting table CURRENCIES 1 rows exported
. . exporting table DEBET_MESS 0 rows exported
. . exporting table DEBET_PAYMENT 0 rows exported
. . exporting table DIRECTORY 1 rows exported
. . exporting table MAILSETTINGS 2 rows exported
. . exporting table PAYCOUPON_OPRCODES 22 rows exported
. . exporting table PAYMENT_OPRCODES 21 rows exported
. . exporting table PAYMENT_REQUEST 53 rows exported
. . exporting table PAYMENT_RESPONSE 53 rows exported
. . exporting table REP_CANCELCOUPON 0 rows exported
. . exporting table REP_PAYCOUPON 70 rows exported
. . exporting table REP_VERIFYCOUPON 121 rows exported
. . exporting table REQ_CANCELCOUPON 0 rows exported
. . exporting table REQ_PAYCOUPON 108 rows exported
. . exporting table REQ_VERIFYCOUPON 124 rows exported
. . exporting table VERIFYCOUPON_OPRCODES 18 rows exported
. exporting synonyms
. exporting views
. exporting stored procedures
. exporting operators
. exporting referential integrity constraints
. exporting triggers
. exporting indextypes
. exporting bitmap, functional and extensible indexes
. exporting posttables actions
. exporting materialized views
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
. exporting statistics
Export terminated successfully without warnings.
C:\Documents and Settings\chinar>date
The current date is: 19.05.2010
Enter the new date: (dd-mm-yy)
C:\Documents and Settings\comp>SET ORACLE_SID
ORACLE_SID=SB
C:\Documents and Settings\comp>
and result is SB_19.05.2010_format.dmp -
Replacing net due date with current date in invoice document
Dear all,
We are having a functionality of replacing the net due date in the current date with reference to the Posting area entry. in the invoice document .Can anybody tell me where and in which event we can maintain this .
SusmitaThe obvious answer here is to have payment terms which are due immediately, and then set the transaction to use the posting date as the baseline date - that is done in the main/sub definitions within the TE305 customizing.
regards,
bill. -
Problem with current date field...
I want to display the current date and time, but when I change the data format in the binding tab to "Date and Time" and assign a pattern that includes date and time, all I get is the current date, NOT the time. TIA!
I have tried applying these scripts in the initialize event to all manner of objects, text field objects, date/time objects, numeric objects, current date objects, and it shows nothing. If I could just edit the date/time format of the current date object when it is set to "Runtime Property-Current Date/Time" I MIGHT be able to use it. I really appreciate your help thus far. Would it be possible for you to share a pdf file that you've made where this works so I might disect it? No matter what pattern I specify in the "Field" palette, it shows it's own formatting.
UPDATE: I did go back after trying it a few times to change the value after Page1 to match the name of my field.
UPDATE 2: Here is a link to what I've done. Take a look and let me know what I'm doing wrong, or change it and share it back. Thanks so much for your help!!!
https://www.dropbox.com/s/1so2hcao372k37z/Script%20Examples.pdf
Vipin Bhargava wrote:
I have found 3 more variants. You can write below code on initialize event. It will automatically display the current data & time during the preview
1. xfa.form.form1.Page1.TextField1.rawValue
= util.printd("dd.mm.yyyy HH:MM", new Date());
2. xfa.form.form1.Page1.TextField2.rawValue = util.printd("dddd d. mmmm yyyy HH:MM ", new Date());
3. xfa.form.form1.Page1.TextField3.rawValue = util.printd("date{EEEE, D. MMMM YYYY} time(de){HH:MM:SS Z}", new Date(), true);
Hope this helps,
Vipin
Maybe you are looking for
-
How to install the Netbeans?
Hello... The present is so that they help me with the installation of the Netbeans, my problem is the following one: I want to program in Java with all that offers me the J2EE platform, but when I go to will install the Netbeans it requests me the Vi
-
Best approcach on changing templates in a document library
Hello, In a document library, I need to have hold two types of word documents - a) with one place for signing and b) with two places for signing. There are document templates for each one. My approach to to use two content types, A1 for one sign and
-
Good morning all, I need some help achieving the following in our Exchange 2013 Environment. First off, we have Exchange 2013, but all our clients have Outlook 2010. Here's what I would like to be able to do: 1) create/manage public calendars / room
-
Delete query taking more than 2 hours
Hi I have table1 with more than 20 million rows.I am trying to delete some rows based on conditions.I have written a query to delete the rows.Butit is taking almost 2 hours.Is there any other way to achieve this? DEL FROM TABLE1 WHERE ID=100 AND SRCE
-
Page Parameter Seeded ELs doesn't work
hi Experts, I am using wcp11ps7, I need to use page template to retrieve value of page parameter, I used seeded EL in page template like this: page page attributes: ${pageDocBean.title} ${bindings.leftWidth} the page title has been retrieved properly