Calendar problem : actualMinimum for the WEEK_OF_MONTH field

May 1st, 2006 falls on a Monday. In my country, Monday is the first day of the week. So when I get the actualMinimum for the WEEK_OF_MONTH field (the Calendar's time being set to some day within May, 2006), I expect to get '1'. However I get '0', although the 0st week of May is in fact entirelly in April. Is it the normal behaviour?

Haha! I prefer to maintain employment by making sure I'm the only one who knows how to maintain my reports.
Ok Dragon, I love a challenge...
So... If the report run date is Thursday or Friday then the report will include the current weeks data BUT the current weeks data needs to be reflected as if it belongs in the previous weeks data... Is this correct?
If so... Here Is the new selection formula:
IF DayOfWeek(CurrentDate) IN [5,6] THEN 1=1
ELSE
DateAdd("d",DateDiff("d",#1/1/1900#,IF DayOfWeek({Table.DateField}, crMonday) = 1 THEN {Table.DateField}
ELSE DateAdd("d",(1- (DayOfWeek({Table.DateField}, crMonday))), {Table.DateField})),#1/1/1900#)
<>
IF DayOfWeek(CurrentDate, crMonday) = 1 THEN CurrentDate
ELSE DateAdd("d",(1- (DayOfWeek(CurrentDate, crMonday))), CurrentDate)
And for the actual formula on the report:
IF
DateAdd("d",DateDiff("d",#1/1/1900#,IF DayOfWeek({Table.DateField}, crMonday) = 1 THEN {Table.DateField}
ELSE DateAdd("d",(1- (DayOfWeek({Table.DateField}, crMonday))), {Table.DateField})),#1/1/1900#)
=
IF DayOfWeek(CurrentDate, crMonday) = 1 THEN CurrentDate
ELSE DateAdd("d",(1- (DayOfWeek(CurrentDate, crMonday))), CurrentDate)
THEN
IF DayOfWeek({Table.DateField}-7, crMonday) = 1 THEN {Table.DateField}-7
ELSE DateAdd("d",(1- (DayOfWeek({Table.DateField}-7, crMonday))), {Table.DateField}-7)
ELSE
IF DayOfWeek({Table.DateField}, crMonday) = 1 THEN {Table.DateField}
ELSE DateAdd("d",(1- (DayOfWeek({Table.DateField}, crMonday))), {Table.DateField})
This should give you what you are looking for!
Jason

Similar Messages

  • F4 help for the screen fields in module pool program

    Hi All,
      I have a requirement that, i want to provide F4 help for the 2 fields in module pool program. the fields are document number and fiscal year from rbkp table.
    i could provide search help for two fields.
    but how to select matching fiscal year for that document number.
    problem: i am getting fiscal year as first four digits of document number.
    please help me to solve this problem.
    Thanks & Regards,
    Namratha.V

    Hi,
       If your requirement is after selecting the document no from f4 help then the corresponding year should be updated in the document year field then use FM --> DYNP_VALUES_UPDATE
    In  this function module pass the screen no program & field for which u want to update value

  • Displaying no default zeroes for the numeric field in the table display.

    hi folks,
         I am binding a table in the context which has some numeric fields. I'm  displaying the same table which has some records for editing purpose. But the problem is that the numeric  field column is being displayed with zeros if it doesnot have any value in it. Can u explain how to disable the zeroes by not displaying them by defualt when there is no value for the numeric field.
    regards,
    Ramu

    set the format of the context attribute TEST is the context attribute name
    data: lr_info type ref to if_wd_context_node_info.
    data: ls_prop type WDY_ATTRIBUTE_FORMAT_PROP.
    lr_info = wd_context->get_node_info( ).
    ls_prop = lr_info->GET_ATTRIBUTE_FORMAT_PROPS( name = 'TEST' ).
    LS_PROP-NULL_AS_BLANK = 'X'.
    lr_info->sET_ATTRIBUTE_FORMAT_PROPS( name = 'TEST'
                 FORMAT_PROPERTIES = ls_prop ).
    Abhi

  • Foreign key cannot be created for the selected field A907-MWSKZ

    Dear Guru's,
    I am having the requirement for creation of access sequence having country/Plant/vendor/tax code but during creation of condition table i am getting the error as
    Foreign key cannot be created for the selected field A907-MWSKZ.
    Anything i am missing please let me know.
    Regards,
    Umesh

    Hi Umesh,
    Actually i am also facing exactly the same problem as mentioned by you that is "Foreign key cannot be created for the selected field A769-MWSKZ ".
    I think you found some solution regarding this..can you please help me to solve it.
    Looking forward for your prompt reply..
    Thanks & Regards,
    Sandeep Sharma

  • Can anyone recommend a good Mac Calendar, Contact program for the iPhone

    Can anyone recommend a good Mac Calendar, Contact program for the iPhone. The one intalled is hopelessly inadequate and inefficient. 2 Main problems- The current iCal + Contacts programs do not link to each other. And there is no To Do List!
    Palm and MS Outlook had those features 6 years ago! Whats up with Apple?!!

    ical does have a to do list in it. either click the little pin under the calendar, or click show to do list in the view menu.
    i don't know much purpose behind needing to link ical and address book (not that i'm saying it isn't important at all - you obviously have some type of need for it). but it's got to be possible somehow, because you can set ical to make a calendar of birthdays from your address book contacts (in the main preference pane for the application).
    plus, i doubt there'd be another mac calendar application you'd be able to sync with your iphone, unless whoever developed it developed an iphone app to sync it with. probably wouldn't sync with your contacts/calendar apps that come with the iphone.

  • How to add the Match code object for the requisitioner field in TCODE ME51N

    Hi,
    How to add the search help (Match code object) for the requisitioner field in transaction ME51N.
    Please  do the needful to me.
    Regards
    Rajesh

    don't you think that posting your question to a microsoft developer site would be more efficient?
    regards,
    anton

  • HT203177 I have a MacBook OSX 10.5.8 and a Time Capsule 500GB since July 2008. My problem is (for the 4th time in 4 yrs) the backup gets stuck in "preparing" indefinitely (hours). In the past, wile still under apple care warranty, tech support had me redo

    I have a MacBook OSX 10.5.8 and a Time Capsule 500GB since July 2008. My problem is (for the 4th time in 4 yrs) the backup gets stuck in "preparing" indefinitely (hours). In the past, wile still under apple care warranty, tech support had me redo backup (loosing previous backups). Now I'm out of warranty and still having this problem. Any help is greatly appreciated.

    I have a MacBook OSX 10.5.8 and a Time Capsule 500GB since July 2008. My problem is (for the 4th time in 4 yrs) the backup gets stuck in "preparing" indefinitely (hours). In the past, wile still under apple care warranty, tech support had me redo backup (loosing previous backups). Now I'm out of warranty and still having this problem. Any help is greatly appreciated.

  • How to find out the description for the given field?

    Hi All,
    How to find out the description for the given field?
    I mean ETTYP  Desription is VTEXT. This we can find in TVEPT  Table. So, How canwe find this?
    Thanks in Advance
    Sri...

    Hi  Avi,
    If i want to disply the  fields like   AUART and 'Description of AUART',
    Suppose based on my query i will take AUART from T184 table. And the description of AUART is available in TVAKT table.
    my question is if i have given T184-AUART  and how do u find out AUART Description ?(How do u know which table is having Description of AUART)?
    Thanks in Advance
    Sri...

  • In a query, for the selection field 'KNB1-ZWELS' a match-code isn't availab

    Hi All,
    Creating a query, for the selection field 'KNB1-ZWELS' a match-code isn't available.
    Could anyone tell me the reason?
    Thanks
    Gandalf

    Hi,
    Match Code Object is not available for the field ZWELS. If required, You need to contact a Developer for creating one .

  • How to get the value for the LIT_Withheld field in the city tax form?

    I am trying to get the value for the LIT_Withheld field on the city tax form , PAYUSEET.. This is not a database column but is generated based on some conditions.. Appreciate the help. Thanks, Suguna

    Hi Abhmanyu,
    Thanks for your response.
    Search Help Name : ZZ_MG_MARITAL_VH
    Selection Method  : T502T
    Search help parameters are SPRSL, FAMST, FTEXT,
    Can u provide me a sample code to fetch the value of corresponding text.
    Thanks,
    Hari

  • Field name and table name for the value field

    hi,
        i requred the  value field  for  which the quantity that is not delivered in purchase order, so please tell  me which field i have to go for the value field.
    thanks and regards.

    Hi,
    There is no direct field to get the PO Open qty(undelivered Qty).
    Take the PO quantity for each Item from EKPO-MENGE.
    For each PO Item there will be multiple GR(good's receipts) 's in MSEG table.
    So pass EBELN and EBELP for MSEG table and Take all the GR Quantities(ERFMG) field and sum up .(have to take care of the Movement type also, becasue there will be some returns and GI's).
    Substract the GR qty from PO qty you will get the UNDELIVERED QTY of A PO.
    Regards,
    Anji

  • Providing F4 help for the same field on selection screen

    Hello Experts,
    My requirement is :
    There are 2 radio buttons and a parameter "p_file" on my selection scree.
    1. rb_appl
    2. rb_pres
    If the radio button rb_appl = 'X', I need to place the logic of F4 help of application server for the field p_file. Else if the rb_pres = 'X', then I need to place the logic of F4 help of presentation server for the same field p_file.
    I have written the code in the below manner
    PARAMETERS: rb_appl RADIOBUTTON GROUP rad DEFAULT 'X',
                             rb_pres RADIOBUTTON GROUP rad ,
                             p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
          PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    But I am getting the F4 help for only the radio button for which i have placed the default value in the parameters.
    So please let me know how to define the F4 help for the same field based on the radio buttons.

    Hi,
    You can acheive the same by the addition of [USER-COMMAND fcode].
    RADIOBUTTON GROUP group [USER-COMMAND fcode] - The addition USER-COMMAND can be used to assign a function code fcode to the first parameter in a radio button group. The function code fcode must be specified directly, and have a maximum length of 20 characters. When the user selects any radio button of the radio button group on the selection screen, the runtime environment triggers the event AT SELECTION-SCREEN and transfers the function code fcode to the component ucomm of the interface work area sscrfields.
    So you code should be altered as
    PARAMETERS: rb_appl  RADIOBUTTON GROUP rad
                         USER-COMMAND radclick    "Addition which you have to make.
                         DEFAULT 'X',
                rb_pres  RADIOBUTTON GROUP rad ,
                p_file   TYPE ibipparms-path.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      IF rb_appl = 'X'.
        PERFORM f_applictn_server_filenm.
      ELSEIF rb_pres = 'X'.
        PERFORM f_presentation_filenm.
      ENDIF.
    Thanks & Regards,
    Harish

  • HR - have to add description for the customised field in infotype 4118.

    I need to add description for the customised field in info type 4118 in HR module.

    hi,
    for HR infotype go to tansaction  PM01 .
    OPEN YOUR INFOTYPE . ADD YOUR COSTOMIZING FIELD . 
    also see these links
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    sites regarding hr-abap:
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    You can see some Standard Program examples in this one ...
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    http://www.erpgenie.com/faq/hr.htm.
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    These are the FAQ's that might helps you as well.
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.atomhr.com/library_full.htm
    HR Long texts Upload
    Look at the below link
    BDC - hr maintain text
    HR
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPD/PAPD.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYINT/PYINT_BASICS.pdf
    http://www.atomhr.com/training/Technical_Topics_in_HR.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    you can see some Standard Program examples in this one..
    http://www.sapdevelopment.co.uk/programs/programshr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?Offer=SAlgwn12604#Certification
    These are the FAQ's that might helps you
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapgenie.com/faq/hr.htm
    http://www.erpgenie.com/faq/hr.htm.
    www.sap-img.com
    http://www.planetsap.com/hr_abap_main_page.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    http://www.sapfans.com/forums/viewtopic.php?p=498530&sid=d7ec5866e3fb26880da129de45ce79de
    http://www.sapcookbook.com/preview_hr_questions.htm
    http://www.atomhr.com/library_full.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.planetsap.com/hr_abap_main_page.htm
    http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci983590,00.html
    http://www.allsaplinks.com/HRmaterial.html
    http://www.allsaplinks.com/timemanagement.html
    http://www.allsaplinks.com/payrollcompletefunctional.html
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/HRINF/HRINF.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PYXXFORM/PYINT_FORMBUILDER.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMPA/BCBMTWFMPA.pdfhttp://help.sap.com/printdocu/core/Print46c/en/data/pdf/MYSAP/SR_HR.pdf
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
    Re: New to ABAP HR Programming
    http://www.planetsap.com/hr_abap_main_page.htm
    Reward points if useful.
    REGARDS ,
    PANKAJ

  • Still no keyboard shortcut for the search field!

    Greetings,
    I don't use Safari, because, unlike other browsers, their is no keyboard shortcut like command-K for the search field.
    Every time there is a new version I check to see if it has been added.
    Please add a keyboard shortcut to select the search field!
    Thanks

    Hi,
    Try Command + Shift + L
    Or Command + Option + F
    This link may come in handy for you. http://www.keyxl.com/aaa8ceb/93/Apple-Safari-web-browser-keyboard-shortcuts.htm
    Carolyn

  • Hide the error msg for the mandatory fields

    hi
    how can i hide the error msg for the mandatory fields when they are not entered?? when i don't put a value in a mandatory field and commit the form, an error msg occurs teelling to enter the value for that mandatory field, but the error msg is not friendly at all and i want to hide it.
    thnaks

    User,
    I'll assume you are talking about ADF Faces + ADF Business Components application, since you don't mention it.
    If you are talking about the pop-up Javascript dialog box that pops up, you can do the following:
    1). Set required=false on those fields in your JSP.
    2). Set showrequired=true on those same fields so that there is a visual indication that the fields are required
    3). Ensure the attribute to which the fields are bound have "mandatory" set to true in the BC's
    Now, when you commit the form, you will not see the Javascript pop-up, but you will see a message in the af:messages component.
    Best,
    john

Maybe you are looking for

  • ProEngineer files are not recognized by Acrobat 9 Pro Ext.

    It seems that Acrobat has problems with the numbers at the end of Pro Engineer Files. When you save a file in Pro E the file get a number at the end which marks the version of the file. So the name of a Pro E file is: "Filename.prt.1" save it again i

  • User input in SQL /PL-SQL

    Can I take the user input in SQL or PL/SQL please tell the procedure how can I do that suppose I am interested to get the information of the employee by respect to his age where age will be the user input (any person who will run the query prompted t

  • EtherChannel and LAN Design for new buildiing(s)

    What is the recommended best practice for EtherChannel size for a 3750G-12S stack? Will I benefit from stacking these with the StackWise cable on the backplane, or would it be better to run these independently back to the 4006 with individual EtheCha

  • Displaying photos with name, description and location on Apple TV

    if you sync your photos to Apple TV (gen1) you can run a slideshow, but it doesn't display the name, description, location etc. In iphoto you can do this there are several themes and settings which allow this to be achieved, but as far as I'm aware,

  • Open Info, get a blinky screen!

    er, I have a few items on the desktop, which I was wanting to transfer to another computer. To do so I wanted to know how big they were, so I could figure out the best/easiest way to make the transfer. When I open the Info on these icons, it pops up