Variable to display data from Current Fiscal Year to the MONTH entered

Hi Friends,
In the Quey Designer I require a CHARACTERISTIC VARIABLE for the 0CALMONTH which should have the following features:-
1.Input Month(e.g JUN 2008)
2.Mandatory
3.Ready for Input
The query should show the following OUTPUT:-
The data should be displayed from the CURRENT FISCAL YEAR to the value of the Input MONTH entered.
     e.g For Input  =  DEC2008
           Output = from APRIL 2008 to DEC2008.
Do we have a standard variable for this or we have to go for a Customer Exit??
Thanks in Advance!!!
Vivek

Hi,
Create a customer exit as follows.
WHEN 'ZCMTD'.
you variable name
data: ZCMTD_LOW like sy-datum.
ZCMTD_LOW = sy-datum.
ZCMTD_LOW+4(2) = '04'.
*replacing last two symbols (month) in the current month with '04'
CLEAR L_S_RANGE.
L_S_RANGE-LOW = ZCMTD_LOW.
*initializing low interval limit
L_S_RANGE-HIGH = SY-DATUM.
*initializing high interval limit
L_S_RANGE-SIGN = 'I'.
*defining interval as inclusive
L_S_RANGE-OPT = 'BT'.
APPEND L_S_RANGE TO E_T_RANGE.
ENDCASE.
Thanks,
Ashok

