Dates within a key period.

hi all,
I have a abap program to develop, where in i have a period  key which i am getting from a table, for a particular BP, CA, CO.
Now i want the all the dates falling in that period key, or may be even the first  date of that period key.
For example the period key is weekly, ie 00AA for first week of year 2000, i want all the dates in this week.
I tried many function modules, but none seems to fit my requirement.
Now i have got the year and week no from the description of the period key, so is there any Fm which could give me the first day of the week based on these two inputs...??
All answers will be appreciated....!!!

Hi Rahul,
I really about the existance of a generic module to handle what you are looking for the PERSL, since PERSL is more like a customer implementation. We have two variations of it - like 2000 representing year 2000 and 0100 representing the first month of year 2000.
But, you should be able to implement, what you need with the help of the Function module: GET_WEEK_INFO_BASED_ON_DATE.
You begin like this. Take the first date of that year for the PERSL 4000, in this case 01/01/2000, and then add to get the new date as:
01/01/2000 + ( 40 periods X 7 days for week ) =  10/07/2000.
Then use the above FM which gives the result as:
  Import parameters               Value     
  DATE                            10/07/2000                                                                               
Export parameters               Value     
  WEEK                            200040    
  MONDAY                          10/02/2000
  SUNDAY                          10/08/2000
In the above week 200040 matches with the period key 4000(40th week of 2000). If this does not match, move the  MONDAY and SINDAY either forward or backward by 7 days to match the period that you are interested in.
I think you can put this in a wrapper FM so that all your programs can use it.
Thanks.
For example the period key is weekly, ie 00AA for first week of year 2000, i want all the dates in this week.

