Sitemap

Amicuk Programming Answers

Getting first and last day of week

2015-10-11   Views:2

Advertisement

Dear all . Is there any funcion module which gives first and last day of the current week . Eg . todays day is 15.11.2006 start date of week : 13.11.2006 end date of week : 19.11.2006 in the same way I want how many days are there in month . Eg : for

Dear all .
Is there any funcion module which gives first and last day of the current week .
Eg . todays day is 15.11.2006
start date of week : 13.11.2006
end date of week : 19.11.2006
in the same way I want how many days are there in month .
Eg : for Nov month :
         30 days .
      for dec month 31 days .
Thank you in advance

The replay answer
Advertisement
Use FM GET_WEEK_INFO_BASED_ON_DATE
Import parameters               Value    
DATE                            15.11.2006
                                                                                Export parameters               Value    
WEEK                            200646   
MONDAY                          13.11.2006
SUNDAY                          19.11.2006
Use FM HR_E_NUM_OF_DAYS_OF_MONTH
Import parameters               Value     
P_FECHA                         15.11.2006                                                                               
Export parameters               Value     
NUMBER_OF_DAYS                    30        
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers

Go to See the other 10 answers

Hot
Hi All, I am doing my first installation of SAP NetWeaver 7.3 AS Java on Windows Server 2008 R2 with Oracle database 11.2.0.3, this is a domain installation. I have been following the SAP Installation guide and everything has been going well but I am [More]
I make simple presentations on my mbp then download them into my iPod Touch 4th gen for connection to a VGA TV.  I use an iPad 2 with Keynote remote to control it.  However, when I transfer the presentation from the mbp to the Touch I lose all the te [More]
ipad3 running iOs 7 trying to update to 7.0.2 keep tting failed due to error like 9 times. Updated iPad mini and 2 iPhone 4s, no problem. Whats up? And what can I do to update?Try and update with iTune (computer)Read other 2 answers [More]
How do you reduce pdf size file when it's save? I can have a excel spreadsheet that is 67KB and when I save it as pdf file increases to 289KB?I agree that the file size is not a big issue at 289kB. However, a lot of the size depends on the content an [More]
I've installed, un-installed, and re-installed firefox. Bookmarks will not work. I've clicked the star - and nothing. I've tried to use the menu bar to bookmark a page and - nothing. I've checked the sqllite file and it is not marked as read only. Wh [More]
Hi, our customer wants to generate a payment form also when the account balance of the customer is negative. however, I'm getting an error message that: Creation of payment form not possible, amount is negative Message no. >6397 Thanks, VeredHi Vered [More]
I have a hp pavilion m6- 1045dx and when I turned it on I noticed there was no sound and the speaker icon next to the clock in the bottom right corner had a red "x" next to it. I tried pressing the mute button, up volume, and down volume buttons [More]
For the past 2 hours, I have been sitting at this computer trying to authorize my computer and sync my iPod Touch.  Try and try as I might, however, I still cannot manage to log in to iTunes.  I've looked through 4 other discussions, read the 'Help' [More]
is there an ipad app where I can take handwritten business notes and convert it to text?Can't any word processor do this? I use Pages as my word processor. I could just write down notes there or dictate them. Then come back later to fill in the detai [More]
Trying to import an image to workspace to use in Financial Reporting and am able to get object imported, but can not get Financial Reporting to recognize the object (bmp/jpeg). User's guides aren't helping much. Financial Reporting is looking for a F [More]