Period and Fiscal Year in a report selction screen (3.1 I version of SAP.)

Hi Team,
I have a requirement on a Zreport. Suppose if we are executing a report in the month of March (3)-fiscal year 2011 and if I select a variant and the varinat should populate period as Feb (2 period) and fiscal year as last year (2010).
In Nut shull if i am executing the report todays date the period and fiscal year in the selection screen should be 2 and 2010.
Also please note that i am working on 3.1 I version of SAP.
Your inputs are highly appreciated.
Thank you
Venkatesh Billa

Hi,
Generatlly while saing the variant for the report selection screen you can use the dynamic date calculation , where the last period and last fiscal year options are available.
Also you can choose the option of calculating the period and fiscal year in your program and can default the same on the selection screen. But I think you should check in ABAP forum for this, whether there anything in coding also.
Regards,
Gaurav

Similar Messages

  • How to get fiscal period based on date and Fiscal year?

    Hi Guys,
               Can anybody tell me how to get Fiscal period based on date and Fiscal Year or fiscal year variant?
    Thanks,
    Gopi.

    Hi,
    Please refer the code below:
    *: Report:  ZFISCALYR                                                  :
    *: Date  :  2004                                                       :
    *: Description: Demonstrates how to return the corresponding fiscal    :
    *:              year and posting period for a company code and posting :
    *:              date or posting date and fiscal year variant.          :
    REPORT  zfiscalyr NO STANDARD PAGE HEADING.
    TABLES: ekko.
    PARAMETERS:     p_bukrs TYPE ekko-bukrs,
                    p_bedat TYPE ekko-bedat.
    DATA: gd_fiscalyr  TYPE bapi0002_4-fiscal_year,
          gd_fiscalp   TYPE bapi0002_4-fiscal_period.
    DATA: gd_fiscalyr2 TYPE T009B-BDATJ,
          gd_fiscalp2  TYPE bapi0002_4-fiscal_period.
    DATA: gd_periv     TYPE t009-periv.
    *START-OF-SELECTION.
    START-OF-SELECTION.
    * get fiscal year and period - (requires date and company code)
      CALL FUNCTION 'BAPI_COMPANYCODE_GET_PERIOD'
        EXPORTING
          companycodeid = p_bukrs
          posting_date  = p_bedat
        IMPORTING
          fiscal_year   = gd_fiscalyr
          fiscal_period = gd_fiscalp.
    * Alternative fiscal year function module
    * - (requires date and fiscal year variant code from T009 table)
    * gets first entry in fiscal year variant table (will need to choose
    * correct one from table rather than just using first entry)
      SELECT SINGLE periv
        FROM t009
        INTO gd_periv.
    * get fiscal year and period
      CALL FUNCTION 'DETERMINE_PERIOD'
        EXPORTING
          date                      = p_bedat
    *    PERIOD_IN                 = '000'
          version                   = gd_periv
       IMPORTING
          period                    = gd_fiscalp2
          year                      = gd_fiscalyr2
       EXCEPTIONS
          period_in_not_valid       = 1
          period_not_assigned       = 2
          version_undefined         = 3
          OTHERS                    = 4.
    *END-OF-SELECTION.
    END-OF-SELECTION.
      WRITE:/ 'From function module: BAPI_COMPANYCODE_GET_PERIOD',
            / 'Fiscal year is:', gd_fiscalyr,
            / 'Fiscal period is:', gd_fiscalp.
      SKIP.
      WRITE:/ 'From function module: DETERMINE_PERIOD',
            / 'Fiscal year is:', gd_fiscalyr2,
            / 'Fiscal period is:', gd_fiscalp2.
    Thanks,
    Sriram Ponna.
    Edited by: Sriram Ponna on Apr 17, 2008 8:59 PM

  • 0 fiscper3 (posting period)and 0fiscyear (fiscal year) in bw report

    Hi I need a quick help, please resolve my issue in step by step. Report is required to display the 0 fiscper3 (posting period)and 0fiscyear (fiscal year) in bw report. I have a 0fiscper Fiscal Yr / Period in my datasource and infosource but not 0fiscper3 (posting period)and 0fiscyear (fiscal year). Can any body help me how to add the abap code to convert the 0fiscper Fiscal Yr / Period to display 0fiscper3 (posting period)and 0fiscyear (fiscal year in report or how to add by abap code 0fiscper3 (posting period)and 0fiscyear (fiscal year)in datasource. User will select the value of 0FISCYEAR
    Fiscal year during the execution of report. please help
    will reward all points.
    thanks
    soniya kapoor

    In de update rules from infosource to datatarget you fill the rules like this:
    For 0FISCYEAR:
      result = comm_structure-fiscper(4).
    For 0FISPER3
      result = comm_structure-fiscper+4(3).
    Note that this can also be done by using formula's. If you can't ABAP you may prefer to use formula's.

  • 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

  • Last period last fiscal year

    Hi Guru's,
    I'm trying to make a report with the following key figures colums:
    column 1: balance, restricted by fiscal year/month (with a variable, user entry), i have my own fiscal variant
    column 2: balance, restricted by the last period last fiscal year (user exit)
    <u>for example:</u> column 1 shows the values of period 005.2006, then automatically column 2 shows the period 012.2005
    for column 2 i created a user exit variable ZVARLPLY, can anybody help me with the coding in the user exit? I already tried to use the variable "0P_BA102 --> ZP_BA102", but it didn't work. The error "Variable 0P_BA102 could not be replaced" will disappear when i check the input of the variables.
    Can anyone help me?
    Regards,
    Pieter

    Assign points if helpful!
    You can use this logic and modify it accordingly
    DATA: l_s_range TYPE rsr_s_rangesid,
          loc_var_range TYPE rrrangeexit,
          l_year TYPE n.
    WHEN 'ZVARLPLY'.
        IF i_step = 2.                    
          LOOP AT i_t_var_range INTO loc_var_range
                       WHERE vnam = '<user entry variable>'.
              l_year = loc_var_range-low(4).          "Get year
              l_year = l_year - 1.
              l_s_range-low   = l_year + '012'.       "last year + '<last period of fiscal year>'
            l_s_range-high  = loc_var_range-high.
            l_s_range-opt   = loc_var_range-opt.
            l_s_range-sign  = loc_var_range-sign.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.

  • FI_E018 - Period 006/Fiscal Year 2010 for FM posting in value type 54

    Hi all,
    I am using Former Budgeting and is configured for Commitment Budget only (not configured for Payment Budget). When I tried posting via GL Document Entry to test FM, I encountered the following error.
    [Message no. FI_E018 - Period 006/Fiscal Year 2010 for FM posting in value type 54
    Diagnosis:
    Posting for the document of value type 54was attempted on a date that has not been opened in FM.
    Procedure:
    To define open item intervals for FM postings, use the following transactions:
    Individual Maintenance of Open Time Intervals
    Mass Maintenance of Open Time Intervals]
    I have already maintained in transaction FMIR.
    The entry is:-
    Budget Category/Year/Value T/Account Assign Elem/Value/AuGr/Frm/To
    9B Commitment Budget/2010//00 All Account Assignment// / /16
    What else do you think could be causing this error?
    Regards,
    Bernard

    Go tcode FMIR.
    Ensure that you both entries:-9A Payment Budget and 9B Commitment Budget.
    Budget Category/Year/Value T/Account Assign Elem/Value/AuGr/Frm/To
    9A Payment Budget/2010//00 All Account Assignment// / /16
    9B Commitment Budget/2010//00 All Account Assignment// / /16
    Regards,
    Bernard

  • Difference between calender year and fiscal year

    Hi Experts,
    Can you please let me know What is the difference between calender year and fiscal year?

    Hi Suresh,
    Calender year  begins on January 1 and ends on December 31.
    A fiscal year (or financial year or accounting reference date) is a 12-month period used for calculating annual ("yearly") financial statements in businesses and other organizations.It can be any 12-month period that a company uses for accounting purposes.
    hope its clear
    Cheers
    Sunil

  • What is difference in open account period and encumbrance year?

    hello experts,
    I want to open the accounting as well as financial year for 2012-2013. as I am using test application.
    in purchainsing->setup>-accounting->open and close period.
    their are are two terms
    accounting period and encumbrance year.
    what is the meaning of these terms.
    when I am click open next account period , it is opening month wise.
    in my test application period only before 2007 is opened. now I want to open directly 2012-2013 period.
    how to do that.
    also tell me what is accounting inventory period, n what case it is useful?
    thanks
    yash

    http://docs.oracle.com/cd/A60725_05/html/comnls/us/gl/openpe01.htm
    http://www.google.co.in/webhp?source=search_app#hl=en&sclient=psy-ab&q=inventory%20accounting%20periods%20in%20oracle%20apps&oq=&gs_l=&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.&bvm=bv.43148975,d.bmk&fp=38b5f37b94cc2ba8&biw=1366&bih=667&pf=p&pdl=300

  • Document number in company code and fiscal year has already been

    Hello,
    While doing a PGI of a delivery in VL02N transaction, I am receiving a dump with the above message in the subject.
    Short text of error message:
    Document number 6200 4900000020 2010 was already assigned
    Long text of error message:
    Diagnosis
         Document number 4900000020 in company code 6200 and fiscal year
         2010 has already been assigned.
    System Response
         Termination of processing.
    Procedure
         Check document number range 49 in company code 6200 and fiscal year
         2010 and correct the number range status if necessary.
    I am not sure of the way the number range clearing in SM56. I need to know the object and subobject for the delivery number for the same.
    Does anybody knows about it ?

    What would be the object and subobject for a delivery number entered in VL02N transaction ?
    There are many objects present in VL02N transaction but I am not able to figure out the real one which is needed.
    Please help me with the same.

  • BAPI for return/supplement the funds for both overall and fiscal year.

    I have a development requirement for following and I am new to Investment ,management and Project
    Systems functionality.
    Your help will be appreciated
    The new transaction will use the upload data to create returns and/or supplements to Marketing budgets.  The following is what the transaction will do per request:
    •     Verify funds are available to shift.  The program will do this by creating an error log for items that do not meet this criteria.  The program will process all line items that have available funds (IM52).
    Q pls let me know what BAPi/FM to use to verify whether funds are vailable or not
    •     Return the funds for both overall and fiscal year (IM52).
    Q Pls tell me BAPI for same
    •     Supplement the funds for bother overall and fiscal year (IM52).
    Q BAPI for same
    •     Deactivate the availability control for the WBSE’s affected (CJBW).
    Q  How to do that and BAPI/FM for same
    •     Activate the availability control for the WBSE’s affected (CJBV).
    Q  How to do that and BAPI/FM for same
    •     Add appropriate text from the data in the upload spreadsheet (this may be a concatenation of data from the columns in the upload) (IM52).
           Not clear what user is trying to say
    •     The transaction needs to be able to handle whole dollars as well as numbers that might include up to two decimals:  e.g. .01 (IM52).

    I am answering my own question since i completed the above development by using the FM KBPV_POST_DATA .
    It will post to all the BP tables and is tested successfully.

  • Need to download the data from BSEG based on company code and fiscal year

    Hi All,
              Please suggest me the solution to download the data from BSEG based on company code and fiscal year. As data in BSEG for the fiscal year2009  is 27 lakhs (= 2.7 million) for the specified company code.
    <removed>
    Thanks & Regards,
    Koti
    Edited by: Thomas Zloch on Mar 26, 2010 4:28 PM - please use English metrics only!

    May I ask what you mean by solution?  You can download from SE11, but where are you going to store 2.7 million rows and what tool are you going to use to store it?
    You probably need a (small) program that extracts what you want, then opens a dataset in an appropiate server-system folder, and transfers the data rows to the dataset as fixed-length or tab-delimited file.  It's been done many times, so suggest that you search.

  • Fund Center Z001 does not exist in FM area and fiscal year 20.01.2010

    Dear Expert,
    We have activated Funds Managment in quailty Client. but when ever we are trying to create PO below error message is coming:-
    Fund Center Z001 does not exist in FM area and fiscal year 20.01.2010
    Message No-F6580
    Also when ever we are trying to post an FI document the same error message is coming.
    Please advise with T-Code.
    Regards,
    Alok

    Dear Mr Srinu,
    The Z001 problem is solved by creating a fund centre using FMSA. Now while doing the shipment cost below error message is coming:-
    1.Account Assinment to Commitment Item not supported with this GL account. Message no-ME032
    2. No Funds center entered /derived in item 00010(1020/302401/)
    Pl help,
    Regards,
    Alok

  • Funds center 000000 does not exist in FM area  and fiscal year 15.06.2009

    Hi Expert,
    When I tried to cancel Invoice via MR8M, I get Error message "Funds center 000000 does not exist in FM area  XXX and fiscal year 15.06.2009"
    Please tell me what is wrong here.
    Thank you.
    Regards,
    Henry

    Hi,
    That's the message from Funds Mangement component. You have to check whether the derived fund centre is the right one and if yes, create it via FMSA transaction.
    Regards,
    Eli

  • Funds center does not exist in FM area MOF1 and fiscal year

    Hi Consultants,
    I have configured the derivation strategy in FM and other relevant configurations. When trying to post a GL transaction in FI, This error message came up;
    Funds center 0000412000 does not exist in FM area MOF1 and fiscal year 10/13/2010
    What did i not get right.
    Please reply.
    Thanks.
    Ekemini
    Moderator: I believe, the error message speaks for itself. Please, avoid asking basic questions

    Hi,
    That's the message from Funds Mangement component. You have to check whether the derived fund centre is the right one and if yes, create it via FMSA transaction.
    Regards,
    Eli

  • Report Painter Long Text Display and fiscal year

    Hi Gurus'
    Could you pls let me know, how do I get Long text in the report.  Usually we get medium text.
    And in the selection screen if i have like:
    Company code
    Fiscal year
    Period
    How do I get the text along with the Fiscal year.
    Like Revenue 2008
    Regards,
    SK

    Hi,
    For displaying long text in rows or column,
    go to menu bar>Formatting>Rows/column texts. Under this tab, you can select shot, medium, long as required for both rows and columns.
    Further, to display fiscal year along with text in column, you must have asisgned variable for fiscal year in column. Go to text of the column and mention &variable of fiscal year assigned for the column after the text.
    Reward points if useful.
    Regards,
    Harish

Maybe you are looking for

  • How to Edit and Replace Psd Files in Adobe Flash - Help!

    Hi Everyone, I am new to flash and I am trying to build my first flash site using a flash template. I can use flash to edit certain components like header text, etc. But The content is impossible for me to change. I think that these are psd files, wh

  • Can I Install Windows 7 On An External HDD?

    So I bought a 1TB external hard drive, freeing my old 320GB module. I have no room to install a proper partition on my MacBook Pro, so I was wondering if it's possible to install Windows 7 on my 320GB external hard drive and run it without problem.

  • Screen coming up with a sad faced Ipod with a ! next to it

    my ipod wont load at all and only gets as far as a screen where it shows an ipod with a sad face and a ! next to it with the website for apple support underneath it? It makes funny noises when its trying to load and doesnt get any further then the un

  • Voice command for Contacts doesn't work after a re...

    Voice command for Contacts doesn't work after a reboot or a contacts restore. Steps to reproduce: 1. Backup contacts. Open Files > Backup & Restore > Select Contact for Backup Contents and select Back up now. 2. Edit/save a contact, press and hold th

  • Unexpected Signal : 11 occurred at PC=0xFB816824

    An irrecoverable stack overflow has occurred. Unexpected Signal : 11 occurred at PC=0xFB816824 Function name=startsWith (compiled Java code) Library=(N/A) Current Java thread: Dynamic libraries: 0x10000 /home/wlsadm/jdk131/jre/bin/../bin/sparc/native