User entered Variables

I am trying to create a form in LiveCycle 8 where a user who has the form open can enter in information, and that information then populates into different locations on the page.
Say that there is a drawing of a door. I'd like there to be a form where they enter the width and height, and those numbers that they enter are then put in their corresponding location on the drawing. Any help would be great!!

I had something similar and it was because the denominator was a zero before the user entered the variables.  It was fixed with an "if/then/endif".
It looks like the problem in yours is form1 being zero.  Try
if([YOUR DENOMINATOR]>0)then[YOUR FORMULA HERE]endif
Example:
if(form1>0)then(this.rawValue=form1.#subform[0].NumericField4.rawValue / form1.#subform[0].NumericField5.rawValue)endif
Your formula is a bit more complicated than I can decipher, so I'm not sure how much after the "/" you need to include to capture the part of your denominator that is making it null.  You may need to insert everything after the "/" in the ">0" parameter.  The goal is to tell it only to execute the calculation when the denominator is greater than 0.

Similar Messages

  • Clearing out user entered variables

    I have a BI 7.0 query that displays materials that have not moved in 'X' number of days.
    1. My variable screen shows "No movements since <blank>". The user enters a number in this variable (ZV_NUM_DAYS)
        e.g. 90.
    2. I created a variable (not ready for input) on the movement_date field. This variable gets populated by a range of dates based on the "Number of Days" entered by the user in I_STEP2 of the variable exit.
    eg. LOW = 19000101
          HIGH = SY-DATUM - the value from user entered variable
    I still need to clear out the user entered variable ZV_NUM_DAYS so that a filter of '90' does not get applied to the cube.
    I cannot clear out ZV_NUM_DAYS in I_STEP2 as it is user entered. I tried doing so in I_STEP3 - clear out E_T_RANGE for the variable. The debugger shows me E_T_RANGE cleared out however it still sets the filter of '90' in the cube.
    Any thoughts on how to clear user entered variables ?
    Regards,
    - Ash

    Thanks for your responses.
    @Arunkumar - could you please elaborate on this option ? I don't know of a way to create variables on key figures.
    @Dennis - I tried turning the cache off - no effect. Turns out when I change e_t_range values in STEP3, it does not save the change somehow. Although the debugger displays the modified table data.
    Regards,
    Ash

  • User exit on User entered Variable

    Is it possible to run a user exit that will filter for a particular date, based on what the user enters. For example if the user enters the day May 20, 2008. Can instead filter the report for May 18, 2008 (Always Sunday). How do I go about doing this? I have the code to find the Sunday date, just having difficulty getting it to executing after the user has entered a date.

    Hi Vendant
    You will need 2 variables, the one the user enters the date against and another customer exit variable executed in step 2 that takes the input date and returns it to sunday.
    This CMOD code might help, you may need to tweek it to cater to the date format you use
    CASE i_step.
    WHEN 2.
    CASE i_vnam.
    WHEN 'Tech name of customer exit var'.
    DATA: loc_var_range LIKE rrrangeexit,
    l_s_range TYPE rrrangesid.
    DATA: i_t_var_rec LIKE LINE OF i_t_var_range.
    DATA: l_text(10) Type C.
    READ TABLE i_t_var_range INTO loc_var_range
    WITH KEY vnam = 'tech name of first date var'.
    use your code to find sunday here on the loc_var_range-low, this is the value the user entered.
    you will need to assign loc_var_range-low to a variable like l_text as you cant manipulate it directly
    l_text = loc_var_range-low.
    l_s_range-low = the result of your find sunday code.
    l_s_range-high = ''.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDCASE.
    ENDCASE.
    Hope this helps
    Cheers
    Josh

  • How to Get User entered value in a text variable

    Hi,
    I have made a text variable to show the user entered value in the column header.
    The user enteres value in a formula variable ABC whose default value is say '30'.
    I am using customer exit to capture this value in the text variable. The code is as follows
    IF i_vnam EQ 'txtvar'.
    if i_step = 2.
    LOOP AT i_t_var_range INTO loc_var_range
    WHERE vnam = 'ABC'.
    CLEAR l_s_range.
    l_s_range-low = loc_var_range-low.
    l_s_range-opt = 'EQ'.
    l_s_range-sign = 'I'.
    APPEND l_s_range TO e_t_range.
    EXIT.
    ENDLOOP.
    endif.
    endif.
    Now when I am executing the query I am getting the default value in the column header i,e, 30. But when the user changes this default value to something else while executing the query, I simply get blank in the column. The changed value is not getting captured in the text variable.
    Thanks

    Hi,
    Insted of  going for exit,
    just create a Text variable proceesing typr Default/ Manual Entry and set the default value as u wish,
    use it in the KF header; dont use the same Text Variable for Query Title.
    Now i tried this for you and it is working fine.
    Regards
    ReddY A

  • How do I store and retrieve variables end user enters in Dynamic Pages ?

    I have 4 dynamic pages, a user enters in variables on first page. At the next 3 dynamic pages I send the user to I have to display the items they entered on the first page in text items.
    How do I pass these variables ????
    thanks!

    ok, so on my page 1 I have the parameter "name", if I use <ORACLE> tags on this first dynamic page they are executed upon entering the form. The user has to enter the data and if the <ORACLE> tags have already executed where do I store the value ?
    So where do I issue the wwsto_api_session.load_session (in the second dynamic page or the first one) ?
    I can see that I'll use the wwsto_api_session.get_attribute_as_varchar2 ('name') in the second dynamic page with the htp.p - is that right ?
    You wouln't have an example you could share with us all do you ? Sure seems like this is confusing to a lot of people. Are there any useful examples of this in the PDK that show how to do this with the HTML included ?
    thanks again

  • Need help in creating a user exit variable

    Hi all,
    I have created a query in which a key figure needs to be automated with an user exit variable.I want to derive the value of this key figure 'x' based on calender month.
    This key figure should get the cumulative value from the first month of the fiscal year till the calender year month entered while executing the query.
    I got a basic understanding on the User exits from SDN. But Im not sure how to implement this logic.
    I would really appreciate if you could provide me a detailed explanation of how to do this.
    Thanks in advance,
    Vinoth

    Hi
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/208811b0-00b2-2910-c5ac-dd2c7c50c8e8
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6378ef94-0501-0010-19a5-972687ddc9ef
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/2d99121a-0e01-0010-e78c-b1ae566a2413
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/how-can-i-set-bex-variables-in-i_step3-exit_saplrrs0_001-335232

  • How to select several values from a user exit variable in a planning folder

    Hello,
    I have created a user exit variable for limiting the values only to which the user need to access.
    For a simulation part, it is then necessary for him to select several values from these values (not only one, and not all)
    But It seems in this case the user has only two possibilities :
    - keep all the values without any restriction
    - restrain the selection to only one value.
    It seems possible for the user to access to a multiple choice window, but this possibility doesn't seems to work : in all tests we did, only the first value was taken into account by BPS.
    If this method is not good do you know an other manner to permit the user to choice several values amongst a set of pre-selected  (because the original set is too important) values ?
    Thanks for your help.

    Hi Mayank,
    Thanks for your response, but I don't think it corresponds to my problem.
    I my case, I use a user exit variable to filter some data. It seems BPS offers the possibility to the user to select several values amongts the pre-selected values presented by the user exit variable, but it doesn't work. We can use a popup in which we enters the required values, but in final, only the first value is taken into account.
    I don't know if it is due to a BPS bug or if it is not a good solution in regard to BPS philosophy. In this case, the concerned caracteristic isn't in the header but in lead columns.
    I must present a solution to my client next monday, so I have not enough time to open an OSS message.
    An alternate solution should be interesting too.
    My need is to present to a user a selection of values amongst all values from an infoobject (the user exit variable seemed to be a good solution) and the user must have the possibility to select some values amongst these as filter.
    Regards

  • Value for user-exit variable  is invalid

    Hi Gurus,
    My Value for a Fiscal Year Prd returns a invalid value for the 12th month of each year( for Example 12/2004, returns the error "Value 200313 for User-exit variable is invalid.
    This is the code that is being used.
    *Rolling 12 months for entered month
    when 'ZCALM12'.
          clear: v_mth, v_yr.
          REFRESH E_T_RANGE.
          CLEAR L_S_RANGE.
          LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
                   WHERE VNAM = 'ZCALMON'.
            exit.
          endloop.
          v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
          v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
          L_S_RANGE-SIGN = 'I'.
          L_S_RANGE-OPT = 'BT'.
          concatenate v_yr v_mth into L_S_RANGE-LOW.
          L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
          APPEND L_S_RANGE TO E_T_RANGE.
    Thanks in Advance.

    Hi Ravi,
    when 'ZCALM12'.
    clear: v_mth, v_yr.
    REFRESH E_T_RANGE.
    CLEAR L_S_RANGE.
    LOOP AT I_T_VAR_RANGE INTO LOC_VAR_RANGE
    WHERE VNAM = 'ZCALMON'.
    exit.
    endloop.
    <b>-->> Here, you are not checking any thing.</b> <i>On which logic you are reducing year by one and increasing month by 1..?</i>
    v_yr = LOC_VAR_RANGE-LOW+0(4) - 1.
    v_mth = LOC_VAR_RANGE-LOW+4(2) + 1.
    -->><i>IF month is 200512 you will get output from above code is :</i> please check.
    v_yr = 2005 - 1 = 2004
    v_mth = 12 +1 = 13.
    L_S_RANGE-SIGN = 'I'.
    L_S_RANGE-OPT = 'BT'.
    concatenate v_yr v_mth into L_S_RANGE-LOW.
    L_S_RANGE-HIGH = LOC_VAR_RANGE-LOW.
    APPEND L_S_RANGE TO E_T_RANGE.
    Try to debug the code by keeping break point after When. and execute the report, you will be debugging mode.
    Hope it Helps
    Srini

  • How to use User entered dates in intreval

    Hi,
    User will enter date range in variable
    As per my requirment i want to use no of days between those 2 user entered dates in my calculaction
    How can i achieve this at report level.
    Thanks

    Hi
    Create a variable with intreval.
    There is a function module which calculates the no of days between the days
    Go to SE38 and ZXRSRU01 Program
    Write the Code like this (Not exact code)  you can modify
    WHEN "ZZZZZ"(Before that create a formula variable to get the number of days between the days and use the tech name of the formula variable here)
    read ..the lower limit and the upper limit of the caldaz variable
    FROMDATE = L_S_RANGE-low
    TODATE = L_S_RANGE-HIGH
    Then call the function module
    Search for the function module by using days in SE37
    Then pass the from and to Date to the function module it will retun the number of days
    update that to table e_T_Range
    You can proceed with this
    Regards
    M.A

  • Current date - user entered days

    Hi all
    I have this scenario:
    I have safety stored as attribute of material.
    I have to do some calculation based on this so i created a replacement path variable and used replace  with attribute value.
    Now i have 2 safety stock:
    1. Current ( safety stock restricted to current date )
    2. Safety stock Past : restricted to  (current date - User entered no of Days).
    How to calculate the second one in 2004s??
    Thanks

    Hi Srini
    Thanks for quick response. here is the issue. The safey stock needs to be calucated for just that day. so it not aggregated from current date- user entered days to current date.
    ex:
    Current Safety Stock (10/26/2007)    Safety past (10 /26/2007 - 7 days) ( user enters 7 days)
    100                                                      200
    So how to restrict Safety past to the date which is current - user enetered no of days.
    Thanks
    Pankaj

  • Manipulate the value of User Input Variable

    Dear BI fellows,
    I have a requirement to change the value that the user entered in variable screen (the variable type is a characteristic value variable, w/ processing by: user input), after the user clicks the execute button.
    I tried creating 2 characteristic value variables, one w/ processing by: user input, to receive input from user, and the other one w/ processing by: user exit, which takes the value entered in the first variable and manipulate it, and eventually use this second variable to restrict data in the query.
    But the problem is, the first variable must be associated w/ any characteristic in the query, and it eventually restricts data in query as well, which I don't want.
    Thanks alot in advance.
    regards,
    arie

    I browsed further on SDN and found someone mentioned about using variable in Restricted Key Figure/Selection, and eventually hide this Restricted Key Figure/Selection.
    So we just make use of the first variable to receive user input and use the second variable w/ processing by: user exit to take value in first variable, manipulate it and use it to restrict the data.
    The first variable doesnu2019t restrict the data, it only restricts for that particular key figure (Restricted Key Figure/Selection) which I then hide it.
    Another thing is, I found that variable in Characteristic Restriction is executed first before variable in Restricted Key Figure/Selection.
    Thanks all.
    regards,
    arie
    Edited by: Arie Wirawan Margono on Jun 19, 2009 7:12 PM

  • RRI with passing user enter values

    Hi Friends !
    Brief about my requirement for the RRI.
    I have a Main Query. When I click on Goto option, it shud display the variable screen and pass the user entered values in the Jump Query.
    In RSBBS, I tried with the "Assignment Detail" button, in which we have variable option, etc but via Assignment Details, its not working.
    Please provide some inputs.
    Thanks.
    Rekha

    It sounds like you are trying to make RRI do something that it is not designed to do. For RRI to work correctly, the sender query must contain all of the values to be passed to the receiver query. Therefore, no prompting for additional variable values occurs during the jump from the sender to the receiver.
    To quote the SAP Help on RRI :
    "Queries, transactions, reports and Web addresses can be jump targets. The parameterization of the target action is taken from the context of the cell that you have jumped from. You can set parameters for calling a BEx Query or a BEx Web Application using input variables which are filled from the selection conditions and the element definitions of the cells highlighted in the sender query."
    See <a href="http://help.sap.com/saphelp_nw04/helpdata/en/99/08629bd3e41d418530c6849df303c9/content.htm">SAP Library  -  Report-Report Interface</a> for all the details.
    Hope this helps...
    Bob

  • 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

  • Funtion Module for user exits  variables in BEx Queries.

    Hi,
    This is for BW Query customer exit variable (zvar2) for include ZXRSRU01 and exit :EXIT_SAPLRRS0_001.
    Can anyone please suggest the function modules that can be used to do the following.
    1)Read value of zvar1 from selection screen whatever 
      user enters at run time.
    2)How to define the zvar2 in the include. zvar2 is the 
      variable created in BEx to be populated from this
      customer exit.
    3)How to use case statment where once the value for zvar1
      is determined then,
       Case zvar1.
       when zvar1 = 0 , then zvar2 = 10
       when zvar1 = 1 , then zvar2 = 20
    3) Assign zvar2 value as computed in the case statement.
    Can anyone please help with the code to achieve this.
    Any information regarding function modules that can help write user exits for variable reading and input will be greatly helpful.
    Thanks
    Sarah.

    Hi Sarah,
    You don't need any FM for your issue.
    Please try thie sample code :
    DATA: VAR_INPIUT LIKE RRRANGEEXIT.
    CASE I_VNAM.
      WHEN 'ZVAR2'.
       CLEAR L_S_RANGE.
       IF I_STEP = 2."PROCESSED AFTER VARIABLE INPUT
    *Reading value of ZVAR1
        LOOP AT I_T_VAR_RANGE INTO VAR_INPIUT
          WHERE VNAM = 'ZVAR1'.
          CASE VAR_INPIUT-LOW.
    *FILLING ZVAR2
           WHEN 0.
              L_S_RANGE-LOW     = 10.
           WHEN 1.
              L_S_RANGE-LOW     = 20.
          ENDCASE.
          L_S_RANGE-SIGN     = 'I'.
          L_S_RANGE-OPT      = 'EQ'.
          APPEND L_S_RANGE TO E_T_RANGE.
          EXIT.
        ENDLOOP.
      ENDIF.
    ENDCASE.
    Hope this helps
    Joe

  • User exit variable I_STEP=1 does not show default value WebI selection scr

    Hello,
    We have a BW query with a user exit variable. We have written user exit code under I_STEP = 1 so that the default value for the field is displayed on the selection screen to the user. Works very well on the BW side.
    We based a universe on top of the query and then created a WebI report.
    When the WebI report is executed the default value is NOT seen on the selection screen,
    Note:
    1. If the user exit variable is optional and we execute the report, the default value is NOT seen on the selection screen. However if the report is executed without entering any value for the field the logic under I_STEP = 1 is picked up and the report gets the correct output
    1. If the user exit variable is mandatoryand we execute the report, the default value is NOT seen on the selection screen. The user now has to enter the value for the field.
    The scheduled reports will work in case of optional user exit variable.
    However this amounts to loss of functionality.
    Is this a known bug?
    Is there a way to display default values based on user exit variables on the WebI selection screen?
    Kindly advice. Btw we are on XI 3.1 SP3
    Rgds
    Edited by: Anup Deshmukh on Jun 29, 2010 11:13 PM

    OSS Note 1285993 - "Support of Customer Exit Variables from BEx query into WebIntelligence via OLAP universe"  deals with this issue and has deemed it out of scope for XI 3.1 SP3.
    Rgds

