How to get last date of the week

Advertisement
hi,
how to get last date of the week like FM WEEK_GET_FIRST_DAY gives the date of the first day of the week i need the date of the last day of the week..
thnx
Advertisement

Replay

data : p_week type KWEEK,
p_Date type SYDATUM.
p_week = <incoming value in week of year>
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
EXPORTING
week = p_week
IMPORTING
DATE = p_date
EXCEPTIONS
WEEK_INVALID = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
To get the last day of the week.
p_date = p_date + 6.
You can find the available fm in the system from se37 transaction code.

How to get last day of the year

Hi All , Thanks in advance ... How will I get the last day of the year as I am passing date at run time . I can manage to get first day of year by SELECT TRUNC(SYSDATE,'YEAR') AS FDAY_YEAR from dual Thanks in advance Regards Sachin  1*  select ADD_MO

How to get last Build date of a dll in the real time target

Info On My Project        I am working on LabWindows CVI 12.0 for development . This project is a real time application for hardware, which is having Phar Lap ETS as RTOS...   I am facing some problems while checking Build date of my Application file

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

Find first & last day of the week from given date

Hi All, I have the below input query, WITH TEM AS   ( SELECT '11-JAN-13' DT from dual union   SELECT '16-JUN-12' from dual union   SELECT '04-JUL-12' from dual union   SELECT '09-JAN-13' from dual union   SELECT '10-JAN-13' from dual union   SELECT '

How to get values/data stored in the database into a list-item.

how to get values/data stored in the database into a list-item. i tried to make a list item without any values assigned to it...but i got the below error. FRM-30191: No list items defined for required poplist. or FRM-32082: Invalid value for given it

How to populate TableView data on the other screen TextField

Hi guru’s I am having problem in populating data from a table in one screen to a Text Field in the other screen. I have two classes FirstClass containing a textbox and a button. On pressing a button a second window is opened containing a Table of val

Generating the last day of the week

HI All, I have the Year value (for eg 2002, 2006) and the week number value in the year ( for eg : 32, 52) . Based on this information, how can I get the last day of the particular week. for eg What is the last day of the week - 2002,32 Any pointer w

Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.

Me and my partner are currently using the same apple id and have no space left on our devices. We are currently waiting on the iphone 6 plus to arrive and don't know how to transfer all data to the new phones.?I don't know if I'm asking this all in a

How to  obtain last date of accounting period mmyyyy

how to  obtain last date of accounting period mmyyyy. for ex: 31 st is the last date then output should be mm/31/yy.hi use this .... REPORT  ZTESTS. data: date1(4),       date2(2),       date3(2),       date type sy-datum,       output(8). parameters

HT4889 Replacing System hard drive with a new one. How to get everything over to the new boot drive?

Replacing System hard drive with a new one. How to get everything over to the new boot drive? Should I use Carbon Copy or does apple have a better untility to do this? I can't get my current system drive (OSX 10.8.3) to start on the first try. I alwa

How to get master data records that do not have transaction data in a query

Hi, How to get master data records that do not have transaction data in a query output. Can we create a query or any other way to get the master data records that do not have transaction data?Hi, Create a multiprovider which includes transactional da

HOW TO GET FILTERED DATA

HI All, I have an query, i have data like how to get filtered data i have data like below we have started this report with below data for Oct 2014 to Dec 2014 QUARTER STATE COUNT Oct 2014 - Dec 2014 U.P 70 Oct 2014 - Dec 2014 M.P 0 Oct 2014 - Dec 201

About OUTZL LLW - Last wagetype of the week.

Hi All, I am using this function OUTZL LLW in a Payroll PCR to check for the last wagetype of the week. In my requirement the week is defined as Sat- Fri but according to this function it takes the week as Mon to Sunday. I had faced a similar issue i

How to get current date for posting date

hi, how to get current date for posting date ? any sample code ? ThanksHi...... Use Select getdate() for current date....... Regards, RahulRead other 4 answers

How can I POST data within the same page if I have a A HREF -tag as input?

How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.you can use like this or call javascript fuction and submit the form <for

HT1725 Hi, I'm pretty new to itunes. I bought a song and it downloaded, but will only play the first 3 seconds? Any idea how I get it to play the rest of the tune?

Hi, I'm pretty new to itunes. I bought a song and it downloaded, but will only play the first 3 seconds? Any idea how I get it to play the rest of the tune?I'd report the problem to the iTunes Store. Log in to the Store. Click on "Account" in yo

How to export some data from the tables of an owner with integrity?

Hi to all, How to export some data from the tables of an owner with integrity? I want to bring some data from all tables in a single owner of the production database for development environment. My initial requirements are: seeking information on com

How to get communication data in CRM 7.0

In CRM 7.0 with CCS active. How to get communication data (Current phone #) that is presently active while creating Interaction Record or during account confirmation. Thanks, Nilesh P.Hi, This problem is related to IC and not related to Marketing Cam

How to get Archived Data back ?

Hi Experts, Please explain How to get Archived Data back ? Thank you.Hi, Try Re: Reloading of archived business transactions using CRM_ACT_ON Hope you find it helpfull, Kind regards, SigurdRead other 3 answers