How to find No. of Saturdays,Sundays in Specified Dates?

Hello Gurus,
I have scenario where in user will provide me Two dates for instance say 1-Jan-2003 to 1-Jan-2004, Now I want to find out what are the dates in this specified range which has Sundays & Saturdays ?
Is it possible to do it in Simple SQL query or Do you have any PL/SQL code(Implemented in Forms) which provides a solution to my given problem?
Thanx in advance,
Pritam.

sabre150 wrote:
Use String.replaceAll() to replace any characters that are not numeric and then take the length of the resultant String....and this might be useful: [http://www.regular-expressions.info/]
;-)

Similar Messages

  • How to find the datasource of the planned ship date

    Hi All,
    how to find the datasource of the planned ship date in shipping history report , whether we go for enhancement or we can get from SAP Std. pls help me on step by step process.
    Thanks and Regards
    malempati

    Hi Govardhan,
    The best place to start looking for the standard data source will be http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm .
    If you can not find anything, from the source table, find if the table is included in any of the structures/views for BW. Hope this helps.
    Thanks and Regards
    Subray Hegde

  • How to find from which table we got the data

    Hi friends ,
    How can we find from which table we r getting data in the datasource.
    I am getting data from crm system.based on that we created cubes and dsos.
    we have only one datasource.now i need to know from which table we pull the data?
    can any one give the procedure
    Thanks in advance........
    sridath

    Hi,
    Datasource / tables in the source system
    Go to RSA2 (DS Repository) in your source system and display your source system.
    If Extraction Method is 'V' - you are lucky and you see table name where data is taken from.
    If it is F* - function module is used, and you have to go thru its code to see all the tables it uses and logic how data is
    processed.
    Ext. Meth   Short text                                                                               
    V                 Transparent Table or DB View                
    D                  Fixed Domain Value                          
    F1                Function Module (Complete Interface)        
    F2                Function Module (Simple Interface)          
    Q                 Extraction Using ABAP Query                 
    A                 DataSource Append                           
    OR
    Since you have the extract structure and the extractor, you must have some transaction like the Extractor Checker RSA3. If so
    then execute ST05, switch on the trace and execute the extractor checker. Once the extractor checker presents the results
    switch off trace. The clcik on Display trace and you will see all the tables that were hit by the extractor checker to
    retrieve data and present it to you.
    Hope this helps.
    Thanks,
    JituK

  • How to find out last month's 1st & last date

    could you please tell me how can I find out last month's 1st & last date?
    regards

    Here is one way:
    SQL> SELECT  ADD_MONTHS
      2          ( TRUNC(SYSDATE,'MONTH')
      3          , -1
      4          )                                    AS FIRST_OF_MONTH
      5  ,       TRUNC(SYSDATE,'MONTH') - 1           AS LAST_OF_MONTH
      6  FROM    DUAL
      7  /
    FIRST_OF_MONTH      LAST_OF_MONTH
    05/01/2010 00:00:00 05/31/2010 00:00:00

  • How to find the buffer around a single polygon data..

    hi ,
    this query about oracle spatial...
    please tell me how to create a buffer around a single polygon data.. by passing single polygon co-ordinates as a
    parameter..
    ex: for a point the following works..
    select * from TEMIS where SDO_INSIDE(TEMIS.GEOMETRY ,SDO_GEOM.SDO_BUFFER(SDO_GEOMETRY(2001,32643 ,SDO_POINT_TYPE(70.21931,10.32379,NULL),NULL,NULL),10,0.00000005,'UNIT=KM') )='TRUE'
    i want it for a plygon data
    iam using oracle 11g version
    Edited by: user13340372 on Jun 29, 2010 11:15 PM

    Hi,
    There is an excellent book which can be bought from Amazon. The following link show some content. Have a look at Chapter 9 on page 305 for discussion of BUFFER and polygons.
    http://books.google.com/books?id=-ZDAcf-h3VgC&printsec=frontcover&source=gbs_ge_summary_r&cad=0#v=onepage&q&f=false
    This code details a polygon:
    MDSYS.SDO_GEOMETRY(
    2003, -- 2-dimensional polygon
    81989,
    NULL,
    MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1),
    MDSYS.SDO_ORDINATE_ARRAY(100000,100000, 200000,100000, 200000,200000, 100000,200000, 100000,100000)
    Regards,
    Ivan

  • How to find the info packages which have periodic data selections?

    Hi,
    is there any way we can find the list of infopackages that have data selection enabled only on time? ( say calendar day )
    if not, is there anyway to find the list of infopackages which has data selection?
    Thanks,
    Ravi

    Hi Ravi,
    what do you mean exactly?
    if you are in SE16 or SE11 in the selection screen, you can enable these fields for the selection via menu Setting / fields for selection; then mark FIELDNAME and IOBJNM.
    then enter OBJVERS = 'A'
    and e.g. IOBJNM = 0CALDAY
    or double click in the input box of IOBJNM and select "not equal to" and leave the input box empty in order to see all IPack with a selection on any IObj.
    hope this helps otherwise pls let me know
    Olivier.

  • How to find the Rejected quantity in the Itemmaster data-- Inventory Tab

    Hi Experts,
    I want to find the Rejected quantity value when iam raising a production order->issue>and Receipt.
                         In the Receipt from production, if iam giving 10 qty as rejected the value must get displayed in the inventory tab of item master.
                         I have created a UDF called Rejectedqty in the inventory tab, but how to import that rejected value from the receipt form to this inventory tab,the value 10 must also be subtracted from the available qty present in the inventory tab.
    This query is used for finding the available items to sell:
    SELECT T0.OnHand - T0.IsCommited FROM OITW T0 WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]
    I want the same for the Rejected Value(it must get subtracted from the Available qty).Keep me posted if solution is found out.
    Regards,
    Magesh.

    I am thinking you want to show the rejected quantity on the Parent Item in the Inventory Tab.
    Use the following SQL for showing the Net Available Qty after subtracting the rejection.
    <b>SELECT T0.OnHand - T0.IsCommited - (SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R')
    FROM OITW T0
    WHERE T0.ItemCode = $[$5.1.0] and T0.WhsCode = $[$28.1.0]</b>
    Use the following SQL to get just the rejected quantity
    <b>SELECT SUM(T1.Quantity) FROM IGN1 T1 WHERE T1.ItemCode = $[$5.1.0] AND T1.TranType = 'R'</b>
    Suda

  • How to find photos with no original or digitized date?

    I have probably 500-1000 photos that have neither Original or Digitized Date info. They are scattered all throughout my iPhoto library (30,000). They do have Modified and Imported Dates; but of course, not only do those dates differ (sometimes substantially) from when the photo was taken, iPhoto seems to use the Modified Date for sorting purposes if the Original Date isn't there. That means these "dateless" photos are way out of sequence when View, Sort Photos is set to By Date.
    What I need is some way to easily find these photos. I can't set the date search feature to a "null" value, nor can I create a smart album that filters for a null date value. If I slowly scroll through all my photos and watch the numbers carefully, I can usually see which photos have no Original Date because they're out of sequence, but with 30,000 photos, that's going to take forever.
    Does anyone know any tricks or third-party software for this?
    Thanks!

    If a file doesn't have an EXIF date then the file created/modified date is used by iPhoto. Files that have been scanned or optimized for web use fall into that category.
    The demo version ofMedia Expression can catalog an iPhoto library and then with a search for Date is after 1/1/84 you will find all files with an EXIF date. After applying a label to all found you can display all files without a label which would be your files. How you would then identify those so that they can be found in iPhoto I don't know. Any keywords you might add or other metadata would not be recognized by iPhoto unless they were reimported. If you are interested in trying that post back and I can give you a workflow. It would involve creating a new library and importing the Originals folder of the old library after you run Expression Media on it to embed the keywords (those from iPhoto and those you add to the dateless files), titles and comments to the files. It can be done but might be a bit involved.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • How to find out the formatt type of a date.

    hello iam getting the date from some content server..then iam updating the date..the problem is before update i should know the date formatt of returned date from server so that i can set that formatt to the user entered date while updation..so how can i know the date formatt of given date..
    regards,

    object dat1 ="some value";
    when i modify these date and submit back through
    connector its checking for format..
    bcos iam not sure what date formatt server have..
    i want to know can we no from dat1 about the
    format..whether this dat1 is in dd/MM/yyyy format are
    MM/dd/yyyy format..So you have a String that reprents a date? Or do you have a Date? If the latter, then, like somebody already said, there is no format.
    Assuming it's a String...
    Are dd/MM/yyyy and MM/dd/yyyy the actual formats you'll get? Let me ask you this: If somebody showed you the string (on a piece of paper) "12/05/2005" how would you know if it was Dec. 5 or 12 May?
    Answer: You wouldn't. You can't without some additional information.
    And if you can't know, then neither can Java.

  • How to find the Size of an Idoc With data

    Hi All,
    There is business case where in the partner needs an Idoc with size 200KB - 250KB  triggerd from SAP.
    Is there any chace of knowing the size of an Idoc with data before it gets tirrgerd from SAP.
    Please Help
    Thanks,
    Suma

    Hi Dinil,
    I have provided you with a sample that would show you the how you can get the size of an arraylist
    the sample has a page untitled1 and a bean named test.
    I have run in on jdev 11.1.2 and it is ok, it will be ok on 11.1.3
    after running the sample you will see the 2.
    please remember that you must add the JSTL taglib on the viewcontroller.
    just right click on viewcontroller, go to tag lib select the jstl.
    page
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
    <f:view>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>untitled1</title>
    </head>
    <body>
    <h:form>
    <h:outputText value="#{fn:length(test.a)}"/>
    </h:form>
    </body>
    </html>
    </f:view>
    bean
    import java.util.ArrayList;
    public class Test {
    public Test() {
    a= new ArrayList();
    Object o=new Object();
    a.add(o);
    a.add(o);
    ArrayList a;
    public void setA(ArrayList a) {
    this.a = a;
    public ArrayList getA() {
    return a;
    I hope this sample came handy.
    regards,

  • How to find out Invalid Materials in the transaction data.

    Hi Gurus,
    We have a requirement as mentioned below, please suggest how to achieve this.
    Requirement: A new query that will show which Transaction data records have been loaded into BI with invalid materials.
    We have an infoobject called ZEPMPROD, which contains all VALID materials. And we have a cube ZRREUC16 which have COPA transaction data. So we would need to say that if there is a transaction data Record in cube (ZRREUC16), where the material in the transaction record is not found in ZEPMPROD, or where the material is not active (ZEPMPROD- ZEPMFLAG NE u201CAu201D), then those records need to be shown in the report.
    0Material is an attribute of ZEPMPROD and 0Material is in ZRREUC16 cube also.
    Thanks,
    Bhaskar.

    Hi Jeeth,
    Thanks for the response. I have tried the steps you mentioned, report is dispalying data but there are some common entries, the entries that are present in ZEPMPROD also showing in the report. Although filter is ZEPMPROD=#.
    But we need only those Materials that are present in the cube(ZRREUC16) but not present in ZEPMPROD.
    Please suggest.
    Thanks,
    Bhaskar.

  • How to find the user terminal on a particular date

    Hi experts
    I need to know the particular user id and which terminal he has triggered tcode MIGO.I have tried with SM21 and the FM TH_USER_INFO,TH_GET_PLUGIN_INFO,TERMINAL_ID_GET,THUSRINFO all this are not giving the details. I need to know the guys terminal id where he triggered the change in good movement before five days.
    please guide
    regs
    bala

    I know - but it's like that:
    - either you have had activated the Security Audit Log at that time, then you can evaluate the Security Audit Logs at any later point of time.
    - or you have to be fast in order to evaluate the statistical records (which will be "condensed" after a short period of time)
    I'm sorry, but the system does not track all activities and store the information for a longer period of time - just for the case that someone wants to evaluate the traced data at any later time. Only if you have instructed the system to do so (-> activating the Security Audit Log) it will record the events you have decided to be of interest.
    Actually it's the same in "real life": if you have installed a surveillance camera at certain spots of interest you'll be able to evaluate the recorded data. Otherwise you have to be fast in order to be able to perform a forensic analysis (evaluating the "natural tracks" - before the rain will wash them away).
    Cheers, Wolfgang

  • How to find payroll results using includes

    hi all,
          I have a requirement to get the payroll results of number of data clusters using includes not by using function modules.
    I know by using function modules.
          How to find out the exact include for given data cluster. If there is any path please let me know.
    thanks & regards,
        sekhar.

    Hi,
    You can define macros in the program and call depending on the cluster you need.
    For Eg  for B2 cluster,
    rp-imp-c2-b2.
    before calling macros,
    You should fill the key
    move pernr  to b2-key-pernr.
      move year         to b2-key-pabrj.
      move period       to b2-key-pabrp.
      move '1'          to b2-key-cltyp.
    rp-imp-c2-b2.
    For payroll
    RP-IMP-C2-RU
    Regards,
    Manoj.

  • How to find infosource/datasource for master data.....

    i would like to know how to find the infosource/datasource for the master data in RSA1, i have looked for in infosources options to find master data infosource, say for example 0material,  0fiscalyear /0fiscperiod. i was not able to find but in the process chains the data is getting loaded into it. i could see the data going from monitor screen to the selection screen of the master data and then click on execute button and data is present.
    secondly when i have clicked on the respective infoobject i was not able to find any requests under requests tab???????

    Hi
    go to RSA1 -> Infosources ->
    Here go to top screen ...or find the control icon thru cntl +F
    here enter your infosource/infoobject name......
    Double click on the result and it will show the infosource...under that infopackage
    Assign points if useful
    Regards
    N Ganesh

  • Number of sundays between two dates

    Hii ,
    How can I get number of sundays between two dates...?
    Plz help me in this regard
    Shoaib rehman

    *& Report  ZEX1
    REPORT  zex1.
    DATA :       p_low TYPE d ,
                      p_high TYPE d .
    DATA : gv_scnt TYPE i.
    p_low  = '20100115' .                                       "feb 1
    p_high = '20100228'.
    IF p_high > p_low.
      PERFORM cal_sundays USING p_low .
      WRITE :/ gv_scnt.
    ELSE.
    *             message date combination invalid
    ENDIF.
    *&      Form  CAL_SUNDAYS
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM cal_sundays USING p_low ."changing gv_scnt.
      DATA : lv_week TYPE scal-week,
             lv_sund TYPE d,
             lv_mond TYPE d,
             lv_scnt TYPE i.
      DO .
        CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
          EXPORTING
            date   = p_low
          IMPORTING
            week   = lv_week
            monday = lv_mond
            sunday = lv_sund.
        IF p_low > p_high.
          EXIT.
        ELSE.
          gv_scnt = gv_scnt + 1.
          p_low = lv_sund + 1.
          PERFORM cal_sundays USING p_low.
        ENDIF.
      ENDDO.
    ENDFORM.                    " CAL_SUNDAYS
    Execute this and check if this meets ur case . Logic should be something like this .
    Br,
    Vijay.

Maybe you are looking for

  • How can i import more the one music title in the slideshow in Photoshop Elements?

    If i have a slideshow for about 20 minutes I want to have many music titles

  • Select From BSEG

    Hi The below mentioned piece of code is throwing a dump in Production system. Is there any way of alternate selection.   IF NOT it_pos[] IS INITIAL.     SELECT * FROM bseg INTO              TABLE it_bseg              FOR ALL ENTRIES  IN it_pos       

  • Error building Application Service because of  Web Service operator

    Hi  Guys, I have a CAF Project and I want to import a standard Web Service from a SAP Java System. I can import the Web Service, but I can't generate it. The error is, that two operations, called getProperty and setProperty, are in reserved Namespace

  • Cannot load image to an Applet

    I cannot use ImageIcon( "mylogo.jpg") because I've got this security error in the java console: ava.security.AccessControlException: access denied (java.io.FilePermission mylogo.jpg read) whay should I do ? how come there is no such problem with the

  • "Sorry, this content is not allowed" Error when trying to post a reply.

    Has anyone else seen this error lately when trying to post a reply? Just to be sure.. I remove all the formatting and just used simple text.. Still the error persists. It works for some other posts in the same forum too.! Eg.. I am unable to post a r