BEX Variable - Current FY/Period

Hi ,
Currently i have a input variable for Period/FY in my bex query.
i would like to change it customer exit field whereby system detects the current fiscal year period by itself without the need of user keying it in.
I believe variable 0FPER can be used for this.I dont find it in the Variable list for Fiscal Year/Period in my Bex.
Its installed in teh BW system as i can find it at the transport connection object search.
Appreciate it if anyone guide me on how to insert this as part of the variable selection in the FY/Period in BEX query.
Thank you.
Regards
Maili

Hi,
Some times when we are installing the reports ( noramally we will go neceessary objects) so it is some times like 0fper(current fiscal period) may not be installed .
even though if it is there  go to RSA1busisness conent-- varaibles -
and find out the 0fper and reinstall the same nothing harm in that.
before install came out of bex
then install and open the query designer freshly and check thata varaible and restrict with key figure where you want.
Thansk & reards,
sathish

Similar Messages

  • Error when using SAP Exit Variable for Current Fiscal Period (0FPER)

    Hi Friendz,
    My requirement is to execute a query for the current fiscal period. I am using the SAP Exit Variable 0FPER.
    I placed this variable on char. Fiscal year/period 0FISCPER.
    When I execute the Query, it is returning the error: No value could be determined for variable ZVBSYCUR; Variables Contain Invalid Values.
    Please give inputs on how to use this variable.
    Regards...
    Ganesh

    Hello Dipika,
    I am also getting the same error.
    ERROR: Variable 0FPER could not be replaced.
    Yesterday we created one customer exit. But this should not affect the SAP Exit right? Till yesterday the 0FPER variable was working fine. I tried re-installing from BI content, but still getting the same error. If anybody has a clue please let me know.
    Thanks,
    Harshal

  • How to create a 0FISCPER variable for [last period of current year]

    Hello,
    Can anybody tell me how to create a (exit) variable for the last period of the current year, based on 0FISCPER ?
    Based on a single value, user entry variable based on 0FISCPER.
    I did not find any standard (business content) variables for this.
    Can anybody tell me whether the following alternative works:
    variable 0P_BA102 (last period pervious year) with offset of +12 
    Kind regards.

    Hi,
    It should work.
    You can refer to the following link:
    http://help.sap.com/saphelp_sm32/helpdata/en/3f/89533e5ff4d064e10000000a114084/content.htm
    Regards,
    Amit

  • SAP Exit for Current Posting Period

    H All,
       I am executing a query and it should always take the Current Fiscal Year & Current period into consideration. I don't see any Standard SAP exit which is provided for this. There is an SAP exit for Fiscal year/Period but I need both of them seperately.   Can anyone please provide a sample code for "Current posting period".
    Points will be assigned!
    Thanks a lot!

    Hi Sia
    Here is some cmod code that might help:
    These should be run in i-step = 1
    DATA: l_period        TYPE t009b-poper,
              l_txt4(4)      TYPE c.
    *Variable ZCCCFYEAR that defauts to current Fiscal Year
            WHEN 'ZCCCFYEAR'.
              l_txt4 = syst-datum(4).
              l_period = syst-datum+4(2).
    *Handles FiscVarnt, period 6 is end of year so period 7 is new year
              IF l_period > '06'.
                l_txt4 = l_txt4 + 1.
              ENDIF.
              l_s_range-low = l_txt4 .
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    *Variable ZCCPPER that defauts to current Posting Period
    Code adds 6 to current year period to be inline with Fiscal Year Variant (ie.per1 = july(7)),
            WHEN 'ZCCPPER'.
              l_period = syst-datum+4(2) + 6.
              IF l_period > 12.
                l_period = l_period - 12.
              ENDIF.
              l_s_range-low = l_period.
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    Hope this helps
    Josh

  • BEx  Variable input Issue

    Hi everyone,
                       I have an issue with Input Parameters in BEx Variable Screen. For Example, I have included Customer Name in the Variable Screen. Then , the user says, he does not remember the complete customer name. There will be thousands of names. Instead he remembers only a few Initial Characters. For example, if the  customer Name is ZSAMSUNG. He only remembers ZS out of the whole name.
    In that case, he wants to enter ZS* in the Variable Selection Screen for Customer Name. But this is not working in BEx. It says invalid Parameters. I have created a Characteristic variable with Manual Entry.
    Currently, I am working on BI7.0, Support Package 11.
    Please provide your valuable inputs.
    1) Is it possible create a Customer Exit Variable for the same with some logic.
    Regards,
    Samiir

    Hi Samir
    Sry, but I think that this functionallity is allredy usable in Bex.
    When the variable-screen appears, the customer has to press F4 for help.
    Another screen pos up.
    -> in that screen, in the FIRST ROW, the customer can seach by therms:
       in the first column:  KEYS
       secound column:  Text
       other columns:  attributes if available
    he also has the possibility to search with *
      like  ZS*  for ZSAMSUNG
    try out, it works 
    reagrds
    Tom

  • Cascading LOV in BEx Query OLAP Universe + BEx variable

    Hi gurus,
    we have an universe where a Cascading LOV has been defined based on a BO Hierarchy ( based on a BW hierarchy), the OLAP universe is based on a BEx query.
    Now, when the users create a WebI report selecting a value from the value list, the Cascading LOV appears and the user selects the value, descending by the nodes.
    We are analyzing the universe performance and we are testing to add some time BEx variables in the query ( in the current version no variables are used).
    Everything works properly but when we try to select a value from the Cascading LOV and try to select a lower level the webI returns a mdx error indicanting that the time variable is not informed. (WIS 10901: A database error ocurred; MDX query can not be executed: specify a value for the variable Z... )
    We thought that the mdx for the LOV get values from the MD table because in the infoobject definition, it has the Business Explorer Settings:
       Query Def. Filter Value Selection = Value in Master Data Table
       Query Execution Filter Val. Selectn  = Value in Master Data Table
    The Query Execution Filter Val. Selectn  can be defined at the infoprovider also (with the provider specific Properties of the infoobject) and also at the query, whe have not modify none of them.
    My first question is which settings has efect at OLAP Universes, the infoobject settings; the infocube settings or the query settings ?
    Are the Cascading LOV integrated with BEx Query OLAP Universe?
    Is it an application error?
    Many Thanks in advanced.
    Best Regards,
    Nuria

    Hi Ingo,
    many thanks for your quick answer.
    That was one of the possibilities we have analized but the problem is that the user has to inform the hierarchy level for all the reports, that kind of variables is translated in the universe as a prompt
    Now we have only one universe and some business analists users create reports themselves for the business area based on that universe.
    The users create WebI filters without prompts,just filtering the hierarchy node. If we add the BEx variable then the user sould inform the prompt for all the reports based on that universe.
    We want to avoid that prompt, we have several hierarchies in the query for different infoobjects.
    Thanks again.
    Best Regards,
    Nuria

  • BEx variable 0FPER could not be evaluated

    Hi,
    I am using BW ver 3.1, For one of the infopackage which uses OLAP variable in selection  gives the error message for Fiscal period.
    "BEx variable 0FPER could not be evaluated - No error message."
    one way for this problem is using 0P_PRFP1 instead of 0FPER. 
    Does anybody have come across this error anytime?
    Early response appreciated.
    Thanks
    Ganesh

    hi Ganesh,
    I faced the same issue, I could not install variable 0FPER from BI Content. Could you tell me how to fix ur issue?
    Thank you!

  • Current Posting Period

    Hello,
    Is there a SAP Exit variable that will return values for Current Posting Period (0FISCPER3)?  I dont see one but there are so many maybe i am overlooking it.  Fiscal year period is not an option for me here.
    Thanks,
    TMS

    HI TMS
    I remember i couldnt find one to suit either so i just wrote a customer exit to handle it.
    Here is some code that may help, call this in i_step 1:
      WHEN 'The tech name of your variable'.
              l_period = syst-datum+4(2) + 6.
    *the +6 is for the fiscal variant, my site runs a july-jun variant, so the ōffset is 6
              IF l_period > 12.
                l_period = l_period - 12.
              ENDIF.
    *this handles the year role over, so if you are running more than 12 periods change to *suit
              l_s_range-low = l_period.
              l_s_range-high = ''.
              l_s_range-sign = 'I'.
              l_s_range-opt = 'EQ'.
              APPEND l_s_range TO e_t_range.
    Hope this helps
    Josh

  • Customer Exit for Deriving Current Fiscal Period, Period+1 and Period+2

    Hi all,
    I have created three customer exit variables in my query for custom info object ZFISCPER (Fiscal Year PEriod), Fiscal 1, Fiscal 2 and Fiscal 3. I want to write a customer exit to derive the current period, current 1 and current2 period's respectively for these variables based on the system date. The format of the period is YYYY0MM ( 2009004). Could someone give me the exact code i can plug in CMOD for these
    Thanks a lot
    Rashmi.

    Hi Rashmi,
    I think you need only one customer exit variable. Other can be derived by setting an offset to current Fiscal Period.
    Check the BI content variable for current fiscal period. Use this variable with an offset for derving the other periods (e.g. SAP Exit variables (0FPER, 0FYTCFP, 0FYTLFP). So you have to write no own code...
    Other option is to check how SAP exit is working and building own variable based on this code.
    Check the following link to get information how to do this:
    Reg Variable 0FYTCFP
    Regards
    Andreas

  • BEX Variable processing type Authorization

    Hello ,
    Currently we have Company code as Authorization relevant and we have BEX Variable of processing type "Authorization". currently when user executes the BEX query, he is able to see list of company codes which he as authorization to and all of them were selected in the prompts. Now the requirement is, User want to see list of company codes which he as authorization to in F4 but nothing should have been pre-selected in the prompt, he will select manually the company codes what he wants.
    please guide me how to achieve this.
    Thanks,
    Ashok Kumar

    Actually, the default values(in Bex) are bound to appear as per RSECADMIN definition. That's how it behaves. To try in a different way for your Authorizations, you may try with a BADI with all Authorized values in the code. Please search below document in SCN.
    Restricting F4 (Input Help) Values While Running a SAP BW Query

  • Crystal Report not Adopting all possible Dropdown Values from BEx Variable

    Hi all,
    I am having an issue in a Crystal report where the drop down parameter that is sourced from a BEx query variable does not include all the possible values in the cube (or in master data). After learning my lesson the first time of not changing the name of the variable or changing it to dynamic (this causes it to break), I had the understanding that the value list may not be complete when running the report in the Crystal client or in the viewer, however, I thought it should be correct when published to the BOE and run in infoview. I am getting the same incomplete list in infoview. I published the report into infoview using the Crystal 2008 desktop client, not the /CRYSTAL/RPTADMIN transaction.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    Here's some info:
    Crystal version: CR2008, version 12.2.4.507
    BOE version 3.1
    SAP BW 7.01 EhP 6
    Thanks,
    Chad

    Hi,
    - in the Crystal Reports designer the list of values is not online and there is a maximum number of values - configured by a registry setting:
    (windows 7)
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Business Objects\Suite 12.0\SAP\BWQueryReportWrapper
    Key: MaxPickListSize
    and correct you can not change the name of the variable or set it to dynamic as the definition is based on the BEx query.
    I know there are a couple ways of sourcing a Crystal report from a BW query - using MDX vs. not, etc. I created this report using the SAP menu > "Create new report from a query". I don't believe Crystal will easily let you use that menu option to create a report off two BW queries joined together (which is what I am doing), so I built it off one originally (using the SAP menu), then added the other later on. I have the checkbox for "Use MDX driver with support for Multiple structures" checked. In database expert, my "Selected Tables" both are of database type "SAP BW Query".
    The checkbox on the Multi Structure is not for the option to combine 2 Bex queries - it is for Bex queries with 2 structures and the BW query driver has been deprecated already and you have to use the MDX Driver.
    Do I have the right understanding of how the value list should work when sourced from a BEx variable? If so, can anyone offer any suggestions for getting the value list populated correctly?
    in Crystal Reports Designer the list is static and when you publish the report using the BW Publishing to your SAP BusinessObjects Enterprise system the list becomes dynamic in InfoView.
    regards
    Ingo Hilgefort

  • How to get total number of days in current Fiscal period/year

    Hi,
    I need to get total number of days in current Fiscal period/year (current month) and assign it to an infoobject. I need a routine for this. Is there any function module to get this.If possible pls paste the ABAP code also for this task. Thanks in advance

    here is the FM:
    LAST_DAY_IN_PERIOD_GET
    KJ!!!

  • Restriction of f4 help of a bex variable based on another variable input

    Hi,
    Could you please let me know if there is any possibility to restriction of f4 help of a bex variable based on another variable input.
    eg: when i select particular company code in one variable, i need to restrict the f4 help for another variables eg: pur. group based on selected company code.
    Regards
    Kasi

    Hi,
    Try using replacement path option in bex with replace variable with variable selction.
    Thanks.

  • 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

  • Sort F4 values in BEX variable screen

    Hi ,
    Does anyone know how to sort F4 value help in BEX variable selection screen. This query has come up time and again in SDn and there seems to be no proper reply to this. If anyone has worked on this do let me know.
    Thanks,
    Vaishnavi

    Hi Nara,
    Kindly have a look at below thread,
    Sort the values in Bex query variable screen
    Hope this helps.
    Regards,
    Mani

Maybe you are looking for

  • Messages going to wrong person

    When I send a message to a person, it goes to them another person that I did not intend? Then when either person replies to me it goes to the 3 of us. The person I am sending to is on AT&T I am on verizon. Is anyone else having a similar problem? Whe

  • Can't empty trash on my i-mac OS X 10.6.8

    I'm not able to empty the "trash" on my i-Mac 10.6.8.   I have tried several options on the internet, but none have been successful.  Help please. Tom

  • Gross Price Calculation sql query

    Hi Guys, I have created a udf (quantity s) in purchase order service type. now i want the gross price to be calculated based on the quantity. can anyone help me on the query for the formatted search. Please help. cheers satish

  • Global outline agreements

    Hi, Is it possible to create Global contract independent of company code Then release subsequent contracts with ref.to global with each company code. Has anybody worked on this scenario? Please help I need details with config settings. BR Raju

  • WRT54G2 does not allow simultanious connections

    Subject line covers it pretty well. Two wired desktops, one with Vista and the other with XPsp2, cannot connect at the same time. When I try to connect the one without, the other loses it connection. Once both have no connection, I have to run the "n