SAP exit  -- user entry variable

Hello,
In my report i need two columns: one is for displaying the value of the current period and the other one is for displaying the cumulated value up to the current period. The info object is 0FISCPER.
1. The current period should be entered via user entry and based on this, an exit variable should pick up the year's cumulated value. Which variables could I use to fulfill these requirements?
2. Furthermore i have looked in SE37 to find the code of SAP Exit variable "0FYTCFP". However, the FM for the variable doesn't seem to exist. Why? The variable however exists in table RSZGLOBV. How do I find the code?
Thanks in advance,
F C

If you are gonna use fiscper as a variable parameter, your requirement would need a customer exit. 
If i get it right, the first would column should be derived from the user entry which wont be possible with the suggested SAP exit as that would bring the current fiscalyear/period (based on sys date) not giving the user the option to enter the fiscalyear/period. And the second column should be a YTD for that particular year the user has entered as a input parameter. the suggested SAP exit will again be calculating based on ur system date not on the user input.
the only way you can overcome this is if you have the flexibility to use fiscalyear and posting period seperately. if you can do that, you can avoid the customer exit. the procedure would be -
You can create ur own variable of type user entry on fiscalyear and posting period.
the first column would have ur KF further restricted by fiscalyear and posting period restricted by the variables you created ... so in the 1st column you would get the value for that period.
in the second column, the selections would be same (KF further restricted by fiscalyear and posting period ) but while restrict posting period make it a value range - and in the range pick period 1 - the variable u created, that would give you the YTD from period 1 to the user entered period.