Similar Messages

  • Go back to unlimited data within 14 day period

    Hello.
    Last night I purchased an iPhone 6 at an apple store. Unfortunately during the process there was some miscommunication between the sales rep & my self regarding the plan I would be changing to. I understood I would lose my unlimited data, however she did not explain that I would move to a plan that "shared" data between all the lines on my account. She said the one we were selecting specifically would be for my line only, and even offered another plan option that would be shared data. Thinking that the 5gb plan I selected would be ok for myself only I went ahead with the upgrade.
    Then upon viewing my account online it is showing that the data is actually shared, it shows my line has 3.5gb per month (I'm guessing this comes from 1/2 of the 5 I added, plus the 2 that was already on another line on my account)
    My question is if I return the phone to the apple store today, would this fall under the 14 day worry free guarantee and allow me to get my unlimited data plan back, and then repurchase the phone at full retail?

        chellyx, you have a great question. First things first, congratulations on being one of the lucky few to get the iphone 6. Next and to answer the big question, yes you can return the phone and go back on the plan that you originally had. You would be under the 14 day WFG. And if you purchase at full reatail then nothing changes on your old plan. You simply did a device change. Which doesnt effect anything at all. Hope that helps. No matter what enjoy the iPhone 6.
    VanetrisC_VZW
    FOllow us on Twitter @VZWSupport

  • Inactive Item report to show Item bought within a specific period and not sold within a specific period by whse and have stock

    Hi
    I'm trying to come up with query report to show Inactive Item bought within a specific period and not sold within a specific period by whse and have stock
    The report should show  Item Number, Item Name ,Item cost,Retail Price [Based on a price list], Qty in Whse, Last Purchase Date, Last sale Date etc.
    e.g item bought between 2011-2013 and have not been sold with the same date range or the last 12 months.
    Regards
    Brian Ndunda.

    Hi,
    Try this query:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate] FROM OITM T0  left JOIN INV1 T1 ON T0.ItemCode = T1.ItemCode left JOIN OINV T2 ON T1.DocEntry = T2.DocEntry WHERE T1.[Quantity] is null and  T0.[OnHand] >0 GROUP BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate]
    Thanks & Regards,
    Nagarajan

  • WINDOWS MANAGEMENT FRAMEWORK 4.0 - A required certificate is not within its validity period

    Hello, 
    I can't figure out if this is because the Root Certificates were updated in April 2014 then apparently expired by Microsoft or if the PowerShell installer signed this file with a bad software release signature??
    We were deploying PowerShell 4.0 (Windows6.1-KB2819745-x64-MultiPkg.msu) with ConfigMgr 2012 with a dependency of .NET Framework 4.5.1.  Everything was working fine until sometime around April 24 (exact date unknown).  Now any 
    Win 7 SP1 machines I try to update will not install WMF 4.0.  They installed .NET 4.5.1 without any trouble.. 
    The digital signature on it it states it was signed Sept 27 2013 and the certificate expires 4/24/2014. 
    Even if we change the system clock to April 1 2014 it still will not install.. but this shouldn't matter anyway.  They just can't sign new software with that certificate.. surely I can install it..
    As for a log... If I run as C:\Windows\ccmcache\3>wusa.exe Windows6.1-KB2819745-x64-MultiPkg.msu /log:c:\windows\ccmcache\3\broken.txt 
    In the broken.txt I see: 
    Install Worker.01194: Operation Result Code of the installation: 0X4        HRESULT of the installation: 0X80240022                Operation
    Result Code of the update:0X4 HRESULT of the update: 0X800b0101 
    Install Worker.01243: Failed install update Update for Windows (KB2819745) 
    Install Worker.01287: Exit with error code 0X800b0101 (A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file.) 
    WINDOWS MANAGEMENT FRAMEWORK 4.0 FOR MICROSOFT OPERATING SYSTEM PRODUCTS 
    Windows6.1-KB2819745-x64-MultiPkg.msu 
    I also see this same event information in Setup event log..
    I don’t know what to do here.  Anyone else having this problem? 

    Hi,
    Have you ever seen this article?
    Event ID 4107 or Event ID 11 is logged in the Application log in Windows and in Windows Server
    http://support.microsoft.com/kb/2328240/en-us
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • HR ABAP Report: Display employee details changes within a time period!!

    Dear Friends,
    I need urgent help with the below HR-ABAP report.
    Thanks in Advance!
    Joy
    I have to create a report which would display in ALV
    A table containing details of all changes to fields specified iby the user within the selected period
    Details :: ~
    When executing the report, the user will be given the opportunity to select which fields will be displayed in the output of the employee changes table. They will also be given the choice to display the previous value for each field and the date the change becomes effective.
    Please Help !!!

    First of all ensure that the fields that you need to audit have been configured.
    refer to the  documentation of report RPUAUD00.
    You will need to create a report that extracts data fromPCL4.
    If your audit data has been configure as Lond documents then look at using FM HR_INFOTYPE_LOG_GET_LIST  &
    HR_INFOTYPE_LOG_GET_DETAIL
    If not you will to extract the header info & then the BELEGE info - beware of the differnt operas inuse.
    J

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • Compare time depednt master data for two key dates in a report?

    Hello all,
    We have a requirement where we want to see the difference in master data at particular key dates (time dependent master data).
    Like if employee has State = OH till yesterday (12/01/2008) and today it is changed to State =KY (12/02/2008 to 12/31/999) loaded in BW which is time dependent.
    So basically if you run the query for Key date 12/01or before you will see OH as state and if you run query for key date 12/02 or further you will see KY.
    We want to create a report where we want to list employees and compare in two columns basically the previous value and the current value. So input would be two key date variables and the report would look like
    Employee                  Key date 1(state)                  Key date 2 (state)
    Employee1                         OH                                  KY   
    Has anyone done this before, can someone help me doing this?
    Thanks,

    Hi ,
    For this scenario , Can you please create variabale ( From value -- to value ) in the key figure date .And by using the time period in the varaible u can get the employees for both the states ...
    Hope this helps out
    thanks
    PT

  • How to copy actual data into current forecast period

    Hi gurus.
    I need your guidance on how to copy actual data into current forecast period.
    This is my case. Let's say I have the following figures for my actuals:
    January 2007 Actual = $110,000.
    February 2007 Actual = $120,000.
    March 2007 Actual = $80,000.
    April 2007 Actual = $100,000.
    Now, my user want to choose any month as the basis for her forecast for the remaining periods. Let's say, she wanted to choose April 2007 Actual as the basis for the remaining forecast periods, so I should be able to display the following figures in my planning folder:
    May 2007 Forecast = $100,000.
    June 2007 Forecast = $100,000.
    July 2007 Forecast = $100,000.
    August 2007 Forecast = $100,000.
    September 2007 Forecast = $100,000.
    October 2007 Forecast = $100,000.
    November 2007 Forecast = $100,000.
    December 2007 Forecast = $100,000.
    Can someone guide me on how to do that?
    Points will be given to good and best answers.
    Thanks.

    Hi Fulham,
    Technical answer:
    First, you need to allow your user to indicate wich month is the reference for the copy. I suggest you to add a new key figure in your actual layout (a 'customizing' layout) that your user will use as a flag:
    January 2007 Actual = $110,000
    January 2007 Flag = 0
    February 2007 Actual = $120,000
    February 2007 Flag = 0
    March 2007 Actual = $80,000
    March 2007 Flag = 0
    April 2007 Actual = $100,000
    April 2007 <b>Flag = 1</b>
    <i>(Help to a fox or an abap exit you can check that only one month is 'flagged')</i>
    Then, in the corresponding level for the data input, you use a function exit in Abap, which will:
    - read the previous customizing layout help to API_SEMBPS_GETDATA so you can get the flagged month and its actual amount ($100,000)
    - generate the news rows into the table XTH_DATA which will be automatically posted in the level with the actual amount
    Is that clear?
    Regards,

  • €100 charged to my account due to withdrawing from contract within 30 day period specified in email

    Hi, €100 charged to my account due to withdrawing from contract within 30 day period specified in email regarding change of contract due to pricing change. I was advised by eircom on 12th Feb that no notice was needed as I had 30 days to withdraw from contract from the 11th Feb email received date. Notice was given via the phone number provided in the email that I would be moving providers thus withdrawing from contract. Final bill has a €100 ECC charged. Called eircom on Fri 6th March was advised €100 would be deducted from bill as should not have been charged. Was also promised a call back from agent for Mon 9th March to advise this credit had been applied. No callback received. Called again to dispute this cancellation charge on 10th March was advised this would be escalated to team leader. Asked to speak to higher level persons advised non available. Also advised by agent that to withdraw from contract we should have ceased our line and broadband. Nowhere within the email we received are we requested to cease our products totally to withdraw from contract and then ask new provider to reactivate all our products again. This would seem a ridiculous thing to require to be done. This is typical Eircom tactics when any normal person can see that according to Eircom email we were entitled to withdraw from contract by switching providers. Copy of email belowAccount number:  XXXX1878  Contract ChangeDear XXX,We are writing to inform you of some amendments to your eircom service, which will come into effect on 15th April 2015. These changes will be reflected in bills issued after 15th April 2015.The changes are summarised as follows:An increase to the monthly charge for your broadband bundle of between €2 and €5. For TV bundle customers, an increase to the monthly charge for your bundle of between €5 and €8 will apply.An increase to the call set up fee and call rates for certain calls made outside of your voice plan allowance. These charges will only apply if you make these calls outside of the included minutes of your voice plan.The Fixed SMS service, which is the ability to send text messages from your home phone and which may be included in your plan, will be withdrawn from 30th June 2015. It will not be possible to send or receive text messages via your home phone after this date. Certain security and alarm monitoring services may be impacted by this change and we would advise you to contact your alarm monitoring supplier for further information. This Fixed SMS service withdrawal does not affect the sending or receiving of text messages on mobile phones.Please note that not all of these changes will apply to your account. To find out more please visit our website - you will need your plan name which can be found on page 3 of your latest eircom bill in the 'Charges for this period' section.Your custom is very important to us and we hope that you will continue to enjoy the great value services that eircom offers. However if you wish you can downgrade or withdraw from your contract without penalty for 30 days after the issue date of this email by calling 1800 303 731.Yours sincerely,
    Paul Doyle
    Customer Operations Director

    Exact same happened to me however, Eircom have since cut me off.  Nobody will phone me back and I have a credit block on my visa card which has never before happened to me.  To say that Eircom's service is poor is an understatement.  I have all of the emails that I sent to them but not one person will take responsibility and telephone me to resolve this issue.  Copy of email below: Contract Change
    Dear Grace,
    We are writing to inform you of some amendments to your eircom service, which will come into effect on 15th April 2015. These changes will be reflected in bills issued after 15th April 2015.
    The changes are summarised as follows:
    • An increase to the monthly charge for your broadband bundle of between €2 and €5. For TV bundle customers, an increase to the monthly charge for your bundle of between €5 and €8 will apply.
    • An increase to the call set up fee and call rates for certain calls made outside of your voice plan allowance. These charges will only apply if you make these calls outside of the included minutes of your voice plan.
    • The Fixed SMS service, which is the ability to send text messages from your home phone and which may be included in your plan, will be withdrawn from 30th June 2015. It will not be possible to send or receive text messages via your home phone after this date. Certain security and alarm monitoring services may be impacted by this change and we would advise you to contact your alarm monitoring supplier for further information. This Fixed SMS service withdrawal does not affect the sending or receiving of text messages on mobile phones.
    Please note that not all of these changes will apply to your account. To find out more please visit our website - you will need your plan name which can be found on page 3 of your latest eircom bill in the 'Charges for this period' section.
    Your custom is very important to us and we hope that you will continue to enjoy the great value services that eircom offers. However if you wish you can downgrade or withdraw from your contract without penalty for 30 days after the issue date of this email by calling 1800 303 731.
    Yours sincerely,
    Paul Doyle
    Customer Operations Director

  • SSRS 2008 Column Chart with Calculated Series (moving average) "formula error - there are not enough data points for the period" error

    I have a simple column chart grouping on 1 value on the category axis.  For simplicity's sake, we are plotting $ amounts grouping by Month on the category axis.  I right click on the data series and choose "Add calculated series...".  I choose moving average.  I want to move the average over at least 2 periods.
    When I run the report, I get the error "Formula error - there are not enough data points for the period".  The way the report is, I never have a guaranteed number of categories (there could be one or there could be 5).  When there is 2 or more, the chart renders fine, however, when there is only 1 value, instead of suppressing the moving average line, I get that error and the chart shows nothing.
    I don't think this is entirely acceptable for our end users.  At a minimum, I would think the moving average line would be suppressed instead of hiding the entire chart.  Does anyone know of any workarounds or do I have to enter another ms. connect bug/design consideration.
    Thank you,
    Dan

    I was having the same error while trying to plot a moving average across 7 days. The work around I found was rather simple.
    If you right click your report in the solution explorer and select "View Code" it will give you the underlying XML of the report. Find the entry for the value of your calculated series and enter a formula to dynamically create your periods.
    <ChartFormulaParameter Name="Period">
                      <Value>=IIf(Count(Fields!Calls.Value) >= 7 ,7, (Count(Fields!Calls.Value)))</Value>
    </ChartFormulaParameter>
    What I'm doing here is getting the row count of records returned in the chart. If the returned rows are greater than or equal to 7 (The amount of days I want the average) it will set the points to 7. If not, it will set the number to the amount of returned rows. So far this has worked great. I'm probably going to add more code to handle no records returned although in my case that shouldn't happen but, you never know.
    A side note:
    If you open the calculated series properties in the designer, you will notice the number of periods is set to "0". If you change this it will overwrite your custom formula in the XML.

  • Date as a key figure

    Hi Experts,
    I defined date as a key figure, AAAAMMGG,Iu2019m able to view data in my ODS, but when I try to create a query data format is wrong.
    Can anybody share a solution.
    Thanks in advance
    Namrata

    Hi,
    May be you are getting a number. What looks like your wrong format? If it  is a number,display your figure with a formula, where you will find option to convert data to numbers and number to date.
    Cheers,
    Tanish

  • Data fileds and key fields in DSO

    Can any one explain what exactly difference between data fileds and keyfields in DSO or the concept of these two
    And how to know which fields should be assigned to data filed or key field
    with regards,
    musai

    Hi Musai,
    Let me take an ex. Say you have 3 fields A, B & C. Let us assume 'A' is keyfield, 'B' & 'C' are Datafields.
    Lets assume the PSA data is :
    A             B              C
    001      Musai        89.9  
    002      Musai        89.9
    003      Pavan       75.00
    So when you load the data to DSO, since all the keyfield values are unique (001,002,003), all the records will get loaded to DSO.
    But If PSA data is :
    A             B              C
    001      Musai        89.9  
    001      Musai        85.7
    003      Pavan       75.00
    Only 2nd & 3rd rows will be loaded to DSO since 1st & 2nd row have same value for keyfield (001). So 1st row gets overwritten(or summation depending on what is the setting in Transformation rule for C considering C is Keyfigure) by 2nd when you load to DSO. 3rd row doesn't have any problem. So that will go as it is.
    Also please note that we cannot use Keyfigures as keyfield.
    Hope it is clear now!
    Regards,
    Pavan

  • Data fields and key fields

    Hi,
    Data fields and key fields are same as Characteristcs and key figures? Or they are diffrerent?
    Thanks,
    Radha

    HI
    Key Fields =  Acts as Primary Key for The ODS like Primary of Tables in R3.
    Data fields =  Apart from Key fields We consider rest as data fields.
    Ususally we use Characteristic info Objects and Dates in Key Fields and Key figures in Data fields.
    It's decisive factor for overwriting property of ODS or DOS.
    Hope this helps.
    Regards,
    Rangzz
    Edited by: Ranganath Kodiugane on Feb 7, 2009 12:14 PM

  • Need a function to calculate employee attendance data for a given period

    need a function to calculate employee attendance data for a given period
    as
    Working days,
    CL ,
    SL,
    PL,
    LWP
    regards,
    Gaurav Sood.

    Issue resolved

  • How can I POST data within the same page if I have a A HREF -tag as input?

    How can I POST data within the same page if I have a <A HREF>-tag as input? I want the user to click on a line of text (from a database) and then some data should be posted.

    you can use like this or call javascript fuction and submit the form
    <form method=post action="/mypage">
    cnmsdesign.doc     
    </form>

