How can I manipulate a parameter value after user input

Post Author: fsu304
CA Forum: Crystal Reports
I have a parameter that is used in my sql command and I want to be able to change the value of it if it reach a certian criteria.  For example the user enters the string "FDT" i want to change the parameter to equal "7" before it gets sent to the database to gather the records.  How can I accomplish this??
Any help would be awesome.
Heath

Post Author: yangster
CA Forum: Crystal Reports
the easiest way to achieve this would be to create a lookup table that represents the value you have entered to mean something else in your primary selectionso your table would be a simple value, descriptionthe parameter the user enters 'FDT' = 7 in the table, it is then joined back to your initial queary and will only return you results for 7you can't create if statements with a commandand you cannot use a case statement with a parameterthe other alternative would be to write a procedure that takes in your value and converts it then runs your sql

Similar Messages

  • Hi how can i increase my parameter values in my system

    Dear Experts ,
    here my functional consultants gets below shotdump and how can i solve that an error
    Runtime Errors         TSV_TNEW_BLOCKS_NO_ROLL_MEMORY
    Short text
        No roll storage space of length 1802248 available for internal storage.
    hat can you do?
       Try to find out (e.g. by targetted data selection) whether the
       transaction will run with less main memory.
       If there is a temporary bottleneck, execute the transaction again.
       If the error persists, ask your system administrator to check the
       following profile parameters:
       o  ztta/roll_area            (1.000.000 - 15.000.000)
              Classic roll area per user and internal mode
              usual amount of roll area per user and internal mode
       o  ztta/roll_extension       (10.000.000 - 500.000.000)
              Amount of memory per user in extended memory (EM)
       o  abap/heap_area_total      (100.000.000 - 1.500.000.000)
              Amount of memory (malloc) for all users of an application
              server. If several background processes are running on
              one server, temporary bottlenecks may occur.
              Of course, the amount of memory (in bytes) must also be
              available on the machine (main memory or file system swap).
              Caution:
              The operating system must be set up so that there is also
              enough memory for each process. Usually, the maximum address
              space is too small.
              Ask your hardware manufacturer or your competence center
              about this.
              In this case, consult your hardware vendor
       abap/heap_area_dia:        (10.000.000 - 1.000.000.000)
              Restriction of memory allocated to the heap with malloc
              for each dialog process.
       Parameters for background processes:
       abap/heap_area_nondia:        (10.000.000 - 1.000.000.000)
              Restriction of memory allocated to the heap with malloc
              for each background process.
       Other memory-relevant parameters are:
       em/initial_size_MB:         (35-1200)
              Extended memory area from which all users of an
              application server can satisfy their memory requirement.
       Note which actions and input led to the error.
       For further help in handling the problem, contact your SAP administrator
       You can use the ABAP dump analysis transaction ST22 to view and manage
       termination messages, in particular for long term reference.
    how much can i increase please suggest me
    Regards

    hih mark,
    for what base i can increase my parameter values
    presently in my parameter values are recomended valus
    Parameter          present value          Recommended values
    ztta/roll_area-           6500000                      (1.000.000-15.000.000)
    ztta/roll_extension-      2000683008          (10.000.000-500.000.000)
    abap/heap_area_total u2013 2000683008            (100.000.000-1.500.000.000)
    abap/heap_area_dia u2013 2000683008          (10.000.000-1.000.000.000)
    abap/heap_area_nondia u2013 2000683008           (10.000.000-1.000.000.000)
    em/initial_size_MB u2013           4092                (35-1200)
    how much can i increase
    Regards

  • How can I define a tooltip with multiline user input?

    I've created a button with app.response to get user input for defining a textbox's tooltip, but for my purposes I need multi-line text formatting within the tooltip, such as the \n character.  How can I accomplish this?  Thanks.

    How do you mean?  I've not been able to find any real settings for the tooltip under properties.  A long enough line of text wraps around, but I want it to contain some actual formatting, for ease of reading.  One long paragraph, followed by a few individual bullet points of info.  For example:
    Blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah blah.
    Blah: blah blah blah blah blah blah blah blah blah blah blah blah
    Blah: blah blah blah blah blah blah blah blah blah blah blah blah
    Blah: blah blah blah blah blah blah blah blah blah blah blah blah
    Is that at all possible with the built in tooltip?

  • How can I pass URL parameter value to text field?

    Dear Masters,
    I have a text field. I want it to have a value based on the URL parameter, for example:
    http://myapplication.net:7777/pls/apex/f?p=102:1:::::P1_RTNUM:9448,P1_EMAILADD:email.add.here
    I want the value of the text field = P1_EMAILADD after the form was loaded. Also, please have it read-only.
    Thanks a lot.
    Edited by: user6368519 on Sep 16, 2009 11:39 PM

    Thanks Saad,
    Can I email you(I would need your email) for any concerns or just create a new thread for you to look?
    This is ok now. I'm sorry but I just marked this one as an "answered" one last time.
    Thanks for all the help again I appreciate it. ;)
    Thanks,
    Aaron
    [email protected]

  • How can I update some field values after entering mat. number in purc. req?

    Hi.
    We want Account Assignment Category field to come as "K" for some material numbers. After we enter material number in ME51N screen, if material number is one of our "K" related materials, Account Assignment Category field should be updated automatically as "K".
    Account assignment tab becomes active in item level after entering "K" and we want "cost center" field to be filled in that tab according to given material number.
    These fields can be updated during creating or when saving the purchase requisions. Any suggessions please?
    Regards.

    Hi faramozza ,
    you can achieve this by implementing either customer exit or BADI.
    In purchase requisition context these could be useful:
    Customer Exit:
    MEREQ001
    BADI:
    ME_PROCESS_PR_REQ
    Regards
    REA

  • How can I get the edited value from the editor in JTable

    I have a JTextField added as an editor to a cell in JTable.
    I value gets changed when I press enter.
    but in actionPerformed of the JTextField when I say
    String txtEditorValue = txtEditor.getText();
    I am getting the old value. How can I get the edited value? Thanks.

    Hi,
    I guess, your understanding of how JTable works together with its models is not good enough - for example the method getTableCellEditorComponent(...) of the TableCellEditor interface is used to get the component, that should be used as editing component - its second parameter is a value that should be used to setup the editing component - it is normally not the editing component itself.
    JTable uses an underlying TableModel to store the cell values - if you have edited a cell, JTable gets the value of the editing component by itself and stores it in the TableModel using its setValueAt(...) method. To retrieve this data you only need to query the TableModel using row and column of this cell as parameters
    say jt is your JTable, and row and column are the row and column of the cell - so to get the value, simply use
    Object obj = jt.getModel().getValueAt(row,column);
    if you know, that there is a String in this cell use
    String str = (String) jt.getModel().getValueAt(row,column);
    The editor component is used for the view of the JTable - you only want the data, which is stored in the model - you don't have to deal with the GUI components in this case.
    greetings Marsian

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          exceptions
            parameter_error = 1
            no_values_found = 2
            others          = 3.
        if sy-subrc <> 0.
          message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • How can I get the default value of a particular preference programatically. I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.

    <blockquote>Locked by Moderator as a duplicate/re-post.
    Please continue the discussion in this thread: [tiki-view_forum_thread.php?comments_parentId=702631&forumId=1]
    Thanks - c</blockquote>
    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    How can I get the default value of a particular preference in FireFox?.
    I know I can see the default value for some of the preferences in about:config but, I need a programatic way to get the default value.
    I see some that there are values for preferences in firefox.cs but I am not certain that these are being used as the default values for preferences. prefs.js in user's profile only has the updated values and not the default values.
    Any help towards acheiving this programtically is greatly appreciated.
    If the default values are stored in a file, kindly let me know the format in which it is stored for me to parse it programatically.
    == User Agent
    ==
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Win64; x64; Trident/4.0; .NET CLR 2.0.50727; SLCC2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)

    Dear Friend,
    Here when you have the callableSattement as ?=proc(?), the first ? is an output parameter. So you should register it as out parameter using registeroutparameter.
    Then you can get the value from the outparameter using callablestatement.getXXX().
    Try that way.
    For free tral versions of JDBC Drivers go to www.Atinav.com

  • How can i transfer a field value in the main report to its sub-report?

    <p><font face="Arial" size="2">How can i transfer a field value in the main report to its sub-report?</font></p><p><font face="Arial" size="2">Please eloberate with example if possible!</font></p><p><font face="Arial" size="2">Thanks...</font></p><p> </p>

    <p>You can do a couple of things - one would be to pass the information using the data linking expert.  Right click on the subreport, choose &#39;Change Subreport Links&#39; and select the field(s) you are wanting to pass to the subreport.  CRW will build parameters and a record selection formula for you in the subreport, and if that&#39;s what you want, then great.  But you can also remove the selection formula from the subreport and work with the parameter fields in the subreport however you would like.</p><p>Alternatively, you can look to passing Shared variables back and forth from the main and subreport.  this link talks about the method to do this: http://diamond.businessobjects.com/node/251</p><p> </p>

  • How can Filter ADF BC LOV values in ADF Faces UI?

    How can Filter ADF BC LOV values in ADF Faces UI?
    Hi i am bit struggle with filtering LOV values in ADF Faces UI.
    I have table In UI ,that is from ADF BC .Now i am Filtering that table data using Select one choice in same page.That SOC is named Type App:  ,So according to selection of Type in SOC table have to display.This portion is done.But my requirement is ,when i got perticular result table ,i want to add one more row related to that type only,so for that i had take popup and drag datacontrol as a form.In that form first column is Select one choice ,select Items will come from BC table.So here i want to filter those LOV values according selection in Type SOC.Suppose Type SOC contain Type1,Type2 values,then when i am selectin Type1,Type1 related date willl diplay on table,now click on ADD button popup will open and in that Type SOC will Dispaly only Type1 related values not Type 2 type values.Type1,Type2 values come from same Table.
    Here i am asking every one,please do help.

    fyi
    The HR schema I used to build the example application had some modifications in the context of https://tuhra2.samplecode.oracle.com/ .
    So after running "demo/schema/mksample" as documented in "Resetting Sample Schemas" ...
    at http://download.oracle.com/docs/cd/E11882_01/server.112/e10831/installation.htm#I6236
    ... I got "java.sql.SQLSyntaxErrorException: ORA-00904: "EMPLOYEES"."MODIFIED_DATE": invalid identifier ", using the example application in BindVarDefaultsInUIApp-v0.02.zip .
    So, I have updated the example application to match the reset HR schema:
    - see http://www.consideringred.com/files/oracle/2010/BindVarDefaultsInUIApp-v0.03.zip
    - see screencast at http://screencast.com/t/gd6zKn63j
    Because Re: af:table filter date format : task-flow navigation issue to get feedback, I created service request 3-2193340441 using My Oracle Support about (q1) and (q2).
    regards
    Jan

  • How can i retain the trailing zeroes after decimal

    how can i retain the trailling zeros after decimal?
    values are showing in table like( 4.50,5.00) but i am trying to do some processing with these values then ithe zeroes are truncated like (4.5,5),
    how can i get values with zeroes

    If the values in the table have trailing zeroes, it's a character type column.
    Once you perform operations on them, they're implicitely converted to the number type, hence "losing" trailing zeroes.
    To get the trailing zeroes back, you have to convert them back to character data:
    TO_CHAR(1.5*3, '90d99')Have fun,
    K.

  • How can I increase the parameter db_files

    Hi,
    When I am trying to add a new data file to Tablespace it is giving error.
    1. How can I increase the parameter db_files?
    Sap Version is: 4.7E and Database is: 0racle 9.2.0
    Thanks&Regards,
    Nani

    hello nani
    1. connect to database
    SQL> show parameter db_files
    NAME                                 TYPE        VALUE
    db_files                             integer     200
    SQL> alter system set db_files=350 scope=spfile;
    System altered.
    SQL> show parameter db_files
    NAME                                 TYPE        VALUE
    db_files                             integer     200
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    Total System Global Area  264241152 bytes
    Fixed Size                  1248476 bytes
    Variable Size             176161572 bytes
    Database Buffers           79691776 bytes
    Redo Buffers                7139328 bytes
    Database mounted.
    Database opened.
    SQL> create pfile from spfile;
    File created.
    SQL> show parameter db_files
    NAME                                 TYPE        VALUE
    db_files                             integer     350
    SQL>
    Edited by: Shishir  Bajpai on Mar 3, 2009 12:38 PM

  • How can i get this variable value into second page IN BSP

    Hi friends
    I have variable wk_matnr value 'ABC' in first page of BSP.
    How can i get this variable value into second page.
    Moosa

    Hi,
    you can define variable (page attribiue) on the second page with the same name. You can realise the Navigation with Button ther started onInputProcesing routine. In onInputProcesing you have to call navigation->set_parameter with attribut name as parameter and then starting the navigation. If you have checked the auto property on the variable on second page and varable have same name, the value of variable should be transported.
    [See this tutorial|http://help.sap.com/saphelp_erp2005/helpdata/DE/1a/c5133a62983c0ae10000000a114084/frameset.htm]
    Best regards
    Bogdan

  • How can i pass the  parameter for strored procedure from java

    dear all,
    I am very new for stored procedure
    1. I want to write the strored procedure for insert.
    2. How can i pass the parameter for that procedure from java.
    if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from java

    Hi Ram,
    To call the callable statement use the below sample.
    stmt = conn.prepareCall("{call <procedure name>(?,?)}");
    stmt.setString(1,value);//Input parameter
    stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
    stmt.execute();
    seq = (int)stmt.getLong(2);//Getting the result from the procedure.

  • How to over ride a parameter value in the URL

    Hi
    I am calling a 10g report through a form as ...
    web.show_document('/reports/rwservlet?MYKEYINCGICMDFILE'&report=stock_status','_blank');
    MYKEYINCGICMDFILE is a key in cgicmd file where I have passed values like userid,destype, desname etc.
    Now I want to change the destype for a specific report and I want to pass the parameter through URL, how can I override the destype value provided in the key and pass through URL?
    I tried as ...
    web.show_document('/reports/rwservlet?MYKEYINCGICMDFILE'||'&desformat=spreadsheet&destype=file&desname=c:\stock_check.xls&report=stock_status','_blank');
    but still getting the value from the key.
    Thanks

    Leave out MYKEYINCGICMDFILE on the URL and specify all the parameters. That of course exposes un/pw.
    Or create a second key.
    Better still: use run_report_object in Forms instead of calling a report via web.show_document. This takes un/pw from the currently logged in user.

Maybe you are looking for

  • Can i move my itunes library to another account on the same computer

    can i move my itunes library to another account on the same computer

  • Enter key not working in Safari

    I tried aqsking this question on the Safari board but no helpful answers. The enter key on the full size keyboard is no longer functioning in Safari. The return key is working. I am using Safari 5.1.7. OS 10.6.8. Any suggestions on how this can be co

  • NestedSlects In Select Staments with clubbing of 5 tables with Order Clause

    Hi Experts, I need to execute on Oracle Qurey in Receiver JDBC. The oracle select Query contains 1. Many Select statments in the parent select statment 2. In side child select stament there are standard SQL fiunctions like.. NVL() 3. Parent select st

  • Should I get Logic Express if I have Soundtrack Pro?

    Hi, I am new to Soundtrack Pro and was wondering if I should get Logic Express. I am looking for even more music and sound effects for video productions. Does Logic Express offer more music and sound effects then Soundtrack Pro? What is the major dif

  • Methods & Tools in SAP

    Hi, What are the design methods & design tools  in SAP? Thanks, Suz Moderator Message: Search for available information before posting. Edited by: kishan P on Dec 13, 2010 1:21 PM