Report ... conversion for fiscal year representation

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.

someone please help me with this ..

Similar Messages

  • PS module report .. converting fiscal year representation

    i have a report which prints the actuals for a fiscal year . Its like each country has their own fiscal year representation , i have to convert data of other countries to the fiscal year representation of US(sep-aug) . I dont understand how to give the select statement and how to proceed with this. I appreciate if anyone can help me with this.
    Check for function modules and Check index's.
    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.

    the table yps_costplan contains posting date fields but i donno why there are so many fields for that(12) and which value do i need to take exactly .
            How can we translate between the different fiscal year variants .There is some function called in initialization . Z4 is sep-aug.
    Form simu_date2.
    get fiscal year?
    calculate how many open months with current date.
      select * from t009b into table t_t009b
        where periv = 'Z4' and bdatj = sy-datum(4).
      read table t_t009b with key
      bdatj = sy-datum(4) bumon = sy-datum+4(2).
      yglobal_year = sy-datum(4)  + t_t009b-reljr.
      ycurrentyear = yglobal_year.
      yprevyear = yglobal_year - 1.
      yplus1year = yglobal_year + 1.
      yplus2year = yglobal_year + 2.
      yplus3year = yglobal_year + 3.
    endform.

  • S_P00_07000134 Withholding Generic Report for Fiscal year 2009

    Hi All,
    I was executing S_P00_07000134 Withholding Generic Report for Fiscal year 2009 but when the output came in the output I can see the year 2008 instead of 2009. So hown can I bring 2009 in my report.
    IS there any SAP not whic needsto be applied.
    REgards,
    Kiran C

    Dear,
    What is the reporting period that you have given in this report, try to give 01.01.2009-31.12.2009 if it is a calendar year or as per your fiscal year give the period.

  • Bex Report for Fiscal year

    I have requirement like as below
    In my report selection screen there will be a variable for fiscal year variable is user input.
    in report column there is one KF that is a amount field.
    if user give some value range in the variable like 2005001 to 2005003
    he want to see the amount value for year to date
    like
                   2005001     2005002     2005003
                   1000.00     200.00     300.00
                   300     400     400
    if any one knows please glide me the steps
    how to display year to date value for each fiscal period as per user input in the variable selection.
    Thanks
    samit

    Hi,
    1) You will create a customer exist varible for FYP.
    2) You will also have a user entry varible for FYP to allow the user to enter his values for YTD.
    3) Write a code in CMOD for the customer exist YTD varible.
      if i_step = 2.
          read table i_t_var_range into loc_var_range with key vnam =  'user entry variable.
          year = loc_var_range-low+0(4) .
          period = loc_var_range-low+4(3).
          concatenate year 001 into l_s_range-low .
          concatenate year period into l_s_range-high .
          l_s_range-sign   = 'I'.
          l_s_range-opt    = 'BT'.
          append l_s_range to e_t_range.

  • BSC:  Display values for Fiscal Year/Period

    Hi all,
        We are trying to create a small test scenario to know about balance score card. We have a cube which has Actual and Plan data in one KF diffentiated based on Value type character. Time character is fiscal year/period.
    We want to display a graph which displays actual and plan for fiscal year/period wise. But when we execute the score card it shows the total year's plan and actual for the individual fiscal year/period. But ideally it should display actual and plan for the respective fiscal year/period.
    we have created two value field in the measures of score card. and formula a/b (Plan / Actual ) is used.
    Please guide us in solving the problem.
    Regards,
    PM

    <FONT FACE = "Tahoma", Font Color = "Blue">
    Hi
    <Br>
    Do you have Fiscal Year Period in the Rows of your BW Report? If not, please try that.
    <Br><Br>Hope it helps.
    <Br>
    Cheers
    Abhijit
    <Br>* It's a good habit to reward someone with points in SDN if you think his/her
    response was helpful to you
    </FONT>

  • Sugestion required for Fiscal Year scenario

    Hi Gurus,
    I  need your suggestion for the below scenario
    One of our client going to  change the Fiscal period  from  (Jan -  dec ) to (Sep - Oct). We have nearly 5 years of records as on date based on the (Jan-Dec) fiscal period.
    Requirement: If new fiscal peirod will come in active , they want to view all the data ( Including  historical records)based on the both the fiscal period based on the selection in the query.
    Technical requirement: Dynamic switching is requried for Fiscal Year Variant in the query level. 
    Suggestion Required for below point:
    1. Is it required to maintain two Fiscal year variant ?
    2.How do we maintain the new fiscal year period for historical record ?
    3. Is it any posibilities their with out major disturbance of the existing query ?
    4. Is it possible to do in query level with minor impact of performance ?
    5. Is it possible to do in back end side with out redundancy of the records ?
    6.I have a solution to use multiprovider on top of two infoprovides which are maintain the fiscal period based on two fiscal year variant. If I realize this it would lead major back end work.
    7. I have another solution to add another two fields in the existing structure to hold new variant and fiscal period. If I do this How dynamically I can change the structure of the query for to view the different fiscal period information.
    Anticipate your reply eagerly
    With Regards
    Siva

    Hi,
    1. Is it required to maintain two Fiscal year variant ?
    Yes,  You will need to  have another Fiscal Year variant for Sep to Oct.
    2.How do we maintain the new fiscal year period for historical record ?
    To do this at the BI Level, You can have a routine to convert the Fiscal Year Period according to the new Variant.
    You will have to get the help of a functional consultant in order to understand the logic of opening and closing balance. According to the new variant the current Fisc Period 009.2009(Sep 2009) will become 001.2010 and so on. Apart form just converting the period, you will also have to take care of carrying over the balances.
    3. Is it any posibilities their with out major disturbance of the existing query ?
    Once you implement the above logic, you can just include the New Fiscal variant into the query.
    4. Is it possible to do in query level with minor impact of performance ?
    Yes, as mentioned above.
    5. Is it possible to do in back end side with out redundancy of the records ?
    Not sure about this.
    6.I have a solution to use multiprovider on top of two infoprovides which are maintain the fiscal period based on two fiscal year variant. If I realize this it would lead major back end work.
    This seems to be the best way. You will not have to touch the existing cube. Only your reports will have to be copied to the New MultiCube. The logic in the 2nd Q above will be for the new cube.
    Regards,
    Gaurav

  • Texts for Fiscal Year Period

    Hi all
    We are currently using Fiscal Year Variant Z6(July - June, 4 special periods).
    When we display the texts for Fiscal Year Period in a Query it displays as CALMONTH FISCYEAR. E.g. July 2004, which is FISCPER 01.2004 but Calmonth 07.2003 (July 2003). I want the texts to display as the correct calendar year month, not as a combination of calendar month with the fiscal year.
    I have tried to maintain the texts of 0FISCPER, but I get the following message "The master data table of char. 0FISCPER is not generated, operation terminated"
    Has anyone managed to solve this problem?
    Thanks in advance
    Chami

    Chami,
    I see the problem. The Year Part of the Text is wrong.
    Unfortunately this means that Fiscal Year cannot be used to display the texts.
    The solution to your problem is to have the description from the calendar month/year in the column headings by adding the calendar period to the data target, convert the fiscal period to calendar period on data loading (using provided date conversion functions in the formula builder) and use it for display purposes. The fiscal year is still used as selection criteria (as a filter)
    The other solution is to have text variables created from the Calendar period and used in the column headings
    Hope that helps!
    Rishi

  • Cost Center Planing Report Layout KP65 - Fiscal Year Variable Error

    Hi All,
    I am creating a layout for Cost Center Planing in KP65. I selected Fiscal Year Variable GJAHR.
    In Tex Maintenance when I give "1st Qtr $GJAHR" and save I am getting the following error. "Text variable &$GJAHR has an invalid replacement rule"
    The same is available in other existing reports.
    Fiscal year variable is created in KE3E also.
    Please let me know what is the issue.
    Thanks
    Satish

    Hi,
    Thanks for the reply.
    I created new Variable as follows
    For Fiscal Year
    Type of Var = Char Value
    Enter variable name, say, ZGJAHR - and then Variable is shown as &ZGJAHR
    Field Name = GJAHR
    Replacement type = Entry
    Enter Description
    Parameter/selectop = Parameter
    and I used the variable in the layout and when saving I am getting error
    Please maintain variable &$ZGJAHR
    Text variable &$ZGJAHR has an invalid replacement rule.
    In the text maintenance medium text I have given as "1st Qtr $ZGJAHR".
    Please let me know where can be the issue.
    Thanks
    Satish

  • Report from 2 fiscal years

    Hi,
    GL Balances : I want to take out the report from 2  fiscal years, 2009 (10 to 12 period) and 2010(1 to 9 period).
    Please let me know the report name.
    Thanks

    Hi...
    Can you use FS10N, FBL3N, S_ALR_87012332 - G/L Account Statements ,S_ALR_87012282 - G/L Line Items, List for Printing , to see the year wise like
    While entering the date range we have to  enter from 01.10.  2009 to 31.12.2009 or from 01.01.2010 to 31.09.2010
    But you can give both date range at a time
    I hope it will helps
    Regards
    vamsi

  • F4 Help Option for fiscal year/period to show most recent one first

    Hello Friends, We have audit team which wants this F4 Help for fiscal year/period to show the per/year in the current one first and then old one. Like 007/2007, 006/2007 -
    012/2005
    Please tell me if there is any Settings in Web template or in BI to make this work. Please help asap since auditor are required to test the reports for SOX.
    Thanks
    Regards
    SK

    i don't think it's possible... if you want you can restrict it to fiscal year 2007.

  • Variable for Fiscal Year Period in cube "0ECCS_C01" - Urgent

    Hi all,
    I have created a query based on cube "0ECCS_C01". I have restriced the characterstic " Fiscal Year Period" on  "Period/Fiscal Year (Single Value Entry, Required)" variable. Output of the query are just 2 numbers : sum of "cumulative value GC" and sum of "period value gc" for given period. This query is working fine in query designer. The variable takes input in following form "001.2008". I have checked that in analyzer that the 'key' value of the variable is in this format "001.2008".
    Now in VC , when i place "001.2008" in start point coding for fiscal year, it is giving error. Can any one please tell me that why it is throwing an error.I have given the same format as i gave in query designer. or shud i give period in some other format??
    Please respond.
    Regards,
    Aisha Ishrat
    ICI Pakistan Ltd.

    Hi,
    can you give us further information about the data type in the cube resp. the infoobject, which is used in the cube for the fiscal year/period?
    Maybe you can try 0002008. Can you check which values you can enter when you execute the query in the web, so that the value helps for the variable comes up?
    Best Regards
    Marcel

  • Error saying 'Posting period 000 is not defined for fiscal year variant K4'

    Hi All,
       When I try to add a new entry in the transaction OB52, I get an error message saying 'Posting period 000 is not defined for fiscal year variant K4'. The entry that I add is,
    Variant           :  0001
    Account Type: +
    From Period    : 1
    Year               : 1995
    To Period        : 12
    Year               : 2010
    From Period2  : 13
    Year               : 2000
    To period2      : 16
    Year               : 2010
    Please let me know what customising needs to be done to solve this issue.
    Thanks a ton.
    Best Regards,
    Jeff

    Hi,
    Hava you checked in OB52 screen, by default 0001 posting period variant will be there for +, A, D, K, S account types.
    If it is already existed in your OB52 screen, you won't create one more record with the same name. You have to edit the existing 0001 posting period with new values.
    Thanks
    Chandra

  • Error: "posting period is not defined for fiscal year variant" in  FBICS3

    Hi,
    I got error  "posting period is not defined for fiscal year variant" when I execute t code FBICS3.
    I checked in OB29 &  t code FBIC010 & noted that the fiscal year variant had ben maintained.
    Please advice.

    HI,
    It was noted that the mentioned t code had been maintain but below mentioned error appear:
    Posting period  is not defined for fiscal year variant
    Message no. GU506
    Diagnosis
    You have tried to determine a posting date in fiscal year variant for period , fiscal year , but this period is not defined for the variant.
    Procedure
    You maintain fiscal year variants in table T009.
    It was referring to t code OB29. I have checked the detail, in OB29 also details maintain.
    Please advice why the error still prompt.

  • Splitting is not working for fiscal year 2008

    hai experts,
    The splitting is not working for fiscal year 2008. This is critical for month end.
    pls explain me ful cycle and advise me what i have to do,
    thank you

    Hi
    Please check the documentation in the links below.
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/1c/2ed140ed61712ae10000000a155106/content.htm
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/87/3da04028f40160e10000000a1550b0/content.htm
    This gives yuo a brief on Document splitting. Please let me know if you need any further help. Please do award points if found useful.
    Karthik

  • Budget control - Assigned funds are less than payment budget for fiscal year in document item

    Dear Experts,
    We are using Former budgeting, when ever we run the transaction FMBV getting the following message to a particular user.
    Budgeting
    Assigned funds are xxxx BHD less than payment budget for fiscal year
    2014 in document item XXXX /XXXXX .
    And also when purchasing creates the PO getting similar message to a particular user.
    Purchase order 450000XXXX
    Assigned funds are XXXX BHD less than the commitment budget for
    fiscal year 2014 in document item 010 XXXX /XXXXX .
    How to know where these users were maintained.
    Thanks for the help

    Hello Itai,
    Sorry for my late reply. Have you been able to find a solution for this?
    If not, please update, otherwise please make this thread as answered.
    Sorry for the delay...
    Kind regards, Mar.

Maybe you are looking for