How can i get past date if i give no.

Hi Experts,
  I have a urgent issue. I have to fetch data from a table in between a date range. That sould be current date to before 7 days. how can i get from exact date from the past 7 days of current date.
Is there any FM to get past date...if we give no.
Thanks in advance.
Ramesh.

Hi,
Either you can use a function module J_1H_CAL_DATE_IN_INTERVAL or do it by coding.
data: p_date type sy-datum.
CALL FUNCTION 'J_1H_CAL_DATE_IN_INTERVAL'
         EXPORTING
             date          = p_date
              days        = '07'
              months     = '00'
              signum      = '-'
               years        = '00'
         IMPORTING
              calc_date    = d_calc_date
         EXCEPTIONS
              OTHERS    = 1.
d_calc_date this will have the date which was 7 days ago.
Or we can even achieve it by coding
d_date =  p_date - 7.
This will surely help you.
Plz reward if useful.
Thanks,
Dhanashri.

Similar Messages

  • Apple ID.  My newly updated iPad 2 wants an email for the apple ID.  My apple ID is not an email address.  How can I get past the set-up screen?

    My newly updated iPad 2 wants an email for the apple ID.  My apple ID is not an email address.  How can I get past the set-up screen?
    I can't change my Apple ID.  It would mess all my stuff up.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • HT201320 How can I get past, unopened emails on my phone? I can only seen new, unopened emails.

    How can I get past, unopened emails on my phone? I can only seen new, unopened emails.

    ayokunleade wrote:
    I have a similar problem with my Z10, I'm unable to get mobile data connection except for Wi Fi connection on my Version unlocked device. Not even MTN Nigeria works. Anytime I do a OS upgrade check, it tells me I have the latest OS. What can I do? I'm so close to throwing the device into a furnace.
    To all of you who have this dara service problem I ahve afew question for you
    1) Where did you get you BB10 device, I mean did you get it where you are located or in another country (while on vacation business trip, etc...)
    2) What is the device model, SETTING > ABOUT, check the field MODEL NUMBER it should say something like STL100-1, or STL100-2, or STL100-3, or STL100-4.
    This very important, because not all phone will work for data everywhere, those model number that I have previously listed determine what are the frequencies that the phone will operate with, and if you carrier where you are is not using the same frequencies that the phone is design to use then no matter what you do it will not work unless you replace the phone with the proper model ofr your location
    Using the Playbook and the Z10 and the Z30 and loving them
    Martin

  • HT2452 White screen at startup and stays?? How can I get past this?

    White screen at startup and stays?? How can I get past this?

    Safe Boot is perfoming a disk integrity check and repair process which may take a long time. Let it complete, though if the startup disk requires repair to begin with, it is likely already in a failed state.
    If the Mac eventually starts, take that opportunity to back up your important data if you have not already done so. It may be your last.

  • My battery died and then when i charged the phone it is asking me to connect to itunes and restore. if i restore how can i get my data back

    My iphone battery died and on charging the phone it asked me to connect to itunes and restore the phone.
    If i restore the phone how can i get my data back and how can i check when i last backed up my phone

    If you have been syncing regularly as the iphone is designed, then you can sync the data back.
    Regardless you will have to restore the iphone.

  • I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.

    I lost my iPhone device, how can I get my data back on another one without using an iCloud backup just back up on i Tunes, Please Help.??

    You can find the backup files and then copy them to a safe place if you are worrying about this.
    iTunes places the backup files in these places:
    Mac: ~/Library/Application Support/MobileSync/Backup/
    The "~" represents your Home folder. If you don't see Library in your Home folder, hold Option and click the Go menu.
    Windows Vista, Windows 7, and Windows 8: \Users\(username)\AppData\Roaming\Apple Computer\MobileSync\Backup\
    To quickly access the AppData folder, click Start. In the search bar, type %appdata%, then press Return.
    Windows XP: \Documents and Settings\(username)\Application Data\Apple Computer\MobileSync\Backup\
    To quickly access the Application Data folder, click Start, then choose Run. In the search bar, type %appdata%, then click OK.

  • 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.

  • How Can we get the data from Non-SAP to SAP in WebDynpro

    Hi,
    I hope u understand my query, How can we get the data from Non-SAP to SAP thru WebDynpro Programming.
    Help out with the steps for getting the data or procedure.
    Regards,
    Mutyapu

    You can expose the APIs in the Non-SAP backend as Web Services, and consume them in SAP by creating an Enterprise Proxy. Then these can be called just like normal class methods from Web Dynpro.
    Regards,
    Nithya

  • I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change them?

    I signed into my Apple ID on a new phone and I already had it on my iPod. When I signed into the new phone it won't let me buy anything unless I know my old security questions but I don't know the answers to them. How can I get past those or change them?

    See Kappy's great User Tips.
    See my User Tip for some help: Some Solutions for Resetting Forgotten Security Questions: Apple Support Communities https://discussions.apple.com/docs/DOC-4551
    Rescue email address and how to reset Apple ID security questions
    http://support.apple.com/kb/HT5312
    Send Apple an email request for help at: Apple - Support - iTunes Store - Contact Us http://www.apple.com/emea/support/itunes/contact.html
    Call Apple Support in your country: Customer Service: Contacting Apple for support and service http://support.apple.com/kb/HE57
     Cheers, Tom

  • How can I get a date picker or wheel to show up in the form to make filling in a form with a lot of

    how can I get a date picker or wheel to show up in the form to make filling in a form with a lot of dates more easy?

    There is no built-in date picker available for forms created in Acrobat. There are some third-party solutions involving JavaScript (either a large collection of fields or a custom dialog) though. Also, text fields with date formatting will use a wheel type date picker on Android/iOS devices with Adobe Reader.

  • How can I get right data in a cell of JTable when table  enter editing

    how can I get right data in a cell of JTable when table enter editing

    how can I get right data in a cell of JTable when table enter editing

  • How can i get the data from database & add them as a link

    Hi,
    how can i get a data from a database(DB2) and that data will be having a file so i should make them as a link.i tried it in jsp .
    <%
    Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
    Class.forName("COM.ibm.db2.jdbc.net.DB2Driver");     
    response.setContentType("text/html");
    Connection conn = null;
    conn = DriverManager.getConnection("jdbc:db2:spintran");
    Statement stmt = conn.createStatement();
    stmt.executeQuery("set current schema tut");
    ResultSet rs = stmt.executeQuery("select * from tutorial");     
    %>
    Type Of the Category : &nbsp&nbsp&nbsp
    <%
         while (rs.next())
         String desc = rs.getString(1);     
         out.println(desc);
    %>
         <A HREF = "<%=desc%>"><%=desc%> </A>
         <%
         %>
    but it is not working.how can i link.
    thank you.

    what is desc? is it the file name ? whats the data type of desc in db? INFILE?
    if desc is just the name of the file, then make sure that such a file exists in the proper folder.only then the link works..
    that is, if desc is 'a.jpg' then a.jpg should be existing in the same folder as your html is.

  • I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    I have a Mac Pro OS 10.7.5 and have a DVD+R disc with files on it, but it ejects the disk after about 10 seconds--what to do?  How can I get the data off this disc?  I can see it has been already burned, so files are on there?

    Try cleaning the lens and see if that will restore functionality to the DVD drive.  Use a DVD lens cleaning disk, if you have a can of compressed air, shoot some into the slot or wrap a fine microfiber cloth (eyeglasses cleaning cloth)  around a business card and insert it gently inside the slot.
    If no success, make an appointment at an Apple store genius bar and get a free diagnosis from them.
    Ciao.

  • How can I get the data back from my game

    How can I get the data back from minecraft if I deleted the app and bought with a different Apple ID

    No, they are tied to the ID that purchased them, and cannot be transferred to anyone else.

  • Lost all of my data on iphone and have no cloud back up how can i get my data back

    lost all of my data on iphone and have no cloud back up how can i get my data back

    iOS devices do backup automatically to iCloud providing:
    iCloud Backup is turned on
    It has a Wi-Fi connection
    It is connected to a power source
    The screen is off
    5GB is plenty of storage for me to backup to iCloud automatically.
    I have a 64GB iPhone & a 128GB iPad both backing up to the same iCloud account and I still have nearly 2GB free.
    This is mainly because media is not backed up and Photo Stream & iTunes purchases do not count against your iCloud storage.
    Here’s what iCloud backs up:
    Purchase history for music, movies, TV shows, apps, and booksYour iCloud backup includes information about the content you have purchased, but not the purchased content itself. When you restore from an iCloud backup, your purchased content is automatically downloaded from the iTunes Store, App Store, or iBooks Store. Some types of content aren’t downloaded automatically in all countries, and previous purchases may be unavailable if they have been refunded or are no longer available in the store. For more information, see the Apple Support article iTunes in the Cloud availability by country. Some types of content aren’t available in all countries. For more information, see the Apple Support article Which types of items can I buy in my country?.
    Photos and videos in your Camera Roll
    Device settings
    App data
    Home screen and app organization
    iMessage, text (SMS), and MMS messages
    Ringtones
    Visual Voicemail

Maybe you are looking for

  • Transfer data from toshiba pc to macbook pro

    transfer data from toshiba pc to macbook pro

  • Invalid request in SOAP Scenario - "HTTP 400 Bad Request"

    Hi, By sending request to a Webservice thorugh XI ,I am getting an error as "HTTP 400 Bad Request" in MONI and the response payload looks like this "Request Error (invalid_request) Your request could not be processed. Request could not be handled  Th

  • Red lines/glitched 1080p video streaming XBMC in Mavericks

    Hello, This is so weird because I don't think this was happening the first weekend after installing Mavericks, but in the last few days, my XBMC is playing 1080p videos I'm streaming all messed up.  There are odd red lines and glitches in the video t

  • Infospoke problem - opeb hub service - urgent

    hello friends, I am trying to run one infospoke but getting the below error. *The 3rd party status for request ATTRIBUTE_MSGV3 has not yet been set* I have checked all the source and traget structures , which are active . The source system connection

  • Opening a Flash CS5 in Flash CS4

    Hi everyone, I just bought Flash CS5 for own computer. I already have CS4 on the computer at work. Unfortunately I get an error when I tried to open a CS5 project in the CS4 at work. My boss is unwilling to buy CS5. Is it truly so that you cannot ope