Urgent ---calculate version  from the current week number

hi,
     i have an requrenment to modify the charasteric routines
  i have xxx table with parameter i have to read this paramater n  if this parameter contains value 'D' then calculate version(eg:- A00,A01 ...) from the current week number.
pls advice me which FM i have to call or provide me with some sample codeing.
points wil be rewarded
ravi

There is a FM "WEEKNR_GET".
This will give you the week no. You need to read the param value from the table that you mentioned and call this FM and updat the version.
You will need a ABAP person to do this.
Ravi Thothadri

Similar Messages

  • DATE FROM THE GIVEN WEEK NUMBER AND YEAR

    hi to all
    With weeknr, yearnr  i need to find STARTDATE  (first day of the week), ENDDATE (last day of the week) The first day of the week is always a Monday.
    example 44 2007
    week nr is 44
    year is 2007
    how to find it.
    is there any standard function module to find.
    regards
    prathap

    hi prathap,
    WEEK_GET_FIRST_DAY For a given week (YYYYMM format), this function returns the date of the Monday of that week.
    try using this function module...
    some other function modules may be helpful...
    DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
    DATE_GET_WEEK will return the week that a date is in.
    DATE_IN_FUTURE Calculate a date N days in the future.
    DAY_ATTRIBUTES_GET Return useful information about a day. Will tell you the day of the week as a word (Tuesday), the day of the week (2 would be Tuedsay), whether the day is a holiday, and more.
    reward if helpful
    regards,
    sravanthi.

  • Get the current week and subtract 12 weeks

    Hi Experts,
    Am getting the system current date and getting the current week using the FM->GET_WEEK_INFO_BASED_ON_DATE. Again I want to subtract 12 weeks including the current week. But still confused with the logic.
    Also I came to know that I can use FM->DATE_GET_WEEK and can subtract 12 weeks from it.
    So please advice how can I proceed further and how can I get the weeks that should be lesser than the 12weeks from the current week.
    Waiting for your valuable ideas.:)
    Thanks and Regards,
    Ramakrishnan M

    Try this one:
    DATA: week      TYPE numc1,
             days      TYPE t5a4a-dlydy,
             date      TYPE p0001-begda,
             months    TYPE t5a4a-dlymo,
             years     TYPE t5a4a-dlyyr.
    CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
         EXPORTING
           date      = s_ord_dt-low
           days      = days
           months    = months
           signum    = '+'
           years     = years
         IMPORTING
           calc_date = date.

  • Week Number of the current week...URGENT

    hi gurus,
    I want to calculate the week number of the current week as per Fiscal year.
    What variable or the Customer Exit code needs to be written for it?
    regards

    Hi Venu,
       Use the code below. I assume that the client is US based where the Fiscal Year starts 1st October every year.  Just in case the fiscal year starts in some other month then adjust the code (if SY-DATUM+4(2) >= 10.) below. Hope this helps.
    DATA: PFY(8)   TYPE C.
    DATA: CFY(4)   TYPE C.
    DATA: LFY      TYPE I.
    DATA: FYD      TYPE I.
    DATA: TWD      TYPE I.
    DATA: RES      TYPE I.
    if SY-DATUM+4(2) >= 10.
      concatenate SY-DATUM+0(6)
                  '01'
             into PFY.
    else.
      LFY = SY-DATUM+0(4).
      LFY = LFY - 1.
      CFY = LFY.
      concatenate CFY
                  SY-DATUM+4(2)
                  '01'
             into PFY. 
    endif.
    FYD = P_FY.
    TWD = SY-DATUM.
    RES = ( TWD - FYD ) / 7.
    Write: Res.

  • How to get the current week from sysdate?

    Hi sir,
    i want to know how to get the current week from sysdate?
    thanks

    Hi Nicolas
    It seems you like to check my post and also make commend ;) thanks for your attention
    Have you ever read the posts above and given solutions ?Yes, I did
    Have you read the docs ? Yes, I checked
    What's the added value here ?Did youYou shared doc with solution(long one), I shared short one which point same solution(Check what Joel posted)..So what is benefit, As you can guess oracle docs are sometimes become so complicated as specialy for beginner...(At least it was like that for me and Belive me somedocs are still sooo complicated even for oracle coworkers ) But for you I dont know ;)
    => Why writting the PS in bold ?Why.. Let me think... Ohh Maybe I am looking some questions(many) and even user get answer they should not changed status so I am reading some posts and try to get problem and loosing time..
    So I am putting that PS wiht BOLD because I dont wanna lose time my friend ;) Because While I am trying to help ppl here In same time I am trying to giving support to my customer prod systems. Which mean time is very important for me...
    Hope my answer could satisfy you..
    One important PS for you.. You may not like my posts (or someone) but my friend I become tired to read&answer and make commend to on your comment which is about my posts.
    I am not newbie in forum(At least I fell like that) and I belive I know how I should make post..
    Thank you
    Regards
    Helios

  • Calculate previous Sunday from the current day

    Hi Gurus,
    Can anybody tell what is the name of the function module which caluclates the previous Sunday from the Current system date. or any other idea how to calculate previous sunday from the current system date in Query.
    Thanks
    Liza

    Hello,
    See my previous thread to you for a similar Re: Find out previous Monday based on 0CALDAY
    Thanks
    Chandran

  • CALCULATE 6 MINS FROM THE CURRENT SYSTEM TIME....................?

    Hi
    I want to subtract few mins (say 5 min , 10 min ,15 mins , max to 55 mins) from the current system time,
    ex-current time 00:40:00
    Subtract 5 mins(means 5 mins backward)
    Final time 00:35:00
    ex-current time 01:20:00
    Subtract 30 mins(means 30 mins backward)
    Final time 00:50:00
    Pls help me with this with a appropriate logic or FM..
    Thanks a lot in advance
    Basic Date and Time questions are not allowed. They have been answered umpteen times. Please search for them.
    Edited by: kishan P on Sep 1, 2010 12:05 PM
    Edited by: Matt on Sep 1, 2010 9:01 AM - And please do not post in ALL CAPITALS

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • CALCULATE 6 HOURS FROM THE CURRENT SYSTEM TIME....................?

    hi
    good
    i want to subtract 6 hours from the current system time,
    ex-current time 17.07
    Subtract 6 hours(means 6 hours backward)
    Final time 11.07
    Pls help me with this with a appropriate logic.
    Thanks a lot in advance
    mrutyun^

    May be you can do something like this!
    data: l_time like sy-uzeit.
    data: l_time1 like sy-uzeit value '06'. "6 hrs to be deducted from system time
    move sy-uzeit to l_time. "this is system time
    "write l_time.
    "write:/ l_time1.
    SUBTRACT l_time1 from l_time.
    write:/ l_time. "This is 6 hrs behind system time
    Rajasekhar

  • I have a ipod classic 5th gen 30gb, if i download a movie or song from the current itunes i use with my ipod touch will it play? or do i have to get another type of itunes, if so which one?

    i have windows 7 and a2nd gen ipod touch and i just aquired an ipod classic which is a 5th gen from 2005 with a 30 gb capacity. can i download a video movie or episode and songs from the current itunes i use for my ipod touch or is there a different one i should use? please help.

    You can plug the iPod into the same iTunes library as your iPod Touch and sync whatever content you like to it. There is no limilt to the number of iPads, iPhones, or iPods you can sync with one iTunes library, account, or computer.  How you sync one device will not affect the syncing preferences of the other.
    B-rock

  • Addition of a new field "Leave Details" in the LTA screen with dropdown val-ues from Infotype 2001 subtype ITEL. From the current calendar year in ESS

    Hi Experts,
    we are using portal 7.3 version,Our requirement  is addition
    of a new field “Leave Details” in the LTA screen with dropdown values from Infotype
    2001 subtype ITEL. From the current calendar year in ESS.The new field should
    be available only for the claim type LTA claim or claim against advance.
    please find the below screen shot and details.
    Current View
    Component: HRESS_CLMS_WD_EMCR
    Personalization: 4370750342A6297CC184E2B07FE6D13E
    Window: W_CLM_DYN_UI
    View: V_CLMS_DETAIL
    Application Component: PY-XX-RS
    Kindly help me how to add this field and in which method can i implement code.
    Thank you in advance
    Regards,
    Vanitha

    Hi Shankar Reddy,
    Business requirement is  the new field  should display the list entry in Infotype 2001 for the calendar year as selection option for employee. they would like to know ITEL subtype claim,
    Example.employee no: EE#9941
    As per screen shot you may see for EE#9941 there are 2 Leave requests.
    So in the leave details the selection drop down menu option or any other way  should be display 2 lines.
    Regards,
    Vanitha

  • Why did apple remove the superdrive from the current mac mini model?

    Also why does the standalone superdrive (USD $79) ONLY work with server version of the current Mac Mini?  Does not make sense.  Was just thinking of buying a mac mini when they changed the line about 2 months ago.  I still use DVD's and CD's as I am sure a lot of people out there still do.
    It has made me rethink the purchase of the current mac mini - since the standalone superdrive only works with the server version.  I wanted to purchase the 2.3Ghz - 500 GB version - but if that does not work with the superdrive - then no good for me.
    The Intel core 2 core duo was the one I wanted and it was perfect for me - but the day I went to purchase was the day the new version was announced - apple is not even offering refurbished one of this model (I have looked at that area of www.apple.com) and everywhere I look on ebay for this version - people are selling them for so much more.  I wanted to buy this new from apple.
    Getting rid of the drive was not the best idea just yet - CD's and DVD's are still so ubiquitious.
    Anyone have any other suggestions on how to get my hands on a brand new Intel core 2 duo from apple? 
    I already have an Imac and a Macbook Pro already wanted to add to my apple collection.

    The description:
    External SuperDrive
    Compact and convenient, the external MacBook Air SuperDrive connects to your Mac mini with a single USB cable. It lets you install new software and play and burn both CDs and DVDs, including double-layer DVDs.
    Everything you need in an optical drive.
    You can play and burn both CDs and DVDs with the MacBook Air SuperDrive connected to your Mac mini. It's perfect when you want to watch a DVD movie, install software, create backup discs, and more.
    The essence of simplicity.
    You'll never have to worry about lost cables with the MacBook Air SuperDrive. There’s no power adapter, and it connects to your Mac mini with a single USB cable that's built into the SuperDrive.
    Technical Details
    Slot-loading 8x SuperDrive (DVD±R DL/DVD±RW/CD-RW)
    Writes DVD+R DL and DVD-R DL discs at up to 4x speed
    Writes DVD-R and DVD+R discs at up to 8x speed
    Writes DVD-RW at up to 6x speed and DVD+RW discs at up to 8x speed
    Reads DVDs at up to 8x speed
    Writes CD-R discs at up to 24x speed
    Writes CD-RW discs at up to 16x speed
    Reads CDs at up to 24x speed
    I don't see where this says it only works with OS X Server.

  • I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have be

    I am running XP SP2 fully patched. I recently upgraded to 3.6.3 and since then, clicking on an icon that normally would open another windows (for example, a printer-friendly version of the current web page), nothing happens. In these situations, I have been forced to go to IE or Crome in order to accomplish what I need to do. Very frustrating. Also clicking in the slider area has no effect. "Page Up" and "Page Down" keys work. Holding down left mouse button on slider works. Also very frustrating. Can someone help
    == This happened ==
    A few times a week
    == Upgraded to 3.6.3.

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • Read the Current BP number before saving

    HI Experts,
    From the Identification tab iam creating the BP by entering all the mandatory fields and then i click on END button instead of "Save" so on this END button event i want to read the current BP which is not yet saved in the database.
    Iam writting the logic of END button in the IF_CRM_IC_PREPARE_FOR_CALLBACK~EXECUTE method of the Main View set(IUICMD/MainVS).
    data: zv_core    TYPE REF TO cl_crm_bol_core,
             zv_entity TYPE REF TO cl_crm_bol_entity_manager,
             zv_core = cl_crm_bol_core=>get_instance( ).
             CALL METHOD zv_core->get_entity_manager
               RECEIVING
                   rv_result = zv_entity.
    In Debug mode when i check the ZV_ENTITY in that there is one Private Attribute ENTITY_TAB of type Sorted Table where i can see 3 entries with OBJECT_NAME as "BuilHeader","BuilContactPerson", "BuilStandardAddress" when i check the Entity reference of ""BuilHeader" iam getting the current BP number. But how to read this entity iam not getting this.???
    I tried the below way..
    LOOP AT zv_entity->entity_tab ASSIGNING <itab>.
    ENDLOOP.
    But it says that "Access to private attribute "ENTITY_TAB" is not allowed."..
    Regards.

    Hi Hemant,
    As you are implementing your method in overview set , try to access the view controller where the BP ID is created by rereading the entity.
    DATA: lv_viewname TYPE string,
            lr_viewctrl TYPE REF TO cl_bsp_wd_view_controller.
      lv_viewname = me->get_viewarea_content( '<View Area of your view>' ).                            
      IF lv_viewname IS NOT INITIAL.
        lr_viewctrl = me->get_subcontroller_by_viewname( lv_viewname ).
        IF lr_viewctrl IS BOUND.
          TRY.
              CALL METHOD lr_viewctrl->('<method_name>')   .
               CATCH cx_sy_dyn_call_error.
              RETURN.
          ENDTRY.
        ENDIF.
      ENDIF.
    Regards,
    Nithish
    Edited by: nithish P on Feb 7, 2012 2:32 PM

  • Get week ending date from Year and Week Number

    I would like to display the week ending date in a Report.
    My dataset query has grouped the results by year and week number, so I am trying to construct the week ending date from year and week number.

    Week end date can be got as below
    =DateAdd(DateInterval.WeekOfYear,CInt(Fields!WeekNumber.Value) -1,DateAdd(DateInterval.Year,(Cint(Fields!Year.Value) - 1900),CInt("12/31/1899")))
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Exclude a version from the calculation

    Hello,
    In our model we have a version used uniquely to upload data. When the system starts to calculate, it includes this version.  We have tried to lock the version,but it still included in the calculation.
    We would like to know if is possible to exclude this version from the calculation in order to optimize the calculation.
    Thanks in advance,
    Best regards

    First of all, thanks for your responses.
    We would like to develop option 1 from Michaels' solutions, because we have too much LineItems (about 2000) for the option two. So we think, option 1 will be easier.
    The version we are going to exclude is "Initial Charge". Are you suggesting we should make next rule?
           Function CellValue
              RestrictDimension("Versions","Initial Charge")
              CellValue=0
          End Function
    In case of  excluding a single period from that version, next rule would be correct?
          Function CellValue
             RestrictDimension("Versions","Initial Charge")
             RestrictDimension("Periods","January")
             CellValue=0
          End Function
    Thanks again
    Best regards!

