Asset value date must be in fiscal year of posting date

Hi,
When i try to post settlement of AuC in transaction AIBU with parameters:
document date: previous fiscal year
asset value date: previous fiscal year
posting date: new fiscal year
I know that:
The asset value date is the value date for Asset Accounting. It can deviate from the posting and document date and be in posting periods already closed for Financial Accounting. <b>However, the posting year and asset value date year must be the same.</b> (SAP documentation).
But maybe someone knows the way, how to post such a document??
Regards
Gosia

Thanks for Your replay,
But the pravious year is opened in FI-AA and closed in FI. We can't open previous year in FI.
Do You know another way to solve it??
regards
gosia

Similar Messages

  • F.13 -fiscal year vs posting day

    hi,
    in the F.13 screen parameter ,there are parameters named fiscal year and posting day.
    1.what's the relation ship between them?
    2.are they both used as the selection critria?
    3. What will happen if we set the fiscal year with 2008 but the posting day in 2009? is it always no data pick up?
    Please through your lights
    thanks in advance

    Hi,
    If you mention the fiscal year as 2008 and posting date in 2009, the system will pick up the documents.
    It depends on your Fiscal year.
    For example, if your fiscal year is from April 1 2008 to March 31 2009, then if you mention the fiscal year as 2008 and posting date as 02.02.2009(any date upto march 31 2009) the system will pick up the documents(if matching).
    If the fiscal year is from Jan to Dec. and if you mention 2008 in the fiscal year and posting date as a date in 2009, you will not get any reports..
    Hope this is clear..
    Regards,
    Praisty
    Edited by: Praisty on Apr 1, 2009 12:42 PM

  • BW data load for previous fiscal year depending upon sy-datum

    Hello All,
    In SAP BW, while loading data using date, I have requirement to load the datat for previous fiscal year.
    Fiscal year run from Oct to Sept.
    I have given example of Nov 2012. Becuase I am going to add this info-package in process chain which will run Nov of every year for full data load.
    For Ex: I am loading data in calander year/month Nov 2012. Its previous fiscal year is 2011.
    So for fiscal year 2011, my dates for data load would be : 10/1/2010 to 9/30/2011.
    So my code or functional module should retun me 10/1/2010 to 9/30/2011 this value.
    Kindly give your inputs for the same.
    Thank You.

    Hello All,
    I have wriiten below code and it has solved my problem:
    REPORT  ZTEST_PK.
    data:
    month_last type n length 2,
    year_last type n length 4,
    year type n length 4,
    month_first type n length 2,
    month type n length 2,
    year_first type n length 4,
    day_in type sy-datum,
    day_out type sy-datum,
    v_date type n length 6,
    select_period_low(8) type c,
    select_period_high(8) type c.
    year = sy-datum(4).
    month = sy-datum+4(2).
    concatenate year month into v_date.
    Data: fisyr type n length 4,
    fiscper type n length 3.
    *Fiscal years run from Oct to Sep
    *For Ex: Nov2012 load of the previous FY itu2019s FY 2011, the dates would be Oct 10 (10/1/2010) to Sep 11 (9/30/2011).
    CALL FUNCTION 'Z_XCONVERT_CALMONTH_TO_FISCAL'
      EXPORTING
        IV_CALMONTH       = v_date
    IMPORTING
       EV_FISCYEAR       = fisyr
       EV_FISCPER3       = fiscper.
    year_last = fisyr - 1.
    year_first = year_last - 1.
    month_first = '10'.
    month_last = '09'.
    concatenate year_first month_first '01' into select_period_low.
    concatenate year_last month_last '01' into day_in.
    *calcualte last day of  a given month
    CALL FUNCTION 'SN_LAST_DAY_OF_MONTH'
      EXPORTING
        DAY_IN             = day_in
      IMPORTING
        END_OF_MONTH       = day_out.
    concatenate day_out(4) day_out4(2) day_out6(2) into select_period_high.
    write:/ select_period_low.
    write:/ select_period_high.

  • Controlling area & operating concern must have same fiscal year variant

    Dear Experts,
    Whether i can assign two controlling area with different fiscal year variant to one operating concern.
    Getting error 'Controlling area & operating concern must have same fiscal year variant'
    Fiscal year variant must be same or Number of posting period must be same.
    regards
    RR
    Moderator: Please, search before posting

    Hi ajay,
    I did the testing also,
    System is showing error msg' Controlling area & operating concern must have same fiscal year variant'
    But someone told me. number of Posting period must be same not fiscal year variant.That why i am confused.
    I assigned all company code same posting period variant in different controlling area.Still facing same error.
    That why i have posted in SDN.
    regards
    RR

  • Display data as per the fiscal year

    Hi All,
    Need a suggestion with formula building:
    I have 2 columns, date which is the start of a fiscal year (04/01) and total cost next to it.
    I want to display only that fiscal year and a total cost which falls in current fiscal year. Please let me know how would i create a formula so it reads the system date and displays the fiscal year and cost according.
    Here is a sample of data:
    Date          Cost
    04/01/2010     100$
    04/01/2011     75$
    So ideally my report should display only row 1 and when run  after 04/01/11 ie after 2-3 days it should display row 2
    Thanks!

    Thanks for your response Shastry, but I am having trouble understanding it. Not sure how the above steps will read the current date.
    To be more specific, I want to display only that cost that falls in fiscal year.
    In above example now since it is 03/26/2011 and my fiscal year starts on 04/01 . I want to display cost from row 1 and when the same report will be run after 04/01/2011 it should display cost from  row 2.
    Like wise if the report is run after n number of years , it should display cost as per the fiscal year at that time.
    So i guess the formula should really depend on system date/current date/ print date
    Thanks!

  • Fiscal year and posting period

    Hai friends,
    I have a requirement like this,
    when I choose say 02/2008(posting period/fiscal year or posting period and fiscal year) in the Variable.  I also get data for the last twelve months….so my report would have
    02/2008,01/2008 ,12/2007…………………………………….03/2007.
    This variable should default to current posting period/fiscal year. So when somebody logs in he sees the current month and last twelve months.He can then change it to whatever he wants.
    The way I see it is that I have to write a customer exit and create a variable in which in “to” we will have current fiscal year/period and in “from” will have “Current fiscal year/period-12”.
    How to do this.
    Any help will be rewarded.
    Thanks in advance.

    Hi,
    Your approach is right.
    If you want the values to default and allow the users to change it, you should put the code under STEP I.
    WHEN 'variable'.
    IF I_STEP = 1.
    REFRESH e_t_range.
    CLEAR l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    l_s_range-low =  'Current Value - 11 periods'
    l_s_range-high = 'Current Value'
    APPEND l_s_range TO e_t_range.
    Mathew.

  • Maintenance Order TECO date must not be befor the Permit Issue Date

    Hi Friends,
    I have a genuine requirement like " Maintenance Order TECO date must not be befor the Permit Issue Date ".
    The requirement is System shall issue a message if TECO date is before the Permit issue date.
    Guys pls help me onthis.
    Thanks & Regards,
    krishna

    Krishna,
    What you can do is use a User Exit: IWO10004 Maintenance order: Customer check for order completionand check that the reference date of completion, also you would need the approval date for the assigned permits in Order by using the table "IHSG" or a relevant function module to get the details of the Permit approval date. After you have the permit approval date, you can compare it with the reference date of  completion and if mismatched then generate the relevant error message.
    regards,
    Muhammad Usman Kahoot

  • The DATA CAP MEGA THREAD....post data cap questions or comments here.

    In the interest of keeping things orderly....This is the DATA CAP MEGA THREAD....post data cap questions or comments here.
    Please keep it civil.
    Comcast is testing usage plans (AKA "data caps") in certain markets.
    The markets that are currently testing usage plans are:
    Nashville, Tennessee market: 300 GB per month and additional gigabytes in increments/blocks ( e.g., $10.00 per 50 GB ). 
    Tucson, Arizona market: Economy Plus through Performance tiers receive 300 GB. Those customers subscribed to the Blast! Internet tier receive 350 GB; Extreme 50 customers receive 450 GB; Extreme 105 customers receive 600 GB. Additional gigabytes in increments/blocks of 50 GB for $10.00 each in the event the customer exceeds their included data amount. 
    Huntsville and Mobile, Alabama; Atlanta, Augusta and Savannah, Georgia; Central Kentucky; Maine; Jackson, Mississippi; Knoxville and Memphis, Tennessee and Charleston, South Carolina: 300 GB per month and additional gigabytes in increments/blocks ( e.g., $10.00 per 50 GB ) Economy Plus customers have the option of enrolling in the Flexible-Data plan.
    Fresno, California, Economy Plus customers also have the option of enrolling in the Flexible-Data plan.
    - If you live outside of these markets you ARE NOT currently subject to a data plan.
    - Comcast DOES NOT THROTTLE your speed if you exceed your usage limits.
    - You can check out the Data Usage Plan FAQ for more information.
     

    I just got a call today that I reached my 300GB limit for the month.  I called and got a pretty rude response from the security and data usage department.  The guy told me in so many words that if I do not like or agree with the policy that I should feel free to find another service provider.!!! I tried to explain that we watch Netflix and XFinity on-demand alot and I was told that that can not be anywhere close to the data usage. I checked my router and watching a "super HD, dolby 5.1" TV show on Netflix will average about 5-6 GB per hour (1.6MB/s) ... sp this means that I can only watch no more than 1-2 Super HD TV shows a day via Netflix before I run out of my data usage.    This seems a bit redicilous doesn't it? Maybe the TV ads about the higher speed than the competition should be accompanied with "as long as you don't use it too often"   Not a good experience ... 

  • Asset Aquisition report date problem in indian fiscal year style  (urgent)

    hi all genius there,
    i am developing asset aquisiton report in which i should get
    the record of asset depending on indian fiscal year (1st april to 31st march).
    so that means if i enter 31.03.2006 then i should get all the asset records
    from 01.04.2005 to 31.03.2006.
    how to do it. its very urgent. plz if aany one has done this scenario for
    asset aquisition report then plz send me the code.
    my id is- [removed by moderator]
    or otherwise i am sending my code plz check it and do the modification to get the above requirement.
    REPORT Z_FA_ACQ  NO STANDARD PAGE HEADING
                     LINE-SIZE 400
                     LINE-COUNT 65(3).
    TYPE-POOLS : SLIS.
    TABLES : ANLA,                         "ASSET MASTER RECORD-SEGMENT
             ANLZ,                         "time dependent asset allocations
             ANLC,
             ANEK.
    DATA : BEGIN OF T_ANLA OCCURS 0,
           BUKRS LIKE ANLA-BUKRS,
           ANLN1 LIKE ANLA-ANLN1,
           ANLN2 LIKE ANLA-ANLN2,
           AKTIV LIKE ANLA-AKTIV,
           TXT50 LIKE ANLA-TXT50,
           ZUGDT LIKE ANLA-ZUGDT,
           MENGE LIKE ANLA-MENGE,
           MEINS LIKE ANLA-MEINS,
           ANLKL LIKE ANLA-ANLKL,
           END OF T_ANLA.
    DATA : BEGIN OF T_ANLZ OCCURS 0,
           BUKRS LIKE ANLZ-BUKRS,
           ANLN1 LIKE ANLZ-ANLN1,
           ANLN2 LIKE ANLZ-ANLN2,
           GSBER LIKE ANLZ-GSBER,
           KOSTL LIKE ANLZ-KOSTL,
           STORT LIKE ANLZ-STORT,
           RAUMN LIKE ANLZ-RAUMN,
           KFZKZ LIKE ANLZ-KFZKZ,
           WERKS LIKE ANLZ-WERKS,
           END OF T_ANLZ.
    DATA : BEGIN OF T_ANEK OCCURS 0,
           BUKRS LIKE ANEK-BUKRS,
           ANLN1 LIKE ANEK-ANLN1,
           ANLN2 LIKE ANEK-ANLN2,
           BELNR LIKE ANEK-BELNR,
           BUDAT LIKE ANEK-BUDAT,
           XBLNR LIKE ANEK-XBLNR,
           SGTXT LIKE ANEK-SGTXT,
           GJAHR LIKE ANEK-GJAHR,
          pdate LIKE anek-budat, " modified by sanjeev for date logic
           END OF T_ANEK.
    DATA : BEGIN OF T_ANLC OCCURS 0,
           BUKRS LIKE ANLC-BUKRS,
           ANLN1 LIKE ANLC-ANLN1,
           ANLN2 LIKE ANLC-ANLN2,
           ANSWL LIKE ANLC-ANSWL,
           NAFAP LIKE ANLC-NAFAP,
           AAFAP LIKE ANLC-AAFAP,
           AFABE LIKE ANLC-AFABE,
           GJAHR LIKE ANLC-GJAHR,
           END OF T_ANLC.
    DATA : BEGIN OF IT_FINAL OCCURS 0,
            ANLN1 LIKE ANLA-ANLN1,
            ANLN2 LIKE ANLA-ANLN2,
            AKTIV LIKE ANLA-AKTIV,
            TXT50 LIKE ANLA-TXT50,
            ZUGDT LIKE ANLA-ZUGDT,
            MENGE LIKE ANLA-MENGE,
            MEINS LIKE ANLA-MEINS,
            GSBER LIKE ANLZ-GSBER,
            KOSTL LIKE ANLZ-KOSTL,
            STORT LIKE ANLZ-STORT,
            RAUMN LIKE ANLZ-RAUMN,
            KFZKZ LIKE ANLZ-KFZKZ,
            BELNR LIKE ANEK-BELNR,
            BUDAT LIKE ANEK-BUDAT,
          pdate LIKE anek-budat,
            XBLNR LIKE ANEK-XBLNR,
            SGTXT LIKE ANEK-SGTXT,
            ANSWL LIKE ANLC-ANSWL,
            NAFAP LIKE ANLC-NAFAP,
            AAFAP LIKE ANLC-AAFAP,
            GJAHR LIKE ANEK-GJAHR,
            ANLKL LIKE ANLA-ANLKL,
            END OF IT_FINAL.
    DATA: PDATE LIKE ANEK-BUDAT.
    PDATE = SY-DATUM.
    DATA:V_LOW LIKE SY-DATUM,
        V_HIGH LIKE SY-DATUM,
        V_DATE(04) TYPE N,
        V_YEAR(04) TYPE N.
    V_YEAR = V_DATE(04).
    V_YEAR = V_YEAR - 1.
    CONCATENATE V_YEAR '0401' INTO V_LOW.
    CLEAR V_YEAR.
    V_YEAR = V_DATE(04).
    CONCATENATE V_YEAR '0331' INTO V_HIGH.
    DATA : LINE_COLOR(4) TYPE C.
    DATA : FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
           GD_LAYOUT TYPE SLIS_LAYOUT_ALV.
    DATA: EVENT  TYPE SLIS_ALV_EVENT OCCURS 0 WITH HEADER LINE.
    SELECTION-SCREEN : BEGIN OF BLOCK B_FA WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS : S_BUKRS FOR ANLA-BUKRS DEFAULT 'ML',
                     S_ANLN1 FOR ANLA-ANLN1,
                     S_ANLN2 FOR ANLA-ANLN2,
                     S_ANLKL FOR ANLA-ANLKL,
                     S_AKTIV FOR ANLA-AKTIV,
                     S_GSBER FOR ANLZ-GSBER,
                     S_KOSTL FOR ANLZ-KOSTL,
                     S_WERKS FOR ANLZ-WERKS,
                     S_STORT FOR ANLZ-STORT,
                   S_BUDAT FOR ANEK-BUDAT,
                     S_GJAHR FOR ANEK-GJAHR.
    SELECTION-SCREEN : END OF BLOCK B_FA.
    *PARAMETERS : budat LIKE anek-budat.
    SET PF-STATUS '100'.
    SELECT BUKRS ANLN1 ANLN2 AKTIV TXT50 ZUGDT MENGE MEINS ANLKL
           FROM ANLA
           INTO CORRESPONDING FIELDS OF TABLE T_ANLA
           WHERE ANLN1 IN S_ANLN1
           AND   ANLN2 IN S_ANLN2
           AND   BUKRS IN S_BUKRS
           AND   ANLKL IN S_ANLKL
           AND   AKTIV IN S_AKTIV.
    CHECK : NOT T_ANLA[] IS INITIAL.
    SELECT BUKRS ANLN1 ANLN2 GSBER KOSTL STORT RAUMN KFZKZ
           FROM ANLZ
           INTO CORRESPONDING FIELDS OF TABLE T_ANLZ
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   GSBER NOT IN S_GSBER
           AND   KOSTL IN S_KOSTL
           AND   WERKS IN S_WERKS.
    SELECT BUKRS ANLN1 ANLN2 BELNR BUDAT XBLNR SGTXT GJAHR
           FROM ANEK
           INTO CORRESPONDING FIELDS OF TABLE T_ANEK
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   BUDAT >= V_LOW
           AND   BUDAT <= V_HIGH.
          AND  gjahr IN s_gjahr. " modified for date logic by Sanjeev
    SELECT BUKRS ANLN1 ANLN2 ANSWL NAFAP AAFAP AFABE GJAHR
           FROM ANLC
           INTO CORRESPONDING FIELDS OF TABLE T_ANLC
           FOR ALL ENTRIES IN T_ANLA
           WHERE ANLN1 = T_ANLA-ANLN1
           AND   ANLN2 = T_ANLA-ANLN2
           AND   BUKRS = T_ANLA-BUKRS
           AND   AFABE = '01'.
    LOOP AT T_ANLA.
      MOVE : T_ANLA-ANLN1 TO IT_FINAL-ANLN1,
             T_ANLA-ANLN2 TO IT_FINAL-ANLN2,
             T_ANLA-AKTIV TO IT_FINAL-AKTIV,
             T_ANLA-TXT50 TO IT_FINAL-TXT50,
             T_ANLA-ZUGDT TO IT_FINAL-ZUGDT,
             T_ANLA-MENGE TO IT_FINAL-MENGE,
             T_ANLA-MEINS TO IT_FINAL-MEINS.
      READ TABLE T_ANLZ WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLZ-GSBER TO IT_FINAL-GSBER,
               T_ANLZ-KOSTL TO IT_FINAL-KOSTL,
               T_ANLZ-STORT TO IT_FINAL-STORT,
               T_ANLZ-RAUMN TO IT_FINAL-RAUMN,
               T_ANLZ-KFZKZ TO IT_FINAL-KFZKZ.
      ENDIF.
      READ TABLE T_ANLC WITH KEY BUKRS = T_ANLA-BUKRS
                                 ANLN1 = T_ANLA-ANLN1
                                 ANLN2 = T_ANLA-ANLN2 BINARY SEARCH.
      IF SY-SUBRC EQ 0.
        MOVE : T_ANLC-ANSWL TO IT_FINAL-ANSWL,
               T_ANLC-NAFAP TO IT_FINAL-NAFAP,
               T_ANLC-AAFAP TO IT_FINAL-AAFAP.
      ENDIF.
    LOOP AT T_ANEK WHERE BUKRS = T_ANLA-BUKRS AND ANLN1 = T_ANLA-ANLN1 AND
        ANLN2 = T_ANLA-ANLN2 AND   BUDAT >= V_LOW
                                 AND   BUDAT <= V_HIGH AND BUDAT IN S_BUDAT.
        MOVE : T_ANEK-BELNR TO IT_FINAL-BELNR,
               T_ANEK-BUDAT TO IT_FINAL-BUDAT,
               T_ANEK-GJAHR TO IT_FINAL-GJAHR,
               T_ANEK-XBLNR TO IT_FINAL-XBLNR,
               T_ANEK-SGTXT TO IT_FINAL-SGTXT.
        APPEND IT_FINAL.
      ENDLOOP.
    ENDLOOP.
    PERFORM BUILD_FIELDCATALOG.
    PERFORM DISPLAY_ALV_REPORT.
    PERFORM BUILD_LAYOUT.
          FORM BUILD_FIELDCATALOG                                       *
    FORM BUILD_FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN1'.
      FIELDCATALOG-SELTEXT_M = 'ASSET MAIN NO'.
      FIELDCATALOG-COL_POS   = 0.
      FIELDCATALOG-OUTPUTLEN = 14.
      FIELDCATALOG-EMPHASIZE = 'X'.
      FIELDCATALOG-KEY       = 'X'.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANLN2'.
      FIELDCATALOG-SELTEXT_M = 'SUB NO'.
      FIELDCATALOG-COL_POS   = 1.
      FIELDCATALOG-OUTPUTLEN = 7.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AKTIV'.
      FIELDCATALOG-SELTEXT_M = 'CAP.DATE'.
      FIELDCATALOG-COL_POS   = 2.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'TXT50'.
      FIELDCATALOG-SELTEXT_M = 'NAME'.
      FIELDCATALOG-COL_POS   = 3.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ZUGDT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 4.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MENGE'.
      FIELDCATALOG-SELTEXT_M = 'QTY'.
      FIELDCATALOG-COL_POS   = 5.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'MEINS'.
      FIELDCATALOG-SELTEXT_M = 'UNITS'.
      FIELDCATALOG-COL_POS   = 6.
      FIELDCATALOG-OUTPUTLEN = 3.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'GSBER'.
      FIELDCATALOG-SELTEXT_M = 'BA'.
      FIELDCATALOG-COL_POS   = 7.
      FIELDCATALOG-OUTPUTLEN = 4.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KOSTL'.
      FIELDCATALOG-SELTEXT_M = 'COST CENTER'.
      FIELDCATALOG-COL_POS   = 8.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'STORT'.
      FIELDCATALOG-SELTEXT_M = 'LOCATION'.
      FIELDCATALOG-COL_POS   = 9.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'RAUMN'.
      FIELDCATALOG-SELTEXT_M = 'ROOM'.
      FIELDCATALOG-COL_POS   = 10.
      FIELDCATALOG-OUTPUTLEN = 10.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'KFZKZ'.
      FIELDCATALOG-SELTEXT_M = 'LICENSE PLATE NO'.
      FIELDCATALOG-COL_POS   = 11.
      FIELDCATALOG-OUTPUTLEN = 20.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BELNR'.
      FIELDCATALOG-SELTEXT_M = 'DOC NO'.
      FIELDCATALOG-COL_POS   = 12.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'BUDAT'.
      FIELDCATALOG-SELTEXT_M = 'POSTING DATE'.
      FIELDCATALOG-COL_POS   = 13.
      FIELDCATALOG-OUTPUTLEN = 15.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'XBLNR'.
      FIELDCATALOG-SELTEXT_M = 'REF NO'.
      FIELDCATALOG-COL_POS   = 14.
      FIELDCATALOG-OUTPUTLEN = 25.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'SGTXT'.
      FIELDCATALOG-SELTEXT_M = 'TEXT'.
      FIELDCATALOG-COL_POS   = 15.
      FIELDCATALOG-OUTPUTLEN = 50.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'ANSWL'.
      FIELDCATALOG-SELTEXT_M = 'ACQ VAL'.
      FIELDCATALOG-COL_POS   = 16.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'NAFAP'.
      FIELDCATALOG-SELTEXT_M = 'ORD.DEP'.
      FIELDCATALOG-COL_POS   = 17.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
      FIELDCATALOG-FIELDNAME = 'AAFAP'.
      FIELDCATALOG-SELTEXT_M = 'UNPLAN DEP'.
      FIELDCATALOG-COL_POS   = 18.
      FIELDCATALOG-OUTPUTLEN = 13.
      APPEND FIELDCATALOG TO FIELDCATALOG.
      CLEAR FIELDCATALOG.
    ENDFORM.
    PERFORM ALVDISPLAY.
    FORM ALVDISPLAY.
    EVENT-FORM = 'USERCOMMAND'(002).
    EVENT-NAME = 'USER_COMMAND'(001).
    APPEND EVENT.
    ENDFORM.
    FORM DOWNLOADEXCEL.
    DATA : B_FILE1 LIKE RLGRAP-FILENAME.
    ENDFORM.
          FORM BUILD_LAYOUT                                             *
    FORM BUILD_LAYOUT.
      GD_LAYOUT-ZEBRA = 'X'.
      GD_LAYOUT-INFO_FIELDNAME = 'LINE_COLOR'.
    ENDFORM.
          FORM DISPLAY_ALV_REPORT                                       *
    FORM DISPLAY_ALV_REPORT.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
          EXPORTING
            I_INTERFACE_CHECK        = ' '
             I_CALLBACK_PROGRAM       = SY-REPID
            i_callback_pf_status_set = 100
            i_callback_user_command  = sy-ucomm
            I_STRUCTURE_NAME         =
             IS_LAYOUT                = GD_LAYOUT
               IT_FIELDCAT              = FIELDCATALOG[]
            IT_EXCLUDING             =
            IT_SPECIAL_GROUPS        =
            IT_SORT                  =
            IT_FILTER                =
            IS_SEL_HIDE              =
            I_DEFAULT                = 'X'
            I_SAVE                   = ' '
            IS_VARIANT               = ' '
            IT_EVENTS                =
            IT_EVENT_EXIT            = EVENT[]
            IS_PRINT                 =
            I_SCREEN_START_COLUMN    = 0
            I_SCREEN_START_LINE      = 0
            I_SCREEN_END_COLUMN      = 0
            I_SCREEN_END_LINE        = 0
       IMPORTING
            E_EXIT_CAUSED_BY_CALLER  =
            ES_EXIT_CAUSED_BY_USER   =
           TABLES
                T_OUTTAB                 = IT_FINAL
           EXCEPTIONS
                PROGRAM_ERROR            = 1
                OTHERS                   = 2.
    ENDFORM.
    Hi,
    we encourage open discussion and no emails, as the answer to your question shall be posted in the forum to be read by other users, who might be interested in it as well.
    Mario

    hi,
    i've tried to correct your code:
    -> v_year, v_low and v_high was not filled
    ...SELECTION-SCREEN : END OF BLOCK b_fa.
    PARAMETERS p_year LIKE anlc-gjahr DEFAULT sy-datum(4).
    *PARAMETERS : budat LIKE anek-budat.
    SET PF-STATUS '100'.
    v_year = p_year.
    v_year = v_year - 1.
    CONCATENATE v_year '0401' INTO v_low.
    CLEAR v_year.
    v_year = p_year.
    CONCATENATE v_year '0331' INTO v_high.
    SELECT bukrs anln1 anln2 aktiv txt50 zugdt menge meins anlkl
    FROM anla
    pls reward useful answers
    thx.
    Andreas

  • Asset write off in the current fiscal year.

    Hi Experts,
    I want to write off an asset in next 4 periods of the current fiscal year 2007. For example:
    Asset 11000
    APC value: 10000
    APC Date: 01.01.2005
    The useful life will end in fiscal year 2008.
    The book value left at the begining of the current fiscal year 2007 Rs. 4000.00
    In the current fiscal year this asset has already been depreciated for previuos 3 periods.
    Now Business wants to write off ( fully depreciated ) this asset in next 4 periods equally and then if the book value and tax value is nil, they want to scap the asset.
    Now can you please tell me how to make this happened. Its very urgent. If you need any more information, most welcome.
    Rgds,
    BABA

    Hi,
        You would have to set the asset to manual depreciation(Depr.Key MANU)
    and generate a posting via ABMA for each of the periods.
    Kind regards

  • Find the fiscal year for the date

    My fiscal year starts from 1st of august to july31
    if i pass the period Aug-2011 need to know in which fiscal year it falls in
    Expected output as 2012.
    How can i write simple query

    hI,
    893185 wrote:
    select EXTRACT (YEAR FROM ADD_MONTHS ('AUG-2011', 5)) from dual
    The above is giving non numeic character. How can i write the sqlThe first argument to ADD_MONTHS is supposed to be a DATE, not a string.
    Use a DATE instead of the string 'AUG-2011'. For example:
    EXTRACT (YEAR FROM ADD_MONTHS ( TO_DATE ( 'AUG-2011'
                                            , 'MON-YYYY'
                         , 5
         )

  • Change Posting Date of Parked Invoice on Approval

    Hi,
    I have a scenario where one user creates a parked invoice in FB60 and is routed to another user as a workflow item to release the parked invoice.
    I need to change the posting date according to some business requirements, upon release of the parked invoice by the approving officer. For e.g. if invoice is created in last fiscal year but approved in new fiscal year, the posting date shld be changed to last day of the last fiscal year. and all these needs to be coded somewhere. Which means I can't use the standard SAP config to set posting date to System Date or the original Date entered- as these are not what I want.
    Does anyone know of a user exit, BTE, BAdI to accomplish this? I tried some BAdIs, but the posting date is always being reset to the procedure for setting the posting date in T001-PP_PDATE. and i do not want this.
    Your help is greatly appreciated! Thank you!

    Hi,
    Can you please provide any documentation or any links regarding the Workflow approval process for the parked documents. As you have already dealt with it can you  atleast share the knowledge...
    any help is greatley appreciated...
    thanks

  • Change Posting Date of Parked Invoice on Release

    Hi,
    I have a scenario where one user creates a parked invoice in FB60 and is routed to another user as a workflow item to release the parked invoice.
    I need to change the posting date according to some business requirements, upon release of the parked invoice by the approving officer. For e.g. if invoice is created in last fiscal year but approved in new fiscal year, the posting date shld be changed to last day of the last fiscal year. and all these needs to be coded somewhere. Which means I can't use the standard SAP config to set posting date to System Date or the original Date entered- as these are not what I want.
    Does anyone know of a user exit, BTE, BAdI to accomplish this? I tried some BAdIs, but the posting date is always being reset to the procedure for setting the posting date in T001-PP_PDATE. and i do not want this.
    Your help is greatly appreciated! Thank you!

    hi,
    You have to cancel the Parked invoice and again you have to verify using the new date
    G.Ganesh Kumar

  • Asset Legacy dt upld-problem in uploading fiscal year assets without value

    Hi all ,
    I am trying to upload Assets which are pertaining to current Fiscal year and for which no depreciation run is taken place , using Tcode AS91,
    Initially I got error :
    Capitalization date must be earlier than or same as transfer date.
    Then I changed transfer date to  31.03.2009 .
    Now I am getting error  :
    Current fiscal year 2008 has to be after transfer date 31.03.2009 .
    How do I take these Assets with / without values ?
    and if without values , then how can I update Asset values ?
    Regards ,
    Pallavi .

    Hi Ramesh,
    I have same scenaio we are uploading the assets on 30.09.2008, so our data transfer date is same.
    The issue is
    1. When we start AS91 for current year, assets takeover values fields are in display mode.
    System configuration was:-
      A). Legacy data transfer date was 30.09.2008
    B). last period posted in previous system was 6th
    C). capitalized date taken by me is after 31.03.2008 (Note: - when I take capitalization date before 31.03.2008, than system show me take over tab in change mode)
    2). While doing AS92 also system shows me all takeover tab fields in display mode, when I select capitalization date after 31.03.2008.
    The thing is that how we can upload all those assets which we have purchased in the current year and how we will treat with the depreciation in the system
    up to which date we should take accumulated dep for previous year assets.
    please answer if u want i can raise a seprate question.
    Regards

  • Asset Report to check periods in Closed Fiscal Year

    Hi Gurus,
    Would want to check what other standard SAP t-codes that could be used to check the periods for the closed Fiscal year in asset reporting? i.e. FY 2008 closed, would need to check asset balances, NBV, etc for period 7, system prompts an error and could only execute for period 12.
    Appreciate feedback
    Many thanks
    eddie lim

    Hi
    If you are using the report S_ALR_87011963, following is the limitation for it.
    You cannot run a report for any day you choose within a period. The
    following restrictions apply to the report date:
    o   If the report date is in the past, or in the current fiscal year:
         You can use the end of a fiscal year or the end of any period as the
         report date. If the fiscal year is already closed, you can only use
         the end of the fiscal year as the date.
    o   If the report date is in a future fiscal year:
         The system always uses the last day of the fiscal year as the report
         date.
    o   If the report date is the first day of a fiscal year:
         To ensure that the values for the beginning of the fiscal year are
         same as those for the end of the previous fiscal year, the
         system runs reports with the report date 1/1/YYYY for the date
         12/31/YYYY-1 (the same applies for a non-calendar fiscal year).
    If you want to run report for forcating depreciation and NBV, use TCOD - S_ALR_87012026
    Thanks
    GG

