Fiscal Period and Calmonth issue in SSM 7.0

In Fiscvar V3 Where Fiscal Year is not from Jan to Dec but April to Mar, PAS not reading Fiscal Period correctly.
Workaround suggested is to Create BWFISCPERINFO document in PAS under the model and mention periodicity as
MONTHLY
2009001 200904 
which means ist Fiscal Period of 2009 = 4th Month(april) of 2009.
The BW Query with oFiscper as Time Dimension is not importing data beyond March 2009 while BW Query
with 0Calmonth is populating upto current month of July 2009. What could be reason for this anaomaly in data import ?
M Akhtar

Good day M Akhtar,
I would suggest rechecking your BW Query with oFiscper to make sure that you have set the fiscal period to start in March and not set the data to be imported to only be March. It may be that your current settings are only bringing in the data for March.
Regards,
Bob

Similar Messages

  • Using fiscal period and Fiscal quarter reporting seemlessly in a BI Query

    Hi,
    We have a very specific issue. Reporting the Fiscal Period( in our
    case we have 53 fiscal periods) and Fiscal Quarter( we have 4 quarters)
    in the same query seamlessly as we would have done using Calander Month
    and Calander quarter in other reports that uses SAP delivered standard
    time dimensions.
    However unlike the Calander time dimension (SAP provided all
    possible...0CALDAY, 0CALWEEK, 0CALMONTH, 0CALQUARTER, 0CALYEAR) where you have all of these inside your info provider, you can get
    aggregation on week, month, quarter etc in your query seamlessly, The Fiscal Year/Period offers a problem in doing report seamlessly.
    When we delve into Fiscal realm, SAP only provided with 0FISCVARNT,
    0FISCPER, 0FISCYEAR and a special period 0FISCPER3. It doesn't provide
    anything like 0FISCQUARTER etc and rightly so, because you can have
    only one 0FISCVARNT in the Time dimension and can have related periods
    (0FISCPER) only for a Row of data in your infocube. For example if you need to model as per the Fiscalweek, you can create a custom Fiscal year variant (Say z1) and can configure to have only 53 periods (Mapped to 0FISCPER) representing
    53 Fiscal WEEK. Similarly for mapping Fiscal Quarter you can create
    another fiscal year variant (Say Z2) and have only 4 periods (mapped to
    0FISCPER also in this case) to represent the 4 Fiscal Quarter. However
    the issue is that for one record you can only map either of those and
    not both since you can only have one Fiscal year variant in one row of
    data in the info provider.
    For example
    If I have two rows OF DATA coming from different sources (One FOR
    Fiscal Week and another for Fiscal Quarter) I can have the following in
    my info provider.
    1> Example data in Fiscal
    Char1 Char2 0CALDAY 0FISCVARNT 0FISCPER Quantity
    X  ......  y .....10/22/07 ....Z1 ....           43’2007 .......10
    X .......  Y .....10/22/07 ....Z2 ....          Q3’2007 .......20
    The issue is how do I report the Quantity in a query in Quarter Q3 as
    (10 + 20 = 30) since both the rows corresponds to FISCAL Q3’2007?
    (Please note that Fiscal week 43’2007(For VARIANT Z1 ) actually is
    Fiscal Quarter Q3’2007( For Fiscal Variant Z2) as per our
    configuration of Fiscal Year Variant configuration Z1 and Z2)
    The same is very simple when I have infoprovider with CALENDAR Time
    dimensions , for example if we don’t have any fiscal reporting
    requirement and just report on calendar time dimension the record in
    the info provider would look like the following ( example)
    2> Example Data in CALENDAR DIMENSION
    Char1 Char2 0CALDAY 0CALWEEK 0CALQUARTER Quantity
    X ........ y .......10/22/07 .......43’2007 .......Q3’2007 .......10
    X ........Y .......10/22/07 ....... 44’2007 .......Q3’2007 .......20
    Here we can use both 0CALQUARTER and get the data aggregated on the
    quarter level in addition to the 0CALWEEK.
    To solve this issue, One option that we are thinking of Using 0CALQUARTER to represent the
    Fiscal Quarter and use Update rule to populate this one. For example
    THE example 1 can be as follows.
    1A> Example of using 0CALQUARTER along with 0FISCVARNT and 0FISCPER
    Char1 Char2 0CALDAY 0FISCVARNT 0FISCPER 0CALQUARTERE Quantity
    X .......y .......10/22/07 ..............Z1 .......43’2007 .......Q3’2007 ..............10
    X .......Y .......10/22/07 ..............Z2 .......Q3’2007 .......Q3’2007 ..............20
    In this case we would populate the 0CALQUARTER by the actual Fiscal
    Quarter and then can use both as per example 2 above. But this is not a
    smooth option since we have various other info providers to join and
    report based on solely Fiscal Quarter etc…
    I am certain that this issue have already been solved by somebody as this bound to happen in any finance application.
    Would appreciate if we can get some light on this regarding the data modelling, reporting etc.
    Thanks
    Arun G.

    You have yourself suggested a solution, which is fine,
    Other option is to have a new characteristic Fiscal Qtr in all the infoproviders ans update the same using a routine in the updaterule depending on the fiscal year variant.
    for eg. for transaction with variant Z1 in one case you can say if fiscal week 01 between 01 to 13 the Fiscal Qtr should be update with1 and if it is between 14 to 26 then update fiscal qtr with 2 and so on.
    For other Variants Z2 you write a different login in the routine ans so on.
    so for all the data irrespective of the variant you will have the qtr as either 1 or 2 or 3 or 4 and you can report on this fiscal qtr.
    assign points if it helps.
    regards
    Venkata Devaraj

  • DP Planning in Fiscal Periods and Fiscal Weekly Periods

    Hi,
    We are using fiscal calnedar that starts on first Sunday of Nov with 4 weeks in each period i.e., fiscal year 2009 started on Nov 2nd (Sunday) and first period goes from Nov 2nd (Sunday) to Nov 29th (Saturday) and so on.
    So, our fiscal week also starts on Sunday and ends on Saturday i.e., in first period of 2009 the following are the fiscal weeks
    1 fiscal week - Nov 2nd to Nov 8th
    2 fiscal week - Nov 9th to Nov 15th
    3 fiscal week - Nov 16th to Nov 22nd
    4 fiscal week - Nov 23rd to Nov 29th
    1 fiscal period  - Nov 2nd to Nov 29th
    In storage bucket profile we are able to assign only one fiscal period profile. There is no place to consider fiscal weeks.
    Created two planning books as follows
    1. Planning book with time bucket profile of fiscal periods. It is allowing me to plan in fiscal periods and works as expected
    2. Planning book with time bucket profile of fiscal weeks. It is not allowing me to plan in fiscal weeks
    How to make the fiscal weeks planning book work?
    Thanks in advance,
    Srini

    What version are you using? We asked for this in 2003 at ASUG and although it was delivered in 4.1 we never got it to work, but when we upgraded to 5.1 it works perfectly.
    Define 1 storage bucket profile with fiscal weeks and 2 planning bucket profiles, one with fiscal weeks and the other with fiscal months. Then define your planning area with the SBP fiscal week. Within interactive planning, turn on the header functionality. Choose the first icon on the upper left corner of the planning grid and choose "change periodicity" and you can switch from "fiscal weeks" to "fiscal months".

  • Fiscal Period and MM period.

    Hi all,
    Can somebody explain the difference b/w Fiscal Period and MM Period in business context. Detail explanation will be helpful.
    thanks & regards,
    Prashant Rathore.

    Dear,
    Fiscal Year Definition
    Usually a period of twelve months for which a company regularly creates financial statements and checks inventories.
    The fiscal year may correspond exactly to the calendar year, but this is not obligatory.
    Under certain circumstances a fiscal year may be less than twelve months (shortened fiscal year).
    Fiscal Year Structure
    A fiscal year is divided into posting periods. Each posting period is defined by a start and a finish date. Before you can post documents, you must define posting periods, which in turn define the fiscal year.
    In addition to the posting periods, you can also define special periods for year-end closing.
    In General Ledger Accounting, a fiscal year can have a maximum of twelve posting periods and four special periods. You can define up to 366 posting periods in the Special Purpose Ledger.
    What is the Use of Fiscal Year
    In order to assign business transactions to different time periods, you must define a fiscal year with posting periods. Defining the fiscal year is obligatory.
    You define your fiscal year as fiscal year variants which you then assign to your company code. One fiscal year variant can be used by several company codes.
    You have the following options for defining fiscal year variants:
    Fiscal year same as calendar year
    Fiscal year differs from calendar year (non-calendar fiscal year). The posting periods can also be different to the calendar months.
    You define your fiscal year variants in Customizing for Financial Accounting as follows: Financial Accounting Global Settings ® Fiscal Year ® Maintain Fiscal Year Variant (Maintain Shortened Fiscal Year)
    MM Periods
    Closing operations are periodic tasks and can be subdivided in FI as follows:
    u2022     Day-end closing
    u2022     Month-end closing
    u2022     Year-end closing
    The closing operations component helps you prepare and carry out the activities required for day-end, month-end, and year-end closing. For this purpose, the system provides a series of standard reports that you can use to generate evaluations and analyses directly from all of the posted account balance. The system helps you carry out the following:
    u2022     (Time-based) accruals/deferrals of expenses and revenues
    u2022     Creating the balance sheets and P&L statements
    u2022     Documenting the posting data
    Prerequisites
    To carry out the closing operations in G/L accounting, you first need to carry out the closing operations in the subledger accounting areas you are using. These include:
    u2022     Accounts receivable and accounts payable accounting
    u2022     Inventory accounting
    u2022     Asset accounting
    u2022     Payroll accounting
    Regards,
    Syed Hussain.

  • BPC 7.5 Periodic and QTD issue on YTD Application

    All,
    Our BPC 7.5 SP 6 YTD BPC application has an issue when running EVDRE reports using Periodic or QTD measures.  YTD EVDRE reports produce correct results.  The Periodic and QTD measures work just fine as long as there is data in every period but as soon as no data is found in a subsequent period the system can not do the calculation.   It does not know how to take 'nothing' and then subtract a prior period value.  It somehow needs to treat the non existance of a record as 0 but it does not do that.  For example if the YTD May balance was 100 and YTD June was 500, if you request the periodic value for June it will take 500 - 100 and give you a 400 result which is correct.  In my second example, let's say YTD May balance was 100 but the balance went to 0 in June.  BPC does not load 0 amount so there is no record in June.  If you run a report requesting the June periodic value you will get no result as it can not handle the situation where there is no record in June.
    A while ago I worked with SAP on this and was advised to install OSS note 1405993 which FIXED that problem.  Great news until at a later date our periodic reports stopped finishing and would give the message 'EVDRE encountered an error reading data from the web server'.  It would retry in 30 seconds and error over and over never finishing.  I again reported this to SAP who gave me more efficient Periodic and QTD formulas via note 1505778.  I installed the more efficient formulas and the EVDREs now finished but it brought back the original problem where Periodic/QTD reports would produce incorrect results if there was not data in all periods.  I again reported this to SAP without success.  I have been advised to do the calculation myself in the front end (e.g.EXCEL) which just seems unaccepable.
    I have found another thread http://scn.sap.com/thread/3203570 <http://scn.sap.com/thread/3203570 where this same problem occurs in BPC 10.0 - very sad to hear that!  In that thread people have talked about using 'custom' formulas and say they work.  The formulas I have in place are the ones found in note 1505778 to calculate periodic and QTD.  Yes, I created the formulas for the Periodic and QTD measures but I did it based on direction from SAP.  Is that what everyone refers to as a 'custom' measure?  Does anyone have other formulas where they somehow tell the system how to handle the issue if there is no data found in a subsequent period when trying to run periodic or QTD reports on a YTD system?  If so I would be most grateful if you could share them or any other details you have on the subject.  Thank you.
    Thank you,
    Vicki Shrontz

    Easy, just remember that my TIME dimension name is PERIODS and my ACCOUNT dimension name is INACCT:
    For YTD cube (in my sample) we have 3 measures:
    YTD:
    MEMBER [MEASURES].[YTD] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ"),-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])), ([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])))' SOLVE_ORDER=3
    PERIODIC:
    MEMBER [MEASURES].[YTD] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ"),-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])), ([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])))' SOLVE_ORDER=3
    MEMBER [MEASURES].[PERIODIC] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP") AND NOT ([%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="TOTAL" OR  [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="Q1"  OR [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="JAN" ), [MEASURES].[YTD]-([MEASURES].[YTD],[%PERIODS%].LAG(1)), [MEASURES].[YTD])' SOLVE_ORDER=3
    QTD:
    MEMBER [MEASURES].[YTD] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="LEQ"),-([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])), ([MEASURES].[/CPMB/SDATA], CLOSINGPERIOD([%PERIODS%].[LEVEL02])))' SOLVE_ORDER=3
    MEMBER [MEASURES].[PERIODIC] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP") AND NOT ([%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="TOTAL" OR  [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="Q1"  OR [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/PERIOD")="JAN" ), [MEASURES].[YTD]-([MEASURES].[YTD],[%PERIODS%].LAG(1)), [MEASURES].[YTD])' SOLVE_ORDER=3
    MEMBER [MEASURES].[QTD] AS 'IIF(([%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="INC" OR [%INACCT%].CURRENTMEMBER.PROPERTIES("2/CPMB/ACCTYPE")="EXP"),IIF([%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/TILEVEL")="QUARTER",[MEASURES].[PERIODIC],IIF([%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/TILEVEL")="MONTH" OR [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/TILEVEL")="WEEK" OR [%PERIODS%].CURRENTMEMBER.PROPERTIES("2/CPMB/TILEVEL")="DAY",SUM(PERIODSTODATE([%PERIODS%].CURRENTMEMBER.PARENT.LEVEL, [%PERIODS%].CURRENTMEMBER),[MEASURES].[PERIODIC]),NULL)),[MEASURES].[YTD])' SOLVE_ORDER = 3
    B.R. Vadim

  • Dynamic VARIANT FOR Fiscal Period and dates

    Hi
    We have a custom transaction with date and fiscal period as vairable parameters and need to know if we can generate a DYNAMIC VARIANT for these based on FISCAL PERIOD.
    Replies will rewarded

    Hi,
              Use transaction OB29, this is in the IMG.
    Or
    Path..
    SPRO -> SAP REFERENCE IMG -> FINANCIAL ACCOUNTING -> FINANCIAL ACCOUNTING GLOBAL SETTINGS -> FISCAL YEAR -> MAINTAIN FISCAL YEAR...
    <b>Reward points</b>
    Regards
    Message was edited by:
            skk

  • Consolidating with fiscal periods and calendar periods

    Hi, Does anyone have any information out there on how to configure the system to pull data for fiscal period for some companies and calendar period for other companies?  Or any horror stories about trying to do it that way.
    Thanks.

    Stacy,
    For consolidation as a whole only one fiscal year variant is allowed. However, there is possibility of collecting data of different fiscal year variant and using appropriate currency translation rates as per that units fiscal year variant.
    For example, if you have consolidation fiscal year variant as 31st March ending and you have one unit X as fiscal year variant 31st december ending, in this case the 12th period data of consolidation unit X will be translated using exchange rate as on 31st dec and not as on 31st March.
    Hope this might be helpful to you...though no direct response to your question.
    Best Regards,
    UR

  • Problem with Fiscal Period and regarding...

    Hi all,
             I have a particular query in which posting period and fiscal year are the characteristic variables(mandatory and single values) . I have to define  Rolling Year To Date variable/ User exit such that when the user enters posing period and fiscal year query has to fetch previous 12 periods data from the cube..
           If posting period is 005 and fiscal year is 2007 then the output for a particular balance Keyfigure has to be from 005-2007 to 006-2006.
         The thing is we don’t have Fiscal period defined in the cube . One possible solution is Using the Offsets… if we are are goin to offset on the previous 12 periods, is the query going to fetch the correct values….
        Other thing we can think of is user exits… can some one share the logic regarding this... if we have to user the user exits…. Promise to award full points….
    regards,
    sasidhar gunturu

    Sasidhar,
    Since you have posting period and fiscal year separately, you need not think of going for an exit. You can simply use offsets on both so that they will fetch right data. Since there are two separate objects offsets should fetch correct data. Go ahead with offsets.....

  • IT0008 Work hrs/period and ANSAL issue

    Folks,
    Work hrs/period in IT0008 is defaulted from customizing or previous record, however for us, it works like this.
    IT0007 for example has 150hrs, in IT0008 is created as 150/2 - 75hrs, when it is semi-monthly and the text next to work hrs/period is displayed as semi-monthly. Whereas when i create IT0008 through PA30, the workhrs/period is created as 150. Not sure how and why it works like this. According to me, irrespective of PA40/PA30, the standard has to either take customising entries or previous record. The system is set to take from customising. DFINF feature.
    IT0008 - Ansal has to take the pay period and the amount, for example a semi-monthly paid employee is paid 100$, then 10024 has to be calculated and appearing in ANSAL of IT0008, however, it appears as 10012. I checked the entire ANSAL settings including V_T510W and T549R and other customizing steps, still no clue!
    Appreciate your inputs.
    Regards
    GK

    Folks,
    It is because of missing entry in T510W and after entering values, it appears correct in IT0008.
    Thanks to your time.
    Regards
    GK

  • Fiscal periods and skf PCA MSLnn fields

    Hello SDN,
    In GLPCT table, there are 16 MSL fields for 16 periods quantity values.
    Could you explain to me why 16 periods are needed?
    And I need to load this into BW into fiscper level.
    Does this mean 16 periods also in BW for fiscper?
    Thanks in advance.
    Regards,
    Suzie

    Hi Suzie,
    Don't have access to an R/3 system....
    but have you tried looking at the data in the table, maybe that would give you some idea what is stored in the 16 fields, and when they are populated.
    As such if you are saying there are 16 periods then 16 periods could correspond to the 16 different periods for a fiscal year variant K4 or V3 for example, but this is just a guess....maybe a check at the data should give you more information.
    Hope it helps.

  • How to add FISCAL YEAR, Period and Day to cube.

    hi,
    I am using SD EXTRACTORS (2LIS_11_VAITM, 2LIS_11_VAKON, 2LIS_12_VCITM and 2LIS_13_VDITM) and directly updating each corresponding ODS and cube.
    All the extractors only have FISCAL VARIANT has the time characteristic. So, all my ODS contains only one time char - fiscal variant and other dates (liek document created date etc. (not a time char)).
    Now, I want to use fiscal period, fiscal year and fiscal day in my cube. I have added these time char in my cube.
    My question:
    1. how to get FISCAL YEAR, FISCAL PERIOD and FISCAL DAY get updated. Do I need to map to document created date in update rules or Do I need to use some functional module.
    Pls note I am bringing only FISCAL VARIANT from R/3 into ODS and then to CUBE.
    PLS REPLY.

    thanks sundar..i got your point..but I have one question
    All the cubes (sales, sales condition and billing) have the sales order number (VBUK-VBELN) and item number (POSNR-VBUK). But info objects used for these fields in sales cube and sales condition cube are same but for billing it is not same.
    Can I combine all cubes (sales order, sales condition, billing) in muliti provider.
    1. Sales order cube (from VAITM)
               Sales order number (VBUK-VBELN) --  (0DOC_NUMBER)
               Sales Item (VBUK-POSNR)              --  (0S_ORD_ITEM)
    Date : Document created date (VBAK-AUDAT) --  0DOC_DATE
    2. Sales Condition cube (from VAKON)
               Sales order number (VBUK-VBELN) --  (0DOC_NUMBER)
               Sales Item (VBUK-POSNR)              --  (0S_ORD_ITEM)
    Date: Document created date (VBAK-AUDAT) --  0DOC_DATE
    Key field: Netprice (VBAP-NETWR) -- 0NET_VALUE
    3. Delivery Cube (from VCITM)
             Sales order number (VBUK-VBELN)   -- (0DELIV_NUMB)
             Item   (VBUK-POSNR)                         -- (0DELIV_ITEM)
    Date: Delivery Date :LIKP-WADAT_IST      -- 0ACT_GI_DTE
    4. Billing Cube (from VDITM)
              Sales order number (VBUK-VBELN) --  (0BILL_NUM)
              Sales Item (VBUK-POSNR)              --  (0BILL_ITEM)
    Date: Billing Date: (VBRK-FKDAT)             -- (0BILL_DATE)
    Key field: Net price (VBRP-NETWR)       -- 0NETVAL_INV
    I want to combine above cubes. If I combine, Will I get correct data??????
    Points will be assigned to every useful answer

  • Closing and opening in new fiscal period

    Hi
    I am going to close last fiscal period and open new period . What should I do step by step for closing inventory and BP and Accounting and Open them in new Period. does system has any facility to do these step automatically.
    Thanks in advance

    PEC is a tool to use for you to close any periods.  What it does is mainly creating certain retained earning entries.  There is no way to do anything automatically for you.  You may need to define new fiscal periods first before you do Period-End Close.
    Thanks,
    Gordon

  • Fiscal periods

    Hi All,
    I am having issue in getting the fiscal periods.
    Let me explain in detail.
    For example,For a particular employee if the BEGDA IS 01.01.2008 and ENDDA is 30.06.2008,
    PERNR=1 BEGDA-01.01.2008, ENDA-30.06.2008.
    So to get the fiscal period I have mapped the BEGDA to the fiscal period and Iam getting the fiscal period as 010.2008.
    But if user gives fiscal period as 010.2008 while executing the report my report is giving correct result. But if he gives the other fiscal periods which are lying between the BEGDA and ENDDA except for 010.2008 for all other fiscal periods it is not showing any result.
    So please help me out in getting the fiscal periods lying in between the BEGDA and ENDA.
    Regards,
    Haritha

    Please check your date format, in BW the right format is YYYYMMDD

  • Report for printing actuals for a fiscal period

    i have a report which prints the actuals for a fiscal year . Its like each country has their own fiscal year representation , The report is currently printing the data based on its own fiscal year representation , i have to modify the report and want it to print based on US(sep-aug) fiscal representation .. like for example for india its printing with may as fiscal period 1 , instead i want to print it with may data as fiscal period 9 and to print the data from sep-aug for all countries. I dont understand how to give the select statement and how to proceed with this. I appreciate if anyone can help me with this.
    Lets load up the yps_costplan table for loading.
    if they didn't specify a project to single load, go get them all.
    if s_objnr is initial.
    if in first fiscal month, "Sept", then get previous years data to
    fill in the last month, month 12.
    if t_t009b-poper = '001'.
    select * from yps_costplan into table i_yps_costplan
    where yyobjnr gt 'PR00000000' and yygjahr ge yprevyear and
    yygjahr lt yplus1year.
    else.
    select * from yps_costplan into table i_yps_costplan
    where yyobjnr gt 'PR00000000' and yygjahr ge p_fiscal and
    yygjahr lt yplus1year.
    endif.
    When getting all, start with 2003, when doing month, use current
    fiscal year only.
    yygjahr between t_yearm1 and t_yearp1.
    else.
    They secified 1 project, go get his data.
    if not s_objnr-LOW cs '*'.
    concatenate s_objnr-low '%' into hold_projn.
    loop at s_objnr.
    if s_objnr-high eq space.
    concatenate s_objnr-low '*' into s_objnr-low.
    s_objnr-option = 'CP'.
    modify s_objnr.
    endif.
    endloop.
    select posid objnr from prps into table t_prps
    WHERE POSID IN S_OBJNR.
    else.
    concatenate s_objnr-low(sy-fdpos) '%' into hold_projn.
    select posid objnr from prps into table t_prps
    where posid like hold_projn.
    WHERE POSID IN S_OBJNR.
    endif.
    if sy-subrc eq 0.
    loop at t_prps.
    if in first fiscal month, "Sept", then get previous years data to
    fill in the last month, month 12.
    if t_t009b-poper = '001'.
    select * from yps_costplan into table h_yps_costplan where
    yyobjnr = t_prps-objnr and yygjahr ge yprevyear and
    yygjahr lt yplus1year.
    else.
    select * from yps_costplan into table h_yps_costplan where
    yyobjnr = t_prps-objnr and yygjahr ge p_fiscal and
    yygjahr lt yplus1year.
    endif.
    if sy-subrc eq 0.
    loop at h_yps_costplan.
    i_yps_costplan = h_yps_costplan.
    append i_yps_costplan.
    endloop.
    endif.
    endloop.
    endif.
    endif.

    Hi Fris,
       You can do this using a process chain and ABAP program.
    1. Create one process chain and create abap program, include in it. Scedule this chain every day.
       Write a code in this ABAP program to check last day of fiscal period and to raise an event to execute 2 process chain or infopackge.
    From system date find currect period
    (Use FM : DATE_TO_PERIOD_CONVERT).
    Find last day of period(Use FM : LAST_DAY_IN_PERIOD_GET)
    Check system date(sy-datum) is equal to last day of period then you can raise an event(Use FM : BP_RAISE_EVENT).
    Use this event to schedule 2nd chains(contains infopackage) or direct scheduling of infopackage.
    You can create event at : SM62.
    Hope it Helps
    Srini

  • Routine in DTP to load data from previous fiscal period - current

    Hi Friends,
    I want to load data for previous & current fiscal period and I want to write a routine in DTP to automate this process, can any one help me with this routine!
    Thanks & Regards,
    vidiyala

    Hi Bilal,
    We cant create ABAP routine in DTP, instaed we can create in Info package.
    $$ begin of routine - insert your code only below this line -
    data : v_date like sy-datum.
    data : v_new_date like sy-datum.
    data: l_idx like sy-tabix.
    read table l_t_range with key
    fieldname = ' '.
    l_idx = sy-tabix.
    v_date = sy-datum.
    l_t_range-low = v_date+0(6).
    CALL FUNCTION 'DATE_CREATE'
    EXPORTING
    *anzahl_jahre =
    anzahl_monate = 8
    *anzahl_tage =
    datum_ein = v_date
    IMPORTING
    datum_aus = v_new_date.
    l_s_range-sign = 'BT.
    l_s_range-opt = 'I'.
    if l_idx 0.
    modify l_t_range index l_idx.
    else.
    append l_t_range.
    endif.
    p_subrc = 0.
    $$ end of routine - insert your code only before this line

