If I give 27 th week of 2007, can I get date range ( any FM is there ?)

In my selection screen I am giving 27 th week and year 2007,
I need to know know the date range ( monday to sunday ) for that week .
For eg. if I give <b>1st</b> week and year <b>2007</b>,
It should display 01/01/2007 to 07/01/2007 ( like DD/MM/YYYY ).
is there any function module available to know this ?

Hi sam ,
just execute the code by giving date and  see if this works for u ,,
check with input as 01/01/2007 i hope this will do ..
parameters : P_DATE LIKE SCAL-DATE.
DATA : HDATE LIKE SY-DATUM,
       LDATE LIKE SY-DATUM.
data: WEEKno  LIKE  SCAL-WEEK,
      refmonDAY  LIKE  SY-DATUM,
      REFSUNDAY  LIKE  SY-DATUM.
   CALL FUNCTION 'GET_WEEK_INFO_BASED_ON_DATE'
    EXPORTING
      DATE          = p_date
    IMPORTING
      WEEK          = weekno
      MONDAY        = refmonday
      SUNDAY        = refsunday.
      write:/ 'weeknumber', weekno, 
      write:/ 'monday' ,refmonday.
      write:/  'sunday', refsunday.
see if this works for u ..
can you can tell me ur input criteria as how u r passing the date if u r query is not completed ..
regards,
vijay