Maybe you are looking for

  • Problems with the language

    When I start the out loud reading the digital voice starts spelling the words in English but I'm Italian so it isn't useful.. How can I change language? Thank You

  • HOW TO CUSTOM CODE SAVING/DEFAULT FILE ITEM BLOBS IN PORTAL

    I am trying to create a link for Portal users to allow them to upload a specific File type in Portal. This is taking advantage of Portal's Content Management features (not the same as iFS). I want to know what API's to use and the steps to perform to

  • Error Starting SQL Server Analysis Services (SharePoint - Central Administration)

    I am not able to start the SQL Server Analysis Services via SharePoint Central Administration but SQL Server PowerPivot System Services yes. I then tried to start the SQL Server Analysis Services(PowerPivot) via the sql server(powerpivot), it was sta

  • Problem in SLD configuration

    Hi, While configuring SLD, when we tried to trigger in Visual Administrator we got following error. SLD Data trigger error <b>Operation failed! Failed to collect SLD data. Failed to send HTTP data:500:Internal Server error. Please check if the target

  • Newbie question: SQL operations automatically reordered so a DELETE comes first?

    Hi - I have two objects that are related to each other by a one-to-many relationship. In my test case there's a single A object that is related to a single B object. I want to sever the relationship between the two objects (a SQL UPDATE behind the sc