Maybe you are looking for

  • Superdrive: plays CDs, visible in Disk Utility, not visible in Finder

    I was burning a data DVD of photos when the machine shut off.  I wasn't watching it and I didn't notice that the battery was almost dead.  It powered down and after I turned it back on Finder hasn't known how to let me view any burnt data discs.  I s

  • 8.1.7.4 to 9.2.0.1 Problem

    According to the documentation, when you perform the software load, the program will prompt you about upgrading your current database. The program never asks me any information about upgrading the database. I went ahead and installed the software, an

  • Podcast exports to  0KB file

    I have a podcast recorded for my show and this is the first one I have recorded since the update to Garageband '08. When I try to export the podcast it goes through the entire exporting process, taking quite a while, but the resulting .AAC file is 0K

  • After updating Macbook from OS 10.4 to 10.6.8 it only boots to windows xp not Mac OS

    After updating Macbook - Mac OS from 10.4 to 10.6.8 it only boots to windows xp even when selecting start up disk as Mac HD Even option C says select drive. Mac selected still goes straight to windows? Any suggestions?

  • Change System Form Title

    Hi All, Is it possible to change the name/description of system forms? For eg. I want to change the name of "Sales Order" form to "Service Order" or probably something else..can this be done? If it is possible, can anyone please help me with a sample