Similar Messages

  • User Entry variable - AND condition

    Hi,
    The requirement is, if the user enters two materials A and B, the query should pull out all the transactions with BOTH materials in it.
    If the user entry variable with selection option is used, it pulls out the records even if one of the materials exist (OR condition).
    Is there a way to have the AND condition without the use of Customer exit variable?
    Thanks.

    Hi,
    The scenario is like this. Transaction 1 has both the materials A and B. Transaction 2 has only material A. Transaction 3 has only material B.
    Trans.No Material
    1             A
    1             B
    2             A
    3             B
    When the user enters materials A and B, the output should contain only trans.no:1.
    Thanks.
    Edited by: P R on Jan 6, 2009 2:52 PM
    Edited by: P R on Jan 6, 2009 2:57 PM

  • Query problem - authorization and user entry variable as filter

    hi,
    I made two variables for the characteristic 0COMP_CODE.
    The first variable is a user entry variable for the selection.
    The second variable is my authorization variable with multiple single values.
    This two variables are defined as filter in the query.
    The problem is as follows:
    A user is authorized to see the data from three companies. For example companies 1, 2 and 3.
    Now he enters on the selection for the 0COMP_CODE the value 2 to see only the data of this company. The query result gets me confused. It shows all data of the companies 2 and others. It basicly shows more companies than he has selected.
    Other companies of the authorization variable are shown.
    It works if the user has the authorization over all companies.
    Did someone has the same problem?
    Thanks for your help/advice.
    regards,
    Pascal

    Hi Pascal,
    this is an issue. The main problem is that you just can't influence via the exit for a vairable "ready for input".
    What could be done is define a dummy element (hidden in the final display) in your query like a restricted KeyFigure to a variable based on COMP_CODE; let's say VAR1 ready for input.
    You char COMP_CODE would then be filtered by a variable not ready for input processed by user exit, VAR2.
    The exit would ready VAR1. If there any value complying with the authorized one then populate VAR2 with it, otherwise remove it (you could use STEP_3 to raise a message "you aren't authorized to use comp_code XYZ" and return to the initial variable screen). If VAR1 is empty, then populate VAR2 wit all corresponding aithorized values.
    The main issue is that
    1- this is bypassing the standard functionality of authorization variables
    2- any report would have to be designed like that!
    What we have done is to add nav_attr / and added more IObjs in the InfoProviders related to 0COMP_CODE reflecting a country, region or any other group of comp_code authorization and then have based our authorizations on those nav....
    hope this helps...
    Olivier.

  • Standard SAP EXIT on Text Variables

    Hello Experts,
    I am working on Customer Aging Analysis. first of all I want to use standard SAP Queries and want to have a look on standard SAP EXIT created on variables.i have opened the query no 0FIAR_C03_Q0005. here it shows me one text variable 0P_KEYD2. now i want to see that SAP EXIT created on the variable of Posting Date.
    I went to SE37. i entered the Function Module EXIT_SAPLRRS0_001. but i didn't get standard SAP EXIT given by SAP.
    Can anyone tell me from where i can activate or Get the standard SAP EXIT ?
    Regards,
    Komik Shah

    Hi Mansi,
    Thanks for your reply.
    now if i want to add that SAP EXIT in EXIT_SAPLRRS0_001, then can i add it ? or do i have to directly use RSVAREXIT_0P_KEYD2 ??
    All standard SAP EXIT will work the same way you  mentioned ?? means goto SE37 --> type Variable Name --> get that exit.
    Regards,
    Komik Shah

  • User entry variable with exclude values

    Hello All,
    I created a  user entry/ default value variable, which allows multiple single values and is optional entry. And I also got to exclude few values from this infoobject as well as have a variable.  When I select and exclude my value from selsction and run the report, I get a system error and the varibale is converted to mandatory entry. The detail error message is displayed below.  Any useful input will be awarded
    Diagnosis
    Variable &V1& is used in the query in such a way, that an optional entry is not possible.
    For example, you might be using an "Exclude", or the variable might be connected using OR to additional selections for &V2& in the global filter, but is still displayed in the columns selections.
    It is also not possible to use an optional parameter variable to fill an interval selection in either the from-field or the to-field.
    System response
    Procedure
    If you are able to accept the mandatory entry, you need not do anything. Otherwise you must work with several variables in the query. You can use an optional interval variable to do this.
    Procedure for System Administration

    Hello ,
    I did try creating a variable with the foll details:
    Variable Type : User Entry / Default Value
    Variable Represents : Multiple Single values
    Variable entry optional
    When I run the query it converts my variable to mandotary entry.  but I want to have optional user entry variable.
    Any help will be awarded

  • How to show all the user entry variables in a workbook.

    Hi,
    My user need to see in the workbook all variables he had entered in the variable entry popup at the openning of the workbook.
    I know how to show all the variables, included the hardcoded variable in the query (with a text element, select the checkbox "Display All Statics Filters"), but I need only the user entry variables.
    There is a way to print only these variables?
    Thank you

    Thanks, but the problem is that this workbook is my Global default workbook used for all the queries. So I only want the user entry variables visible automaticly.
    There is a way to do that ?
    For information, i'm using Netweaver 7.
    Thank you

  • Find SAP Exit code for Variable '0CMONTH '

    I am trying to fnd the SAP exit code for variable 0CMONTH so I can create a customer copy and make the variable 'ready for input'. Any ideas where I can find the code or a simple way to effectviely copy the delivered variable.
    I have tried looking in SE37 and then RSVAREXIT* but cannot seem to find the specific code I need.
    Thanks
    Steve

    Hi,
    Search the technical name for the variable in metadata repository and try to find the program where it is declared.  Then i hope u can go the code where it is written.
    Cheers.
    Ranga.

  • Simple Feed from user entry variable to customer exit

    Requirement, I am trying to populate the user entry date from variable single value
    <b>ZP_userent'.</b> and then feed that date to customer exit variable <b>'ZP_custexit'.</b> to calculate the range User entry date --  '01012099'.
    but it is not populating any values in report
    Error can not populate 'ZP_custexit'. Please correct error i think date format is not correct
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    IF I_STEP = 2 AND I_VNAM = 'ZP_custexit'.
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZP_userent'.
    CLEAR L_S_RANGE.
    L_s_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'EQ'.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(8).
    L_S_RANGE-HIGH = '01012099'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    Thanks
    Soniya

    Hi,
    May be a simple solution remove
    CLEAR L_S_RANGE.
    And probably it'll be ok
    Best regards,
    Christophe

  • Assigning a customer exit variable to a user entry variable

    Hello all,
    I'm creating a PCA query and would, in a certain column, like to show the year's cumulated value (key figure amount), based on documents posted up until a certain posting period (specified via a user entry). E.g. from 01.2006 to [user entry] where the "from"-year is also dependent of the user entry.
    1) Where do I do this coding (transaction code/function module etc..)?
    2) How do I do this coding?
    3) Does this kind of variables exist as standard? If yes, which one?
    Thanks!!!
    Best regards,
    Fredrik

    Hello again,
    I have now created a new input variable named 'Z_FPER' (single value)  which I want to read into the exit variable...
    I debugged the query and found out that the value of I_STEP is 1, which is wrong. It should be I_STEP = 2... However, I have definied my user exit variable as "no input" and "mandatory". What else should I do to make it a '2'?
    Thanks,
    Fredrik
    P.S. This is the code:
    *&  Include           ZXRSRU01
    DATA: L_S_RANGE TYPE RSR_S_RANGESID.
    DATA: LOC_VAR_RANGE LIKE RRRANGEEXIT.
    CASE I_VNAM.
    WHEN 'Z_FISCPE'.
    IF I_STEP = 2. "after the popup
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'Z_FPER'.
    CLEAR L_S_RANGE.
    L_S_RANGE-LOW = LOC_VAR_RANGE-LOW(4)."low value, e.g.200001
    L_S_RANGE-LOW+4(3) = '001'.
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW. "high value = input
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    APPEND L_S_RANGE TO E_T_RANGE.
    EXIT.
    ENDLOOP.
    ENDIF.
    ENDCASE.

  • User Entry Variables and CMOD

    Hi SDN,
    I asked this question last week but did not get a straight answer, so I am trying again. Please do not refer me to PDF's on 'How to create Customer Exit variable', that is not the issue. Following is the problem.
    User enters a value in a User Entry type variable. We use that value to create a new set of restrictions using CMOD/Customer Exit. However, we then want the value in the first variable to go away or become ineffective.
    Or does anyone know the actual run time structure where OLAP keeps the variable values after step 2 so we could changes there?
    Thanks.
    SM

    Surely, you can just delete the value of the 1st variable, or remove it from teh variable table.
    You could do this in i_step = 2, once you have computed the value of your new variable
    Inside CMOD, the variables are all stored within i_t_var_range. I don't see why you can't just loop at that table until you find your 1st variable, then delete it from that table.
    If you can't delete, then loop through the table, and check each line. If the variable in question is not your 1st one, then add it to a temp table. Continue till all records have been evaluated, then refresh i_t_var_range and move the contents of the temp table into i_t_var_range.
    Cheers,
    Andrew

  • Give me details about  customer exit, sap exit using characterstics variabl

    give me details about  customer exit, sap exit using characterstics variable

    Hi,
    Customer Exit:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/content.htm
    SAP Exit:
    http://help.sap.com/saphelp_nw04/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm
    Characteristic Variables:
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/8db07d555411d189660000e829fbbd/frameset.htm
    SAP and Customer Exit:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f1a7e790-0201-0010-0a8d-f08a4662562d
    Some Imp Docs:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/650ee690-0201-0010-4bb7-83c3e2a74039
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a
    Assign points if these are helpful.
    Rgs,
    I.R.K

  • How to look at sap exit  for bex variable

    hi gurus
    how can i read a sapexit for a standard variable created by sap. i need to replicate that same code and modify it and make my own user exit for a custom variable.
    thanks

    hi Adnan,
    sap variable exit is process with function module RSVAREXIT[variable name],
    e.g you want to see code for 0date, run SE37, RSVAREXIT0DATE and display.
    hope this helps.

  • User entry variable on navigational attribute

    Hi,
    Can I create a Manual Entry/Default Value variable on a navigational attribute?
    Thanks,
    P R.

    Hi,
    Thanks for your replies.
    The attribute is in the master data carrying infoobject. We changed it from display to navigational after the query was created so that we can create variable. The query is based on ODS. In the query, I don't see the option of creating variable on the navigational attribute. Is there any other step to be done?
    Thanks.

  • User Entry Variable - brings back date from several months past - cache?

    Hi ,
    Please excuse this question if this has already been addressed.  I have searched sdn and could not find a posting.
    This may seem silly but in a query that is refreshed weekly, it has several variables that can be populated.
    The data - 0calday - &yrfdyo& is one.
    When I run the query, the variable entry screen appears with all the possbile varibles blank but the 0calday - single day filter - comes back with a date used back in september. 
    Why is this and where is this saved - cache somewhere?  or is this variable saved as a variant somewhere and that is why?
    Thanks for any clarification you can provide.
    Thank you,
    Lynda

    the problem was personalization checkbox.  I have been using portal and 7.0 and forgotten about the bex analyzer settings.
    To change the values to a different set of personalized values
    Step 1.After executing the query, Click on change query icon
    Step 2 Then, click on Change variable values in the drop down selection
    Step 3 You get the selection screen
    Step 4; Click on the selection icon on the right; you get the pop up with buttons for (1)Personalize variable values,(2) Load personalized values, (3) Undo personalization.
    Click Undo personalization button first
    Step 5: Then click Load Personalized Values button: the screen is now returned (with u2018?u2019 in the selected values)
    Step 6: Click on the available values: you get the screen with selection checkboxes on the left; select the desired value
    Step 7: Then click the personalization icon at the bottom
    The new values are now set.
    If you stop at Step 4, the personlaization should be undone

  • 0P_CURRENCY_COMP_CDE Sap Exit Variable BI

    Hi!
    Does anyone have any idee where I can find the SAP exit behind the variable 0P_CURRENCY_COMP_CDE?
    I would like to write a Exit of my own, that limits the number of currencies in a variable, which is used for currency conversion in a BI-Query.
    If anybody has done something similar, please give me some hints.
    Thank you,
    DAN

    My Code is as below ,
              case i_vnam.
                  WHEN 'ZYTD_PERIOD'.
                  IF I_STEP = 2.
                  LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE WHERE VNAM = '0P_FPER'.
                  CLEAR L_S_RANGE.
                  L_S_RANGE-LOW0(4) = LOC_VAR_RANGE-LOW0(4).
                  L_S_RANGE-LOW+4(3) = '001'.
                  L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
                  L_S_RANGE-SIGN = 'I'.
                  L_S_RANGE-OPT = 'BT'.
                  APPEND L_S_RANGE TO E_T_RANGE.
                  EXIT.
                  ENDLOOP.
                  ENDIF.
                  ENDCASE.