Similar Messages

  • Year To Date for Current Fiscal Year

    Hi All,
    I have installed BC variable Year To Date for Current Fiscal Year 0I_CFYTD..
    foloowing error occurs
    Variable 0I_CFYTD could not be replaced..
    Do i need to write any code or Please help.....

    Hi,
    Please check if fiscal year variant is used in the filter. Else the BC variable throws an error. Drag fiscal year variant to the filter area and set a value or variable input for the same.
    Regards,
    Satya

  • How to get last 35th fiscal year periof form current fiscal year period

    Hi,
    I want last 35th moths fiscal yesr periof from current fiscal yesr periog.
    E.g. current month FISPER - 2010011 so required FISPER is 2010011 - 35 = 2007009.
    Please help if any one know about it.
    Marks will be provided.

    Hi,
    Drag Fiscal year/period characteristic in the query and restrict it .
    In the variables , you will find SAP delivered variable which willl give you current fiscal year/period.
    Create range on the using this variable and give offset of -35.
    For eg.
    the name of the variable is 0PF_CP,  then create range in the following way.
    Lower range will be 0PF_CP - 35
    and higher limit will be 0PF_CP.
    So the range would be 0PF_CP-35 : 0PF_CP.
    This will give you the last 35 fiscal year/period.
    - Jaimin

  • Current fiscal year period in BEx

    Hi,
    I have a requirment. i have a BEx query, that query is a source of APD and data is store in direct DSO.
    i need to run this query every month and load current fiscal yer period data into the DSO.
    i need BEx variable to filter the data for current fiscal year period.
    I have fiscal year period char. in query definaton
    Please help me to get this.
    Thanks.
    Edited by: Pria Gupta on Nov 24, 2011 2:18 AM

    Use variable 0F_CUFPE Current Period of Fiscal Year (Formula Variable)
    Re: how to get default value fiscal year period in Variable
    Regards,
    Sushant

  • Use an applet in a Jsp to display data from Oracle DB

    Hi everyone, I'm very new to java my question is:
    Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
    Please help me any sample code are welcome
    Thank you in advance
    Fabry

    Hi,
    Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
    Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
    <html><head><title> Demo Applet</title></head>
    <body bgcolor="rd">
    <% if (request.getParameter("SUBMIT") != null) {%>
    <jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
    <jsp:fallback> Plug in not supported by your browser</jsp:fallback>
    </jsp:plugin>
    </body></html>
    Hope this will help you.
    Rgds,
    Ravi Shankar

  • Creation of shortend Fiscal year for the Merger of two Companies.

    Company 'A'is getting Merged with the Company 'B' on 15th February 2010. Company 'A' is suppose to submit all the financial details to the Company 'B' on 15th February 2010, furthermore the users with the Company 'A' should not be allowed to post any transactions after 15th February 2010.(Max they should be given 10 days grace period for closing the financial year)
    The current fiscal year for the Company 'A' is from April to March. However, as per the above mentioned scenario it is required to have fiscal year from April to February.i.e. a shortened fiscal year.
    Please note that Company 'A' is using the version 4.7.
    Steps we have already proceeded with
    1. we created a Shortened fiscal year "Z1"from April to Feb 2010 (Monthly basis) wherein we have taken only 15 days for the month of Feb 2010.
    2. we have created an another Shortened fiscal year(weekly basis) wherein we have taken six weeks as posting period.
    3.We assigned the Fiscal year Variant to the company code.
    4.After assigning when we want to check the details of the assets in the Asset explorer AW01N.the system is reflecting an error "
    SYST: Error when calculating first day in fiscal period   > F1
    Message no. AA654
    Please provide us with the solution for the above mentioned scenario.
    Thanks and Regards,
    Tejprakash Chaurasia.

    Hey,
    I am facing a similar scenario at my client place, thought if i could get insights on how you resolved the issue identified...
    We are yet to configure the shortened fiscal year settings.
    Thanks
    Pradeep

  • Need to Display Data for Cummulated to Current Day of Current Fiscal Year

    We use fiscal variant V3 (April-March).  My need is to display data automatically from first of fiscal period (April 1 2006) to today.
    I tried using 0CYTCD on Calendar Day but this works only for the current calendar year that the system is in  i.e 2007.
    Is there a standard variable I can use on 0CALDAY so I always get data from day one of current fiscal year/period to today? e.g. April 1, 2006 to January 3, 2007
    If not, can someone please help with the exact customer exit code that I would need to write in CMOD in BW?
    Thanks a ton!

    I thought of using 0FYTCD variable, but I cannot find it in the business content.
    Has anyone used 0FYTCD (Fiscal year to current day) in BW 3.1 SP25?
    Again, I am looking for a variable that would get me the beginning of fiscal year to today.
    Thanks.

  • I would like to display current fiscal year always on variable screen

    Hi
    I have requirement in which I would like to display the current fiscal year on variable screen in BI Report.
    we have a standard variable however the sap exit to display the current fiscal year is not shown...
    Can any one tell me, how to proceed in this case.
    Thanks
    Chetan

    Hello,
    For I-step = 1, use the function module DATE_TO_PERIOD_CONVERT.
    here for IMPORT use i_date = sy-datum and i_periv = ur fiscal variant.
    The output is e_buper contains fiscal period and e_gjhar contains fiscal year.
    The use concatenate to join fiscal year and fiscal period to the variable low value.
    Regards,
    Shashank

  • How to design extractor can have only current Fiscal Year data.

    Dear Experts,
    I require a full upload DSO , which can have only current fiscal year data . I have created view putting there certain conditions for minimising the data size. How i can restrict it , to have only current fisacal year data for YTD reports. It would be daily uploaded.
    Should i created Data Source based on function ?
    Regards,
    Anand Mehrotra.

    while extracting the data from source you can set the filters at the info package level so that it will not extract the previous years data.
    In the data selection tab in Info package enter the current fiscal year and schedule the IP it will extract only the current year data.
    next execute the DTP to load data till DSO.
    the data is restricted in the infopackage level before entering to PSA so there is no need to write any routines in the DSO level.
    Edited by: prashanthk on Feb 1, 2011 12:45 PM

  • Displaying dates from 1 to 31/30/28 depending on month and year

    Hi all,
    I am working on oracle 10g, how can i display set of dates from (1 to 30) depending on month and year eg, for nov month if i run the query.. the output should be:
    1
    2
    3
    30
    and this should be accomplished only by using SQL
    Regards,
    Sreekanth.

    something like:
    select level from dual
    connect by level <= to_number(to_char(last_day(to_date('NOV-2009', 'MON-YYYY')), 'DD'))
    /

  • Variable to load data upto a fiscal period

    Hi gurus ,
       i had created a customer exit variable Such that it gives the data from first month of the fiscal year to the period which is feed by the user in  a user entry variable 0P_FPER.
    our fiscal year start from october  (2009001).
    let user feed  the value in  a user entry variable 0P_FPER = 2009003  (dec 2008).
    so According to my code it should pickup the data from 2009001 to  2009003.
    but my code is giving data from 2009001 to current month (2009004).
    i am not good at Abap, so there may be some error in my code.
    plz check my  code  shown below, and plz throw some light.
    WHEN 'ZCE_YTFP'.
            clear l_p_range_SS1.
        DATA:  V_YEAR9(4) TYPE n,
               v_fsyear10(7) TYPE n,
               V_fsyear11(7) TYPE n.
      CLEAR loc_var_range .
      IF i_step = 2.
      LOOP AT i_t_var_range INTO loc_var_range.
        IF loc_var_range-vnam = '0P_FPER'.
    V_fsyear11 = loc_var_range-low.
    V_YEAR9 = loc_var_range-low+0(4).
    Concatenate V_YEAR9 '001' into v_fsyear10.
    l_p_range_SS1-Low =  v_fsyear10.
    l_p_range_SS1-high = V_fsyear11 .
    l_p_range_SS1-Sign = 'I'.
    l_p_range_SS1-Opt = 'BT'.
    APPEND l_p_range_SS1 TO e_t_range.
    endif.
    endloop.
    Endif.
    Thanks.

    Hi Surabh,
    try rhis
    WHEN  u2018ZCE_YTFP' '.
        IF I_STEP = 2.
          LOOP AT I_T_VAR_RANGE INTO loc_var_range  WHERE VNAM = '0P_FPER'.
           V_fsyear11 = loc_var_range-low.
            CONCATENATE V_YEAR9 -LOW+0(4) '001' INTO  v_fsyear10-LOW.
                         l_p_range_SS1-Low = v_fsyear10-LOW.
                         l_p_range_SS1-high = V_fsyear11-SIGN .
                         l_p_range_SS1-Opt = 'BT'.
    APPEND l_p_range_SS1 TO e_t_range.
    endif.
    Rgds
    SVU123
    Edited by: svu123 on Jan 24, 2009 9:13 PM
    Edited by: svu123 on Jan 24, 2009 9:16 PM

  • Change in Specify Transfer Date/Last Closed Fiscal Year in Asset Accounting

    Hi,
    While uploading the asset master data and values,I have given the Specify Transfer Date/Last Closed Fiscal Year date as 31-12-2008.But as per the fiscal year 4-4-5,2008 closed on 03-01-2009.
    what are the consequences,If we change the Specify Transfer Date/Last Closed Fiscal Year date from 31-12-2008 to 03-01-2009 as the 2008 closed on 03-01-2009.
    Kindly give me some inputs regarding this change.
    Thanks
    Supriya

    Hi
    Please note
    I you change the transfer date to current FY date , system will not allow u to upload data in PY.
    See the below
    Transfer Date
    This date determines the status of posting to be used for the
    transfer (posting up to this date will be included in the transfer), not
    the actual date the data transfer is carried out. This specification
    also determines whether you want to perform the transfer during the
    fiscal year (with transfer of posted transactions/depreciation in the
    current fiscal year) or at the end of the fiscal year (without
    transactions).
    If the transfer date is not the last day of the fiscal year (according
    to the fiscal year variant in FI), the system interprets this as
    transfer during the fiscal year. The system cannot transfer any
    historical transactions. It can only transfer cumulative values from the
    end of the last fiscal year, and the transactions in the current fiscal
    year (the second is only possible for transfer during the fiscal year).
    Example
    transfer date = December 31, 1997
    => last closed fiscal year = 1997
    Specify Last Period Posted in Prv.System (Transf.During FY)
        You must specify the period up to which depreciation was posted in the previous
        system. This period refers to the posted depreciation that is to be
        transferred during old assets data takeover.
    Thanks
    GG

  • Reversal of Last Fiscal year asset in current fiscal year

    Dear SAP experts
    Asset has been booked in last fiscal year (jan2006) depreciation also posted till this fiscal year last month (2007 June)
    Asset value-70000 (invoice value)
    Accumulated Depreciation-33753.42
    Asset net book value as on date- 36246.58
    With same information one more asset also booked by mistake, so my client want to reverse any one of them asset with depreciation (which has booked in last fiscal year)
    I tried with asset credit memo (T code ABGF); it is picking up only asset net book value (36246.58) not accumulated depreciation (which is already affected in Accumulated GL account).
    Can you tell me is there any way to solve this problem

    Hi Chaitanya,
    If you have already acquired and depriciated the asset in previous fiscal year and closed the books and published the results why do you want to reverse it now. from accounting point of view also how would you show the entry for reversal of depriciation.
    Any how the acqusition and depriciation posted in previous fiscal year can not be reversed in current fiscal year it can be reversed only in previous fiscal year. as per SAP standards you can write up the asset if you have wrongly depricaiated the asset.
    Or else you can retire the asset with revenue which will give the same financial impact as you are expecting.
    Thanks & Regards
    Sree

  • Function module to read customer balances for current fiscal year.

    Hi,
    Could anyone please tell me about the function module which would display the customer credit balances from the FD10n transaction code for teh current fiscal year. that means from july 2010 to july 2011.

    Hi,
    use the BAPI 'BAPI_AR_ACC_GETCURRENTBALANCE'
      CALL FUNCTION 'BAPI_AR_ACC_GETCURRENTBALANCE' "Closing balance of customer account in current fiscal year
      EXPORTING
        companycode =               " bapi3007_1-comp_code  Company code
        customer =                  " bapi3007_1-customer  Customer
      IMPORTING
        actual_balance =            " bapi3007_9    Carry forward balance and balance
        return =                    " bapireturn    Return Code
        .  "  BAPI_AR_ACC_GETCURRENTBALANCE
    This method provides a customer's balance for the current fiscal year.
    It displays both the balance of standard transactions and the total balance of standard transactions and all special general ledger transactions.
    Read the Documentation of the BAPI.
    Regards,
    Dhina..

  • SAP EXIT Variable 0FYEAR is not working for Fiscal Year(OFISCYEAR)

    Dear SDN,
    I have created Simple Query.
    ROWS
    Company code(0COMP_CODE)
    Fiscal Year(0FISCYEAR)
    Columns
    Total Debit postings(0DEBIT)
    Total Credit posting(0CREDIT)
    Filters
    Companycode(Variable Selection option)
    Fiscal year(Varialbe SAPEXIT 0FYEAR)
    Fiscal Year Variant(K4)
    After executing the query in the variable screen only company code is displayed.
    SAP EXIT FISCAL YEAR VARIALBE(0FYEAR) IS NOT WORKING.....
    Is there any setting or activation is required to use SAP EXITS?
    Waiting for Solution......
    Thanks & Regards,
    Praveen.K

    Hi
    In this case you will have to use a Customer Exit (which is Ready for Input) Variable which gets Current Fiscal Year as a Default Value.
    In order to do that - you will need to create a Customer Exit Variable which is Ready for Input. The Variable will have to be assigned with Current Fiscal Year under I_STEP 1 (this refers to the coding of the Customer Exit in T-code: CMOD)
    If you need any help with the coding - don't hesitate to ask.
    Yaniv

Maybe you are looking for

  • Searching external hard drive attached to Time Capsule

    I have a 1 TB Time Capsule which I use for backing up my 2011 MacBook Pro and for providing my WiFi. I also have a 1 TB external hard drive plugged into my Time Capsule which I can access via WiFi. I can go to Finder on my laptop and browse the folde

  • Using Video with Pages

    Can annyone explain why to insert a video on a Pages document if it´s not possible to see it wen exporting to PDF or any other format? is it me or it´s useless? How do you sugest do share a pages document so that others can look it and watch the vide

  • I would like to create a custom datagridview column containing text images and MS Word OLE objects

    I am an old time LabView programmer going back to 2.0.  But moved on with my career several years ago.  But here I am back attempting a custom column in dataviewgrid control.  .NET is hard.  My goal is to read in an MS Word document and parse it out

  • BPM Split and Merge

    Hi...    I want to do scenario like file split and merge using BPM. for that i have used, 1.Receive 2.Transformation(1:N) 3.Block(ForEach) 4.Control 5.EndBlock 6.Transformation(N:1) 7.Send. while executing the scenario, the message is going to the qu

  • Installing Solaris 10 on X2100 with 1TB drive

    I am trying to install the latest Solaris 10 (X86) on an Sun X2100. The installation fires up fine until it tries to set up the hard drive and then it fails with the following error message: FILE SYSTEM CREATION FAILED COULD NOT CHECK OR CREATRE SYST