Maybe you are looking for

  • Can not show the JCheckBox in JTable cell

    I want to place a JCheckBox in one JTable cell, i do as below: i want the column "d" be a check box which indicates "true" or "false". String[] columnNames = {"a","b","c","d"}; Object[][] rowData = {{"", "", "", Boolean.FALSE}}; tableModel = new Defa

  • Show a blob( pdf ) from db-table  in the clients browser/ web.show_document

    my env: Database R11_2 on one windows-host-machine AS 10 g on another windows-host-machine I can show files in Forms10g from inside the AS with web.show_document, that works fine but now I want to show a ( pdf or text ) File from a BLOB in a Table in

  • Workflow template not shown in list workflow setting

    I created a new list, a new site content type, and new reusable workflow. The site content type is added to the list. Worked fine at the Dev environment. Deployed the workflow to UAT environment as WSP file and list as a list template. In UAT, a new

  • My internet is slow on my iPhone 4s

    i just changed my iPhone 4 on a AT&T Carrier to an iPhone 4s Sprint Carrier. Ever since i got my phone it been slow. is their any way i can fix this . because i dont have wifi every where & sometimes i do needto serach the internet sometimes while im

  • What is online-redo thread

    Hi all, what is online-redo thread from OTN docs..given below 1.+Each database instance has its own online redo log groups. These online redo log+ groups, multiplexed or not, are called an instance's thread of online redo. In typical configurations,