Variable Decimal of Packed Type Variable: is this possible?

Hi Experts,
I'd like to ask if we can have a packed variable with the decimal declaration as variable also, like:
DATA p_pack_var TYPE p DECIMALS g_var_decimal.
The scenario is there is a field qamv-toleranzun which I want to be displayed like in the output in QP03. The display in QP03 has variable decimals according to the value in qamv-masseinhsw.
So for example: qamv-masseinhsw = 3 and qamv-toleranzun is a floating type value, the output in QP03 is format with 3 decimals.
Or if this is not possible, are there any approach to pass the value of the floating point variable to a decimal type variable with an indefinite decimal places.
Please Help. Points will be rewarded for valid answers.
Thanks!

Is this what you want?
searchComponents( Class a_class) {
// browse components
if (a_class.isInstance(component)) {
// do something
}

Similar Messages

  • Global variable of type "List" is this possible in BPEL?

    Map filterMap = new HashMap();
    filterMap.put(WorklistService.FILTER_TYPE_TASK_FILTER,
    WorklistService.TASK_FILTER_DEFAULT);
    filterMap.put(WorklistService.FILTER_TYPE_STATUS_FILTER,
    WorklistService.STATUS_FILTER_ASSIGNED);
    WorklistService wlSvc = WorklistService.getWorklistService();
    IWorklistContext ctx = wlSvc.authenticateUser("jcooper", "");
    List tasks = wlSvc.getWorklistTasks(ctx,
    filterMap,
    WorklistService.SORT_FIELD_TASK_TITLE,
    WorklistService.SORT_ORDER_ASCENDING);
    My question is, is it possible to have the variable tasks which is of type "List" to be accessable in another Java Embedding?

    What do you pass to the config variable?
    Arthur My Blog

  • Multiple transform/assigns for one variable - is this possible?

    Hi,
    What I am trying to do is read in a complex XML file. Transform some data, add some other data from another source and update a table in the database with all data.
    So currently I read in the XML file.
    Do one big transform to map the majority of data to the input variable of my database adapter.
    I then call a stored procedure to get some ID values.
    I have then been trying to add these ID's to the input variable of my database adapter. Tried both transform and assign, but these seem to overwrite the big transform which I previously did.
    Is it possible to update the same variable in more than one transform without overwriting the values set previously?
    Thanks in advance for any help

    Hi Marc,
    Thanks for your help.
    I've tried playing around with the <bpelx:insertAfter> command referring to your Blog.
    I have a couple of questions, perhaps you could help me with them.
    1. I noticed that once I have added this command into the .bpel file I get an error within the designer view. Is this to be expected or am I doing something wrong?
    2. Is it possible to specify the XML tag which is used and also use an XPath query?
    The code I have added is as follows:
    <assign name="Assign_GlobalsToInsert">
    <bpelx:insertAfter>
    <from variable="InvokeGlobalsGetGlobalsOutputValue"
    part="outputParameters"
    query="/ns1:outputParameters/GET_VALUE"/>
    <to variable="ReceiveFileReadInputVariable"
    part="DATA_FILE"
    query="/ns3:DATA_FILE/ns3:DataLine/ns3:FinalLine"/>
    </bpelx:insertAfter>
    </assign>
    When I tested this it did add and element with the correct value as expected, however the XML tags were <GET_VALUE> as specified in my query section of the from command. Is there anyway to use a different value for the tags?
    I currently get <GET_VALUE>99</GET_VALUE>
    I would like to use <TRANS_ID>99</TRANS_ID>
    Thanks very much for your help

  • Shared variables - is this possible?

    Post Author: hafr
    CA Forum: Formula
    I am trying to design a Crystal XI report that has subreports in a group footer section.  I would like to calculate formulas in the main report using subreport group totals.  The report design looks like this:
    Formula1 = Subreport1/5 totals divided by subreport4/8 totals times Value              Subreport1             Subreport5
    Formula2 = Subreport2/6 totals divided by subreport4/8 totals times Value              Subreport2             Subreport6
    Formula3 = Subreport3/7 totals divided by subreport4/8 totals times Value              Subreport3             Subreport7
    Value                                                                                Subreport4             Subreport8
    I have successfully used subreports with shared variables before, but I cannot figure out any way to get the correct results in this case.
    Thanks in advance for any assistance or suggestions.
    hafr

    Post Author: V361
    CA Forum: Formula
    hafr, I have several reports like that.  I take the subreport elements and make them as tiny as possible.   Say font size of 3 or 4 point, make the fields very tiny, and make the subreport as tiny as possible.  I then put it in a section and make the section as small as possible.  This does not eliminate it from showing on the report, but sometime I can hide the subreports behind other objects.

  • Knowing the Object type? Is this possible?

    Can we know the type of the object created ? Is there any method
    that lets you know the type of object?
    For example:
    class Superclass{
    class Subclass extends Superclass{
    class TestInheritance{
    public static void main(String[] args){
    Subclass subClass = new Subclass();
    }Now,Subclass is of type Subclass and also of type Superclass.
    Right?
    IS there any way or method I can find out the type of Subclass? ie
    Subclass is of type 'Subclass' and 'Superclass'.

    These might help:
    instanceof operator.
    also
    Object.getClass().className()
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Class.html

  • @ Decimal Places in Packed Type Variable

    How to check if a packed type variable has decimal placed or not?

    Hi,
    Try to use the statement DESCRIBE. See the help to understand the usage. The syntax is:
    DESCRIBE FIELD <field> DECIMALS <dec>.
    This will show the number of decimals place.
    Then, you can use a condition to test.
    Regards
    RP

  • Error with clob column: "No pl/sql translation for the blind type given for this bind variable"

    This is reports 11g
    I've got a clob column. Reports seems to recognize its type, but if I try to reference it in a format trigger, I get this error at compile time:
    "No pl/sql translation for the blind type given for this bind variable"

    Actually, Reports is in something better than Forms.
    Neither Forms nor Reports do not have "complete" SQL engine (both have only "complete" PL/SQL engine), but have their own SQL parser, which does not understand SQL commands after the database 8.0.
    But, in Reports Data Model - SQL Query Statement, we can write "modern" SQL statement (> database 8.0), because Reports sent it directly to the database, without using their own SQL parser.
    For example, in Reports Data Model - SQL Query Statement, we can write this (scalar subquery expressions, in bold):
    select empno,
           ename,
           deptno,
           (select dname from dept where deptno = emp.deptno) dname
      from emp
    order by empno;
    although scalar subquery expressions was introduced in the database 9.0.1, and in databases 8.0 and 8.1 we should write someting like this:
    select emp.empno,
           emp.ename,
           emp.deptno,
           dept.dname
      from emp,
           dept
    where dept.deptno = emp.deptno
    order by empno;
    Regards,
    Zlatko

  • Is it possible to pass on a typedef documentation to a variable of this type?

    For documentation purposes and a better readability, I document typedefs by filling in its properties. Sadly, when I create a variable of this type, the comment does not show up in the context help box when moving over the variable. Is there a way to combine the documentation automatically (by configuring LV?
    I don't want to document each variable of the typedef and I don't want to write a programme which does this for me.
    Thanks a lot!

    md001 wrote:
    No what I mean is when the control type def is open, enter the documentation using the properties of the control itself (the variable), not the control properties accessible through the icon in the top right corner of the control type def (see below).
    Also, the documentation of any variable created from the typedef will be the documentation in the typedef at the time of the creation of the variable. If you want the to be able to change the documentation and have the documentations of all the previously created variables updated at the same time, you have to use a "Strict Type Def" instead of simply a "Type Def".
    I was under the impression that he was creating constants, since he was talking about "variables."
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How to use bind variable in this select statement

    Hi,
    I have created this procedure where table name and fieldname is variable as they vary, therefore i passed them as parameter. This procedure will trim leading (.) if first five char is '.THE''. The procedure performs the required task. I want to make select statement with bind variable is there any possibility to use a bind variable in this select statement.
    the procedure is given below:
    create or replace procedure test(tablename in varchar2, fieldname IN varchar2)
    authid current_user
    is
    type poicurtype is ref cursor;
    poi_cur poicurtype;
    sqlst varchar2(250);
    THEVALUE NUMBER;
    begin
         sqlst:='SELECT EMPNO FROM '||TABLENAME||' WHERE SUBSTR('||FIELDNAME||',1,5)=''.THE ''';
         DBMS_OUTPUT.PUT_LINE(SQLST);
    OPEN POI_CUR FOR SQLST ;
    LOOP
         FETCH POI_CUR INTO THEVALUE;
              EXIT WHEN POI_CUR%NOTFOUND;
              DBMS_OUTPUT.PUT_LINE(THEVALUE);
              SQLST:='UPDATE '||TABLENAME|| ' SET '||FIELDNAME||'=LTRIM('||FIELDNAME||',''.'')';
              SQLST:=SQLST|| ' WHERE EMPNO=:X';
              DBMS_OUTPUT.PUT_LINE(SQLST);
                   EXECUTE IMMEDIATE SQLST USING THEVALUE;
    END LOOP;
    COMMIT;
    END TEST;
    Best Regards,

    So you want to amend each row individually? Is there some reason you're trying to make this procedure run as slow as possible?
    create or replace procedure test (tablename in varchar2, fieldname in varchar2)
    authid current_user
    is
       sqlst      varchar2 (250);
       thevalue   number := 1234;
    begin
       sqlst := 'update ' || tablename || ' set ' || fieldname || '= ltrim(' || fieldname || ',''.'')  where substr(' || fieldname
          || ',1,5) = ''.THE ''';
       dbms_output.put_line (sqlst);
       execute immediate sqlst;
    end test;will update every row that satisfies the criteria in a single statement. If there are 10 rows that start with '.THE ' then it will update 10 rows.

  • How to use bind variables in this procedure

    Hi Experts,
    How to use bind variables in this procedure for static queries.
    PROCEDURE DELETE_MER_PROC (M_id IN NUMBER)
    IS
    BEGIN
    V_date DATE;
    SELECT PD_DATE INTO v_date FROM PD_MAINTAIN;
        DELETE FROM MER_CLEAR
        WHERE MER_DT < v_date
        AND ID = M_ID;
    COMMIT;
    END;   
    How to use  v_date and m_id as bind variables in this procedure to avoid hard parsing.
    Please help me.
    Thanks.

    976208 wrote:
    How to use  v_date and m_id as bind variables in this procedure to avoid hard parsing.
    You cannot avoid hard parsing - as the 1st time a SQL statement (like the SELECT or DELETE statements in your code) is encountered, it does not reside in the server's Shared Pool, and needs to be added into the pool via a hard parse.
    Bind variables does not prevent hard parsing. Hard parsing happens when the SQL statement (with or without bind variables) is a brand new statement encountered by the server.
    Bind variables enables the same SQL cursor to be reused, by simply changing the bind variable value.
    Not using bind variables means that each SQL statement is unique and not shareable - as the value is hardcoded into the statement and cannot be changed via a bind value. This typically means LOTS of different SQL statements (where the only difference is the changed value in the statement) are created - with each statement being a new statement not seen before in the Shared Pool and needing to be hard parsed.
    One does not design one's code not to be hard parsed. There ALWAYS will be a hard parse in order to get a SQL statement into the Shared Pool. One designs one's code to REUSE cursors in the Shared Pool.

  • Is there any system variable for this date format 01/21/2004 18:00:32

    Hello,
    Is there any system variable for this date format 01/21/2004 18:00:32
    This is my Internal date format and my External date format is sy-datum.
    How can I validate....any suggestions will be apprecaited!
    Regards,
    Kittu

    Hello,
    Thank you very much for your response!
    My internal date format is 01/21/2004 18:00:32
    and external date format on selection-screen is sy-datum.
    My external format is stored in S_crtsp
    and internal format is stored in L_crtsp. (01/21/2004 18:00:32)
    I want to remove the time from the internal format and validate it aginst the external format.
    Any suggestions or brief explonation is appreciated...I apprecaite the help soo far...
    Regards,
    Kittu

  • [Que]How to express the variable in this example?

    I want to know how to express this variable in this example in the red part
    /* Variables */
    $old=$row_rs_archive['old'];
    $new=$row_rs_archive['new'];
    $total=$old+$new;
    echo $total;
    if (array_key_exists('doit', $_POST)) {
         $done = mysql_query('UPDATE temp SET cur_total = $total') or die(mysql_error());
    echo works fine and show the total value , but in the UPDATE command , it doesn't work ,
    I get this error
    1500 Unknown column '$total' in 'field list'
    notice 1500 comes from echo $total
    Thanks...

    I only took a quick glance, but I suspect it is because you're using single quotes for the query string. PHP will not parse variables in single quotes and will treat it as a literal string.
    Try this:
    $done = mysql_query("UPDATE temp SET cur_total = $total") or die(mysql_error());
    If that doesn't quite get you there, try concatenation instead.

  • Convert Char to Packed type

    Hi,
    I have a character variable which holds the value for eg as '1,234.56'
    Now i need to pass this value to an import parameter in a Function moudle .(But this parameter is of packed type).
    Now how can i convert  a character variable to a packed type ?
    Thanks!

    Hi,
    Try:
    CALL FUNCTION 'MOVE_CHAR_TO_NUM'
               EXPORTING
                 CHR             = LWA_INPUT_FILE-CRAMT
               IMPORTING
                 NUM             = NUM
               EXCEPTIONS
                 CONVT_NO_NUMBER = 1
                 CONVT_OVERFLOW  = 2
                 OTHERS          = 3.
    Thanks,
    Krishna

  • Packed type

    Hi experts
           I am using this field  
           bdmng LIKE resb-bdmng,          *  0.010
           iamng LIKE afpo-iamng,            * 150
          it_final-iamng = it_final-bdmng / it_final-psmng.
           when i do calculations in program the result of iamng
            is supposed to  6.66667E-05, but it assigns iamng = 0.
           but iamng takes Zero, i don't know why, is this problem with packed type.
           how to solve this problem and declare this decimal places.
          Thanks in advance.
    Regards
    Rajaram

    no collect is working for some data with quan field ,
    but some of the cases it is not working, i don't know why.
    see this error description.
    An exception occurred. This exception will be dealt with in more detail               
    below. The exception, assigned to the class 'CX_SY_ARITHMETIC_OVERFLOW', was          
      not caught, which                                                                    
      led to a runtime error. The reason for this exception is:                            
    The COLLECT statement stores totals in the internal table                             
      "\PROGRAM=Z_PGM\DATA=IT_FINAL[]",                                                    
    but the values are too large for the type P field intended to store them              
    The name of the field is "BDMNG".

  • How to differentiate a packing type for Finished goods based on which customer will be invoiced ?

    I need a little expertise
    The requirement for my organization is Certain Finish goods packing.
    Currently certain, Finished goods packaging items when send to Customer, is charged for the packaging items like Pallets , Q- Bit Boxes.
    There will be a deposit fee which will appear on the customer invoice.
    Moving forward they want to eliminate that deposit fee, from the customer invoice for a few of the packaging types.. (For example Pallet we would still charge the customer the same way AS_IS today but for another pack type Q-BIT boxes customer should not be charged as a deposit fee for returing the pack type.)
    From Materials management perspective… At the time of order entry how do we differentiate a particular pack type so that for that a particular Pack type customer is not charged anything…
    2 options I am thinking is introduce a new characteristics in Classification view for PK type.. Upon entering the order the User exit will check the characteristic in material master and customer invoice won’t be charged for the Packing item if Pack type = Q Bit..
    Other one is  From the  Alternate Unit of Measure translation to Common Unit of measure / Sales Unit of measure.
    Which one would you recommend ?
    Pls advise.

    Hi Joe,
    What I was suggesting was to have different material codes per pack size. If this is done, you will not need to modify anything, other than maintain condition types for the correct material codes.
    In case you are leaning towards the classification approach, I will suggest having a custom calculation type added to include  RV64ANNN with a check of the characteristic on a custom table. In this table, maintain the pack sizes with should be charged. The logic should turn  XKOMV-KBETR = 0 if the pack size is not found in the table.

Maybe you are looking for