Maybe you are looking for

  • Airport network and sharing Internet connection

    Hello all, I have hit this problem with sharing an internet connection on an airport network. Maybe its a simple fix, maybe it a "can not be done", answer. My set up may be a little hard to describe. To explain, completely wireless set up in my netwo

  • How to handle User Profile service when merge SP2010 farm to a SP2013 farm?

    We have a SP2010 farm and a SP2013 farm. Both are resident in same domain and their User Profile Service are sync with the same Active Directory. To save system resource, we decide to migrate SP2010 site collections to SP2013 farm. From my understand

  • Partial clearing- link

    Hi, 1.I am having a vendor invoice of  10000 INR   and then I made a  partial clearing of 8000 INR 2. I am trying to make the balance payment of Rs. 2000 manually through F-53.   I choose Rs 10000, but the system is not choosing Rs.8000 automatically

  • Which tables store the domains and data types?

    Hi. From what I know, DD01L stores all the domains (both SAP and user-created) in the system. Is this understanding correct? As for data types, which table stores them? Thanks.

  • Faulting application SAP Business One.exe, version 8.80.233.0

    Daily the following event id 1000, application error is logged in on my SAP server. Faulting application SAP Business One.exe, version 8.80.233.0, time stamp 0x4c9ba79d, faulting module ole32.dll, version 6.0.6002.18277, time stamp 0x4c28d53e, except