Similar Messages

  • I am a Canadian staying in England for a few weeks.  How can I get an iPhoto Book printed win England and sent as a gift to an English relative? With my account, it seems that Apple only allows for my book to be printed in Canada.

    I am a Canadian staying in England for a few weeks.  How can I get an iPhoto Book printed win England and sent as a gift to an English relative? With my account, it seems that Apple only allows for my book to be printed in Canada and then sent to my Canadian address..

    in the iPhoto preferences  change the print products country to the UK and give it a try - there may be some restirctions on billing but it has worked for some people
    LN

  • Hi there, I updated to ML about 3 weeks ago I can not get in to my apps to download it again as when it was installing the first time I decided to skip the part where it said do i want to do the iTunes and iCloud thing. any sugentions how to go back and

    Hi there, I updated to ML about 3 weeks ago I can not get in to my pps to download it again as when it was installing the first time I decided to skip the part where it said do i want to do the iTunes and iCloud thing. any suggentions how to go back and change that part or do I have to download it again.
    Thanks
    GeeRic

    To set up iCloud, open System Preferences > iCloud, and follow its steps to use iCloud

  • How can i get data from a maintance view?

    Hi all.
        Can you give me some suggestion about 'How can i get data from a maintance view?'?
         Thanks
         Best regard

    hi
    good
    go through this link
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ecdf446011d189700000e8322d00/content.htm
    thanks
    mrutyun^

  • Can we get data from business views  in CR 2008/XI?

    Hi All,
    Can we get data from business views  in CR 2008/XI?
    If its possible, pls let us know how to get connect with Business View in both of these versions and what is the tool that we have to use to create Business Views.
    Thank you,
    Krishna Pingali

    Hi Krishna,
    Crystal Reports/BusinessObjects Enterprise ( BOE ) Business Views can only be created using the BV build which comes with BOE and installed using the Work Station installer for BOE. for both XI and 2008.
    You cannot mix these two versions on the same PC not can one talk to the other, the BV designer must match the same version as BOE. XI ( version 11.0 ) is no longer available but if you mean XI R2 ( version 11.5 ) then it still is.
    It's not completely clear which Business View you are referring to? BOE has a Business View Designer so not sure if this is just a naming problem or not? If you are referring to the BOE Business View Designer then the above is true. If your reference is about some other BV designer or data source then you need to clarify.
    Contact our Sales department for pricing and availability.
    Thank you
    Don

  • Can we enter data in any standard table directly through custom form??

    Dear All,
    Can we enter data in any standard table directly through custom form??
    I have create custom form in R.12. I want to insert data in quality standard table directly through custom form. Need experts guideline.
    Awaiting regards,

    Hi,
    Can we enter data in any standard table directly through custom form??
    I have create custom form in R.12. I want to insert data in quality standard table directly through custom form. Need experts guideline.
    Awaiting regards,
    I would not recommend touching the standard tables at all unless you are being guided by the SR. For a record to be in the standard table it should go through series of validations based on the what operation you are performing and some times datas are dependent upon the other tables, and also some times the same records are hit to so many other tables simultaneously.
    Therefore I would not recommend this brother.
    Thanks &
    Best Regards,

  • Can not get data from database

    hi all,
        there is a problem ,  when i write like below :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs
                AND hkont = p_hkont.
    p_bukrs , p_hkont are all on the selection screen , and p_bukrs = 1200 another is eq blank. i can not find any data , but with the same condition i can find some data in database , when i debeg i found that p_hkont is initial.
        when i write like this :
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
              WHERE bukrs = p_bukrs .
    this time i can find the data like the database.
        so , does someone know where the problem is , why i can not get data ?
    kind regards
    kevin

    hi,
    if u r  using bukrs and hkont as parameters in selection screen then
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs = p_bukrs
    AND hkont = p_hkont.
    this will work.
    if u r using then as select-option then the above does n't work.
    bcoz select-options work as internal table bcoz of that u have use the query like this
    SELECT * FROM bsis INTO CORRESPONDING FIELDS OF TABLE it_temp
    WHERE bukrs IN p_bukrs
    AND hkont IN p_hkont.
    <REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 5:25 PM

  • How can I get Data from the Sound cart in Labview? Does a VI exist?

    How can I get Data from the Sound cart in Labview? Does a VI exist?

    Yes, there are VIs for acquiring data from Sound cards. And examples too. If you don't have LabVIEW yet, do a search on NI's site for example VIs.
    Khalid

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • How can i get data from another database SQL Server use database link from

    I have a database link from Oracle connect to SQL Server database with user cdit connect default database NorthWind.How can I get data from another database(this database in this SQL Server use this database link)?

    hi,
    u should see following documentation:
    Oracle9i Heterogeneous Connectivity Administrator's Guide
    Release 1 (9.0.1)
    Part Number A88789_01
    in it u just go to chapter no. 4 (using the gateway),,u'll find ur answer there.
    regards
    umar

  • This is a stupid question but I needed to ask because I don't want to go there and not being able to buy it, but can I get the iPhone 5 brought straight there when I go to an apple store?

    This is a stupid question but I needed to ask because I don't want to go there and not being able to buy it, but can I get the iPhone 5 brought straight there when I go to an apple store?

    And I meant go to the apple store physically without preordering it online, and I meant the Southampton one. So could I just stroll in apple store and buy a iPhone 5 in Southampton apple store and buy the iPhone 5 straight away? Because I didn't want to have to wait? I just want to go in and buy it and go out with it, if you guys get what I mean? And felipeV if it is in stock could I just buy it and leave with my iPhone 5?

  • Hello, in december 2014 a bouth photoshop elements and know, sinds i downloaded something else from adobe, i can't get on it any more, i have only a trial version and in 30 days i need to pay. How is this possibel?

    Hello, in december 2014 a bouth photoshop elements and know, sinds I downloaded something else from adobe, I can't get on it any more, I have a trial version now and in 30 days I have to pay for it. How is this possible?

    Unfortunately, only Adobe customer service can assist you with your issue. These are user forums; you are not addressing Adobe here.
    Click on the link below, and after that click on "Still need Help? Contact us."
    Then on the next page, click Chat
    There is also a phone option. 1 (800) 833-6687
    http://helpx.adobe.com/contact.html?step=PHXS_downloading-installing-setting-up_licensing- activation

  • Just started to update my phone to iSo5 when wireless connection was lost on my laptop, I can't get it back and it says there are no networks available-router is working fine, am using it on my iPhone now. Help!

    I just updated itunes and started to update my phone to iSo5 when wireless connection was lost on my laptop, I can't get it back and it says there are no networks available-router is working fine, am using it on my iPhone now. Help!

    Reboot your router. You by chance dont have a netgear N300 WNR2000 router do you? I had one of those and would lose wifi on it constantly, Switched to a Cisco wifi router and it works much better.

  • How can i get this software to install?  there are no product keys on the dvd sleeves

    how can i get this software to install?  there are no product keys on the dvd sleeves

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    *browser.download.manager.scanWhenDone = false

  • Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD TV (2004/05). I get picture fine (although only 720p), but I can't get sound. Any ideas? I have a Optical Digital Audio cable, but not su

    Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD Just hooked up my APPLE TV to my Pioneer Elite Pro 1120 HD TV (2004/05). I get picture fine (although only 720p), but I can't get sound. Any ideas? I have a Optical Digital Audio cable, but not sure where to hook up?

    how is it connected?
    if you use a hdmi to dvi converter then you only get picture and not audio because dvi don't carry audio same with vga

Maybe you are looking for

  • Trap monitor?

    I finally decided to install Leopard (successfully enough that I'm posting this from the computer I just installed it on), and got the error "Trap monitor unexpectedly quit" when the installation was done. I had walked away while it was installing, s

  • Why can't I duplicate a project?

    I have been duplicating projects in the past.  This morning that, and many other options under file are grteyed out. All the drives are connected and I can access all my eventys.  I can export the projects, edit them, etc, but not duplicate them.  I

  • Customer exit code to populate three month's fiscal period

    Dear frns, I need an ABAP customer exit code to populate three month's fiscal period. Please update on this...thanks Cheers! Shana

  • Email activation link is invalid

    hi i registered as a new user and when i click on the link in the received email i get an error that the email activation link is invalid. has anyone experienced this ?

  • Skype icon stuck on desktop

    I have tried all the tricks I know, but the alias seems only to work when the skype icon is on my desktop. If I eject it, then the alias (in my Apps folder) cannot find the app. and I have to d/l it again. I am sure there is a trick... but I am at a