How to get Start and End date
Hi All,
I need to get the start date and end date of a month by passing parameter like 'MAy-2011'
Result should be start date - 01-MAY-2011 and end date - 31-MAY-2011
thnxs
I did the documentation drill down for you :
http://tahiti.oracle.com/
http://www.oracle.com/pls/db112/homepage?remark=tahiti
http://www.oracle.com/pls/db112/portal.all_books
http://www.oracle.com/pls/db112/portal.all_books#index-SQL
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/toc.htm
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions.htm#i1482196
http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/functions002.htm#i88891
from here on you should be able to find a solution on yout own.
Similar Messages
-
How to retrieve start and end date values from sharepoint 2013
Hi,
How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
Thanks
Gowri BalaguruHi Srini
Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
Thanks
Tripple k -
FM to get start and end date when given month
Hi all,
can anybody help me if there a FM to get start and end date when given month like 01 for jan.
Thanks in advance
SahityaHi,
Check this Function Module
HR_JP_MONTH_BEGIN_END_DATE
here if you r giving the month u wil get the start date and the end date.
Hope this helps you.
Thanks & regards,
Y.R.Prem Kumar -
0Person to 0employee loading, how to handle start and end date
Hi
I need help on some basic understanding of time dependent master data object.
In my scenario i am loading 0employee and 0Person from R/3. I need to update 0employee from 0person.
0employee
BEGDA ENDDA PERNR Position....................So many fields
10.10.2001 10.10.2004 8000123 Associate
11.10.2004 10.10.2008 8000123 Consultant
11.10.2008 31.12.9999 8000123 Senior Consultant
0Person
BEGDA ENDDA PERNR City....................So many fields
10.10.2001 10.10.2003 8000123 Singapore
11.10.2003 10.10.2007 8000123 Tokyo
11.10.2007 31.12.9999 8000123 Newyork
As the begining and end date are different i can't simply read City from 0person into 0employee. If i go for checking the city for the start and end date in 0employee, i will get multiple records ( If try to get city for 0employee's first record, i will get 2 city Singapore and Tokyo).
Please help me out how to handle this ...... i think i am missing somelink somewhere
Thanks
Tripple kHi Srini
Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
Thanks
Tripple k -
Getting Start and End Date of Current Year?
Hi Folks,
How do I get the start of the year and end of the year in Java ?
If I say :
Calendar cal = Calendar.getInstance();
int day = cal.get(Calendar.DATE);
int month = cal.get(Calendar.MONTH);
int year = cal.get(Calendar.YEAR);
System.out.println("Day: " + day);
System.out.println("Month: " + month);
System.out.println("Year: " + year);
I get the current day and time.What I need is the start of the current Year (Jan 2010) and the End of the Current Year (Dec 2010).
How can get the above 2 dates if I the current date is March 24th 2010 ?
Thankssabre150 wrote:
What am I missing? The start date of 2010 is 1/1/2010 and the end data is 31/12/2010 . So, as I see it, at any time the only information you need is the current year which you currently get from int year = cal.get(Calendar.YEAR);
Well, with the GregorianCalendar, anyway. ;-) -
How to get start and end time of an ESB instance in SOA 10.1.3.4
Hi All,
I am using soa 10.1.3.4 and want to track the esb instance start and end time. (For example, in case of bpel we can query the cube instance table to get creation and modify time of an instance. )
How to get that in esb?
Thank you.
Regards,
SatishHi Satish
You may enable instance tracking option on the ESB Console and track the instances audit information and also from the logs(log.xml) when ESB loggers are set to DEBUG mode.
Regards
A -
Get start and end date for posting period (YYYYMMM format)
In revenue recognition I'd like to have the start date and the end date of the posting period, which is in format YYYYMMM. It's field VBREVR-BDJPOPER.
Any idea?
I had no luck so far to find a relevant FM.
Thanks in advance,
PeterHi,
Use this FM To convert the date into DD.MMM.YYYY format
<b>CONVERSION_EXIT_SDATE_OUTPUT</b>.
Use the followiong FM To convert the date into <b>user specified</b> format
<b>SLS_MISC_CONVERT_TO_DATE</b>
Rewaed if helpful.
Regards,
Sandhya -
What parameters determine Planned order production start and end dates?
Greetings
We are using the graphical planning table @ MF50 to firm Planned Orders (Basically checking off "Firm Order" field within the Planned Order). We are on ECC 6.0
Whenever I backflush, the production start and end dates get overwritten (The Basic dates do not change).
I would like to prevent this. Can someone advise me on what parameter controls how the production start and end dates getting changed?
Thank you
HanarinHi,
Calculating production dates ( Lead time scheduling) are explained in detail in the SAP help URL as below:
If "Automatci Scheduling indicator" is set in the customizing for scheduling parameters then after every change relevant to scheduling, the production order is also automatically rescheduled before saving.
You need to check these settings.
regards
Datta -
How to determine current period start and end dates
Hi All,
If given previous period start date and end date, how to determine current period start date and end date?
Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
Can you please suggest an FM to determine the current period dates?
Thanks & Regards
Gowthami>
gowthami karunya wrote:
> If given previous period start date and end date, how to determine current period start date and end date?
> Suppose if given previous period start and end dates are 12/28/08 - 01/30/09, then current period start date and end date will be 01/30/09 - 02/27/09. (where 12 is the previous period, 28 is the day, 08 is the year......)
Hello,
I am assuming you have the Company Code with you & proposing this solution.
TABLES: bkpf.
PARAMETERS:
p_bukrs TYPE bukrs.
SELECT-OPTIONS:
s_date FOR bkpf-budat.
DATA :
l_perio LIKE bkpf-monat,
l_poper TYPE poper,
l_year LIKE bkpf-gjahr,
l_spmon TYPE spmon,
l_periv TYPE periv,
l_date1 TYPE datum,
l_date2 TYPE datum.
CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
EXPORTING
companycodeid = p_bukrs
posting_date = s_date-high
IMPORTING
fiscal_year = l_year
fiscal_period = l_perio.
CONCATENATE l_year l_perio INTO l_spmon.
* Get the next period
IF l_perio < 12.
l_perio = l_perio + 1.
ELSE.
l_perio = '01'.
l_year = l_year + 1.
ENDIF.
MOVE l_perio TO l_poper.
SELECT SINGLE periv INTO l_periv
FROM t001
WHERE bukrs = p_bukrs.
IF sy-subrc = 0.
CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = l_year
i_periv = l_periv
i_poper = l_poper
IMPORTING
e_date = l_date1
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
EXPORTING
i_gjahr = l_year
i_periv = l_periv
i_poper = l_poper
IMPORTING
e_date = l_date2
EXCEPTIONS
input_false = 1
t009_notfound = 2
t009b_notfound = 3
OTHERS = 4.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE: / l_date1, l_date2.
ENDIF. -
Getting the start and end dates of the week
Hi,
I was stuck with a problem in getting the start date and end date of the week,i know the month ,week and year also,with these three values how can i get the start and end dates of a week.please help me
ThanksThere is no simple way. It has to be a math calculation.
There are several ways you can get the dates. First you have to know what day is January 1st and what day is december 31st for a particular year. Second you have to check whether the given year is a leap year or not. Based on the abvove information you should be able to find out what day is a particular date.
Hope this helps to get you started.
- Venkat Dhurjati. -
How to input my own Validity Start and End Dates in ME21N
Hi All,
I have to change the Validity Start and Validity End date in Addiitional Data Tab of ME21 transaction( PO Create ) using default Customer Values.How Can i accomplish it?
I have used the BAdI ME_PROCESS_PO_CUST and implemented it, I have coded in the method PROCESS_HEADER.First I retrieved the data using get_data( ) method, changed the values with Customer Values and called the method set_data( ).
However my validity start and End Dates and not changing.
Even in ME21N if I create the PO with my own Validity Start and End dates, and go to ME23N to display the created PO, still in the additional data tab, the start and End dates are current date and Next date respectively.why its happening?
Thanks in advanceHi,
Can you please let us know in which business scenario this is required.
SAP has provided separate functionality of Outline Agreement for considering validity period.
If you let us know the business scenarion some solution/workaround can be suggested.
Regards -
How to find the start and ending dates of a quarter of a particular fiscal
Hi Experts,
I need a function mudule which returns starting and ending date s of a particular quarter of a particular fiscal year .
For Example: if pass 1 quarter and 2002 or 2 quarter 2002 it has to give me the star and end dates of that particular quarter na d fiscal year.
Please help me which is urgent for me.Hi Kishan thanks for reply.
But given function module the 2nd one is full but it is giving me the calender year dates but i need fiscal yea dates.
fro example: if i pass 1 st quarte and 2006 it is to give me the 1st-april to 30-jun2006.
And need this quater starting date and ending date for as per USA fiscal year calender.
If u get any idea plz let me know.
thanks.
Dashmantha. -
How to change both start and end dates for an business event (or any object
Hi all.
We are in the case to change the validity dates for several business events in training management.
The special point is that both, start and end date, have to be changed.
In example, business event 00000001 is valid from 2010.01.01 to 2010.01.31 and shoud be "moved" from 2010.05.01 to 2010.05.31.
So if i run RHBEGDA0 report to change start date first, it doesn't work propperly because new start date is bigger than old enddate.
Next thing we thought is to change end date first, using RHGRENZ1, and then change the start date, with the report RHBEGDA0. Problem with this solution is that a business event duration shoud be calculated taking care of free days (weekends and day ofs).
Is there any better solution for this?
Thanks in advance for your help.
Best regards.Hi,
I gueass the best solution is to use PV1A t-code.
You can write an LSMW for this t-code if the number of business events to be maintained is huge.
Regards,
Dilek -
How to change Validity Start and end dates on a lane ?
Hi,
I am trying to change Validity start and end dates on a lane for a product specific assignment.
What I see is as follows
1) Lane created by system /others I can delete and give the required start /end date ?
I want to know if I can change the end date without deleting the lane as its tough to delete a lane in production.
Thanks
-Venky.Hi,
we can change the start period and end period in the Transportation lane using the table /SAPAPO/TRPROD.
And then using the update command you can change the start time and end time of the product.
Regards,
Hyma. -
VA42 user exit to update contract start and end dates at Item level
Hi Experts,
I need to update contract start and end dates at Item level in 'VA42' transaction, for this i am using user-exit 'USEREXIT_FIELD_MODIFICATION' in the include 'MV45AFZZ'. i am able to display the data into item level through my coding but the data is not getting updated into 'VEDA'
Note: No need to change contract start date and end date in header level. Only at item level i want to change dates.
Thanks,
Sateesh.Thanks For your reply Vikram,
i tried with 'USEREXIT_MOVE_FIELD_TO_VBAP' user-exit earlier it self its not working. Can you suggest me any another way how we can achieve this functionality. modification of Contract start date and end date in only item level.
'USEREXIT_MOVE_FIELD_TO_VBAP':
FORM USEREXIT_MOVE_FIELD_TO_VBAP.
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$"$\SE:(3) Form USEREXIT_MOVE_FIELD_TO_VBAP, Start A
*$*$-Start: (3)---------------------------------------------------------------------------------$*$*
ENHANCEMENT 1 ZSD_CONT_DATE. "active version
DATA : lv_var TYPE CHAR10.
lv_var = '0040000219'.
if sy-tcode = 'VA42'.
IF VBAK-VBELN EQ lv_var.
VEDA-VBEGDAT = '20140502'.
XVEDA-UPDKZ = 'X'.
VEDA-VENDDAT = '20140602'.
XVEDA-UPDKZ = 'X'.
ENDIF.
ENDIF.
ENDENHANCEMENT.
Maybe you are looking for
-
How do you add a wireless printer to iPhone 4?
How do you add a wireless printer to your iPhone4?
-
How to default inv mtl accnt based on the item categories for all trxns
Hi all, There is a requirement for defaulting inventory material account based on the item categories accounts defined in the category accounts window. instead of defaulting from the inventory organization parameters. I researched on that and found t
-
Network Windows Laptop with iMac
Hello, To start with I am not quite sure if this is the right section, if not then please let me know and i will move the thread. I am looking to find a way to connect on my iMac through my windows based laptop and specifically on my Movies folder. i
-
I have an imac mid 2010 running version 10.10 yosemite and I am trying to airdrop some files and pics from my iphone to the mac and it doesn't show any options like, choose to whom or search... nothing shows its just there. I cant even airdrop any fi
-
Can you re-factor an Aperture library to have smaller directories?
Is there a way to re-factor an Aperture library bundle so none of its internal directories have more than 32000 entries? (I'm asking because my Aperture library weighs in at 44GB+ (and that's using referenced images) and so I want to move it to my RA