Timekeeper Access to 'Past Number of Days'
Hi,
Currently as per the setup in 12.1.3, Normal Users (Self Servie Time Responsibility) can update timecard based on '*Past Number of Days*' but Timekeeper (OTL Limited Timekeeper Responsibility) can update timecard *'Past Number of Days' + 1 week extra*.
For Example:
Current Date = 11-MAR-2013
*'Past Number of Days' in USER Edits* = 27
Self Service Time Responsibility can update till = Week 16th FEB till 22nd FEB
OTL Limited Timekeeper Responsibility can update till = Week 09th FEB till 15th FEB
Do I need to do any settings or any profile setup so that even Timekeeper can update Timecard based on 'Past Number of Days' in USER Edits rather than 1 week extra ?
Appreciate your help.
Regards,
Khan.
forgot to mention....
Status Allowing Edits = Retro
Future Time Period LImit = Active Assignment
Past Number of Days = 27
Future Number of Days = NULL
Similar Messages
-
How to get total number of days in current Fiscal period/year
Hi,
I need to get total number of days in current Fiscal period/year (current month) and assign it to an infoobject. I need a routine for this. Is there any function module to get this.If possible pls paste the ABAP code also for this task. Thanks in advancehere is the FM:
LAST_DAY_IN_PERIOD_GET
KJ!!! -
How to get the number of days of February.....
Hi ,
how can I get the number of days (28 or 29) of February of the current year or the next...????
Or is there any other way to find that a year is a leap or not (i mean the year has 365 or 366 days).??
Thanks
Simonselect add_months(to_date('&v_year', 'YYYY'), 12) -
to_date('&v_year', 'YYYY') from dual;Jens, it seems we have made the same mistake, trunc usage seems mandatory :
SQL> ed
Wrote file afiedt.buf
1* select add_months(to_date('2007', 'YYYY'), 12) - to_date('2007', 'YYYY') from dual
SQL> /
ADD_MONTHS(TO_DATE('2007','YYYY'),12)-TO_DATE('2007','YYYY')
366
SQL> ed
Wrote file afiedt.buf
1* select add_months(trunc(to_date('2007', 'YYYY'), 'YYYY'), 12) - trunc(to_date('2007', 'YYYY'), 'YYYY') from dual
SQL> /
ADD_MONTHS(TRUNC(TO_DATE('2007','YYYY'),'YYYY'),12)-TRUNC(TO_DATE('2007','YYYY')
365
SQL> Just to clarify my past doubt.
Nicolas. -
How to calculate number of days between Calendar objects
Hi,
I need to calculate the number of days between two Calendar objects. Here is some sample code:
Calendar now = Calendar.getInstance();
now.set(Calendar.HOUR_OF_DAY, 0);
now.set(Calendar.MINUTE, 0);
now.set(Calendar.SECOND, 0);
now.set(Calendar.MILLISECOND, 0);
// get a calendar that represents a day in the past
Calendar aDayInThePast = getADayInThePast();
aDayInThePast.set(Calendar.HOUR_OF_DAY, 0);
aDayInThePast.set(Calendar.MINUTE, 0);
aDayInThePast.set(Calendar.SECOND, 0);
aDayInThePast.set(Calendar.MILLISECOND, 0);
// how can I calculate the number of days ago this was??
//it would also be useful to get back a negative number if the day is in the futureMy favorite answer so far is reply 15 by Marc__: http://forum.java.sun.com/thread.jspa?threadID=488668&start=15
-
Number of days in a month - 0CALDAY
Hi,
I have a query where I am calculating the average daily sales for each month. For this I need to know the number of days in each month. How can I do this? For instance, it should give 31 for Jan, 28/29 for Feb, 31 for Mar and so on. I am using OCALMONTH as the input variable.
Thanks for your help.
UdayHi Uday,
I have a few modifications in the code
Data: xdate type d,
ip_year(4) type N,
ip_month(2) type N.
Types : Begin of ty_month_days,
month(2) type N,
days(2) type N,
End of ty_month_days.
Data : it_month_days type ty_month_days occurs 0 with header line.
ip_year = 2006.
ip_month = 01.
do 12 times.
CONCATENATE ip_year ip_month '01' INTO xdate.
xdate = xdate + 33. "this date is in the next month
xdate+6(2) = '01'. "first day of next month
xdate = xdate - 1. "last day of xmonth
it_month_days-month = xdate+4(2). "number of days of xmonth.
it_month_days-days = xdate+6(2).
append it_month_days.
ip_month = ip_month + 1.
enddo.
This code stores Month and No. of days in the internal table it_month_days.
You can access this internal table for your calculations
This should help.
Regards,
Praveen.
Message was edited by: praveen mathew -
User Exit Variable for Calculating number of days in a month
I need a query to calulate the number of days in a particular month upto the current date. For example if i give 26 Feb it should reutrn 25, if i enter 30march it should return 29 for any specific year. I have gone through some posts and understood that i need to create a formula variable (under calculated KF's) and then go to CMOD, create a project, then enancement Assignment RSAP0001 then EXIT_SAPLRSAP_001 and include a code in INCLUDE ZXRSAU01. But i have any clue of coding. Could someone give me the entire code and how to connect it to the formula variable KF in created. The technical name of the key figure is ZMDAYS. If i have made any mistakes or if there is another eaier alternative please let me know. I thankyou all for the help.
Hi Uday,
I have a few modifications in the code
Data: xdate type d,
ip_year(4) type N,
ip_month(2) type N.
Types : Begin of ty_month_days,
month(2) type N,
days(2) type N,
End of ty_month_days.
Data : it_month_days type ty_month_days occurs 0 with header line.
ip_year = 2006.
ip_month = 01.
do 12 times.
CONCATENATE ip_year ip_month '01' INTO xdate.
xdate = xdate + 33. "this date is in the next month
xdate+6(2) = '01'. "first day of next month
xdate = xdate - 1. "last day of xmonth
it_month_days-month = xdate+4(2). "number of days of xmonth.
it_month_days-days = xdate+6(2).
append it_month_days.
ip_month = ip_month + 1.
enddo.
This code stores Month and No. of days in the internal table it_month_days.
You can access this internal table for your calculations
This should help.
Regards,
Praveen.
Message was edited by: praveen mathew -
Prorate absence Quota monthly based on number of days worked.
Hi All,
I need to Generate Absence Quota Prorated Monthly on the following criteria.
4.5 days Per month.
0 - 5 day = 0.5
6-10 days = 1.5days
11- 15 days = 2.5 days
16-20days = 3 days
21 - 25 = 3.5 days
26 and above = 4.5 days
54 Quota Yearly entitlement
Negative Time evaluation -
Time evaluation run at end of the month.
If use Base Entilement as .15 / days and daily accural in Table T559L ,
then without any PCR quota is generated but for 31 days it generates 4.65 days and people joining middle of the month is not as per the criteria mentioned above ie as per number of day worked.
Can any one guide me with the steps and PCR's required if any.
Thanks
SethuHi Dinesh,
Thanks for your response. I have already created and assigned it in T559L. The below is the Rounding rule.
Lower inc Upper Target Rollout
0.00000 X 0.75000 0.15000 X
0.90000 X 1.50000 1.50000 X
1.65000 X 2.25000 2.50000 X
2.40000 X 3.00000 3.00000 X
3.90000 X 4.65000 4.50000 X
As per my earlier thread description when i make it daily accural and assign this rounding rule then for 31 days it calculates 4.65 days and for people joining middle or last week of the month it is not prorating as per the requirement,
Thanks
Sethu -
"No limit" not displaying for number of days to sync email
I recently purchased 16GB iPad w/ retina display (MD513LL) running IOS 6.0.1
I successfully set up MS Exchange email account, but it does not give me the option of "no limit" under number of days to sync.
I read in a few prior posts that deleting the email accounting and setting it up again works, but I tried that at least 6 times (it worked for my new iPhone 5, but not the iPad).I might be wrong but I don't think so because I set up the same account on my iPhone 5 which allowed for the "no limit" option.
-
How to get PO and vendor payment term number of days??
Hi Experts,
I want to have a) Purchase order payment term number of days as well as
b) vendor Payment term number of days.
For a) For Purchase order payment term number of days I am using table EKKO and taking ZBD1T field which is giving payment
term number of days.
Is it correct??
b) vendor Payment term number of days I am using table LFB1 field Zterm to take payment term key not number of days.
Based on this key i will go to table T052 and find corresponding number of days as told MM consultants .
But this is not BW work. We need one single table from which we can take the field or enhance the current extractor
with that field.
So is there any other option for (b)
and Whether steps for (a) is correct???
Please confirm this.
Thanks in Advance,
Uday Shankar.For a) For Purchase order payment term number of days I am using table EKKO and taking ZBD1T field which is giving payment
term number of days.
Is it correct??
Payment terms for purchasing doesn't come delivered as part of the R3/ECC tables and is usually is added as a custom field to EKKO and populated via a User Exit. That looks to be the instance in your case because the field that you show as being the payment terms begins with a Z (custom fields begin with Y or Z). That appears, without being able to actually validate in your R3/ECC environment, to be the correct field to use. You would have to validate, however, with the end customer or your MM function consultant to be 100% certain. If this is the correct one to use, you're going to have to enhance the 2LIS_02_HDR extractor by enhancing the extraction structure and creating the User Exit to read it from EKKO and populate into the DataSource.
b) vendor Payment term number of days I am using table LFB1 field Zterm to take payment term key not number of days.
Based on this key i will go to table T052 and find corresponding number of days as told MM consultants .
But this is not BW work. We need one single table from which we can take the field or enhance the current extractor
with that field.
You can enhance the 2LIS_02_HDR extractor with the Vendor Payment Terms by joining the following in your User Exit:
EKKO-LIFNR = LFB1-LIFNR
EKKO-BUKRS = LFB1-BUKRS
LFB1-ZTERM = T052-ZTERM
This could either be done in a SELECT statement in the User Exit to do this equi join, or you could create a view on your R3/ECC environment and SELECT from that view. -
I'm trying to calculate the number of days until your next birthday. Only using current month, day and birth month and day. I can get close but i'm way off. When i enter in the next day, the amount of days is supposed to be 364. This is where I am having problems. I know my code is way off. I just need some guidance please!
Attachments:
D5.7_1.vi 8 KBI just had a little fun with the Time Record...
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
D5.7_1_BD.png 19 KB -
Credit Check on Open Items number of day
Hi
We have setup automatic credit control and all seems to work fine, we now want to expandon this to include open items. So we have created a static block on open items.
The next step was to only include open itesm that have been open for longer than 60 day, sowe have entered 60 in the number of day box. But order are stillgoing on block due to this statoc check.
We have 0 set in the max open items box.
Do we need to enter anything in this box. We want the check to only include open items older than 60 days and the credit limit not to go over the main customers credit limit
Thanks
BarryHi,
Could you please share the answer?
Tawsif Chogle -
Number of days customer is due to be maped in dunning notice PLD
Hi All,
In the Dunning Reprt PLD I want to print the number of days the Customer is due to company as the number of days due varries from customer to customer please give a solution. So that i want to map number of days from dunning wizard report in to the PLD.
Regards & thanks for advance,
Mobin.Hi Mobin
One question first, the due days per customer does not make sense as there may be more than one document owing. I assume then that the oldest invoice must be used to calculate? This would be true at header level, but it will not be possible to place a field here to calculate from the rows. It might be possible to include a BP master UDF field here at print time, but this field would have to be updated manually on the BP masters with a query to get the maximum due date of open invoices and calculate their days overdue.
For row level each document could have a number of days overdue and this should be rather easy to achieve. Add an extra column as formula field and use the following formula:
ToNumber(F_203)-ToNumber(F_089)
F_203 is my own hidden field at row level with the formula Date() in it. F_089 is the value date or due date on the row. You can also add a hidden field and refer to the database field you want to use for this date.
I am still of course assuming that the dunning report you are referring to is the SAP standard dunning letter(s). If you are referring to a custom report, please let me know.
Kind regards
Peter Juby -
Need to add number of days to users end date.
Hi,
I have a code where we are adding number of days(30) to current date and then updating user's end date in IDM DB.
Now we have a requirement where we need to add number of days(30) to existing end date of user instead of adding to current date.
*public String incrementDate(int daysToAdd)
// Start date
log.info("NotifyLastDayOfService::incrementDate(): Enter");
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
Calendar c = Calendar.getInstance();
c.add(Calendar.DATE, daysToAdd); // number of days to add
String newDate = sdf.format(c.getTime());
log.info("NotifyLastDayOfService::incrementDate(): Exit");
return newDate;
Have any body implemented this scenario?
Please suggest.
Thanks,
Kalpana.Hi Nayan,
Here is the code:
System.out.println("----inside increment date method-----");
HashMap<String, String> hm = new HashMap<String, String>();
HashMap<String,Date> modifyMap=new HashMap<String,Date>();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd 00:00:00");
tcResultSet usrList = null;
String enddate = null;
hm.put("Users.Key",usrKey );
try {
usrList = this.usrIntf.findUsers(hm);
usrList.goToRow(0);
Date endDate =usrList.getDate("Users.End Date");
System.out.println("-----users end date-----"+endDate);
String userEndDate=sdf.format(endDate);
System.out.println("-----String value of users end date-----"+userEndDate);
Calendar cal=null;
System.out.println("-----Calender date-----"+cal);
cal.setTime(endDate);
System.out.println("-----end date-----"+endDate);
cal.add(Calendar.DATE, Integer.parseInt(daysToAdd)); // number of days to add
Date newEnddate = cal.getTime();
System.out.println("-----new end date-----"+newEnddate);
//usrList.setEndDate(Edate);
modifyMap.put(userEndDate,newEnddate);
usrIntf.updateUser(usrList, modifyMap);
System.out.println("updated user's end date in OIM DB");
//System.out.println("-----updated user's end date in OIM DB-----");
logger.info("NotifyLastDayOfService::incrementDate(): Exit");
System.out.println("-----new date-----");
} catch (tcAPIException e) {
logger.error("Error in finding end date for user" + e);
} catch (tcColumnNotFoundException e) {
logger.error("Error in finding end date for user" + e);
In th log file, I can see that the code is not executing this line:
cal.setTime(endDate);
end date is of type Date and stores users end date from DB. Please help in resolving this issue.
Thakns,
Kalpana. -
Is it possible to add number of days to date?
I am working on a form where I need to add number of days to a date and come up with a date.
Header 1
Header 2
example date: March 1, 2013
+ 30
= march 31 2013
1. is this possible? Header1/cell 1 is a date field. Header 2/cell 1 is a dropdown field (30, 60, 90,120, custom),.
Header2 cell2 not sure what field to use date or text?
thank youNever mind I figured it out. Thanks
-
How to calculate the number of days worked for a given period
I need to calculate the number of days worked by contractor employees for a time period to be entered by a user. I am building a query on an infoset which contains employee information including contract start date and contract end date for the employee.
Ideally I'd like the user to enter the time period which should be reported on e.g. 01.08.2009 to 31.08.2009
The report should then identify all the contractor employees which were working during this period and to work out how many days they worked during this period. Obviously the contract start and end dates could fall both inside and outside the reporting period.
Can this be done and if so, do you have any suggestions as to how to do it?
Thanks.hi
So here you will first have to load the master data table employee in one internal table and read this table with the variables entries.
Your code in the reporting exit should look like that.
bye
data : wa_employee type /bi0/pemployee.
When 'ZDATE1'
if i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDATE2'.
clear l_s_range.
clear wa_employee
1- select the entries from table employees
select single employee dateto datefrom
from /bi0/pemployee
into corresponding fields of wa_employee
where dateto le loc_var_range-low
and datefrom ge loc_var_range-high.
if sy-subrc eq 0.
CALL FUNCTION 'FIMA_DAYS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_von = wa_employee-datefrom
i_kz_ult_von = 'X'
i_datum_bis = wa_employee-dateto
i_kz_ult_bis = 'X'
i_szbmeth = '1'
IMPORTING
e_tage = no_days.
l_s_range-low = no_days.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
APPEND l_s_range TO e_t_range.
ENDIF.
ENDIF.
endloop.
ENDIF.
Boujema
Maybe you are looking for
-
HELP: I need to link a PDF within PDF and be able to open and return to original PDF
I have a master PDF and have attached 7 supplemental PDF documents. I created "click here" icons and used the steps below so that the linked document would open. The problem is, once I open the supplemental PDF, it closes the original master. I would
-
N-step approval process for PO in SRM 7
Here are a couple of questions I have regarding N-Step approval configuration for PO in SRM 7 Process Controlled Workflow: 1) It's our business requirement that the last-change person of the PO is defined as the first approver in the chain. I tested
-
Hi, I tried couple times to export movie in iMovie but every time failed even after restart. I have 180GB of free space in my mac book pro and have 8GB of RAM. I have gone through the forum but could not find the solution for it. Please help me if an
-
Output message not generated for Purchase order
We maintain MN04 message condition record for 2 key combination for output type NEU: 1. Purchasing Output determination : Document type -> NB, medium 1 print out 2. Purchasing Output determination : Document type/Pur Org/Vendor -> NB, 1000, vendor
-
I have the SX 200 and am not satisfied with the reaction time. I am looking into the G16 but am reluctant to spend $450 on it not really knowing if it is worth it. Has anyone gone from a camera similar to the sx200 to the g16 and was it worth it? th