Year to Date using SAP variables

I've run into a sticking point when trying to create a year to date calculation that works without user entry. The infocube is updated by finance each month (for the previous month) after the final adjustments are made. For this reason, when the query pulls YTD information, it should be cumulating from January 20XX to Current Month - 1.
The first way that I tried was to use overlapping restrictions: Fiscal Year/Period < Current Fiscal Year/Period AND Fiscal Year = Current Fiscal Year. This worked very well until we reached January. Now the overlapping restrictions return no results since all previous months are not in the current fiscal year.
I've also attempted using the SAP exit variable 0FYTLFP (Cumulated to Last Fiscal year Period) on Fiscal Year/Period. It is not working, and I assume it is because the last fiscal year period is falling into a different fiscal year. Using it today, the value I get is equal to the value for Jan 2007. The variable seems to first look up the first day of the current fiscal year, saves that as one end of the range, then goes to the previous month to get the other end of the range. I tried offsetting this variable by -1 and the value returned was equal to Dec 2006, but not YTD.
I'm assuming it must be possible to use the standard SAP delivered objects to create a working YTD calculation that does not require manual entry and cumulates correctly through current period - 1. Does anyone have any suggestions?
Thanks!

Dear Adam,
For Year to Date , We have created a Customer Exit , For working , Create a Variable for 0calday and populate that with from and to value ...to value would be Sy-datum and From value is year starting date. Hope it helps..
Thanks,
Krish

