Text Variables to show Start and End Date of Fiscal Year Period

Hi,
I am creating a query that has user enter a starting fiscal year period and posts information by Fiscal Year Period going back 14 periods.  I am able to put the fiscal year period in the heading for all periods, but would also like to add the start and end calendar day for each listed period.  Can that be done using a replacement path text variable or is that something more for a customer exit variable?
Thanks in advance for any thoughts provided.
Bill

Hi,
This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
S_VMUCMN is my selection variable
S_TXTCMN_M12 is my text variable calmonth-12
S_TXTCMN_M0 is my text variable for selected calmonth.
WHEN 'S_TXTCMN_M12'.
    IF i_step = '2'.
      LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
        CLEAR l_s_range.
        " First day of the selected month
        CONCATENATE loc_var_range-low '01' INTO l_calday.
        CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
          EXPORTING
            date      = l_calday
            months    = 12
            signum    = '-'
          IMPORTING
            calc_date = l_calday.
        l_s_range-low = l_calday+0(6).
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
        EXIT.
      ENDLOOP.
    ENDIF.
Thus, in KF header you have to put the two text variable to display the complete period.
Hope it helps,

Similar Messages

  • Function module to derive start and end dates from fiscal year and period.

    Hi,
    I want to know a function module to derive start and end dates from fiscal year and period.
    ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
    Thanks.
    Moderator Messge: Basic Date questions are not allowed.
    Edited by: kishan P on Oct 18, 2010 4:45 PM

    Hi,
    This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
    S_VMUCMN is my selection variable
    S_TXTCMN_M12 is my text variable calmonth-12
    S_TXTCMN_M0 is my text variable for selected calmonth.
    WHEN 'S_TXTCMN_M12'.
        IF i_step = '2'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
            CLEAR l_s_range.
            " First day of the selected month
            CONCATENATE loc_var_range-low '01' INTO l_calday.
            CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
              EXPORTING
                date      = l_calday
                months    = 12
                signum    = '-'
              IMPORTING
                calc_date = l_calday.
            l_s_range-low = l_calday+0(6).
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Thus, in KF header you have to put the two text variable to display the complete period.
    Hope it helps,

  • Function module to find start date and end date of fiscal year for company

    Hi,
    Is there any function module exist which will provide me start date and end date of fiscal year for company code and fiscal year provided?
    Thanks & Regards,
    Parag

    Hi,
    please check this link
    it would be very useful
    http://www.sapdevelopment.co.uk/fmodules/fms_fiscalyr.htm
    Thanks and regards
    durga.K

  • Getting Start and End Date of Current Year?

    Hi Folks,
    How do I get the start of the year and end of the year in Java ?
    If I say :
    Calendar cal = Calendar.getInstance();
    int day = cal.get(Calendar.DATE);
    int month = cal.get(Calendar.MONTH);
    int year = cal.get(Calendar.YEAR);
    System.out.println("Day: " + day);
    System.out.println("Month: " + month);
    System.out.println("Year: " + year);
    I get the current day and time.What I need is the start of the current Year (Jan 2010) and the End of the Current Year (Dec 2010).
    How can get the above 2 dates if I the current date is March 24th 2010 ?
    Thanks

    sabre150 wrote:
    What am I missing? The start date of 2010 is 1/1/2010 and the end data is 31/12/2010 . So, as I see it, at any time the only information you need is the current year which you currently get from int year = cal.get(Calendar.YEAR);
    Well, with the GregorianCalendar, anyway. ;-)

  • Period start and end dates

    Hello Experts,
    Can some tell me where we enter the start and end dates of a posting period in a fiscal year which is a year dependent and a non-calendar year?
    For ex: Jan 2008, I have to mention the start and end dates of the fiscal period January, because ours is not a calendar year and so the jan 1st and Jan 31st do not correspond with the January's posting period dates.
    Regards,
    Sriram

    Hi Sriram,
    As Vj suggested, go to transaction OB29.  Then select the fiscal year variant and upon selection the variant, click on "Period".  This will open up dialog box asking for the fiscal year for which you want to configure.  Enter the fiscal year and hit enter.  This will open up the calendar table to enter the period entry which has 4 columns: Month, Day, Period and Year Shift.
    Make sure you are entering the correct Year Shift.  Logic for the Year Shift is as follows.
    +1 if the fiscal year is later than the calendar year
    -1 if the fiscal year is before the calendar year.
    0 if the fiscal year is same as the calendar year.
    One example of year shift:
    Say, if you are configuring the fiscal year 2007 (April 2007 to March 2008), then January 2008 is your 10th period.  Here you hare to enter -1 in Year Shift Column only for January to March (10-12 period) as your fiscal year 2007 is less than the calendar year 2008.
    Hope this helps.
    Pls. award points if this is useful.
    With Regards,
    Chirag

  • SNP Planned order start and end dates are not calculated correctly

    Hello SNP Guru's
    The SNP planned orders generated after the Heuristics run, have a start and end date based on the Activity Duration (Fixed), while the resource consumption is based on the Bucket Consumption (Variable), which is correct.
    The Activity Duration (Fixed) is based on the BOM Base Quantity. So if the Activity Duration = 1 day, and if the order quantity is more than a day, the start and end dates, still shows as 1 day. So no matter what is the order quantity, the start and end dates is always = 1 day.
    Does anyone have any experience in implementing any code to change the start and end dates on SNP Planned Order?
    Seems like it should work as standard.
    Am i missing something?
    Thanks,
    Mangesh

    Dear Mangesh,
    SNP is a infinite planning tool. If you have defined fixed duration to be 1 DAY in the activity, no matter how many quantity you input for your planned order, the order will last for one day. If the resourced is overloaded, you then run capacity levelling to
    banlance the capacity. What your expected beahavior happens in PPDS planning.
    Claire

  • URGENT REPORT START AND END DATE

    GUYZ help me how to generate a report with start date and end date, two text item or calendar rpresent start and end date, it will generate only the start to end date... plzz put the code guyss..
    this is my code when i call my report in runtime only in client server .. i want to generate it wit start and end date but dunno newbie ..
    Declare
    v_Rep varchar2 (30);
    repid report_Object;
    begin
    repid:=find_report_object('dept');
    v_rep:=run_report_object(repid);
    end;

    Check this sample Code..
    DECLARE
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Id_Null(pl_id) THEN
    pl_id := Create_Parameter_List(pl_name);
    Add_Parameter(pl_id, 'P_STARTDATE', TEXT_PARAMETER,:BLK_CTRL.P_TODATE);
    Add_Parameter(pl_id, 'P_ENDDATE', TEXT_PARAMETER, :BLK_CTRL.P_CURRENCY);
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ELSE
    Destroy_Parameter_List( pl_id );
    END IF
    RUN_PRODUCT(REPORTS, 'D:\MMRROLDL.RDF' ,SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id ,NULL);
    END;

  • BT Broadband Contract Start and End Date

    Where can I find my contract start and end date online ?

    conrad wrote:
    You can, by starting a new order for BB and entering phone no + post code - no need for email address - you then go to choose a package page which shows your current package  details at the top of the page
    Obviously you don't need to go any further than that page
    Conrad, thank you for your suggestion. I gave your suggestion a try but initially got a technical error and then appeared to be getting closer and closer to completing an order without the required information coming up so I chickened out. This also was fraught with difficulty as the cancel button seemed ineffective.
    I think I may have to use imjolly suggestions.

  • Schedule type LineChart with clients and unavailable start and end dates

    I have been working on trying to get something in flex which will display a list of clients and their unavailability start and end dates.   I have attempted the line chart and the HLOC chart but have not seen success.  I do have the H or V grids working fine.  But getting the data to display in a line graph based upon start date and end date has been my challenge.  any suggestions
    Current Code:
        <s:Label x="0" y="5" text="Min Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="minDateField"
                      x="50" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{minDate}"
                      change="minDatefield_changeHandler(event)"/>
        <s:Label x="150"  y="5" text="Max Date" height="24" fontFamily="Times New Roman" verticalAlign="middle"/>
        <mx:DateField id="maxDateField"
                      x="200" y="5"
                      formatString="MM-DD-YYYY"
                      selectedDate="{maxDate}"
                      change="maxDatefield_changeHandler(event)"/>
        <mx:LineChart id="nonAvailsLC" x="0" y="40"
                      showDataTips="true"
                      dataProvider="{getNonAvailsResult.lastResult}"
                      creationComplete="nonAvailsLC_creationCompleteHandler(event)"
                      width="890" height="550">
            <mx:backgroundElements>
                <mx:GridLines gridDirection="both"/>
            </mx:backgroundElements>
            <mx:horizontalAxis>
                <mx:DateTimeAxis dataUnits="days" minimum="{minDate}" maximum="{maxDate}"
                                 labelUnits="days"/>
            </mx:horizontalAxis>       
            <mx:verticalAxis>
                <mx:CategoryAxis categoryField="user" labelFunction="getName"/>
            </mx:verticalAxis>       
            <mx:series>
                <mx:LineSeries xField="startDate" yField="user"
                               form="horizontal"/>
            </mx:series>
        </mx:LineChart>

    I guess I still have lots to learn about Flex and Renderers. I downloaded a Gantt chart with Code and they used the AdvancedDataGrid with renderers and such.  I modified the code to work for me. but if I had to create it myself right now, I would be in trouble.  Lots more to learn.

  • Hyperion Planning dynamic forms based on start and end date across years

    Hi All,
    I have a requirement where i need to be able to view a form showing periods across years that are dynamically built depending on the start and end dates. If i have a start date of 01/11/2009 and an end date of 31/7/2013 i want to be able to view a form that shows all of the periods (Jan,Feb etc) in a form that is driven by these dates, in addition it will need to show the actual scenario up to the current month and the forecast from the current month to the end date. So basically if a user inputs the start and end dates the form will display the relevant periods driven by these dates.
    Any tips very much appreciated!

    Hello,
    This is difficult to realize, but you can get quite far with a workaround. The first question is, where do you want to input your selection of time periods? Assuming you have a webform with the complete timeline in months and years and you type in the start period and end period.
    Webforms have the option to suppress rows and columns.
    This can be extended with option of empty cells or not empty cells.
    You will need to apply your creativity on this.
    Put every month-year combination in a column and add the suppression.
    Calculate the timeline between start period and end period with a dummy member, so data exists for these and columns will show.
    Maybe you will need to copy the required timeline into a separate version for this, to avoid having periods which were outside the selection and still have data.
    I hope these hints help a bit in this challenge.
    Regards,
    Philip Hulsebosch
    www.trexco.nl

  • Product View - Start and End dates

    Hi,
             I have a material that is externally procured from a vendor to a location. In product view, I have few purchase requisitions. When i double click on it, it takes me to the details of PR. I am trying to understand what start and end dates of the PR are.
    For some PRs, the start and end dates are same but for some there are is some times a day or two and even 3 in some cases.
    I am wondering what makes the end date differ from start date.
    There is a safety day's supply of 2.5 days
    We have a transportation lane with transportation duration 23hrs.
    Any of these play any role in the end date delay?

    Hi,
          Thanks for the reply. The vendor and the receiving location have a transportation lane defined.
    What do you mean by the  time duration that shows up in the T Lane corresponding to the inforecord?
    Here are the times I see in transportation Lane;
    Product Specific Transportation lane:
    GR processing times (checked) : (No value defined) days
    Planning Horizon: 0 days
    Partner Horizon: 0 days
    Horizon for Expctd receipts: 0 days
    Horiz. Fut. Aval. Whse Stck: 0 days
    Planned Delivery time:  (No value Defined)
    Means of Transport
    Tsp. duration: 23 hrs
    Bucket offset: 0.5
    Period factor: 0.5
    and no other times defined.
    Are any of these effect the delay?
    My ECC is EST and the timestream is EST. Should I change the product view (also my own data) to EST or UTC??
    I have a product that has no delay between the start and end dates. The difference I see between the one that I am having problem (the start and end dates are apart ( I'm calling it bad one) by atleast a day) with and the one that has no delay(I'm calling this good one) between the start and end dates is the "Planned Delivery time.
    The good one has 1 day and the bad one has nothing defined.
    Does this make any difference?
    Thanks.
    Edited by: Raj G on Jul 17, 2008 3:36 PM

  • Adding a summary column in a table which contains the start and end dates in the week

    Hi,
    I've got a DIMENSION DATE table and want to add in another column which shows the start and end date of the week.
    See below, the new column is WEEKOFYEARTEXT.
    Does anybody know how i may generate this column using SQL and using the existing columns?
    Umar Javed

    See:  http://www.sqlusa.com/bestpractices/datetimeconversion/
    DECLARE @Year INT = '2015';
    WITH cteDays AS (SELECT DayOfYear=Dateadd(dd, number,
    CONVERT(DATE, CONVERT(char(4),@Year)+'0101'))
    FROM master.dbo.spt_values WHERE type='P'),
    CTE AS (SELECT DayOfYear, WeekOfYear=DATEPART(week,DayOfYear)
    FROM cteDays WHERE YEAR(DayOfYear)= @YEAR)
    SELECT WeekOfYear, StartOfWeek=MIN(DayOfYear), EndOfWeek=MAX(DayOfYear)
    FROM CTE GROUP BY WeekOfYear ORDER BY WeekOfYear;
    WeekOfYear StartOfWeek EndOfWeek
    1 2015-01-01 2015-01-03
    2 2015-01-04 2015-01-10
    3 2015-01-11 2015-01-17
    4 2015-01-18 2015-01-24
    5 2015-01-25 2015-01-31
    6 2015-02-01 2015-02-07
    7 2015-02-08 2015-02-14
    8 2015-02-15 2015-02-21
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Database Design
    New Book / Kindle: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2014

  • Report for Validity Start and End Date in PO

    Dear All
    Is there any report where I can get PO validity start and end date which user input in addtional data header tab of PO?
    Regards
    Satish Kumar

    Hi,
    Yes, It is available standard report using T-code ME2N - Purchasing Document (PO) Per Document Number, enter the T-code and provide the following input data's are as follows.
    Scope of List                 :  ALV ( for Ms-Excel format report)
    Plant                               :   __________ to __________ (if required)
    Document Date              : ____________ to ___________ (if Required)
    Execute the report shown by default in excel format and if required PO validity start and end data, you have to select Change Layout button and open new window options screen right side field option as Validity Per.Start, Validity Period End, Commutative number field data's are selected and click <--- arrow button and then click bottom tick marked button. Now, the report shown your requirement.
    Hope, it is useful for you,
    Regards,
    K.Rajendran

  • TS1702 Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a

    Maps program does not work. In standard it only shows a grid. If I ask for a route it shows start and end point and three route boxes but nothing else. It does show directions. If I switch to hybrid it shows to routes but no roads. Background is a blur.

    Do you have a question? This is a user to user help forum. Apple is not here only other users like yourself. You don't report problems to Apple here.
    By the way, it might help if you indicated where you are located.
    To complain to Apple use http://www.apple.com/feedback/ipad.html

  • Contract Start and End Dates in Sales Order

    Hi
    I have a situation where a service item is bundled with a deliverable item. The order is as follows
    Line Item    Mat                                                                 Qty            Higher Level Item               
    10              Item No.1 (Physical Item)                                  1             
    20              Item No.2 (Service Item)                                    1               10
    For the deliverable item 10 , Revenue is recognized immediately. For the Service item no.20 , revenue needs to be recognized over a period of 1 Year (It is a 1 year service contract).
    The whole order is created via BAPI from an external 3rd party order capture system.
    In order to do revenue recognition properly for service items , SAP I believe has 2 options
    1. Based on Billing plan dates
    2. Based on contract start dates
    Since order with both the line items need to produce 1 invoice, I cannot use billing plan . The only other option is to use contract start and end dates. I have enabled contract data at the sales order level. So when I enter the contract start and end dates manually at the line item level and set the item category to recognize revenue based on contract start and end dates based on time-based revenue recognition it is working fine.
    But I need a way to automate the population of contract start and end dates at the line item level. My ABAP guy is not able to find a user exit that can change the XVEDA or any VEDA structure in any of the user exits.
    I guess the SAP SD gurus out there would have definitely dealt with a situation of product bundling (Service and non-service items in the same sales order with one billing document , but seperate revenue recognition for service and non-service items)
    Please help.
    Thnx
    Siva

    Hi Siva,
    Kindly let me know what criteria you want to give for automatic population of start date of contract...
    Standard SAP comes with a few baseline dates for contract start date and we can control this from customization itself. 
    01     Today's date
    02     Contract start date
    04     Acceptance date
    05     Installation date
    06     Date contract signed
    07     Billing date/Invoice date
    08     CntrctStDate+contract duration
    09     Contract end date
    If you have some criteria which is not covered here, then let me know and i will try to provide some help then.
    Thanks
    Kapil Sharma

Maybe you are looking for

  • Safari is not working properly

    Safari is not working properly......it stop responding without any reason and after a few seconds begins to work again...... Before it was very rare....but  now it has become regular ....what should I do to fix this issue...?

  • Down payment error

    Hi, While creating sales order, we have to receive down payment 30% of total order value. W e have to restrict the sales orders at that level only. Please tell me the configuration steps to block the sales orders, if the down payment is not received.

  • No/very low sound out of center spea

    I have the sound blaster li've! 24-bit card and i just bought a brand new logitech x-530 system, and hooked it up and everything worked except for the front speaker. I have tried the whole EAX thing and it didn't do anything. I played a game and ever

  • Cannot install new version of iTunes

    I cannot install the newest version of iTunes due to cpu not finding "iTunes.msi"

  • GRC 10 + CUA + GRC 5.3 on one server?

    Hi Experts, currently we have a Netweaver system running GRC10 and we have also CUA activated. We want to migrate one older GRC 5.3 system on the same server. In the note 1590030 it is being said that as of SP04 you can theoretically have a GRC5.3 an