Create Char. Number of week

hi,
I need to create a new char., named "Number of week". Number of week means, that it has the values: 1, 2, 3, 4 and 5.and from 0CALDAY it should display which week of the month it is. if it is 2008-10-10, then this record should be assigned to 2 week.
1 week: 1 - 7day;
2 week: 8 - 14day;
3 week: 15 - 21day;
4 week: 22 - 28day;
5 week: 29 - 31day.
how to create this characteristic? thanks

Hi Andrius
  U can use time characteristic  /BI0/OICALWEEK - calweek and
   U can use this function module u will pass the calday as input and u will get week as output
      data : l_calday type /bi0/calday.
        l_calday = <source_fields>-/bi0/calday.
        call function 'DATE_GET_WEEK'
                exporting
                date = l_calday
                importing
                week = RESULT
                exceptions
                date_invalid = 1
                others = 2.
Regards
vamsi

Similar Messages

  • How to calculate Number of weeks in Year ?? urgent

    hi gurus,
    i have to calculate the number of weeks in year. could you please suggest me is there any function module for that or do we need to create variable to get the number of weeks?
    regards

    Get some pointers frm
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/help-on-function-day_get_week-1067350
    Re: printing calender
    Calculating the number of days of a year including leap year
    Re: How to calculate No.of Weeks?

  • Number of weekly working hours 48 exceeded error in Planned Working Time

    Hi,
    I have a group of employees called labors who work all 7 days a week, 10 hours a day so I have created the work schedule accordingly. When I maintain the Planned Working Time infotype, the system gives a warning message "Number of weekly working hours 48 exceeded". In table T77S0, value of PERCK is set to D & DAYWK is set to 700. Please guide me to solve the problem

    Hi,
    VJ for which country are you implementing this? Some countries have regulations that a person's working time may not exceed XX hours.
    cheers
    Ajay

  • Differentiate between Char & number in Varchar2

    Hey All,
    I have Primary key in varchar2 and user entered Bank code sometime like CLR002, and some time BDRNN01, Now they want to make it auto number or Code, I tell them if they fix it from they beginning first 3 char for Code and last 3 for unique number then its easy for me to make it auto number or code.
    Now I want know there is any Fuction avaliable that can differentiate between char & number in Varchar2 datatype?
    Or any suggestion to solve this problem?
    Thanks

    e.g., your existing table is banking(bcode varcarch2(15),other_column...), then you back up it first as banking_bk, then add a new table banking(bankid number(6),bcode varcarch2(15),other_column...), then create a sequence number for it and FOR EACH ROW table trigger to auto-populate that column when INSERTING with that sequence number.
    Then do inserting, then you get the old and new CODE mapping:
    insert into banking(bcode varcarch2(15),other_column...)
    select * from banking_bk;

  • Is it possible to change the number of weeks to be displayed in the month view in calendar (mavericks)?

    I'd like to know if it's possible to change the number of weeks to be displayed in the month view in calendar? Thanks!

    No.
    There are up to six calendar weeks that might be used to display the 31 possible days in a month.
    So the month view displays six weeks.

  • Interval 01 was not created for number range object HRTEM_REFN

    Dear expert!
    Now, I'm getting some issues in Training and event management module.
    - The first, I created business event
    - Second, I process to book for business event by tcode: PSV1 --> book --> book/payment info --> activity allocation.
    But when I was booking, the system displayed error: "Interval 01 was not created for number range object HRTEM_REFN"
    Help me, please!
    Best regards, Huy!

    Go to the customization as below
    Training and event mgt>Basic settings>Number range maintanence>Define number ranges for External operation
    and maintain number ranges as 01 Internal
    Hope ur problem will solve
    with regards
    partha

  • Outlook 2010 Calendar - Number of weeks displayed in Month view

    Is there any way to change the default number of weeks (6) that are displayed in the Month view?  On wide screens it leaves very few lines able to be viewed per day.  I know I can change the number temporarily by highlighting the number
    of weeks I want in the smaller month view in the To-Do Bar, but that view doesn't persist.  I also know that I can minimize the ribbon.
    I my old Outlook 2003 the default was 5 weeks which was at least a bit better.

    The real answer is given: No, this is not configurable as it depends on how many weeks a month spans; rarely this is 4 weeks, most often this is 5 weeks, sometimes this is 6 weeks. It is called the "'Month" view, not the "4-weeks view" or anything like
    that.
    Your feature request is of course valid and to submit it as such, it is best to contact Microsoft Support by phone. You may need to provide credit card information to open a case but it of course won't be charged for a feature request. You'll get a reference
    ID so you can track the status of your request.
    You may want to refine your request with a business case as well and give a clear example of what you want it to look like and what exactly should be configurable.
    For instance, the default Multi-Week View should show; last week, this week and the next 2 weeks.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • HOW TO CREATE EXTERNAL NUMBER RANGE IN OM

    HI ALL
    HOW TO CREATE EXTERNAL NUMBER RANGE IN OM
    PLEASE GIVE ME SPOON FEEDING
    IT IS VERY URGENT FOR ME
    PLEASE PLEASE AND PLEASE
    REGARDS

    ok i understood u want the img path for maintaing
    positions ,jobs , Org units
    Path:IMG->Personnel Mgmt->OM->Basic Setting->Maintain Number ranges.
    IMG go to Personnel Management -> Organizational Management -> Basic Settings
    -> Maintain Number Ranges.
    Select subgroup $$O to maintain number range for Org Unit and click on Number range Maintenance. Then click on change Intervals. Now you can create both internal and external number range for Org Unit according to your requirement.
    Similarly for Position select subgroup $$S and follow the same process.
    Edited by: Sikindar on Feb 7, 2008 11:23 AM
    Edited by: Sikindar on Feb 7, 2008 11:28 AM

  • Create Sequence Number with Select Query

    Hi All,
    I would like to create a sequence number in oracle but instead of hard coding the "start with" I want to select the max value of the primary key of a table and add 1 and use this instead:
    So what I want is:
    CREATE SEQUENCE crg_mrec_seq
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    START WITH select max(primarykey)+1 from table1
    INCREMENT BY 1
    CACHE 20;I'm guessing I need to pass this max value as a variable into the create sequence number but I'm not sure what syntax to use.
    Thanks,
    Ed

    spalato76 wrote:
    Hi All,
    I would like to create a sequence number in oracle but instead of hard coding the "start with" I want to select the max value of the primary key of a table and add 1 and use this instead:
    So what I want is:
    CREATE SEQUENCE crg_mrec_seq
    MINVALUE 1
    MAXVALUE 999999999999999999999999999
    START WITH select max(primarykey)+1 from table1
    INCREMENT BY 1
    CACHE 20;I'm guessing I need to pass this max value as a variable into the create sequence number but I'm not sure what syntax to use.
    Thanks,
    Edconstruct SQL statement & then EXECUTE IMMEDIATE

  • Create document number range 22 using internal number assignment

    Hi friends,
    now i am working upgradation project from 4.7 to 6.0. sandbox i created one Asset, After that i posed amount to that asset by using f-90.now i run depreceation in ABAF T code the bellow issue is comming
    Create document number range 22 using internal number assignment
         Message no. AA776
    Diagnosis
         Processing terminated because the document number range 22 for year 2011
         was set up with external number assignment.
    System Response
         For periodic posting of depreciation, you have to create a document
         number range with internal number assignment, since the document numbers
         are assigned from Financial Accounting.
    Procedure
         Change the number assignment for the number range 22 from external to
         internal in Customizing for Asset Accounting. See SAP Note 890976 for
         more information.
    But no ranges for that particular year having, if any changing that one it s not come edit or deleating
    ple any one help me
    Regards
    Gangadhar reddy

    Hi Gangadhar,
    after 4.6C the Internal Number Range was changed into external Number Range due to technical requirements.                                                                               
    As the error messages due to posting manual into the affected  number ranges could not be hindered in this case with ERP2005 the desicion was made to rechange to internal number range. Note 890976 describe what to do here.                             
    regards Bernhard

  • How to use SNRO to create daily number range?

    Dear all,
    I would like to know how to use SNRO to create a daily number range.
    We would like to have the following sequence. The first 8 digits are date and the last 2 digits are number sequence. Each day, the last 2 digits will start from 01 again. i.e. <8-digits date><2-digit sequence>
    For example, today is 22 May 2006,
    2006052201
    2006052202
    2006052203
    Tomorrow will have sequence like this:
    2006052301
    2006052302
    2006052303
    Thanks!

    Thomas,
    I don't there is a automated way of doing as the dates do NOT follow a numbering sequence. What you can do is to create a number range for getting the last two digits every day and manually concatenate the date with the serial number.
    However, as you have to reset the counter every day that might be a issue.
    Regards,
    Ravi

  • Default latest created PO Number in the screen

    Hi,
    I have one Z program developed for PO print.
    It is very much similar to standard ME9F transaction / program.
    In ME9F transaction, as soon as we execute a transaction. The latest created PO number will appear onthe PO document filed.
    The same is expected to do in Z developed print transaction.
    Becaz it won't display newly / latest created document number.
    Any one helps me how to make a field with the default value of newly  created PO document number.
    Your help is appreciated and Awarded suitably for helpful answers.
    Thanks in advance.
    Giri

    Try this:
    REPORT ztest LINE-SIZE 80 MESSAGE-ID 00.
    PARAMETER: p_ebeln LIKE ekpo-ebeln MEMORY ID bes.
    Rob

  • Steps to create a Number Range.

    Can anyone please send me the steps to create a Number Range..Thanks in Advance

    Hi,
    1) Goto Tcode SNRO
    2) select ur concerned OBJECT there.
    3) Click on Number Ranges Push Button.
    4) then click on Display Interval Button over there.
    *****************************************************Other code
    Create number range object using OYSN.
    Then call the following function modules.
    FORM get_next_id CHANGING p_discrep.
      DATA: last_id LIKE zrecaudit-discrep,
            quant   LIKE inri-quantity,    "dummy
            code    LIKE inri-returncode.  "returncode
      CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
           EXPORTING
                object           = 'ZRECAUDIT'
           EXCEPTIONS
                foreign_lock     = 1
                object_not_found = 2
                system_failure   = 3
                OTHERS           = 4.
      IF sy-subrc = 0.
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
                  nr_range_nr             = '01'
                  object                  = 'ZRECAUDIT'
             IMPORTING
                  number                  = last_id
                  quantity                = quant
                  returncode              = code
             EXCEPTIONS
                  interval_not_found      = 1
                  number_range_not_intern = 2
                  object_not_found        = 3
                  quantity_is_0           = 4
                  quantity_is_not_1       = 5
                  interval_overflow       = 6
                  buffer_overflow         = 7
                  OTHERS                  = 8.
        CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
             EXPORTING
                  object           = 'ZRECAUDIT'
             EXCEPTIONS
                  object_not_found = 1
                  OTHERS           = 2.
      ENDIF.
    ENDFORM.                    " get_next_id
    Don't forget to reward if useful..

  • Error when creating a Number Range

    When I use transaction ZNRO to create a number range, I get an error message:
    "Invalid call sequence for interfaces when recording changes".
    All I did was enter the text and a domain for the numbers.   There was an earlier error regarding buffering.  It said that I should not use buffering for accounting documents.   I am not using this for accounting documents and do not care if numbers get skipped.  So I continue through that error. 
    But after that, the "Invalid call sequence . . ." error pops up.
    I searched this forum generally, and with portions of the error text, and do not find any discussion of problems creating number ranges.
    The number range I'm created is very simple.  I just need "one up" numbers for a custom database used to store custom schedule information.
    I'm at release 4.6c.

    Here is the error message and text.
    I have no idea what it means by "interfaces".
    When at release 3.1i, I had no trouble creating number ranges.
    <b>Message no. TK 425
    Diagnosis
    The function you selected uses interfaces to record changes made to your objects in requests and tasks.
    Before you save the changes, a check needs to be carried out to establish whether the objects may be changed. This check must be performed before you begin to make changes.
    System Response
    The function terminates.
    Procedure
    The function you have used must correct the two Transport Organizer interfaces required. Contact your system administrator.</b>

  • How to create  personal number

    Hello everybody  ,
    please tell  how to create  personal  number in  Tcode :-  PA40  please mention the steps

    hi sandeep,
    do the followings
    1.) go to PA40 check the customization ,,,if exists...then personal no will automatically be generated.
    2.)otherwise....go to PA40 ..it will have some screens ...fill the mandatory fields.....save it and personel no. will automatically geanerated
    thnxs n regards
    sachin
    njoy life

Maybe you are looking for

  • Printing from webdynpro

    Hi All, In my webdynpro I have 2 buttons PREVIEW and PRINT. With PREVIEW button click Iu2019m able to open my custom built adobe form in a separate window. Working fine and no issues here. With PRINT button click, I have to send the same form directl

  • Mac Pro Reboot or Restart Problems

    I have a Mac Pro G5 that's about 3 months old and whenever I do a reboot (either from the Apple menu or ControlAppleDelete), the MacPro immediately goes to a black screen and sounds began to emunate from the drive area like it's trying to catch. The

  • Goods movement failures.

    Dear Freinds, All my movements are getting failed during the goods movement through CO11N transaction (movements w.r.t production order). These are appearing in transaction COGI. It is giving the error saying that "No stock posting possible for this

  • 3G crashing every week.  I lose the external mic

    Thanks for taking time to read this My first 3G iphone was great, it worked wonderfully till 18 months, then the home button wore out. I have received 2 replacements since that time and both of them of them lose the external mic for the telephone. It

  • Question about getURL working with html frame

    My page has two parts, the left part is the "link" part, and the right part shows what it links. It's name is "right". usually, i just use <a href="newpage.htm" target="right">link</a>. Now, I use the left part as Flash. As you know in Flash, getURL(