Assigning a value to a specific letter

Hi everyone,
I would like text to have a numerical value. Specifically, the letter "E" to equals 8 ("E" stands for an "Early" shift and that shift is 8 hours long). So, ideally, every instance of "E" on my table would be able to be calculated elsewhere on my table.
Is it possible?
Any help would be greatly appreciated!

The straight forward approach to this (but perhaps cumbersome depending on the details or what you are doing) is wherever you refer to a cell (say xx) that could potentially have an 'E' in it rather that a number, use the formula "phrase" IF(xx="E", 8, xx). If you do this in a lot of places, it might make sense to introduce a new computed column where all the "E"s are resolved to 8s (using this phrase as the columns formula) and then reference this computed column in all further computations. This new column might be hidden if it proves unsightly.

Similar Messages

  • Error when assigning a value to a class

    Hi,
    Here's what I have:
    package com.myprograms.tools1;
    public class A
    public long orderId;
    public int nameId;
    public int carId;
    public int anId;
    package com.myprograms.tools1;
    public class B
    public A classOfA;
    //MAIN Program
    import com.myprograms.tools1;
    public class getClass
    B b= new B();
    b.classOfA.orderId = 10029292;
    I get a Null Pointer Exception when I assign a value to the var.
    Can anybody help point out the problem?
    Thanks!

    What exactly is the error message... i.e. line numbers and class names...
    Example: Full thread dump Java HotSpot(TM) Client VM (1.5.0-beta2-b51 mixed mode, sharing
    "SIGINT handler" daemon prio=10 tid=0x03264410 nid=0xea0 waiting for monitor ent
    ry [0x080bf000..0x080bfa68]
            at java.lang.Shutdown.exit(Unknown Source)
            - waiting to lock <0x2b31a868> (a java.lang.Class)
            at java.lang.Terminator$1.handle(Unknown Source)
            at sun.misc.Signal$1.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)Okay, that was too funny... LOL...
    This example error is courtesy of me being a complete... Well, let's just say, that was dumb...
    It has almost been an hour since I launched off that little app...
    You know you did something wrong when you can actually hear the HardDrive and Fan slow down...
    Anyway... LOL... what are the errors, and what is the rest of the code ? or is it fixed now...
    - MaxxDmg...
    - ' He who never sleeps... '

  • OpenSQLException - Cannot assign double value

    Hello,
      I have some table in database with field of type 'double'. I use JDBC to store data in this table and sometimes I would like to place special values in it, eg:
    preparedStatement.setDouble(1, Double.MIN_VALUE);
    Unfortunately I get exception like the one below.
    My question is: what is the allowed range of values for type 'double' in database according to OpenSQL spec ?
    Thanks!
    Marcin Zduniak
      com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
        at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
        at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
        at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
        at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
        at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
        ... 42 more
    Full exception chain:
    com.sap.engine.services.ejb.exceptions.BaseEJBException: Transaction system failure in method pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(java.lang.Double).
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4537)
         at pl.com.bcc.hai.conf.BCC_H_CConfig.setSTimeSeriesesAIM(BCC_H_CConfig.java:4129)
         at pl.com.bcc.hai.conf.wdp.InternalBCC_H_CConfig.setSTimeSeriesesAIM(InternalBCC_H_CConfig.java:1038)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.setAIM(IPublicBCC_H_CConfig.java:3651)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.wdSetObject(IPublicBCC_H_CConfig.java:3786)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetObject(MappedNodeElement.java:365)
         at pl.com.bcc.hai.conf.wdp.IPrivateSpecificationEditor$ISTimeSeriesesElement.wdSetObject(IPrivateSpecificationEditor.java:1737)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:223)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:1267)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:474)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:548)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:552)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.transport(ClientApplication.java:701)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.transportData(WebDynproMainTask.java:717)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [1a55ffffffb01205ffffffd4ffffffdd] ).
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:232)
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4486)
         ... 35 more
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while the data is being flushed. The persistent object is pl.com.bcc.hai.SpecificationBean0Persistent.
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:101)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
         at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:220)
         ... 36 more
    Caused by: com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
         at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:80)
         ... 41 more
    com.sap.engine.services.ts.exceptions.BaseRollbackException: Exception in beforeCompletition of ( SAP J2EE Engine JTA Transaction : [1a55ffffffb01205ffffffd4ffffffdd] ).
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:232)
         at pl.com.bcc.hai.SpecificationLocalLocalObjectImpl0.setTargetValue(SpecificationLocalLocalObjectImpl0.java:4486)
         at pl.com.bcc.hai.conf.BCC_H_CConfig.setSTimeSeriesesAIM(BCC_H_CConfig.java:4129)
         at pl.com.bcc.hai.conf.wdp.InternalBCC_H_CConfig.setSTimeSeriesesAIM(InternalBCC_H_CConfig.java:1038)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.setAIM(IPublicBCC_H_CConfig.java:3651)
         at pl.com.bcc.hai.conf.wdp.IPublicBCC_H_CConfig$ISTimeSeriesesElement.wdSetObject(IPublicBCC_H_CConfig.java:3786)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeElement.wdSetObject(MappedNodeElement.java:365)
         at pl.com.bcc.hai.conf.wdp.IPrivateSpecificationEditor$ISTimeSeriesesElement.wdSetObject(IPrivateSpecificationEditor.java:1737)
         at com.sap.tc.webdynpro.progmodel.context.AttributePointer.setObject(AttributePointer.java:223)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:1267)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.transportPendingUserInput(DataContainer.java:474)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:548)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.transport(ClientComponent.java:552)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.transport(ClientApplication.java:701)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.transportData(WebDynproMainTask.java:717)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:251)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: com.sap.engine.services.ejb.exceptions.BaseEJBException: SQLException while the data is being flushed. The persistent object is pl.com.bcc.hai.SpecificationBean0Persistent.
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:101)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flushAll(TransactionContext.java:429)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.flush(TransactionContext.java:378)
         at com.sap.engine.services.ejb.entity.pm.TransactionContext.beforeCompletion(TransactionContext.java:506)
         at com.sap.engine.services.ejb.entity.SynchronizationList.beforeCompletion(SynchronizationList.java:136)
         at com.sap.engine.services.ts.jta.impl.TransactionImpl.commit(TransactionImpl.java:220)
         ... 36 more
    Caused by: com.sap.sql.log.OpenSQLException: Cannot assign double value 4.9E-324 to host variable 3 because it is not in the allowed range of +/- to +/-.
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:85)
         at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:124)
         at com.sap.sql.jdbc.common.CommonPreparedStatement.setDouble(CommonPreparedStatement.java:534)
         at com.sap.engine.services.dbpool.wrappers.PreparedStatementWrapper.setDouble(PreparedStatementWrapper.java:281)
         at pl.com.bcc.hai.SpecificationBean0Persistent.ejb_iUpdate(SpecificationBean0Persistent.java:558)
         at com.sap.engine.services.ejb.entity.pm.UpdatablePersistent.ejbFlush(UpdatablePersistent.java:80)
         ... 41 more

    Hi,
       Thank you for your replay. I didn't touch DB directly, I defined db structure through NetWeaver Dictionary perspective and table that i'm interested in is defined like the one on this screen: http://zduniak.com/tmp/sap_dictionary_double.png
    So I'm looking for generic solution (SAP OpenSQL), not specific to any particular DB vendor.
    Maybe there is somewhere on help.sap.com (i couldn't find unfortunately) information what is the allowed range of values for type 'double' in database according to OpenSQL spec ?
    Thank,
      Marcin Zduniak

  • Assigning a value to a field-symbol (workarea of type any)

    Dear forumers,
    I'm having a bit of difficulty in assigning a value to a field-symbol (it should be treated as a workarea of type any), but I'm given a syntax error instead:-
    The data object "<LFS_WORKAREA>" has no structure and therefore no component called "LFMON".
    What could have gone wrong and how may I resolve this (I must have missed something out)? I will still need <LFS_WORKAREA> to be defined as TYPE ANY.
    Please help. I'd appreciate any inputs at all. Thanks.
    *&      Form  FORMAT_POST_PERIOD
    *       Subroutine to format the posting period data
    *      --> PI_MBEW     Material valuation data (internal table)
    FORM format_post_period  CHANGING    pi_mbew TYPE ANY TABLE.
    " Create local field symbols
      FIELD-SYMBOLS:
      <lfs_workarea> TYPE ANY,
      <lfs_lfmon>    TYPE ckmlcr-poper.
    " Create local variables
      DATA: lv_index TYPE sy-tabix.
      DATA: lv_lfmon TYPE ckmlcr-poper.
    " Format posting periods
      LOOP AT pi_mbew ASSIGNING <lfs_workarea>.
        lv_index = sy-tabix.
        ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
        PERFORM convert_lfmon USING    <lfs_lfmon>
                              CHANGING lv_lfmon.
        MOVE lv_lfmon TO <lfs_workarea>-lfmon.   " the syntax error occurs here  :(
        MODIFY pi_mbew FROM <lfs_workarea>
          INDEX lv_index
          TRANSPORTING lfmon.
        CLEAR: <lfs_workarea>,
               <lfs_lfmon>
               lv_lfmon,
               lv_index.
      ENDLOOP.
    ENDFORM.                    " FORMAT_POST_PERIOD

    Most of us aren't in it for the points in any case...
    For your solution you've redundant code:
    *&      Form  FORMAT_POST_PERIOD
    *       Subroutine to format the posting period data
    *      --> PI_MBEW     Material valuation data (internal table)
    FORM format_post_period  CHANGING    pi_mbew TYPE ANY TABLE.
      FIELD-SYMBOLS:
      <lfs_workarea> TYPE ANY,
      <lfs_lfmon>    TYPE ckmlcr-poper.
      DATA: lv_lfmon TYPE ckmlcr-poper.
    *  DATA: lo_workarea TYPE REF TO data.   "<--Not needed, because the LOOP AT ASSIGNING below does the work
    *  CREATE DATA lo_workarea LIKE LINE OF pi_mbew.
    *  ASSIGN lo_workarea->* TO <lfs_workarea>.
      LOOP AT pi_mbew ASSIGNING <lfs_workarea>.
        ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
        PERFORM convert_lfmon USING    <lfs_lfmon>
                              CHANGING lv_lfmon.
        <lfs_lfmon> = lv_lfmon.
        CLEAR lv_lfmon.
      ENDLOOP.
    ENDFORM.                    " FORMAT_POST_PERIOD
    Here's a couple of more efficient solutions, using LOOP AT INTO.
    FORM format_post_period  CHANGING    pi_mbew TYPE INDEX TABLE. " <-- Table type a little more specific
                                                                   "<--now you can use index operations
      FIELD-SYMBOLS:
      <lfs_workarea> TYPE ANY,
      <lfs_lfmon>    TYPE ckmlcr-poper.
      DATA: lv_lfmon TYPE ckmlcr-poper,
            lv_index TYPE sytabix.
      DATA: lo_workarea TYPE REF TO data.
      CREATE DATA lo_workarea LIKE LINE OF pi_mbew.
      ASSIGN lo_workarea->* TO <lfs_workarea>.
    ASSIGN COMPONENT 'LFMON' OF STRUCTURE <lfs_workarea> TO <lfs_lfmon>.
      LOOP AT pi_mbew INTO <lfs_workarea>.
        lv_index = sy-tabix.    
        PERFORM convert_lfmon USING    <lfs_lfmon>
                              CHANGING lv_lfmon.
        <lfs_lfmon> = lv_lfmon.
        MODIFY pi_mbew FROM <lfs_workarea>
           INDEX lv_index. " <--INDEX TABLE, so this is permitted.
        CLEAR lv_lfmon.
      ENDLOOP.
    ENDFORM.                    " FORMAT_POST_PERIOD

  • Assigning a value to a substitute variable

    Hi, I would like to know if it is possible to assign a value to a substitute variable.
    This is what I'm doing:
    - Prompting user for input
    ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
    (displayed list of options are numbers 0-5)
    - Based on input, open corresponding file
    (start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql)
    Problem:
    - Default selection is 0, meaning use the CURRENT UOM system (a number, 1-5)
    - That being said, &&uom must be assigned a 1-5 value in order to open the file that corresponds to the CURRENT UOM system
    Let me know if any additional information is needed.
    Thanks!

    I apologize for the format. I tried to make it more legible, but was not able to. FYI: It appears to be easier to read in "Edit" view.
    Thanks, I tried the &&uom := your_function(); suggestion, but I am getting an error. It looks like the "value" of &&uom is being read in the assignment statement, not the variable name.
    I have copied the piece of the code, for your reference.
    ACCEPT uom CHAR PROMPT 'Enter number of UOM system you would like: ' DEF '0'
    DECLARE
    v_uom_sys_selection NUMBER;
    v_curr_uom_sys VARCHAR2 (50);
    v_uom_num NUMBER;
    BEGIN
    v_uom_sys_selection := to_number(&uom);
    v_curr_uom_sys := EG.GET_CURRENT_UOM();
    v_uom_num := eg.get_user_selected_uomnum(v_curr_uom_sys);
    &&uom := to_char(v_uom_num);
    dbms_output.put_line('v_uom_num = ' || v_uom_num);
    dbms_output.put_line('&&uom = ' || &&uom);
    END;
    --prompt "&&uom"
    start i:\utc\all\oracle\uom\uom_column_heading_&&uom..sql
    Below are the results I get when commenting out the &&uom := to_char(v_uom_num); line. NOTE: the "value" of &&uom = 0.
    v_uom_num = 1
    0 = 0
    If I leave that line in, I get the following error:
    PLS-00103: Encountered the symbol "0" when expecting one of the following:
    begin case declare end exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe
    The symbol "<an identifier> was inserted before "0" to continue.
    Message was edited by:
    user449676

  • Error in ECA when assigning the value to structures

    Hi,
    There are errors in ECA when we execute our function modules.               
    Say a script has 3 interfaces (just an example)
    1) In the first command interface, there is a reference to a structure which has 3 nested structures within, in which the inner most 3rd structure is filled.   
    2) In 2nd interface, the inner most structure in null.                      
    3) In third interface, it is trying to initialize only those elements       
    that were already initialized and we get a empty node error for the 3rd 
    nested structure, when it tries to assign the value .
    Here is the error message that we encounter
    "The Node IT_TABLE_INPUT_DATA[1]-DATA[2]-COMPARE_OPERATOR of Object VS_EDIT_LIST Does Not Exist"*     
    Please help us in resolving this issue.
    Thanks,
    Asha
    Edited by: Asha Nagaraj on Jan 19, 2009 11:57 AM

    Hi,
    We tried to parameterize in the node level rather than Struture level, still the same problem persists, becoz
    1. In the first command interface the value has been assigned to internal node
    2. In the second command interface there is no value to assign, so null value is assigned to that node
    3. in the third command interface, when it tries to assign the value to the node which was assigned "null" in the previous interface, we are encountering that issue. it is not able to find that node
    Let me know if u need further info.
    Thanks,
    Asha

  • AE CC 2014 - Wiggle Expression not assigning similar values on scale

    So I've just noticed that the wiggle expression no longer works how it used to. I found a released article explaining changes in the Noise Algorithm used for the wiggle expression what’s new and changed in the 2014 update to After Effects CC  |  After Effects region of interest and am referring to the "fixed bug in implementation of Perlin noise algorithm" section.
    I'm not sure if this is what's causing the issue but let me explain.
    I'm just adding a wiggle expression on to an object's scale.
    wiggle(5,50);
    This would normally scale the object's parameters with the same value. so it would be (100,100) to (125,125) and so on.
    Now however with CC2014 the expression is assigning different values to each value so getting (125, 115) or something even if the 'constrain proportions' button is enabled.
    So I tried to trick it:
    temp=wiggle(5,50);
    [temp[0],temp[1]];
    Still got different values even though i'm telling it to insert the same variable?
    temp=wiggle(5,50);
    temp;
    Still got different values... I don't get it can anyone help?

    Try this. Add an expression control slider to the layer with the following expression:
    wiggle(5, 50)
    Then add this expression to your scale property:
    w = value[0] + effect("Slider Control")("Slider");
    [w, w]
    The problem exists because wiggle will act on all of the values in the array of the property you have selected independently. so you have to set up something with only one value like an expression control slider.

  • Assigning current value to Application Item

    Hi,
    I have a interactive report with form in my application.....
    if a user applys filter on first column of the interactive report.....how can i assign that value to the APPLICATION ITEM.
    thanks

    Hi Andy,
    Thanks....it is working perfect......
    but i have a small issue....
    in my real application i have 7tabs with page no's 1,2,3,4,5,6,and 15.....
    so i have created 7 application items G_PARTNO1, G_PARTNO2, G_PARTNO3, G_PARTNO4, G_PARTNO5, G_PARTNO6, G_PARTNO15.
    and used the single application process that runs On Load Before Header and uses the following PL/SQL code:
    DECLARE
    v1 NUMBER;
    v2 NUMBER;
    v3 NUMBER;
    v4 NUMBER;
    v5 NUMBER;
    v6 NUMBER;
    v15 NUMBER;
    BEGIN
    SELECT MIN(CONDITION_EXPRESSION) INTO v1
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 1
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v2
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 2
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v3
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 3
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v4
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 4
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v5
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 5
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v6
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 6
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    SELECT MIN(CONDITION_EXPRESSION) INTO v15
    FROM IR_CONDITIONS
    WHERE APPLICATION_ID = :APP_ID
    AND PAGE_ID = 15
    AND APPLICATION_USER = :APP_USER
    AND CONDITION_COLUMN_NAME = 'PART_NUMBER'
    AND CONDITION_ENABLED = 'Yes'
    AND SESSION_ID = :SESSION
    AND ROWNUM = 1;
    IF (:G_PARTNO1 IS NULL AND v1 IS NOT NULL) OR (:G_PARTNO1 <> v1) THEN
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v1);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v1);
    :G_PARTNO1 := v1;
    :G_PARTNO2 := v1;
    :G_PARTNO3 := v1;
    :G_PARTNO4 := v1;
    :G_PARTNO5 := v1;
    :G_PARTNO6 := v1;
    :G_PARTN015 := v1;
    ELSIF :G_PARTNO1 IS NOT NULL AND v1 IS NULL THEN
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO2 IS NULL AND v2 IS NOT NULL) OR (:G_PARTNO2 <> v2) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v2);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v2);
    :G_PARTNO1 := v2;
    :G_PARTNO2 := v2;
    :G_PARTNO3 := v2;
    :G_PARTNO4 := v2;
    :G_PARTNO5 := v2;
    :G_PARTNO6 := v2;
    :G_PARTN015 := v2;
    ELSIF :G_PARTNO2 IS NOT NULL AND v2 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO3 IS NULL AND v3 IS NOT NULL) OR (:G_PARTNO3 <> v3) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v3);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v3);
    :G_PARTNO1 := v3;
    :G_PARTNO2 := v3;
    :G_PARTNO3 := v3;
    :G_PARTNO4 := v3;
    :G_PARTNO5 := v3;
    :G_PARTNO6 := v3;
    :G_PARTN015 := v3;
    ELSIF :G_PARTNO3 IS NOT NULL AND v3 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO4 IS NULL AND v4 IS NOT NULL) OR (:G_PARTNO4 <> v4) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v4);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v4);
    :G_PARTNO1 := v4;
    :G_PARTNO2 := v4;
    :G_PARTNO3 := v4;
    :G_PARTNO4 := v4;
    :G_PARTNO5 := v4;
    :G_PARTNO6 := v4;
    :G_PARTN015 := v4;
    ELSIF :G_PARTNO4 IS NOT NULL AND v4 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO5 IS NULL AND v5 IS NOT NULL) OR (:G_PARTNO5 <> v5) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v5);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v5);
    :G_PARTNO1 := v5;
    :G_PARTNO2 := v5;
    :G_PARTNO3 := v5;
    :G_PARTNO4 := v5;
    :G_PARTNO5 := v5;
    :G_PARTNO6 := v5;
    :G_PARTN015 := v5;
    ELSIF :G_PARTNO5 IS NOT NULL AND v5 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO6 IS NULL AND v6 IS NOT NULL) OR (:G_PARTNO6 <> v6) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v6);
    APEX_UTIL.IR_RESET(15);
    APEX_UTIL.IR_FILTER(15, 'PART_NUMBER', 'EQ', v6);
    :G_PARTNO1 := v6;
    :G_PARTNO2 := v6;
    :G_PARTNO3 := v6;
    :G_PARTNO4 := v6;
    :G_PARTNO5 := v6;
    :G_PARTNO6 := v6;
    :G_PARTN015 := v6;
    ELSIF :G_PARTNO6 IS NOT NULL AND v6 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_RESET(15);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    ELSIF (:G_PARTNO15 IS NULL AND v15 IS NOT NULL) OR (:G_PARTNO15 <> v15) THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_FILTER(1, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_FILTER(2, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_FILTER(3, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_FILTER(5, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_FILTER(6, 'PART_NUMBER', 'EQ', v15);
    APEX_UTIL.IR_RESET(4);
    APEX_UTIL.IR_FILTER(4, 'PART_NUMBER', 'EQ', v15);
    :G_PARTNO1 := v15;
    :G_PARTNO2 := v15;
    :G_PARTNO3 := v15;
    :G_PARTNO4 := v15;
    :G_PARTNO5 := v15;
    :G_PARTNO6 := v15;
    :G_PARTN015 := v15;
    ELSIF :G_PARTNO15 IS NOT NULL AND v15 IS NULL THEN
    APEX_UTIL.IR_RESET(1);
    APEX_UTIL.IR_RESET(2);
    APEX_UTIL.IR_RESET(3);
    APEX_UTIL.IR_RESET(5);
    APEX_UTIL.IR_RESET(6);
    APEX_UTIL.IR_RESET(4);
    :G_PARTNO1 := NULL;
    :G_PARTNO2 := NULL;
    :G_PARTNO3 := NULL;
    :G_PARTNO4 := NULL;
    :G_PARTNO5 := NULL;
    :G_PARTNO6 := NULL;
    :G_PARTN015 := NULL;
    END IF;
    END;
    The process is conditional on "Current Page is Contained Within Expression 1 (comma delimited list of pages) and Expression 1 is: 1:2:3:4:5:6:15
    I am getting the following error when i run the application:
    Unexpected error, unable to find item name at application or page level.
    Error ERR-1002 Unable to find item ID for item "G_PARTN015" in application "181".
    OK
    Please let me know where i am doing wrong....
    Thanks

  • Please comment to support basic ADF library  like assignment of values :)

    Hello,
    I am asking Oracle to develop a library for basic operations like assigning values.
    This is for newbies and for new components.
    Reason: Java is not like pl/sql, visual basic, etc. I had bee studying for get certified on Java it takes time, once you create your own library then there is no problem the main reason is to accelerate the learning of adf programming and programming in new components
    There are some examples in JSFUTIL and ADFUTIL libraries, but they are only examples.
    the idea is Oracle to create
    1) libraries supported and maintained by oracle for ALL the ADF components
    2) same function for all components, in example, to set a value to any adf item to have the same function, and that function make the conversion, suggest the import of the correct libraries (in example to use adf number instead of java number to get autoboxing)
    etc.
    If you agree with this requirement to Oracle, please comment :) Thank you.

    Thank you Frank I don't find it so difficult,
    This is what I think, what do you think about.
    The first concept I think and is the base for this "project" is "ADF Framework is here to make easier programming", this means if Oracle can create a library to make it easier then it makes sense with Oracle's Strategy of course; this is not because only because I'm asking. :)
    If you want we can start analyzing the most basic example: assigning values.
    If I execute
    JSFUtils.setExpressionValue("#{bindings.Hora0.inputValue}",2);
    JSFUtils.setExpressionValue("#{bindings.Hora0.inputValue}","2");
    JSFUtils.setExpressionValue("#{bindings.Hora0.inputValue}",nValue); -- no matter what type of value nValue is
    You get assigned, if there is a limitation to the type of the variable, then I should receive a message like "you can't use native Integer , you have to use int to get autoboxing", some message very specific to help me to solve the problem.
    Why I'm asking this, because I created a simple example and I couldn't get a value assigned to that item, it was an (ADF Faces. Text an Selection)
    My opinion is I should had got a better error message, so I can't fix my assignment, because for me it was all "ok", this is one of my first applications, but I think It should be easier to assign a value in adf framework.
    And I'm asking a function I'll have to do myself to work using adf framework, there is no choice.
    I include the example below showing I had problems assigning values, maybe it was a very obvioius mistake causes , so I started to modify it. (I'm starting on java I'm on the process to get certification).
    public static void setExpressionValue(String expression, Object newValue) {
    FacesContext facesContext = getFacesContext();
    Application app = facesContext.getApplication();
    ExpressionFactory elFactory = app.getExpressionFactory();
    ELContext elContext = facesContext.getELContext();
    ValueExpression valueExp =
    elFactory.createValueExpression(elContext, expression,
    Object.class);
    //Check that the input newValue can be cast to the property type
    //expected by the managed bean.
    //If the managed Bean expects a primitive we rely on Auto-Unboxing
    Class bindClass = valueExp.getType(elContext);
    System.out.println("0 setExpressionValue");
    String tipoVar = valueExp.getType(elContext).toString();
    System.out.println("1 setExpressionValue:"+tipoVar);
    String TipoOJDN = "class oracle.jbo.domain.Number";
    System.out.println("1 IGUALDAD TipoOJDN:"+(tipoVar.equals(TipoOJDN)));
    if (tipoVar.equals(TipoOJDN))
    {System.out.println("Es Número");  
            System.out.println("1 setExpressionValue TipoOJDN");
            String ojdn =  newValue.toString() ;
            System.out.println("2 setExpressionValue TipoOJDN");
            Number variable = null;
            System.out.println("3 setExpressionValue TipoOJDN"+ojdn);
          //  variable = Integer.parseInt(ojdn);
            System.out.println("4.1dddd setExpressionValue TipoOJDN num");
            /*    String a1 = newValue.toString();
                Integer i1 = Integer.valueOf(a1);
                int i2;*/
                Number num;
                try {
                    num = new Number(newValue);
                System.out.println("4.2 setExpressionValue TipoOJDN num:"+num);
                    valueExp.setValue(elContext, num);
                    System.out.println("5 setExpressionValue TipoOJDN");           
                } catch (SQLException e) {
    System.out.println("exception convertin number"+newValue);
    // oracle.jbo.domain.Number.formattedTextToNumber(arg0, arg1, arg2) a = (oracle.jbo.domain.Number)newValue;
    else
    {System.out.println("tipoVar:"+tipoVar);
    // if (bindClass.isPrimitive() || bindClass.isInstance(newValue)) {
    System.out.println("3 setExpressionValue:");
    valueExp.setValue(elContext, newValue);
    System.out.println("4 setExpressionValue:"+valueExp.getValue(elContext));
    ViewObjectImpl view = this.getSomeView();
    VariableValueManager vm = view.ensureVariableManager();
    vm.setVariableValue("bindVariableName", value);
    view.executeQuery();
    */

  • Round a double value to a specific number of decimal places?

    Hello,
    Is there standard java function which will round a double value to a specified number of decimal places? Something like:
    double d = 4.34523;
    d = round(d, 2);
    where d is finally assigned the value of 4.34?
    Thanks!
    -exits

    No, because doubles hold values in binary (as do all values in a computer, of course, but there's no additional stuff to indicate decimal values).
    If you want values with specific rounding rules in decimal, use java.math.BigDecimal.
    If you just want to format the number with a specified number of decimal digits, use java.text.DecimalNumber.

  • Assign fixed values through CMOD

    Hello all,
    I have been asked to make an enhancemet to assing fixed values to a field, so there would be a drop down after wards. Is this posible through CMOD? I know i can do it through se11 and fix the domain, but not sure if it is the correct process.
    Thanks.

    Hi,
    Enhancement(SMOD,CMOD) or BADI (SE18,SE19) are just predefined user exit for customer to implement their specific logic in the specific application/component .
    So your question is depending on whether there is a prefined user exit for that field. In my opinion, enhancement for assigning fiexed values to field mostly don't have predefined user exit.
    But you can achieve it with it's search help exit instead, do as below:
    1. If  a search help already been attached to that field, just implement search help exit via se11(choose search help and change)
    Hope helps,
    Chen Jian

  • Is there a way to assign CPU limitations to a specific software ?

    Is there a way to assign CPU limitations to a specific software ?
    For example.. when I launch a render.. I don't care if it takes 4hours or 6hours... I prefer that some CPU is kept free so not to slow down the rest of my activities during the day. Is there a way to assign to a specific application a maximum in CPU usage? Or maybe just one core?
    Obviously I am asking this for applications that don't have this option internally... I've seen some that let you choose single or dual core for example.
    Is there an external software (?) a OS setting (?) or so to do this?

    I found this where they also speak about RENICE...
    http://hints.macworld.com/article.php?story=20110131001708255
    To me is greek.. but seems ok.. I don't understand if the other CPU is freed for other apps or is  "blocked" in some way (making this useless for my needs)

  • Assign a value from dropdownlist to input field value on BSP page

    Hi,
    I'm new to SAP and ABAP. We have a CRM project in which I have to maintain BSP pages.
    Now, coming to my problem: I have a input field with
    value = "//BTAdminH/HeaderInfo"
    This field is normally maintainable. The required function is now to set this field as not maintainable/readonly. Then, the value should be set automatically to an value, which will be selected from a dropdownListBox. After saving, the value HeaderInfo should have the same value like the selected value from the dropdownListBox.
    How can I now set the field as readonly (this should be the easier part) and
    how can I set the value for the HeaderInfo to the value of the selected value from the dropdownListBox?
    If I set it directly like this
    value = "//BTActivity/Priority"
    it is shown on the BSP page correclty, but it is not saved as HeaderInfo.
    Please help me.
    Enja

    Hello Gokul,
    test was only for test purposes! I am using as a separator the plus sign!
    But this is not the problem!
    In debugging, the local variable has the concatenated value! So, this is working!
    oncatenate ls_ddlb1-value ls_ddlb2-value ls_ddlb3-value into lv_headerinfo SEPARATED BY ' + '.
    But when I assign the value of my set_headerinfo to the local variable, then it is returning only the separator sign!!!
    if BTAdminH->GET_HEADERINFO( 'HEADERINFO' ) is initial.
        BTAdminH->SET_HEADERINFO( attribute_path = 'HEADERINFO' value = lv_headerinfo ).
      endif.
    If I declare the local variable as one of the dropdown values, then it is getting populated also for set_headerinfo
    lv_headerinfo  =ls_ddlb1-value.
    So, the assigning is also working! But it is not working, when the local variable equals more than one value! I hope that I could explained it in the right way for you!!!!
    So. why is the value for set_headerinfo not the same as the one for the local variable! The local variable has the correct value after the concatination.
    Regards
    Enja

  • Assigning a value to a parameter.

    Hi all,
    I am using CR XI, developping a report built upon a query in BW (using SAP Kit). The query in BW has a parameter PARAM1 of type string that comes automatically into my report but the type or the parameter is greyed. I can't change it.
    In reality, I am expecting a date to be entered. It would be more user friendly to offer the user the calendar interface to select a value rather than the textbox for a string.
    I can create a second parameter PARAM2 of type Date in CR, transform the input value to string but I do not know how to assign the result to PARAM1.
    I have tried an assignment in a formula using beforereadingreports but no luck.
    Does anybody know how to do this or if this is even possible ?
    Thanks.

    Thanks Graham - sorry it took me so long.
    That is an interesting suggestion that I did not think of. I tried but for some reason the parameter for the report against BW does not show up in the link part of the subreport definition. I created a "fake" main report with a date type parameter, a formula to translate it to a string but no way to "assign" its value to the parameter in the original report.
    Queries against SAP seem to have "specificities"...
    In other words, i am still stuck !

  • How to check empty string and null? Assign same value to multiple variables

    Hi,
    1.
    How do I check for empty string and null?
    in_value IN VARCHAR2
    2. Also how do I assign same value to multiple variables?
    var_one NUMBER := 0;
    var_two NUMBER := 0;
    var_one := var_two := 0; --- Gives an error
    Thanks

    MichaelS wrote:
    Not always: Beware of CHAR's:
    Bug 727361: ZERO-LENGTH STRING DOES NOT RETURN NULL WHEN USED WITH CHAR DATA TYPE IN PL/SQL:
    SQL> declare
      2    l_str1   char (10) := '';
      3    l_str2   char (10) := null;
      4  begin
      5  
      6    if l_str1 is null
      7    then
      8      dbms_output.put_line ('oh STR1 is null');
      9    elsif l_str1 is not null
    10    then
    11      dbms_output.put_line ('oh STR1 is NOT null');
    12    end if;
    13  
    14    if l_str2 is null
    15    then
    16      dbms_output.put_line ('oh STR2 is null');
    17    elsif l_str2 is not null
    18    then
    19      dbms_output.put_line ('oh STR2 is NOT null');
    20    end if;
    21  end;
    22  /
    oh STR1 is NOT null
    oh STR2 is null
    PL/SQL procedure successfully completed.
    SQL> alter session set events '10932 trace name context forever, level 16384';
    Session altered.
    SQL> declare
      2    l_str1   char (10) := '';
      3    l_str2   char (10) := null;
      4  begin
      5  
      6    if l_str1 is null
      7    then
      8      dbms_output.put_line ('oh STR1 is null');
      9    elsif l_str1 is not null
    10    then
    11      dbms_output.put_line ('oh STR1 is NOT null');
    12    end if;
    13  
    14    if l_str2 is null
    15    then
    16      dbms_output.put_line ('oh STR2 is null');
    17    elsif l_str2 is not null
    18    then
    19      dbms_output.put_line ('oh STR2 is NOT null');
    20    end if;
    21  end;
    22  /
    oh STR1 is null
    oh STR2 is null
    PL/SQL procedure successfully completed.
    SQL> SY.

Maybe you are looking for

  • Using Calculate tab in a field.  Not letting me choose fields to use.

    I am trying to make one field calculate a few other fields into a sum.  But in the Calculate tab it seems I can pick all of the fields on the sheet or none at all.  It's not letting me pick and choose.  What am I doing wrong?

  • Runtime error when trying to open photoshop elements

    I need help getting into my photoshop elements. Purchased several weeks ago. Worked fine, then all of a sudden I'm getting "runtime error" when I try to open. Any thoughts?

  • Several browsers perfect, Navigator shows only top 1/3 of page

    Opera, Firefox, Safari, Seamonkey, Camino and IE all displpay iWeb-=created pages perfectly, but Netscape shows only the top third of pages. Somehow, too, the "Made on a Mac" logo appears at the bottom of the pat that IS diaplayed (i.e., it's "shifte

  • Include Tag

    When I use the include tag (<!--#include file="top_nav.html -->) it works on the internet, but when I go to edit the rest of the page in the design view, everything below this tage disappears. Any solutions?

  • Problem using 2 ImageViews (one normal, one zoomed) on an image

    Hi, I've a problem in using 2 imageviews on an image. Imageview A displays an image, and it has been flipped using "scaleX = -1" Imageview B displays the same image as a zoomed image using viewport with "scaleX = -1" Unfortunately, Imageview B now di