Need to get available working day

Hi All,
I'm using oracle 9i version.
i have a procedure which will take 1 in parameter and 1 out parameter.
we will pass one inputdate
now the date which i passed is sunday or holiday then we have to return the next working day that holiday list i'm getting form holiday_list table.
now the problem is suppose i passed a date which is sunday so now i have to return like the inputdate+1 so that it will be monday . but now i need to check weather that monday also holiday or not in the holiday list
if it is then i have to go for next like INputdate+2 again there also i have to check the same for this till i get a available date .
can some suggest how to handle this problem.
Thanks in advance
-RG

SQL> select * from holidays;
DT
01-JUL-07
11-JUL-07
02-JUL-07
07-JUL-07
SQL> exec :your_date := '07-jul-2007';
PL/SQL procedure successfully completed.
SQL>  select min(dt) dt
  2   from(
  3     select trunc(to_date(:your_date,'dd/mm/yyyy')) + level - 1 dt
  4     from (select case when count(*) <= 8 then 9 else count(*) end cnt
  5         from holidays
  6         where dt >= trunc(to_date(:your_date,'dd/mm/yyyy')))
  7     connect by level <= cnt
  8     )
  9   where to_char(dt,'fmday') != 'sunday'
10   and dt not in(select dt
11                 from holidays
12                 where dt >= trunc(to_date(:your_date,'dd/mm/yyyy')))
13   /
DT
09-JUL-07
Message was edited by:
        jeneesh
