Fn mod for date

xperts,
any fn mod available for getting dates like;
if i am exec on Mon;
Sun Mon Tue Wed Thu Fri Sat
Sun Mon Tue Wed Thu Fri Sat (10 days)
if i am executing it on Wed.
Sun Mon Tue Wed Thu Fri Sat
Sun Mon Tue Wed Thu Fri Sat (8 days)
wat i need is the date.
and the passing parameter is sy-datum
eq:if sy-datum = 20081023
dates i hav to gt : 23 24 27 28 29 30 31

Developed logic for that,
lv_dat_tmp = sy-datum.
  do 14 times.
    call function 'RH_GET_DATE_DAYNAME'
      exporting
        langu = sy-langu
        date  = lv_dat_tmp
      importing
        daynr = lv_daynr.
    if lv_daynr eq 6.
      lv_dat_tmp = lv_dat_tmp + 2.
    elseif lv_daynr eq 7.
      lv_dat_tmp = lv_dat_tmp + 1.
    else.
      lx_date-pedtr = lv_dat_tmp.
      append lx_date to lt_date.
      if lv_daynr eq 5 and lv_status ne 6.
        lv_status = 1.
      endif.
      lv_dat_tmp = lv_dat_tmp + 1.
      lv_status = ( lv_status * 1 ) + 1.
    endif.
    if lv_status eq 7.
      exit.
    endif.
  enddo.

