Routine for getting past monday

Hi,
I need to write a start routine in transformations of a cube for this requiremnt :
ZSTARTDATE > = the past monday
Note: If possible, we should use an input variable to determine the date of past Monday. It should default to the past Monday base on the current system date, but an override should be allowed.
Can anyone help me in writing code for this.
Thanks in advance!

Hi Pallavi,
This is very easy..
1) Call this function module by passing the current date sy-datum.
DATE_COMPUTE_DAY
2) This fm will return you a number from 1 to 7. "1" being monday... so you will come to know wht day is today..
3) If it is "1", then  subtract 7 from sy-datum.. see the logic will be as below..
Suppose the value is returned by the FM in variable w_return.
CASE w_return.
WHEN '1'.
w_date = sy-datum - 7.
WHEN '2'.
w_date = sy-datum - 1.
WHEN '3'.
w_date = sy-datum - 2.
WHEN '7'.
w_date = sy-datum - 7.
ENDCASE.
Thanks and Best Regards,
Vikas Bittera.

Similar Messages

  • Steps to troubleshoot and get past common problems with Audition

    When you encounter a problem with Audition, the following steps are often useful for getting past the problem and/or determining the cause of the problem:
    1.  Hold down SHIFT while you launch Audition
         This overrides the preference files and launches Audition using the default settings.
    2.  Manually rename or delete the preferences folder
         Step 1 only overrides certain preference files, while others such as Workspace preference files, may be the cause of the problem.  Depending on your OS, locate the "5.0" folder in the location below and rename it or delete it.
         Windows XP: C:\Document and Settings\<username>\Application Data\Adobe\Audition\5.0\
         Windows Vista/7: C:\Users\<username>\AppData\Roaming\Adobe\Audition\5.0\ *
         Mac OS X: ~\Library\Preferences\Adobe\Audition\5.0\ **
              * "AppData" may be a hidden folder.  You can type it into the location bar, or enable "Show Hidden Files" in Windows.
              ** This is your user-level Library folder, not the system-level tree.
    3. Check your Audition Log.txt file
         To enable a log file with CS 5.5, you must create an empty file in your preferences folder called "Audition Log.txt" using notepad, text edit, or any other editor.  After you create this file, launch Audition and if it fails, open and/or share the log file for more specific information about what's happening.
    4. Check the Operating System console or error log
         Both OS X and Windows can track application errors, and if the problem is occurring outside of the application code - a driver conflict, for example - then the OS error report may be more informative than what we can get from the application.
         OS X: launch /Applications/Utilities/Console.app   Clear the view, then launch Audition and note any error messages that appear.
         Windows: launch Control Panel > Administrative Tools > Event Viewer > Windows Logs > Application then launch Audition and note any error messages that appear.
    5. Re-install Audition
         If at this point, nothing has resolved the issue or the error logs are inconclusive, it's a good time to uninstall Audition, reboot, and reinstall Audition.
    6. Obtain the full crash dump and send it to the Adobe team
         So you've walked through all the above steps, you've disconnected any external hardware interfaces to rule out any device or driver conflicts, and you've exhausted the basic troubleshooting steps.  Visit http://forums.adobe.com/thread/900619 and follow the steps for your OS that Charles has documented to best obtain a full crash memory dump for Audition, and send that to [email protected] with a description of the problem and the steps you've taken, and we'll take a look. 

    Firstly yes these are common problems and secondly hopefully they will be fixed with updated software 2.1 which is due for release this coming Firday!

  • I can't get past a log in screen on a 10.4.11 iMac.  Help!

    We have a number of new staff members at our school.  one of them wants to use a 10.4.11 imac that is connected to a Promethean board.  The computer has a generic login screen that no one knows the verification information for.  I created the new user in our 10.4.11 file server, then tried his login ID on the computer; it was rejected.  Awhile back in an Apple discussion forum, I learned a hack for getting past initial login screens on imacs if the administrative ID password is forgotten.  That always works, but DIDN'T this time.  I am at a loss what to do now, other than reinstalling the operating system on the 10.4.11 imac workstation.  Any suggestions?  Any assistance would be appreciated.  Thanks

    Hello Technician7,
    Thanks for using Apple Support Communities.
    To reset the administrator password on the computer please follow the steps in the article below.
    OS X: Changing or resetting an account password (Snow Leopard and earlier)
    http://support.apple.com/kb/HT1274
    Have a great day,
    Joe

  • HT1212 I took the passcode lock off of my iPhone 5 and now I can't get on to my iPad. It is asking for the passcode and when I use the one that was set up it locks me out. How can I get past this?

    I have the iPhone 5 and with the new sofware update it added a passcode lock. Same for the iPad. I removed the passcode lock from my iPhone and now I can access my iPad. It is still asking for the four digit passcode. I tried using the one that was orgingally programed and it disables it every time. How can I get past this? I have tried to do a restore and it still takes me back to the lock screen. Please help!

    Force iPad into Recovery Mode. Follow step 1 to 6 very closely.
    http://support.apple.com/kb/HT1808
    Note: You may have to repeat the above a few times.

  • Been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft? Help me please.. getting a bit bored?

    been sat here for the past 5 hours trying to figure out why itunes wont download, it says error and something to do with Microsoft version? Help me please.. getting a bit bored?

    i have this problem too
    my dad thinks its because itunes is getting overloaded

  • I repeatedly get "error during rendering/encoding of menus/slideshow" message.  This process is the same on my iMac, MacBook and another iMac.  I have been burning dvd's int he same way for the past 12 months using the exact same steps successfully.

    I keep getting "error during rendering/encoding of menus/slideshows" message.  I have been burning DVD's in exactly the same way for the past 12 months and mostly on my MacBook which is 3 years old.  Obviously I'm using iDVD.  I purchased an iMac about a year ago and moved to use this for dvd burning without problem.  A few months ago (approximately) I started to experience problems with burning with the error message above.  I tried everything including starting the whole process from scratch right down to capturing the movie clips from my video recorder into iMovie, then using them in iDVD.  Still the same message came up.  I lost count of how many times I repeated the process with different clips and variations and the same thing happened.  This was also the case with my MacBook and my husband's iMac.
    After taking both of mymac's tothe service centre, having new optical thingys put it and even a new hard drive on my iMac along with a new DVD burner the same thing happened.  They told me it must be the process that I am using that is incorrect!
    I took my 27" iMac to an apple shop and asked them to assist me while I use the same technique as I always had.  The same message came up so they tried using my clips in one of their mac's.  The same message. They tried it with different clips and the same message.  The only way we could get theirs to work was with a magic DVD which did not produce what I needed and was limited with only one page. 
    I now cannot use any of my Mac's for the intended purpose that I bought them for - to produce good media for my work!  It was suggested that I purchase some non Mac software to burn DVDs which defeats the object of having a mac with iDVD in my opinion.  I have a book on iDVD which is very informative and have followed the process to the letter and checked all the trouble shooting and still no remedy.  It was mentioned that an up-date may have caused the problem on all my macs.
    I feel that this issue should be addressed by Apple as a matter of correctness.
    I now find that on the net there are many posts in forums and such like with exactly the same (almost word for word) problems.  Please Apple, keep/regain your good name and sort this out.
    Jayne Connelly

    Thanks Bengt W for your attention to this matter.  So much appreciated.  And thanks for putting me right on the aim of forums (new to this).  Although, you may regret asking for more information.  I've added everything I can below.
    The process I used is as follows:
    Import recorded clips of between 5 and 15minutes each from my video recorder into i
    Edit the clips (remove unwanted start and endng)
    Add title to front of clips
    ‘Share’ them to ‘movie’ (export using QuickTime)folder in .mov format individually
    Open iDVD and ‘create new project’
    Select ‘favourite’ theme that I have set up forall my work dvd’s (this has been used successfully many times and I’ve triedwithout using the favourite them).
    Add 2 submenus for each group of clips
    Select submenu  - drag and drop between 3 – 6 clips in each of the twosubmenus
    Change title colours on clips
    Dragand drop image into drop zones where required
    In‘map’ view I check for any yellow warnings before burning to disc
    In an attempt to remedy the problems I’ve tried the following:
    Try new DVD discs
    Try different themes (favourites and standardones)
    Change images in drop zones
    Start whole process again even from importingfrom camera again
    Two other completely different computers (iMacand MacBook) with iDVD
    Go to apple shop and use their computers to doin iDVD
    Try with one clip and no menu pages added
    Use a clip that I already have that did notoriginate from my camera
    Turn computer off and restart
    New hard drive
    New optical lense (thing)
    New DVD burner
    Saving to disc image rather than dvd disc
    Other points:
    I also have a ‘flip’ and ‘iPhone’ whereI’ve imported footage camera which, although limited, records and makes videoclips and burns them to DVD through iDVD without problem.
    For example, I have just gone through steps 5 - 11 using some clips that were already imported from my iphone to iPhoto and dragged across.  I used a theme that I've used before which has failed and added one sub menu page where the clip went.  It burned to disc image successfully.
    The startup disc, I believe will have no space issues asit’s a new hard drive with no use apart from this.  That could have been an issue before (I didn’t check it) butnot now.
    Other technical stuff that I don't understand but you may:
    I have…… Mac OS X Version 10.6.7 with all updates onit.  Processor 2.8 GHz Intel Corei7.  Memory 4GB 1067 MHz DDR3.
    iDVD version 7.1.1
    HardwareOverview:
      Model Name: iMac
      Model Identifier: iMac11,1
      Processor Name: Intel Core i7
      Processor Speed: 2.8 GHz
      Number Of Processors: 1
      Total Number Of Cores: 4
      L2 Cache (per core): 256 KB
      L3 Cache: 8 MB
      Memory: 4GB
      Processor Interconnect Speed: 4.8 GT/s
      Boot ROM Version: IM111.0034.B02
    SMC Version (system):            1.54f36
    OPTIARCDVD RW AD-5680H:
      Firmware Revision:     3AHB
      Interconnect:    ATAPI
      Burn Support:   Yes (AppleShipping Drive)
      Cache:    2048KB
      Reads DVD:    Yes
      CD-Write: -R, -RW
      DVD-Write:   -R, -R DL,-RW, +R, +R DL, +RW
      Write Strategies:  CD-TAO,CD-SAO, CD-Raw, DVD-DAO
      Media: Toshow the available burn speeds, insert a disc and choose View > Refresh
    If you can solve this you are better than the 'apple geeks' in the shop and the service technicians in the service centre (and of course me but that's no achievement). 
    Eagerly awaiting your reply.
    Jayne

  • I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    I have a question. For the past week I have not been able to access my iTunes app it always kicks me out. I've turned it off and on and still nothing. I was wondering how can I get it to work or what should I do. Thank you

    You need a computer with iTunes and an internet connection
    Try:
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes
    - Restore to factory settings/new iOS device.                       
    If still problem, make an appointment at the Genius Bar of an Apple store since it appears you have a hardware problem.
      Apple Retail Store - Genius Bar                                                              

  • I have an iphone 2g unlocked for tmobile.  For the past 2 years it has worked fine then out of no where I get this message "your selected cellular network is no longer available" and the service cuts in and out all day.  It can't find tmobile on my phone?

    I have an iphone 2g unlocked for tmobile.  For the past 2 years it has worked fine then out of no where I get this message "your selected cellular network is no longer available" and the service cuts in and out all day.  It can't find tmobile on my phone for some reason but for 2 years previous it could no problem?  tmobile says it is a problem with my phone and not their service.
    Any ideas what to do?

    I would just explain that this just started happening, that nothing has changed on the phone, that it is an original iPhone and I wondered if they are implementing a change in coverage with their Edge network in my area.
    If you restore your phone, you will be given an option to back up your phone at the beginning of the process (see step 6 here: http://support.apple.com/kb/HT1414).  You will be given the option to restore to that backup at the end of the restore process.  Your messages are stored in the backup so restoring to the backup will return the messages to your phone.  Be sure to import your photos and videos to your computer (see http://support.apple.com/kb/HT4083) and back up your contacts somewhere before restoring your phone as these sometimesget lost in the restore process.

  • I have a issue with my mac book pro. For some reason it won't stay powered on. I can't get past the apple loading logo. The battery is fully charged so it is not the problem. Can anyone tell me what the problem may be and how can i get it resolved?

    I have a issue with my mac book pro. For some reason it won't stay powered on. I can't get past the apple loading logo. The battery is fully charged so it is not the problem. Can anyone tell me what the problem may be and how can i get it resolved?

    The battery is fully charged so it is not the problem.
    What happens when you use the MagSafe?

  • My itunes files were deleted. I was able to use an old back up file to restore some but new downloaded purchases from iTunes for the past 5 months weren't in the back up. How do I get those back since I've paid for them one before and use the same account

    My itunes files were deleted. I was able to use an old back up file to restore some but new downloaded purchases from iTunes for the past 5 months weren't in the back up. How do I get those back since I've paid for them one before? Can you redownload? If so, how?? Please help as I'm missing over 500 previously paid for and downloaded iTunes song purchases.

    This was EXACTLY what I needed about the purchases I made from my device. However, is there a way to re-download other ones you've made from a computer? Because I realized some of them were not just purchased from my device.
    This is a picture of what it looks like now:
    http://tinypic.com/r/107quxu/7
    As you can see, the stuff circled in red doesn't give me an option to download from Cloud Beta because it already says "downloaded".
    any way to get around that?

  • I already have a valid payment method for my iTunes account, but can't get past the Family Sharing setup prompt telling me to add a payment method . What to do?

    I already have a valid payment method for my iTunes account, but can't get past the Family Sharing setup prompt telling me to add a payment method . What to do?

    I had the same problem and found a bunch of others did, too.  Unfortunately all the posts had no responses!  Anyway, I previously had my payment method linked to my paypal.  I tried changing it to my credit card and it worked.  Don't know if there's a bug with using paypal but that seemed to be the culprit for me.  Good luck!

  • Can't get past payment screen for Apple ID?

    Hello All,
    I'm a new iPhone user. In my company, we're transitioning from Blackberry to iPhone which I'm responsible for setting up. During the activation process, I have run into an issue with multiple devices where I cannot get past the Apple ID account settings.
    Here's the process I've taken to get there...
    After doing the basic setup of the iPhone including creating a new Apple ID account (which I've verified as well via an email sent), I go to the app store to download Cirtirx Worx Home, which is free.
    Once I click on 'install', It then pronpts me to enter an existing Apple ID or create a new one. I select existing since one was already created and verified.
    It then asks for the country, which I select and then takes me to a screen that asks for type of payment. I select "none". Once I click 'next', I should see the 'done' option in the top right corner, but instead, I get a 'cancel' option in the top left and a message in red that indicates to contact iTunes support for help. I have filled out all necessary fields as well on that screen.
    I was able to complete a few of them, so I know the steps and process to have them activated.
    I have updated the software to iOS 7.1.1 and I have tried "erase all content and settings", but doesn't resolve this issue.
    Please advise.
    Thanks,
    Tom

    Have you considered doing what the message suggested and contacting iTunes support?
    You can only use a single Apple ID on a limited number of devices. I suspect you've hit your limit.

  • I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I have always paid for apps with a credit card and now need to use an app store card but I can't get past the point where it keeps wanting my credit card updated.  And can't used the app card number.  Any advice???

    I do NOT like using my credit card if I don't have to, and I went out of my way to go buy an Apple gift card, which I successfully redeemed into my Apple account. However, when I use the Apple "Cards" app, it will not let me use anything other than my credit card. I tried purchasing a card, hopefulling it would come out of my Apple store balance, but no such luck -- it came out of my credit card.
    Apple is becoming more like Microsoft every day.

  • How to get the date for the first monday of each month

    Dear Members,
    How to get the date for the first monday of each month.
    I have written the following code
    SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
    But it look bith complex.
    Abhishek
    Edited by: 9999999 on Mar 8, 2013 4:30 AM

    Use IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
    select  sysdate current_date,
            trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
      from  dual
    CURRENT_D FIRST_MON
    08-MAR-13 04-MAR-13
    SQL> Below is list of first monday of the month for this year:
    with t as(
              select  add_months(date '2013-1-1',level-1) dt
                from  dual
                connect by level <= 12
    select  dt first_of_the_month,
            trunc(dt + 6,'iw') first_monday_the_month
      from  t
    FIRST_OF_ FIRST_MON
    01-JAN-13 07-JAN-13
    01-FEB-13 04-FEB-13
    01-MAR-13 04-MAR-13
    01-APR-13 01-APR-13
    01-MAY-13 06-MAY-13
    01-JUN-13 03-JUN-13
    01-JUL-13 01-JUL-13
    01-AUG-13 05-AUG-13
    01-SEP-13 02-SEP-13
    01-OCT-13 07-OCT-13
    01-NOV-13 04-NOV-13
    FIRST_OF_ FIRST_MON
    01-DEC-13 02-DEC-13
    12 rows selected.
    SQL> SY.

  • I wish to reset my ipad.  However, when I selectGeneral Reset Erase all content and Settings, I am prompted for a a Restrictions Passcode (which I have never set).  I have now entered random codes 11 times and the ipad not reset. How do I get past this?

    I wish to reset my ipad (as advised by the Apple Store) to attempt to resolve an issue with a non-responsive part of the screen..  However, when I select General>Reset>Erase all content and Settings, I am prompted for a a Restrictions Passcode (which I have never set).  I have now entered random codes 11 times and the ipad has not reset. How do I get past this?  I am now at the point where I have to wait 60 mins before I can enter another random passcode.  I just want the ipad to clear down, erase everything so I can start again.

    The other option is to force iPad into Recovery Mode.
    http://support.apple.com/kb/HT1808
    Note: You need to be patient and repeat the above many times to recover your iPad

Maybe you are looking for

  • Secure link to iTunes Store Failed using XPSP3

    I cannot log into the iTunes store. When I run diagnostics it indicates Secure  Link to iTunes Store Failed. It does not appear to be my related to McAfee security software as the issue remains when the file wall is disabled. I have following the tro

  • How to open Raw images (NRW) from Nikon Coolpix p7800 with Photoshop elements 12?

    I am not able to view/edit my images directly form card reader into PhotoShop Elements 12.  This is why I am looking at this software. Need help. Viewed Camera Raw plug-in | Supported cameras  but do not see how to download the plug in? 

  • What will be query for below out put?

    Request Table  Request ID Request Name R1 RQ1 R2 RQ2 Part Table PartNumber RequestID Amount P1 R1 200 P2 R1 300 P1 R2 500 P2 R2 400 OutPut Table Request ID PartNumber Amount R1 500 R1 P1 200 R1 P2 300 R2 900 R2 P1 500 R2 P2 400 Thanks and Regards, Vi

  • Create a wsdl file - with schemas inline - in JDeveloper

    Hi, We are trying to create a wsdl file using schemas in jdeveloper 11.1.1.3. We could generate the wsdl file using options available in jdeveloper, but the wsdl generated contains <types> element that has schemas referenced by only an "import" state

  • File Upload Portlet Issue

    I have a portlet written in .NET that allows a user to upload a file that is saved to a server and some back-end processing is done. I'm running into an issue where I can't upload a file over 80 MB. I have adjusted the setting in .NET to allow the fi