Maybe you are looking for

  • Having trouble setting up osx 10.5.8 as ftp server

    I would like to set up my macpro to act an ftp server, I have activated file sharing via ftp What I don;t understand are the accounts. My public folder has been listed as a shared folder, file sharing is on (green dot) and in the options bit I have e

  • Print PO after release

    Hello Gurus, I have a requirement that i will create the PO but i would like to have print when i release the same. Please let me know how to do settings for the same. regards suresh

  • My blue tooth keyboard will not connect to my computer

    Hi evey body, I have just got a new Blue Tooth Keyboard and Mouse. but I have a problem, the mouse connect to my iBook and works fine, But the Keyboard will not work, I am using the Bluetooth setup assistant,I have Follow the instructions and I get t

  • Panasonic Plasma TV - HDMI Audio Noise

    Hi Everyone, I've just bought a iwire minidisplay port to HDMI cable (wonderful I got to say), but somthing strange happens when I connect my MBP13"MI2010 to the TV. The TV is a Panasonic - TX-PF46G20S. When I'm browsing in finder for some seconds, a

  • JButton wont resize - Question not Problem

    Hi, I'm wondering if you can give me the reason behind this behaviour. If you add a button to a panel, then call setSize(), the button doesn't resize itself on the panel. I've tried setting the setPreferredSize method as well, but the button always s