curved path......                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • I have an airport express (802.11n) which download do I need to get it work on Windows 8.1?

    I have an airport express (802.11n) which download do I need to get it work on Windows 8.1?

    That one doesn't work.
    Verstuurd vanaf mijn iPhone
    Op 19 nov. 2014 om 13:55 heeft "Apple Support Communities Updates" <[email protected]<mailto:[email protected]>> het volgende geschreven:
    http://www.apple.com/support/assets/images/external/emails/logo.gif
    You received a reply
    Bob Timmons<https://discussions.apple.com/people/Bob+Timmons?ac_cid=op123456> has replied to your question. You can view the full discussion<https://discussions.apple.com/message/27128939?ac_cid=op123456#27128939> in Apple Support Communities.
    I have an airport express (802.11n) which download do I need to get it work on Windows 8.1?<https://discussions.apple.com/message/27128939?ac_cid=op123456#27128939>
    It has been some time since Apple updated AirPort Utility for Windows. The current version is 5.6.1.
    It runs on Windows 7, but I have not checked on Windows 8.
    AirPort Utility 5.6.1 for Windows<http://support.apple.com/kb/dl1547>
    Correct Answer <https://discussions.apple.com/email/thread/6679920/correct/27128939> Helpful Answer <https://discussions.apple.com/email/thread/6679920/helpful/27128939>
    Use the buttons above to tell Bob Timmons and the rest of the community if this reply solved your question or helped you get closer to finding a solution.
    To reply to Bob Timmons, go to the discussion<https://discussions.apple.com/message/27128939?ac_cid=op123456#27128939> in Apple Support Communities.
    You are receiving this email from Apple Support Communities. You can change your email preferences in your Apple Support Communities Profile<https://discussions.apple.com/user-preferences!input.jspa>.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM. Cupertino, CA 95014.
    All Rights Reserved<http://www.apple.com/legal/> | Privacy Policy<http://www.apple.com/legal/privacy/> | Terms of Use<https://discussions.apple.com/docs/DOC-5952> | Apple Support<http://www.apple.com/support/>

  • Get Nexr working day for the given calendar id

    Hello,
    My requirenment is I have a  date.If that date falls on friday then I have to get the next working day date i.e.Monday for the given Calender iD

    DATA:wk_dat TYPE scal-indicator.
    PARAMETERS:pa_dat TYPE sy-datum.
    CALL FUNCTION 'DATE_COMPUTE_DAY'
      EXPORTING
        date = pa_dat
      IMPORTING
        day  = wk_dat.
    CHECK wk_dat = 5.
    pa_dat = pa_dat + 3.
    WRITE pa_dat.
    here if u want to get the next working day
    Use FM DATE_CHECK_WORKINGDAY after the check statement.
    add the date until u find a working day.

  • Need to get internet working on X3 00

    HEY
    I need to know what are the settings to get internet working with my Nokia X3 00, I have AT&t  services. Please help

    I got my X3 working with AT&T Prepaid plan (which is really expensive).  I'm not 100% sure of all these steps are necessary due to tinkering around, but at least I'm online.
    Settings -> Connectivity -> Packet data -> Packet data settings -> Packet data acc. pt. 
    Set this to: wap.cingular
    Settings -> Configuration -> Personal config. sett. -> Add new -> Access point -> Access point settings -> Bearer settings 
    Packet data acc. pt. -> wap.cingular
    If that doesn't work, I tinkered with the settings from this site: http://www.howardforums.com/printthread.php?t=1630604
    HTH,
    -will

  • Get Previous Working Day

    Do you know any function module which will give me the previous working day only by ignoring saturdays and sundays and it should NOT consider holidays.
    Example:
    Monday's Date should give me previous friday's date.
    Friday's Date should give me previous thrusday's date

    Hello Ramesh,
    I assume you have your factory calendar ID with you:
    DATA:
        L_V_PREDT        TYPE DATUM, "Next Day.
      L_V_PREDT = SY-DATUM - 1.
    * Get the next Working Day as per Factory Calendar
      CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
        EXPORTING
          CORRECT_OPTION               = '-' " -VE  to get the previous date
          DATE                         = L_V_PREDT
          FACTORY_CALENDAR_ID          = 'HY' "--> Give your factory cal. ID here
        IMPORTING
          DATE                         = V_PREWD
        EXCEPTIONS
          CALENDAR_BUFFER_NOT_LOADABLE = 1
          CORRECT_OPTION_INVALID       = 2
          DATE_AFTER_RANGE             = 3
          DATE_BEFORE_RANGE            = 4
          DATE_INVALID                 = 5
          FACTORY_CALENDAR_NOT_FOUND   = 6
          OTHERS                       = 7.
      IF SY-SUBRC <> 0.
    *  Do Nothing
      ENDIF.
    If you want to use the FM: BKK_GET_PRIOR_WORKDAY, still then you have to use the operation:
    L_V_PREDT = SY-DATUM - 1.
    And pass L_V_PREDT to the FM. You can test with 23.03.2009 date & check )
    Hope this helps.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 19, 2009 4:56 PM

  • My 7th gen ipod nano wil not show up on my laptop when I plug it in and neither will my brothers new ipad,they don't come up in my computher either and I've installed the new itunes twice but still no change,I really need to get this working,Please help

    I need help

    Thanks for a reply
    The cable that I'm using came with my 5th gen nano. The 6th gen Ipod shows that it's connected but the computer doesn't see it, so I don't think that it's the cable.
    I did try this before when looking at the troubleshooting guide and nothing happens. It just resets and then the Ipod screen tells me that it's connected to the computer. It still is unseen by Itunes and no where to be found in my computer.
    I don't have another computer to plug it into at the moment but I may be able to visit a friend that owns a decent PC in a few days. If that doesn't work out I will be getting a new lap top in a week and I'm hoping that it will work on that, but it won't be a Mac. So, let's say it works when I plug it into one of these computers, should I reset my Ipod from there or is there something else I should do?

  • Help needed in getting applet working

    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    public class murali1 extends JApplet{
         private Container contain;
         private GridBagLayout grid;
         private GridBagConstraints c;
    * Create the GUI and show it.
    public murali1() {
              //super("Assignment 1");
    //Create and set up the window.
    JFrame frame = new JFrame("Assignment 1");
              //Menu
              JMenuBar bar = new JMenuBar();
              JMenu file = new JMenu("File");
              bar.add(file);
              JMenuItem open = new JMenuItem("Open");
              file.add(open);
              open.addActionListener(new ActionListener(){
              public void actionPerformed (ActionEvent e)
              JMenuItem save = new JMenuItem("Save Random");
              file.add(save);
              save.addActionListener(new ActionListener(){
              public void actionPerformed (ActionEvent e)
              JMenuItem exit1 = new JMenuItem("Exit");
              file.add(exit1);
              exit1.addActionListener(new ActionListener(){
              public void actionPerformed (ActionEvent e)
                   System.exit(0);
              //Create 4 panels
              JPanel panel1,panel2,panel3,panel4;
              /*Adding components to Panel 1
              Panel 1 contains one Label and a ComboBox
              Panel 1 is a GridLayout
              panel1=new JPanel();
              String method[] = {"Random","Ascending","Descending"};
              JComboBox combo = new JComboBox(method);//Combo Box
              combo.setMaximumRowCount(3);
              combo.addItemListener(new ItemListener(){
              public void itemStateChanged(ItemEvent comboevent)
              JLabel combolabel;
              combolabel = new JLabel("Choose Prioritization Heuristic");
              //panel1.setLayout( new GridLayout (2,1));
              panel1.add(combolabel);
              panel1.add(combo);
              /*Adding components to panel 2
              Panel 2 contains one label and one text area
              Panel 2 is a GridLayout
              panel2 = new JPanel();
              JLabel textlabel = new JLabel("Evaluator Results");
              JTextArea evalarea = new JTextArea();
              panel2.add(textlabel);
              //panel1.setLayout( new GridLayout (2,1));
              panel2.add(evalarea);
              /*Adding components to panel 3
              Panel 3 contains 5 labels,3 textfields, 1 button
              Panel 3 is a GridLayout
              panel3 = new JPanel();
              JLabel label1,label2,label3,label4,label5;
              label1 = new JLabel("Use the Fields only for Random Heuristic");
              label2 = new JLabel("Enter Maximum # of Tries");
              label3 = new JLabel("Enter # of Tests in TS");
              label4 = new JLabel("Enter ID# of Tests in TS(d) (Separated by Comma)");
              label5 = new JLabel("Please Press SUBMIT");
              JTextField tf1,tf2,tf3;
              tf1 = new JTextField();
              tf2 = new JTextField();
              tf3 = new JTextField();
              JButton submit = new JButton("Submit");
              //panel1.setLayout( new GridLayout (9,1));
              panel3.add(label1);
              panel3.add(label2);
              panel3.add(tf1);
              panel3.add(label3);
              panel3.add(tf2);
              panel3.add(label4);
              panel3.add(tf3);
              panel3.add(label5);
              panel3.add(submit);
              /*Adding components to panel 4
              Panel 4 contains 4 labels,1 textfields, 3 button
              Panel 4 is a GridLayout
              panel4 = new JPanel();
              JLabel label6,label7,label8,label9;
              label6 = new JLabel("Press RUN to start evaluation");
              label7 = new JLabel("Press Exit to Terminate Program");
              label8 = new JLabel("MLP(d) and RP(d) are:");
              label9 = new JLabel("Press CLEAR to start new evaluation");
              JButton run = new JButton("Run");
              JButton exit = new JButton("Exit");
              JButton clear = new JButton("Clear");
              JTextArea area1 = new JTextArea();
              panel4.add(label6);
              panel4.add(run);
              panel4.add(label7);
              panel4.add(exit);
              panel4.add(label8);
              panel4.add(area1);
              panel4.add(label9);
              panel4.add(clear);
              /*panel1.setVisible(true);
              panel2.setVisible(true);
              panel3.setVisible(true);
              panel4.setVisible(true);*/
              /* set Grid Bag Layout
              Add all the panels to the GridBag Layout
              contain = frame.getContentPane();
              grid = new GridBagLayout();
              contain.setLayout(new GridBagLayout());
              c = new GridBagConstraints();
              addComponent(panel1,0,0);
              addComponent(panel2,0,4);
              addComponent(panel3,4,0);
              addComponent(panel4,4,6);
              //setSize(1200,100);
              this.setVisible(true);
              /*Method to Add Components*/
              private void addComponent(Component co,int row,int column)
                        c.gridx = column;
                        c.gridy = row;
                        grid.setConstraints(co,c);
                        contain.add(co);
    /*Set up the content pane.
    addComponentsToPane(frame.getContentPane());*/
    //Display the window.
    //frame.pack();
    //frame.setVisible(true);
    public static void main(String[] args) {
    murali1 g = new murali1();
                   //g.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    The Compliation is totally fine,applet loads, but the gui components are not diaplyed.Any suggestions.
    Thank you.

    That's not really an applet. Or it's a half-done one. It looks like you just took a standalone app (with its own frame and everything), added "extends JApplet", commented out a few things that absolutely shouldn't work, and otherwise changed almost nothing.
    The browser won't invoke the applet's main() method. I guess that's not a problem, but are you aware that it's not being invoked?
    An applet is a kind of panel. You shouldn't be creating frames. You should put all the GUI elments in the panel...which it appears you did, but can you actually get rid of the irrelevant code? Furthermore, when you post code on these forums, you should wrap it in [code][/code] tags; it makes it much easier to read.
    An applet shouldn't call System.exit(). You'll probably get a security exception if you try running that.
    That addComponent method looks suspicious to me. You're changing the columns and row of the same object over and over again. I'm not a GUI expert, so maybe I'm wrong, but that seems really wrong.
    You shouldn't need to call this.setVisible(true) for an applet.
    I'd suggest cleaning your code up, and maybe moving some of that stuff out of the constructor anyway. In an applet it might be better placed in init().
    Message was edited by:
    paulcw

  • Need Help getting games working...

    So I am having trouble getting basically any games working correctly on my arch setup.  This wouldn't really bother me but my gf likes playing them and I had a few working when I was using Bodhi Linux so she now thinks that Arch is not as good as Bodhi lol. 
    Please help me either get one of the games I have working or find some that will work.
    Right now, the games I have been trying and problems I'm having with each are as follows:
    Supertux: Really slow; I had this working on Bodhi
    DJL: Not really a game but this is what I used to use to get games; I found in AUR but it hasn't been updated for awhile; When I try to run it I get the following error (although I think it is generic msg):
    File "/usr/share/djl/djl/config.py", line 212, in config
    loc = locale.getdefaultlocale()[0].split("_")[0]
    AttributeError: 'NoneType' object has no attribute 'split'
    bsnes: All the ROMs I find are .smc format and bsnes will only work with .sfc
    Anyone have any ideas on how to get any of these working?  It would be greatly appreciated.  I love Arch so much more than any other distro I've tried because I can set it up exactly how I want and it runs so efficiently on my older computer but if I can't get some games working I'm going to be nagged to switch back to Bodhi.
    The other option is to dump the gf lol, but its a tough decidion between Arch and her .
    ~Boz~

    Yeah, I know it definitely doesn't have 3D acceleration bc when I was running Linux Mint I would automatically be put into "Fallback mode" as the MGSE req'd 3d acceleration.  What I don't get is how I had the games working while running Bodhi. 
    It might have been something in Djl that helped tweak the configuration and allow games to work because that was where I was using the games that I did.  I just had assumed that using Super Tux w/o Djl would be the same.  I do think that Djl not working has something to do with it needing Python 2 but I have tried and can't figure out how to force it to use only that.  Not sure if that is bc it is hard to or just bc I don't know how .
    I did try to install Zsnes but got an error during the build.  I tried the 'zsnes-netplay' version bc it had been updated more recently (although still almost a year ago).  I'll give the other version a try today to see if it makes any difference. 
    Going to leave this as unsolved until after I try that so if anyone else has any suggestions, please feel free.  If no progress by EOD, I will mark as solved and take it that the fact that I don't have 3d acceleration is the cause of my problems.  As I mentioned at the beginning, I really could care less about the games.  Just was trying to keep the gf happy but not always possible .
    Thanks again,
    ~Boz~

  • My music is so disorganized i need to get it working for me but how?

    my music all works fine but it goes in order by the Album name then the artist but i have a lot of Albums that include many different artists and they show up in my library as they are in different albums....it is really annoying when i want to listen to a Album click on the song in the album and it says that is the only song in the album when i now there is more then that in that album....it only does this to CD's i rip into my computer the music i buy from itunes does not do this.....i have tried going to view and changing the album settings but it just does not want to change.... how can i get it to do what i want? to put all the songs in the album they belong too....

    I too am also having the same problem with viewing songs by album. I'm sure there is a simple explanation to solve this problem, but after surfing the help menus and discussion pages, I can't seem to find the answer. With my problem, this example will illustrate my fustration. My favorite CD is "In the City" by Kevin Rudolf. When I go to play the album on my iPod Nano, which I just purchased, the album is shown in 'chunks' instead of one album itself. The cd has a total of 12 songs in it, but when I go to the menu on the iPod to select the album "In the City" there are a total of 5 of these albums, each with 1 to 4 songs in each. This is rather annoying in how I would just like to listen to my favorite album in one go, in the proper order as per on the cd, and I can't do this. I'm sure the problem is very simple to fix, and I look forward to using the brand new iPod nano which I have purchased. But sadly if I cannot fix this problem, then I will return the product and all the accessories purchased with it for a different competitors product. Keep in mind, this album is not the only one that is in my selection of music that does this. There are many albums that are sliced up. So fixing this one album in example, will hopefully fix them all.

  • Need help getting php working, apache not evaluating php doc.

    Folks, I have been trying for some time to get JetPhoto Server to work on Snow Leopard Server. It was so easy with SL Client.
    In any case I cannot get "<?php phpinfo(); ?>" to be evaluated in Safari and I am not sure why.
    Essentially I am taking it step by step to understand why it's so hard to get things up and running - first making sure things apache and php are playing nice.
    PHP is enabled
    registerlongarrays is on
    engine is on
    All Safari returns is the same php call instead of the config info.
    Please advise.

    Default web page is on a second drive right now now that JetPhoto server is running. Otherwise the default is in the default webserver/documents/ directory. I just have Server Admin settings pointing to the photo server until I can restore the company homepage I used to have.
    output from first command:
    drwxrwxr-x 26 root admin 884 Jul 26 15:37 .
    drwxrwxr-x 7 root admin 238 Apr 26 14:35 ..
    -rw-r--r--@ 1 lpiadmin admin 12292 Jul 26 15:38 .DS_Store
    -rw-rw-r-- 1 root admin 3726 May 18 2009 PoweredByMacOSX.gif
    -rw-rw-r-- 1 root admin 31958 May 18 2009 PoweredByMacOSXLarge.gif
    -rw-rw-r-- 1 root admin 5063 Jul 20 2009 applestylesheetoverrides.css
    -rw-rw-r-- 1 root admin 2636 Jul 20 2009 base_layout.css
    -rw-rw-r-- 1 root admin 3754 Jul 20 2009 error.html
    -rw-rw-r-- 1 root admin 3754 Jul 20 2009 error.html.default
    -rw-rw-r-- 1 root admin 7782 Jul 20 2009 favicon.ico
    -rw-rw-r-- 1 root admin 56 Jul 20 2009 grayline.gif
    -rw-rw-r-- 1 root admin 3811 Jul 20 2009 grayx.jpg
    -rw-rw-r-- 1 root admin 5094 Jul 24 2009 index.html
    -rw-rw-r-- 1 root admin 5094 Jul 24 2009 index.html.default
    -rw-rw-r-- 1 root admin 44 Nov 20 2004 index.html.en
    -rw-rw-r-- 1 root admin 271 Jul 20 2009 info.php
    -rw-rw-r-- 1 root admin 2296 Jul 20 2009 logo.gif
    -rw-rw-r-- 1 root admin 4399 Jul 20 2009 main.css
    -rw-rw-r-- 1 root admin 2028 Jul 20 2009 osxserver.gif
    -rw-rw-r-- 1 root admin 1278 Jul 20 2009 poweredbymacosxserver.gif
    -rw-rw-r-- 1 root admin 454 Jul 20 2009 v5backgroundlink.jpg
    -rw-rw-r-- 1 root admin 435 Jul 20 2009 v5backgroundlinkhover.jpg
    -rw-rw-r-- 1 root admin 1580 Jul 20 2009 v5backgroundmain.jpg
    -rw-rw-r-- 1 root admin 8889 Jul 20 2009 v5backgroundtop.jpg
    drwxrwxr-x 4 root admin 136 Jul 20 2009 weblog
    drwxrwxr-x 5 root admin 170 Apr 26 14:35 webmail
    output from second:
    -rw-r--r-- 1 root wheel 68732 Mar 30 21:34 /etc/php.ini.applesaved
    -r--r--r-- 1 root wheel 68970 Jan 29 18:25 /etc/php.ini.default
    -r--r--r-- 1 root wheel 68727 Mar 16 09:08 /etc/php.ini.server-default
    -rw-r--r--@ 1 lpiadmin staff 68729 Jul 26 12:18 /etc/php.ini.txt

  • Need help getting PSE5 working on Vista 64-bit

    I've read in the Forums that it will work if I download the 5.0.2 update, but when I try to do the download, I get an error message saying it will not work with my version.  Can anyone help with this?  Thanks.

    fluffyhermie wrote:
    I've read in the Forums that it will work if I download the 5.0.2 update, but when I try to do the download, I get an error message saying it will not work with my version.  Can anyone help with this?  Thanks.
    I have PSE 5.0.2 working under Vista 64.
    Perhaps you could clarify your statements and add some missing details?
    You said "when I try to do the download" you get an error message. Do you mean "when I try to install"?
    Have you previously installed PSE5 on this computer, and you are trying to update to 5.0.2?
    Could you give us the exact error message, and let us know exactly what is happening when the error message appears?

  • LoadMovie Bug? (Need to get this working!)

    Why is this happening!? On the interactive section of my page
    here:
    http://www.sheahawton.com/
    I have a bunch of externally loaded swf files that are
    supposed to load into the black square in the middle. As you can
    see... some of the swfs partially load... just the text for most,
    and then some dont. If you click another section then click back,
    it loads fine and you can see what it's supposed to look like. This
    doesn't make much sense to me, considering the swf files are done
    on a single frame, with the text just a layer below the image... so
    why does a portion of the swf load but the other doesn't and why do
    some and not others? I have the swfs loading using loadMovie.
    (example below)
    container.loadMovie("movieclipname.swf");
    container2.loadMovie("movieclipname2.swf");
    container3.loadMovie("movieclipname3.swf");
    container4.loadMovie("movieclipname4.swf");
    This works perfectly with every other site I've done, and
    I've used that same setup many times on this site. Yet for whatever
    reason... it doesn't work regularly.
    I'm pretty much done with this site, and I'm waiting to fix
    this to post all of the work and there and send it out to get a
    designer job. This one issue is holding me up. Please help!

    >>
    This works perfectly with every other site I've done, and
    I've used that
    same
    setup many times on this site. Yet for whatever reason... it
    doesn't work
    regularly.
    loadMovie isn't the best way... you should be using the
    MovieClipLoader
    class, and it's loadClip method. Much more reliable.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • I bought a iphone from someone and i think the driver and software has been removed. Is there anything on the web that i can download to reinstall the software i need to get it working again

    Is there any software that i can download from the web to fix my phone? i bought it off the streets and the software and driver must have been deleted cause i can only get the itunes logo and i cant restore it.

    There is no driver software on the iPhone that anyone can remove, per se. Why can't you restore? Is the iPhone not recognized in iTunes? If not, see:
    http://support.apple.com/kb/TS1538
    http://support.apple.com/kb/HT1808
    Otherwise, please post back with details about the problem and someone can probably provide further suggestions.
    Regards.

  • Get working day of month for specific date

    Hi,
    I need to get the working day of a month for a specific date. For example: Which working day is the 15th of september 2005...
    Is there any function module, I could use?
    Cheers Arne

    HI arne,
    1.  DATE_CHECK_WORKINGDAY
        This is the FM.
    2. Along with that u will have to use some logic.
    3. Just copy paste in new program
       (it will help in the logic)
    <b>It will list out
    all the working days
    between two given dates</b>
    REPORT abc.
    data : num type i.
    parameters : frdate type sy-datum default '20051216'.
    parameters : todate type sy-datum default '20051221'.
    perform getinfo using frdate todate changing num.
    break-point.
    *&      Form  getinfo
          text
    FORM getinfo USING fromdate todate CHANGING numofdays type i.
      DATA :  d TYPE sy-datum.
      d = fromdate - 1.
      DO.
        d = d + 1.
        IF d > todate.
          EXIT.
          endif.
          CALL FUNCTION 'DATE_CHECK_WORKINGDAY'
            EXPORTING
              date                       = d
              factory_calendar_id        = '01'
              message_type               = 'I'
            EXCEPTIONS
              date_after_range           = 1
              date_before_range          = 2
              date_invalid               = 3
              date_no_workingday         = 4
              factory_calendar_not_found = 5
              message_type_invalid       = 6
              OTHERS                     = 7.
        IF sy-subrc = 0.
          numofdays = numofdays + 1.
          write :/ d.
        ENDIF.
        ENDDO.
      ENDFORM.                    "getinfo
    regards,
    amit m.

  • To get working day

    Hi Gurus,
         my requirement is to get a working day.
    I know how many days my work will take to finish i.e no of days, let us say 10 days
    I need to add these number of working days to the system date excluding the weekend days.i.e I need to add 10 working days to the system date.
    Any help is appreciated...........
    Thanks,
    Sudhaaaaaaaa........

    Do like this:
    DATA: it_psp TYPE STANDARD TABLE OF ptpsp WITH HEADER LINE,
          wrk_days type i.
    CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'  "get EE working days
        EXPORTING
          pernr = "EE number here
          begda = "start date in your case sy-datum
          endda = "end date in your case sy-datum+10
        TABLES
          perws = it_psp.  "now you will get work schedule within this period but more general
      "you have to take only days you are interested in
      wrk_days = 0.
      LOOP AT it_psp WHERE datum BETWEEN sy-datum AND sy-datum+10
                     AND tagty = 0      "work/paid
                     AND stdaz <> 0.   "working hours
        ADD 1 TO wrk_days.  "here you have how many days are really working ones between sy-datum and 10 days later
      ENDLOOP.

Maybe you are looking for

  • Hi, I have a Mac Book pro but my user profile is corrupt. I want to delete the profile but transfer all my documents to a new profile

    Hi I have a Mac Book Pro My Mac Account/User Profile is playing up with some programs (they fail to open etc) I've created a new profile and all work OK I need to remove my old profile but still access my Itunes and documents etc

  • Error - TDS (TDS Upgrade Utility)

    Hi All, While running TDS Upgrade Utility following error had been occur 1) Outgoing Payments TDS] Primary Key not exist in DB: row.657  2)Withholding Tax Rates] Primary Key not exist in DB: row.2    3)[Outgoing Payments TDS Amounts] Value in excel s

  • Action Extension - Dynamic redirect

    Hi, I need to have an authorization policy on Access Manager that perform a redirect to an url that changes based on user information. I have taken a look to the Novell Access Manager Developer Kit. Anyway, it looks like I can only define permit and

  • 802.1x support for windows 98

    Hi, Just want to know if there is an offical service pack from microsoft supports 802.1x for Windows 98 ? Is there other 802.1x client software that supports windows 98 client ?

  • Can't install PI_BASIS 2006_1_700 Patch 1~9

    Dear consultant,   I have installed PI_BASIS 2006_1_700(51032426) using SAINT and I want to install SP 1~9(KIPYM01). I uncompress all car files, but can't select it via SPAM->PI_BASIS. What happen?