Maybe you are looking for

  • My bill does not reflect the conversation I had with two representatives.

    When I phoned to suspend service because I would be out of the country until the end of September, I asked two representatives on the two occasions I phoned to calculate what my charges would be for May.  I was given a rough figure of $60 with the un

  • Can't press more than 2 directional arrows keys at the same time

    I just noticed that in the Macbook Pro Retina that I bought recently there's no way to press more than 2 arrow keys at the same time, or at least the system does not seem to handle it. All other keys can be pressed at the same time without any proble

  • Recovering un-saved files from Pages 09.

    I have been doing a project on Pages 09 on my MacBook Pro and suddenly Pages 09 closed on me without warning and then another window opened asking me if i would like to re-open. So i re-opened Pages 09 and all my work had gone as i didn't save my wor

  • Audigy 2 NX install... endless problem

    Ok, desperately need help. When I first purchased my Audigy 2 NX USB I was running a PIII 800mhz with Windows XP SP. After installing the drivers and the software package, my computer sporadically detected the sound card. Even when it did recognize i

  • X forwarding doesn't work

    I would like to get x forwarding to work so I can play kolf at school, at the "far away machine" I have X11Forwarding yes in ssshd_config and the same on my local linux machine, no matter what I try I always get xterm Xt error: Can't open display: xt