Similar Messages

  • Database Mode for Data warehouse

    I am running Oracle 10gR2 on solaris 5.10.
    The recommendation that the data warehouse database should be run in dedicated mode is right?
    regards

    Fahd Mirza wrote:
    I am running Oracle 10gR2 on solaris 5.10.
    The recommendation that the data warehouse database should be run in dedicated mode is right?
    regards"dedicated" is not a mode that the databse runs in, it is a type of connection the client makes to the database. There's no such thing as "run the database in dedicated mode" vs. "run the database in shared mode". The database will always accept a dedicated connection request. It may accept a shared connection request, if it has been configured to do so. It's up to the client to decide, not the database

  • Target mode for Macbook Air?  Data recovery effort underway

    Hello,
    I took my daughters' Macbook Air into the Apple Store for the hinge replacement, they shipped it off for repair, and some idiot at the Apple repair Depot did a clean OS X install for absolutely NO reason.
    I want to access the hard drive as an external drive and run Data Rescue on it to try to recover some of her files.
    Any ideas?
    Is there a target disk mode like feature via USB, for the Macbook Air?
    Message was edited by: cfmsp

    AFAIK, there is no USB target disk mode. Only available on Firewire equipped Macs. Sorry, not the answer you wanted to hear, but the unfortunate reality is that what you've experienced is the reason why "everyone is always told" to backup, backup, and backup.
    If you still want to try doing a low level recovery, you'll have to remove the hard drive and attach it with some adapter to another computer.
    Going forward, you'll want to purchase an external hard drive for Time Machine backups. (Or purchase a Time Capsule or configure another Leopard or Snow Leopard Mac as a Time Machine destination.) I have a separate Mac as a Time Machine destination so Time Machine backs up automatically whenever I'm using my home Wi-Fi, which means backups are a no-brainer and has saved me several times in cases similar to what you've gone through. Every decent repair shop I've dealt with has a liability warning stating they are not responsible for data loss. So although it shouldn't have been necessary, sh...stuff happens.
    As I once read, "there are two kinds of computer users: those that have lost data, and those that will lose data."
    (edit: Again, not what you want to hear, but the [warranty|http://images.apple.com/legal/warranty/docs/cpuwarranty.pdf] does state:
    ...Before you deliver your product for warranty service it is your responsibility to keep a separate backup copy of the contents, and disable any security passwords. IT IS POSSIBLE THAT THE CONTENTS OF YOUR HARD DRIVE WILL BE LOST OR REFORMATTED IN THE COURSE OF WARRANTY SERVICE, AND APPLE AND ITS AGENTS ARE NOT RESPONSIBLE FOR ANY DAMAGE TO OR LOSS OF PROGRAMS, DATA OR OTHER INFORMATION CONTAINED ON THE MEDIA OR ANY PART OF THE PRODUCT SERVICED....
    The [Applecare Terms and Conditions|http://images.apple.com/legal/applecare/docs/NAAPP_Englishv5.2.pdf] have similar wording:

  • Where do changed data values goto if DB is in BACKUP mode for LONG PERIODs

    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time.
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs.
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.

    user13076519 wrote:
    Where does oracle write if put the database in begin backup mode for LONG PERIODs. Lets say I issued a "ALTER DATABASE BEGIN BACKUP" command in a busy database and forgot about it for a long time. It writes just like it always does, plus it puts some extra in the redo log the [url http://oraclenz.com/2008/07/11/logging-or-nologging-that-is-the-question-part-ii/]first time a block is changed.
    >
    >
    I understand that when the DB IS IN BEGIN BACKUP MODE, "the database copies whole changed data blocks into the redo stream." (Page 503 of 11.1 backup and recovery guide). But the redo stream is limited by the number of online redologs. After some time redologs also wont be sufficient for the changed data values after a begin backup is issued. I understand that there are archived redologs. This appears to be a typo (incompleteness, really) in the backup and recovery guide.
    The redo stream is not limited by the number of of redo logs, only the volume of data. When a log fills up, it gets archived. If all the logs get filled up before the first one is finished archiving, the db will stall until the next redo becomes available. The only limit to archiving is disk space (and bandwidth if that is an issue, which it can be in some configurations).
    >
    Lets say there are 2 redolog groups in this database and Lets say 10 archive log files got generated since the ALTER DATABASE BEGIN BACKUP was issued.
    When i finally issue the "ALTER DATABASE END BACKUP" command, will Oracle sync the datafiles with the changed data blocks reading the data from these 10 archived log files ? What happens if i delete these archive redologs from the archive log destination. ??Archived logs are archived, Oracle only reads them in recovery. You do not understand archive logs, read the concepts manual.
    >
    page 504 of 598 in the backup and recovery guide
    Caution : If you fail to take the tablespace out of backup mode,
    then Oracle Database continues to write copies of data blocks in
    this tablespace to the online redo logs, causing performance
    problems. Also, you receive an ORA-01149 error if you try to shut
    down the database with the tablespaces still in backup mode.
    it just says "performance problems", nothing more than that.*Because it is overgeneralizing.
    >
    Any answers ? I am sure this question would have popped to some of you senior DBA people out there.Oh, you want to send me a gift for showing where in oracle it's documented? See [url http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:271815712711]here for something over a decade old.

  • How to set the Data Synchronisation mode for ADF BC component?

    Hi All,
    How to set the Data Synchronisation mode for ADF BC component
    Thanks
    Raghavendra

    Can you clarify what you mean by the data synchronization mode?
    If you mean the Sync Mode, then in 10.1.3 you set this property by:
    1. Selecting your DataBindings.cpx file
    2. Expanding the "Data Control Usages" section in the structure window
    3. Selecting the ADFBC-based data control
    4. Setting the "syncMode" property in the property inspector.

  • How to enable workprotect mode for unsaved data

    Hi,
    I am trying to enable workprotect mode for unsaved data and the reason is after entering hours in Record Working Time If the user navigates to other screen ,all the data entered in time is getting lost.
    For enabling the Workprotect mode I did the following things
    1.Go to system admin -> system config ->service config->Applicaitons ->com.sap.portal.epcf.loader
    Change workprotect.mode.default to 2
    Restart the config by right clicking on com.sap.portal.epcf.loader . Click Administrate ->restart
    and
    2.Opened the Personalise option from Masthead and selected workprotect mode and selected
    Choose action in popup on unsaved data
    But still it doesn't work.
    What is missing here
    Thanks
    Bala Duvvuri

    GLM,
    I am testing with my own user id and i have set the settings as mentioned above
    Thanks
    Bala Duvvuri

  • SAP BPC - As per IFRS, data entry mode for OWNERSHIP model is YTD. Why?

    Dear All,
    As per IFRS, data entry mode for OWNERSHIP model is YTD. I do not understand this. YTD means accumulated data. When it comes to Ownership data(Consolidation Perimeter), it goes by month. Consolidation is done month by month. If so, why is YTD the data entry mode for OWNERSHIP model?
    Pls. help to understand!
    Thank you.
    Regards,
    Peri

    Hi Peri,
    the information stored in the ownership model (method and percentages) is used as it is entered by month. At least in BPC MS I have found no difference between having the ownership cube as YTD or periodic as all my accounts in that cube are defined as AST accounts.
    However, conceptually, since the consolidation model usually is YTD I think it makes sense to have the ownership also as YTD.
    BR,
    Arnold

  • Difference between passive and active data connection mode for  FTP

    Hi,
    Does any body have the idea of passive and active data connection mode for the transport protocol FTP.
    I have one server with FTP, I have to pick the data from this FTP to XI.
    What is the difference between active and passive data connection? Does XI supports both the connections?
    Thanks & Regards
    Katta Mohan Reddy

    Hi
    According to SAP Note - 821267
    Q: Does the File Adapter support active data connections when connecting to an FTP server?
    A: Up to and including SP14, the File Adapter exclusively uses passive data connections. Starting with SP15, active connections will be available.
    Difference between active and passive,
    You can definitely refer to the site mentioned by Suraj
    cheers
    Sameer

  • Display mode for Material Description in MM02 for Partucular User/UsrGroup

    Dear friends,
    I required to set: Display mode for Material Description in MM02. (Configured thruu2019 Maintain field selection to data screen)
    For Particular User / User group, it should be Change mode. How to achive this. Please advice.
    Thanks and regards,
    RAMAN

    Hi,
    I don't think you can realize it, because in SAP system there are 6 influncing factors:
    Material Type
    Plant
    Industry sector
    Transaction
    Procurement indicator
    SAP Delivery
    Field selection is controlled by field references. You can assign field references to the influencing factors material type, plant, and industry sector in Customizing. SAP maintains the assignment of the field reference to the transaction codes, to the procurement types, and for the SAP delivery. You cannot change this assignment of these field references in Customizing.
    So from my point of view, you can't use the factors of material type, plant and industry sector to distinguish different users' authorization.
    Good day
    Tao

  • Searching attibutes in the record mode in Data Manager

    Hi,
    If i create a new attribute in taxonomy mode,i cannot view it in the corresponding search in the record mode in Data Manager.The particular attribute which i have added is not getting displayed in the attributes in the search pane.If i have to search for that attribute in the record mode what should i do.
    Thanks and Regards,
    Preethi

    hi Preethi,
    there are a few differencies between fields and attributres
    have a look at table:
    Tab. 1 Comparison Fields vs. Attributes
    from this document
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5d4211fa-0301-0010-9fb1-ef1fd91719b6
    for search options based on attributes have a look at the bottom
    of the table I mention
    hope this will clarify a little bit
    Regards,
    michal

  • My iphone 4 went into recovery mode for some reason and it is unable to be restored. any ideas how to fix this?

    my iphone went into recovery mode for some reason and is unable to be restored. it wont turn on and when plugged into a charger it shows a usb and itunes symbol. so i plugged it into my mac and connected to itunes then itunes said it has detected a phone in recovery mode and needs to be restored. so it goes through the restoration process for a couple minutes or so then stops and says itunes is unable to restore because an unknown error occurred (2001) or (2006) and other times i try it says its unable to restore because itunes cant detect the device... any ideas how to fix this?

    Errors 2000-2009 (from Apple support): If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604. If the issue persists, it may be related to conflicting security software.
    2001: Use up to date software. Make sure your device is in DFU Mode: http://www.iclarified.com/entry/index.php?enid=1034
    2006: Use a different USB cable. Possibly the one that came with your iPhone.

  • Hard drive failure - options for data recovery and AppleCare coverage

    I have been handed a relative's 12 month old MacBook Pro with a factory-installed 500GB hard drive which appears to have failed. When attempting to boot the MacBook I am met with the classic clicking and grating noise which I know is a tell-tale sign of hard drive failure. The drive will not boot and I am shown the question mark folder icon, indicating that the operating system cannot be found. Have booted into internet recovery mode, Disk Utility appears to have found no sign of the hard drive's existence and shows none of its partitions. I have attempted putting the MacBook into FW target-mode and mounting the disk from another laptop, but to no avail; while it will go into target mode the drive simply isn't visible. The SATA connection to the drive is definitely OK - I have tested with another 2.5 inch hard drive which showed up fine in Disk Utility and was bootable. Have run Apple Hardware Test/Diagnostics but this returned no errors. It seems like a pretty clear cut case of drive failure.
    I put this all to the relative whose laptop this is and asked them whether the MacBook had been dropped recently, explaining to them that this is one of the likeliest causes for such sudden failure. Sheepishly they admitted that they had indeed dropped it, although not from too great a distance and onto a carpeted floor. Apparently in the days immediately after the shock the hard drive continued to boot but the system was very slow and beset by spinning beech ball hangups. It is only in the last few days that the hard drive has become completely unbootable, and seemingly unreachable.
    I have two questions that I would be grateful for some help with.
    Firstly, is there any possibility of recovering data from this drive without going to a data recovery specialist? The user did have backups of most important data, but some recently imported photos were not backed up. Is it any use me trying any third-party data recovery software utilities, bearing in mind that I can't even mount the drive in target mode?
    Second, the MacBook is still covered by the extended AppleCare warranty for the next two years. Is it worth my relative's while making a Genius Bar appointment to see whether Apple would replace this drive for free, given that the damage was most likely user-inflicted? Is there any chance that this sudden failure could be unrelated to the drop the MacBook suffered the other day - perhaps just a result of the 'normal' failure rate? I am more than happy to exchange the drive for a new one myself and my relative is happy to pay for the new part (I was amazed at how cheap hard drives are now), but would we be better off trying an Apple Store? My prediction would be that while we might get lucky and have an obliging genius who agrees to swap the drive without asking too many questions, we could also have one who concludes the damage is not covered by the warranty and insists on charging for the new hard drive (at a mark-up I assume) and labour.
    Any thoughts about these two issues or the hard drive failure more generally are very welcome. Thanks.

    1, Data recovery software is your only alternative if there is no backup. It may or may not be able to revoker anything from that hard drive. If it does then the only other choice is to go to a data recovery service. If have to go that route expect to pay for it, like $$$$.
    2, Yes. They will at least tell him what the problem is and the cost if any to fix. There is a good chance they will fix it for nothing and only charge for data recovery if they can do it.

  • New-line Character for a file opened in BINARY mode for O/P

    Can anybody please tell me how to put a new-line charcter for each record in a file opened in Binary mode for O/p. I cant use text mode  for other reasons in my scenario.
    DATA: l_outdata TYPE xstring.
    OPEN DATASET file FOR OUTPUT IN BINARY MODE.
    Application logic to populate l_outdata
    TRANSFER l_outdata TO file.
    Any help, or attempt towards it will be duely rewarded,
    Thanks in advance,
    Sujit.

    hi sujit,
    1. how to put a new-line charcter for each record
    but how will you decide, at which POSITION,
    to put the new line character, if u have opened the file in binary  mode.
    2. However, if u know the exact positions(s),
      u can use  CL_ABAP_CHAR_UTILITIES=>CR_LF
      to insert the new line character,
    regards,
    amit m.

  • Which is good: ejecting or standby mode for EHD's?

    After a session at the computer, I have this dilemna: how to close down the session. At this present moment of time, I have a thunderbolt, a 2TB FW LaCie, and three Seagate [2 USB] EHD's all connected to my Mac. All the three Seagate drives have been allocated backup roles via CCC and TM.
    In this scenario, what should be the manner of my quitting a session at the computer? Will keeping the EHD's in a standby mode for prolonged periods damage them?
    Also, I would like to know what is the difference between mounting/unmounting of a drive and ejection of drive?

    somanna wrote:
    I guess I need to set my own 'protocol' in these matters.
    Indeed
    somanna wrote:
    I need to tackle my own 'temporary laziness' and take time to do these things: eject the thunderbolt drive which I use for editing videos in FCPX. [After doing an 'eject' do I have to also disconnect the power supply by pulling out the thunderbolt cable from the drive? By so doing, the CCC based backup would not take place.
    No it should go into standby without disconnecting it.
    That is correct, if it is disconnected then CCC will not backup. If you are using the same drive for editing and CCC, then you will need to test it to see if CCC will bring it backup from standby. If not, then maybe that is not a good combination of uses for one drive.
    somanna wrote:
    My LaCie has a power switch. Is it okay to directly switch it off or do I have to first click upon its desktop icon and eject it? But if I switch off its power, then will CCC automatically start up the power and at its set time backup the data on this Lacie to its concerned backup drive, a Seagate?
    No you should first Eject it before Switching it off.
    No CCC will not turn it back on.
    No
    somanna wrote:
    The 2 other Seagate drives also have got some functions to do regarding backups. These Seagate drives have no power switches. Should I just eject these drives and keep their power cables on or do I have to also have to remove their power supply cables from the drives after they are ejected.
    As with any automated backup, the drive(s) must be connected and powered on in order for the automated backup to take place.
    somanna wrote:
    Further guidance and instructions in these matters will be highly appreciated.
    While I also get a little anal about backup, I do like to save power whenever I can.
    To be honest, I would probably only use the Thunderbolt drive for editing and keep one other drive online to back it up. Then rotate the other drives in and out on a daily or weekly basis keeping them off line, off site or at least in a firesafe.
    Keep at least one or two aces up your sleeve! Heck' a single lighting strike, power surge or simple mistake could take out everything in the blink of an eye if it's all hooked together and running.

  • Set up binary mode for backup over FTP

    Hello!
    I am about to set up the backup for Oracle DB from Tcode DB13.
    My SAP systems are installed on Windows (64 Bit).
    The backup data should be saved on the Unix-Samba share via FTP.
    If I execute DB-Backup the backup is successful, BUT:
    The file names are very strange e.g. <i>S3FV1~6</i>
    The second problem is that the files will be written to the wrong directory
    (I have set the path to "sap/backup" and the files will be written to "sap").
    My question is:
    I have heared about <b>“binary mode”</b> during backup procedure…  <b>With which parameters in init<DBSID>.sap can I set up binary mode for the backup?</b>
    <b>Which other FTP-server-parameters or settings in file init<DBSID>.sap are responsible for this issue?</b>
    Thank you very much
    regards

    Hi,
    this program may help:
    http://www.bombich.com/software/ccc.html (You need the older version for Panther)
    You can use it to clone your internal HDD to your external one, and then clone your external one to your internal one after you erase (and write zeros to ensure everything is gone) using Disk utility (I can't vouch for the actual security of this, but 'apparently' if you do the highest setting it will be secure) after booting from an OS X DVD. This is depends on the drive having the ability to boot, however.
    After you run Cabon Copy Cloner/Clone your HDD see if you can boot from the drive. (Hold option at startup). Unless there are issues with the specific drive model, your eMac should be able to boot from all FireWire devices.
    I'm not sure where Tiger comes into this, however. (As you mention later in your post). The way I understand, you basically just want to erase zeros on your HDD and boot from it just as you acquired it (hence the cloning/re-cloning of the internal HDD).
    Good Luck!

Maybe you are looking for

  • Setting up a mixed g and n network on 1st Extreme + newer Express?

    I have a first gen Airport Extreme 802.11n (flat white, first one they made before adding on gigabyte ethernet). It is great for my needs. It goes into a cable modem. The Extreme handles all routing and the rest. The modem is just a modem that, BTW,

  • Help with my Dock please

    I turned my Dock transparent when positioning is on the bottom doing the following command: I need help reverting my dock back to it's origional state: When the Dock is positioned at the bottom it dosent look transparent

  • Roles/Profiles for ALEREMOTE

    hi all, can anyone let me know all the Roles/Profiles required for the User ALEREMOTE in a production system. I understad that the roles sap_all, sap_new , s_bi-wx_rfc and s_bi-whm_rfc can be used in the development and the Quality systems but am tol

  • Steve Jobs keynote speech - how to get that quality and speed?

    I watched Steve Jobs keynote speech with interest and envy. How is it possible to get the video quality so good combined with so fast download - even on a relatively slow bandwidth I could more or less instantaneously scroll to the end? I run a local

  • Virtual PC issues with Leopard

    I know this is not an Apple problem but wondering if anyone else is having the same issue. My Powerbook has virtual pc on it and after leopard install Virtual PC no longer can "take over" a drive mounted on the system. It just kept showing back in le