Similar Messages

  • How to derive month/year from date in SAP BW 3.5 data flow

    Hi
    How we can derive cal year/month and fiscal month/year from date in SAP BW 3.5 data flow (we're using transfer and update rule)..
    Thanks,
    PK

    Hi,
    if you have any date filed in source side you can just map to any time char system will automatically convert to target objects.
    please look at the screen shot for understanding. (not 3.x it is 7.x)
    Thanks,
    Phani.

  • Cost For exhange of data using SAP XI

    Hi All,
    For all exchange of data between legacy and SAP R/3 will their be any trasaction charges (given to SAP )involved for the data transfer using SAP XI or is it based upon the license which we have received for number of users.
    i.e If I am creating a sales/purchase order which needs to pushed to SAP R/3 system on realtime basis what will be the transaction charges for when I am using SAP XI as the interface.
    Will it be based upon the file size that is transfered or
    Will be constant for all the transaction as we have user authroizations.
    Regards,
    Nithiyanandam
    Edited by: Nithiyanandam A.U. on Oct 20, 2008 12:56 PM

    Hi Prasad,
    Thanks for the inputs.
    Can you please provide me some supporting links for this..
    Bcas Currently we will be transfering data only from one legacy system to SAP R/3 and viceversa.
    It might involve transactions like Material careation, BOM (Bill of Material creation), Change Number creation, ECN, Costing Information etc.
    Regards,
    Nithiyanandam

  • Year-to-Date using mdx

    Hi,
    I am new to mdx and struggling with the syntax.
    I have made the below (simple) query wich works fine.
    select {(EJV1, Dec, [RUBRIEK 5] )} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Now i would like to have a year to date value.
    When i use the query below i see all the separate months.
    How can I adjust this query so the period values are aggregated?
    select { (YTD([Dec]))} on Columns,
    Descendants([109]) on rows
    From Resultat
    where (FY10, Prognose, [geen klant], [Geen omzet])
    Thanks.

    We use a VALUE dimension to dynamically calculate YTD/QTD/Thousands/Millions...
    Our ASO database has P&L and B/S data so this YTD Member Formula handles them differently:
    IIF(IsLevel([TIME].Currentmember, 0),
         IIF(IsAncestor([Balance_Sheet_Accounts ], [ACCOUNTS].Dimension.CurrentMember),
              [TIME].CurrentMember,
         Sum(PeriodsToDate ([TIME].Generations(2), [TIME].Currentmember))
    0
    This lets us query with Excel as if we had the Dynamic Time Series functionality of BSO.
    Edited by: baboland on May 20, 2010 1:53 PM
    Edited by: baboland on May 20, 2010 1:54 PM

  • How to get data using BEx variable

    I've build a universe upon a Bex query with a variable.
    When refreshing a WeBi report upon this universe with the filter (BEx variable) it works fine and returns data. The same does the QaaWS.
    But when I use this QaaWS as a source for Xcelsius dashbord it doesn't return any data. The input value for the variable is the same in all cases, e.g.  K4/2009.
    What should be done to fix the issue?

    What Xcelsius patch version you use?
    If I recall correct, this is known issue that was suppose to be fixed in Xcelsius 2008 SP2
    [SP2 direct download URL|https://websmp230.sap-ag.de/sap/bc/bsp/spn/download_basket/download.htm?objid=012002523100009338662009D&userid=I055661&action=DL_DIRECT]
    Thanks
    Subhodeep

  • Delete Existing request in Cube of two years before data using ABAP

    Hi,
    I want to automize the process of deleting cube data which is Two years old in the process chain.
    I know this could be done in process type of delete overlapping request . There we  Should write ABAP code to acheive the same.
    I have seen the editor screen but could do nothing as i am writing the code for the first time.
    In the code i see the following:
    {form compute_XX
      tables l_t_request_to_delete structure rsreqdelstruc
      using l_request like rsreqdone-rnr
      changing p_subrc like sy-subrc.
    *Insert Source Code to decide if requests should be deleted.
    *All Requests in table l_t_request_to_delete will be deleted
    *from Infocube XX.
    *Add new requests if you want to delete more (from this cube).
    *Remove requests you did not want to be deleted.
    $$ begin of routine - insert your code only below this line        -
         loop at l_t_request_to_delete.
         endloop.
         clear p_subrc.
    ENDFORM.}
    Any clue of how to procede?

    You will need code similar than bellow in the routine that you mentioned:
    *Defined the ccupeaka data types as the timestamp calculation module
    *requires this data types
      DATA i_date LIKE  ccupeaka-timestamp.
      DATA i_request_date LIKE  ccupeaka-timestamp.
      DATA i_diff_sec TYPE i.
      DATA i_diff_day TYPE i.
      DATA i_request_tm LIKE rsreqdelstruc-timestamp.
    *Define here the retention period in days
      DATA c_retention_day TYPE i VALUE 70.
      i_date+0(8) = sy-datum.
      i_date+8(6) = '000000'.
      LOOP AT l_t_request_to_delete.
        i_request_tm = l_t_request_to_delete-timestamp.
        i_request_date = i_request_tm.
        CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'
          EXPORTING
            timestamp1 = i_date
            timestamp2 = i_request_date
          IMPORTING
            difference = i_diff_sec.
    *Get the day difference:
        i_diff_day = i_diff_sec / 24 / 3600.
    *Exclude all request that are within the retention
    *time
        IF i_diff_day LE c_retention_day.
          DELETE l_t_request_to_delete.
        ENDIF.
      ENDLOOP.
    However, it is bad practice to keep a lot of request in a cube (e.g. all request of 12 month) without doing compression.
    Normally you would use request compression (lets say for all requests older 7 days) to have best cube query performance. As after compression you can no longer do request deletion you would then use the selective deletion as descibed in the document in the post above to control the data volume in the cube.
    Best regards,
    Axel

  • Year to date, rolling quarter measures

    I need to implement reports with year to date, rolling quarter (current month + 2 previous month) measures, etc...
    The BO universe is connected to a bex query on a SAP multi provider
    Where do you recommend to implement such measures?
    Should we precalculate them in a SAP BI keyfigure ?
    Should we create a restricted key figures in the bex query and using SAP variable with customer exits to implement for example the rolling quarter functionnality?
    Should be we create a new measure in the BO universe?
    Should we create a new variable in the report. In this case what is the impact on the performance?
    We have about 30.000 records in our cube for about 3 years of data. the volume will grow on a monthly basis but analysis will mainly be done on maximum three years of data.

    Hi,
    this is not related to performance. this is related to the simple fact that the MDX on SAP BW does not have support for something like a Today() or a Now(), which means you can't have rolling months based on the system date.
    if you use an EXIT variable you have the keyfigures in the universe and can leverage it in the Web Intelligence report.
    ingo

  • Communicating Between Multiple LabVIEW Executables on different computer using Shared Variables

    hi,
    I need to develop some executables which will be launched on different computer of a LAN. Some DATA are common. I need to share the data using shared variables.
    I usually used LabVIEW so I 'm familiar with shared variables but in this case, the RT target is a part of my
    project.
    I do I need to procceed in my case?
    thanks

    Ok but it's not my configuration and I haven't found my answer in the tutorial.
    You speak of a case where there is a computer and a RT target under the same LabView project. As I said earlier, I often use labview RT and shared variable between computer and RT target. But I assume here it's different.
    My question is : how do you acces to the SVE from 3 computers (without any RT target)? 
    1. If I create 3 labview projects using the same Shared Variable, do I need to use the same .lvlib on each project?
    2. Is it possible? 
    3. How can I configure where the SVE should be? When I use a RT target, It only depends where I put my Lvlib. But here there is 3 projects. 
    James
    Attachments:
    Sans titre.JPG ‏9 KB

  • I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.

    I have used SAP doc mgmt for years. We copied a client and now when I configure a Class to my DMS DIR and go to CV01n Additional Data NONE of the characteristic entry boxes show up. Additional Data is blank.
    It appears there must be some high level setting missing in the client. I have checked all authorizations and cannot find a difference between this client and all of the other clients we have. Only this one client does not show the class characteristics in the Additional Data tab.
    Any ideas of why this standard function is not working). It does not matter which DIR I config the 017 class to, nothing shows on Additional Data.

    Hi,
    The issue is resolved. We are working in a sandbox with Class configuration on a DMS issue related to standard class 017. There are no standard settings in SPRO - Cross-Application Components | Maintain Object Types and Class Types | for the object type DRAW that will allow "auto-populating" characteristic values as we do with VC class 300.
    For whatever reason DRAW and class 017 are not configured by SAP in the same manner as class 300 for example.
    We made a config entry for DRAW Class 017 VBAP. Let's just say the system did not like that.
    We are exploring other options.

  • Year to date variable

    Hello experts,
    I have installed the variable : Current Year From Start, Range to Current date(Sap Exit) with tech name 0I_IPMD7. How do i know which time infoObject it is applicable to?
    i want to use this in the year to date sales calculation. But cannot see this available in any of the time infoobjects in the present 0sd_c03 cube!!
    please guide..
    regards,

    Hi Aby,
    Please look at RSZGLOBV table. You'll see that this variable is based on 0IPM_BEGDATE characteristic.
    You can also look in SE37 at the FM RSVAREXIT_0I_IPMD7 to figure out what the code is doing.
    Best regards,
    Eugene

  • Display data vertically using sap script

    Hi Developers,
    Is there any way to display data vertically in a form using sap script?
    thanx in advance,
    binu

    Hi Binu,
    It is not possible to rotate text in SAPscript.  The usual work-around, provided this is static text and not from a variable, is to scan an image of the text and include it as a graphic.
    Regards,
    Nick

  • Using SAP BI front-end on external data sources

    We are currently reviewing the BI technical strategy at our organisation and SAP BI is in the running where we have a need to cover more data sources than just R/3.
    Because of the investment made in building other reporting databases, in the short to medium term we are considering using SAP BI as the front-end.
    I have built a Virtual InfoProvider using DTP on a SQL Server database, and initial findings are interesting.
    I would also like to consider other methods of using SAP BI as a front-end, and this post is a plea for further options.
    Some of the existing reports that we need to replace would be based on views in the database, whereas others are driven by result sets from stored procedures.
    I am curious about where all the effort is made, for example, will all the filtering be applied at source or back in BW?
    Will a user-entry variable allow a lookup to the source?
    We have recently upgraded to NW2004s, although we have not implemented the Java Stack .... yet.  We intend to complete the implementation by May 2008.
    I would welcome any suggestions you might have, or if you are able to point me to further sources of information.
    Ian.

    The Web Analyzer within BI 7.0 JAVA run time can go against XMLA datasources (eg: MS Analysis Services) configured within EP system.
    Visual Composer available within Ep 7 can go against any JDBC sources (Web Analyzer will have this functionality in the future.).

  • SAP fixed asset add-on. Not able to import master data using upload pgm.

    Hi all,
    I am trying to import fixed asset master data using an excel file into sap B1 2007a patch level 42. I am able to run the import transaction. It tries to process and then giving me a message ' Import end: Number of successfully imported assets: 0. Number of processed assets:2. We have looked at the event log file and couldn't find anything related to the upload.  I have gone through other posts and didn't face this issue. Any hellp is apreciated.
    Path which I am using to upload the fixed asset master master data: Administration --> Setup --> fixed asset --> import fixed asset master data.
    Following points (see below) also taken into account while creating the master data sheet.
    also replaced the ',' in the csv file to ';' before uploading and changed the fixed asset mode to 'transfer' in the administration --> system initialization > company detaills> basis initialization.
    Thanks
    Johnson zavier
    Mandatory:     Item Code = Asset Class; this Asset Class must be previous defined in the Asset Settings (don't change/delete anything in the item-master data - there are the Asset Classes Z-00u2026. Are stored          
         Description = Description of this Asset          
         Capitalization Date = do it like this (YYYY-MM-DD). This columne must be a text format          
         APC = Aquisition/Procuction Cost; when you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45          
         Quantity = only mandatory, when you use the same assets stored under one asset number. Example you have ten equal chairs, so you can handle this with one asset number and quantity ten          
         Dep01 = Depreciation area; this entry must be previous defined in the Asset Settings          
         Depr Start date 01 = do it like this (YYYY-MM-DD). This columne must be a text format. The beginning must be the first of the month. Please compare it in this case with the capitalization date          
         Useful Life 01 = calculated in months (not years)          
         Remaining Life 01 = calculated in months (not years)          
         Depr Type 01 = Depreciation Type must be previous defined in the Asset settings
         Ordinary Depr 01 = ordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
         Unplanned Depr 01 = unplanned/extraordinary depreciation; this is the comulated value you can see in the asset history sheet from the old asset solution. When you have digits after coma please use dot for separation - don't use thousand separators; Example 23444.45
         SpDpAcc1 01 = Special depreciation account; when you use special depreciations and you have it to balance on special accounts fill in this account. This is an exeption - in normal projects not needed
         SpDpKey2 01 = Special depreciation; when you use special depreciation you have to enter this cumulative value in this field. This is an exeption in normal projects not needed
         SpDpAccu2026 = for further special depreciation accounts; This is an exeption
         SpDpKey.. = for furhter special depreciation values; This is an exeption
    Optional:     Vendor Code = when using this please be aware that the vendor code is previous defined in the system
         all others = you can use if you want. The only limitation is the type/length of these fields
         When you are ready with your entries mark from the first free row on for instance the next 20 rows than right mouse key - delete rows. This is necessary to prevent that in the background are invisible signs
         After entering in this default excel all your assets, please save it as .csv file. (the grey message - relation to information of csv - please say yes; when you close than excel a furhter message - would you save.. - please say no now
         After entering all data please save it as .CSV file. First grey window (format information) please choose 'yes'. Second window (when you close this file) please choose 'no'.
         You have now a .csv file in hands right now for uploading into the fixed assets.
         This example you can use for a test-import based on the year 2004

    The issue was  because of the conflict of Depr. Start Date, Use Life and Remaining Life. After I corrected the data, it worked just fine. The note 876670 helped me to resolve this issue. Thanks to Adam at Toronto SAP Business one support for his expert analysis and suggestions.
    thanks
    johnson zavier
    Edited by: Johnson Zavier on Feb 19, 2009 11:10 PM
    Edited by: Johnson Zavier on Feb 19, 2009 11:20 PM

  • Using Global Variables in Data Quality Address Cleanse Transforms

    I am currently developing in Data Services 12.2.
    I am trying to dynamically populate the List Owner information in the option tabs of the USA Regulatory Address Cleanse by using global variables.  It populates the 3553 with the variable name instead of the value assigned.
    According to the Technical Manual, it is possible to use global variables in Data Quality Address Cleanse transforms:
    However, you can use substitution parameters in all places where global variables are supported, for example:
    Query transform WHERE clauses
    Mappings
    SQL transform SQL statement identifiers
    Flat-file options
    User-defined transforms
    Address cleanse transform options
    Matching thresholds
    Does anyone know if it is possible to use global variables in the option tab of the Address Cleanse; if so, can you describe how it is done?
    Thanks in advance,
    Rick

    Hi,
    U can refer to the following links in help.sap.com
    GlobalContainer Object
    http://help.sap.com/saphelp_nw04/helpdata/en/75/8e0f8f3b0c2e4ea5f8d8f9faa9461a/content.htm
    Container Object
    http://help.sap.com/saphelp_nw04/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/content.htm
    Also some of the RUN TIME CONSTANTS are available in your BPM. So if you are trying to retrieve those variables in your Mapping(that is used in BPM), also read the following thread.
    Re: Message id in BPM
    Cheers,
    Siva Maranani.

  • Year To Date custom variable not working

    Hi all,
    I have a key figure called "balance". I'm trying to restict by fiscal year/period by using a custom variable, processing by user entry/manual and accepting a range. The output is showing only values for the period in the lower range. What could I be doing wrong
    For example when I enter 02/2006 - 04/2006, it is displaying value only for 02/2006 and not the cumulated value. I did confirm there is data in the cube.
    Please advise.

    Hi Anita,
    I am not sure about your scenario, but we I know for sure that key figure such as Balance cannot be for a range of time. This could only be at a point in time.
    As an example, I can say the balance I have now is 20 or balance at last month was 15. Similarly I cannot say that balance between last month and current month is x.
    This is provided, the key figure balance is used in the same context.
    Naveen.A

Maybe you are looking for

  • Delete messages from server?

    Hi Guys, I have a question regarding mail management. Here is my situation: I have a GMX e-mail account; when I manage my e-mail on a computer (any computer), I always use the web-based e-mail straight from the website. I have this e-mail address con

  • Ipod touch 1st generation and icloud

    Does iPod Touch support IOS5 and iCloud?

  • Logical path and syntax groups

    WE know that we may define ligical file & logical file path. It is said that if we link  a logical path to a logical file the logical file is valid  for all syntax groups  thgat have been maintained  for that logical path? Could some one explain  how

  • Balance in transaction currency using MIRO

    Hello i´m trying to post an IR thru Transaction MIRO, but i´m getting the following error message "Balance in transaction currency" I´m trying to post these IR with a PO Reference. Someone can help me? Thanks

  • Alert in Japanese language

    Hello , I would like to know possible reasons for the following qtion: Customet master changes laert will go to user though mail, If alert in Japanese language, then there will be meaning less symbols instead of JP langauge letters. Please let me kno