Read "Do-Sum" Value

I want to read field-catlog "do-sum" value i.e final grandtotal which diaplay in ALV output . How to read "do-sum" value ?

Hi,
You have to use "get_subtotals" method to get the Totals and subtotals in your ALV THis set of code you will be writing in your "TOP-OF-PAGE" event, Please refer the sample code to do that.
DATA: lo_grid TYPE REF TO cl_gui_alv_grid.
* get the global reference
  CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
      e_grid = lo_grid.
* get the subtotal
  DATA: it_00 TYPE REF TO data,
  it_01 TYPE REF TO data,
  it_02 TYPE REF TO data,it_03 TYPE REF TO data,it_04 TYPE REF TO data.
  CALL METHOD lo_grid->get_subtotals
    IMPORTING
      ep_collect00 = it_00
      ep_collect01 = it_01
      ep_collect02 = it_02
      ep_collect03 = it_03
      ep_collect04 = it_04.
FIELD-SYMBOLS: <ft_tab> TYPE ANY TABLE,<ft_tab1> TYPE ANY, <ft_tab2> TYPE ANY TABLE,<ft_tab3> TYPE ANY,
<ft_tab4> TYPE ANY TABLE.
ASSIGN it_00->*    TO <ft_tab>.
  ASSIGN it_01->*    TO <ft_tab1>.
  ASSIGN it_02->*    TO <ft_tab2>.
  ASSIGN it_03->*    TO <ft_tab3>.
  ASSIGN it_04->*    TO <ft_tab4>.
Now Your Final Total is in Fieldcatalog <FT_TAB>, and your respective subtotals are in other fieldcatalog.
Thanks
Saurabh
Edited by: Saurabh  Siwach on Feb 8, 2010 8:35 AM
Edited by: Saurabh  Siwach on Feb 8, 2010 8:39 AM

Similar Messages

  • Selecting, reading and sum of billing quantity for last 12 months in transformation end routine

    Hi experts,
    i have requirement to write end routine to read a DSO for last 12 months sales quantity for each month and sum value pass to keyfigure
    not interested using bex variable, while data loading from source to target dso in end routine i am trying to read another DSO which is same as my
    target dso where information is stored by fiscal period, year material etc. finally there is  a keyfigure in target whih needs to be filled with sum of 12
    months sales quantity, for each record form sourc to target maximum of 12 records will be in read dso (for 12 months) my routine is like below.
    i am not expert in abap please kindly gothrough and guide me in this
    TYPES: BEGIN OF s_/BIC/AZOSLS00,
    FISCPER  type /BI0/OIFISCPER,
    FISCVARNT  type /BI0/OIFISCVARNT,
    PLANT  type /BI0/OIPLANT,
    STOR_LOC  type /BI0/OISTOR_LOC,
    /BIC/MATERIAL  type /BIC/OIMATERIAL,
    VTYPE  type /BI0/OIVTYPE,
    BILL_QTY  type /BI0/OIBILL_QTY,
    END OF s_/BIC/AZOSLS00.
    DATA: it_/BIC/AZOSLS00 TYPE TABLE OF s_/BIC/AZOSLS00,
    wa_/BIC/AZOSLS00  TYPE s_/BIC/AZOSLS00.
    SELECT
    FISCPER
    FISCVARNT
    PLANT
    STOR_LOC
    /BIC/MATERIAL
    VTYPE
    BILL_QTY
         FROM /BIC/AZOSLS00 INTO TABLE it_/BIC/AZOSLS00
           FOR ALL
          ENTRIES IN RESULT_PACKAGE
           WHERE
    below field is from value of fiscal period (which is fiscal period -999 ex:  for 001.2014 this
    value will be 002.2013 so 12 months including current period)
    FISCPER >=  RESULT_PACKAGE-/BIC/ZFISCPERF
    below is result filed fiscal period (here i dont know which keyword or statement to be used to select
    interval values this between statement giving syntax error that can not be used in where for for all entries
    between RESULT_PACKAGE-FISCPER
            AND
             FISCVARNT = RESULT_PACKAGE-FISCVARNT AND
             PLANT = RESULT_PACKAGE-PLANT AND
             STOR_LOC = RESULT_PACKAGE-STOR_LOC and
          /BIC/MATERIAL = RESULT_PACKAGE-/BIC/MATERIAL .
        SORT it_/BIC/AZOSLS00 BY FISCPER FISCVARNT PLANT STOR_LOC
        /BIC/MATERIAL .
        LOOP AT RESULT_PACKAGE ASSIGNING <result_fields>.
          READ TABLE it_/BIC/AZOSLS00 INTO wa_/BIC/AZOSLS00 WITH KEY
    below dont know what statement i need to use in read statement for interval of fiscal periods
    giving error that >= can not be used
         FISCPER >=  <result_fields>-/BIC/ZFISCPERF
    FISCPER = <result_fields>-FISCPER
             FISCVARNT = <result_fields>-FISCVARNT
             PLANT = <result_fields>-PLANT
             STOR_LOC = <result_fields>-STOR_LOC
          /BIC/MATERIAL = <result_fields>-/BIC/MATERIAL
           BINARY SEARCH.
          BREAK-POINT.
          IF sy-subrc = 0.
    below for each record there will be 12 records in read so sume of 12 records quantity i need to pass to result again dont know what to say here
    sum statement giving error
                <result_fields>-/BIC/ZLSTSLS12 =
                 sum(wa_/BIC/AZOSLS00-BILL_QTY).
              ENDIF.
        ENDLOOP.
    friends please help me in this.
    Thanks
    Chandra.

    Hiii,
    If you only want to store last  12 months data in Target ODS .
    Then Create filter in DTP and write routine in filter for calmonth or fiscal period.
    Refer the below link to create filter routine :
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80b2db87-639b-2e10-a8b9-c1ac0a44a7a6?QuickLink=index&…
    Regards,
    Akshay

  • Unable to read the total value.

    Hi guys,
    I am able to get the total for alv table column.. but i want to display the total value  in some other text view field.
    In order to do that... first i have to read the total value, and have to set the same to text view field,
    total value is of type   ( DATA: LV_AGGR_RULE TYPE REF TO CL_SALV_WD_AGGR_RULE. )
    but my text view field attribute is of STRING TYPE.
    So am getting conversion error. Pleas help me in this.
    Regards
    Farooq
    Edited by: farooq basha on Jun 13, 2011 12:52 PM

    Hi ,
    Try to loop your internal table on the column "Amount" and make a sum for that particular column, u will get the required sum Amount..
    Thanks
    Aisurya

  • Error in printing sum value of DME file in Automatic Payment Run

    Hi All,
    We are in the process of upgrading from R/3-4.0B to ECC6.0.
    In Automatic Payment run in transaction F110, when the spool is generated, the sum values is displaying in correctly.  It is displaying and printing as actual value/100 for example if total of all the line items is 1000000, the sum value displaying as 10000 and in words also prints as ten thousands.
    Kindly let us know how to fix the issue, if any one has come across with similar issue.
    Thanx & Regards
    Ashok

    Hi VVR,
    I got the following errors:
    Err     Message text
    003    Item is blocked for payemnt
    007    Error in creating the payment doc, read job log.....
    But if we have a look at the job log it is showing for all the 50,000 items... how to find where the problem is???
    thanks.

  • Sum Values on 2 Where Clauses

    Hi, sorry to trouble, i havent got any data within a database or anything, just thinking about some work that i might have to do, so trying to get a head start. Was wondering how i would sum values in a column but with 2 where clauses. For example if i wanted to sum all values until 6pm in 1 column and all values after 6pm for 1 day how i would write this out.
    I know how to write them separately, i.e.
    select name, sum(values) as after6
    from table
    where time > '18:00'
    group by name;
    select name, sum(values) as upto6
    from table
    where time < '18:00'
    group by name;
    how can i combine these to have a columns after6 and upto6 next to each other.
    if somebody could please advise.
    thanks in advance

    Using case you can split the column then sum the column .Try the below
    select name,
              SUM(CASE WHEN time > '18:00' THEN values ELSE 0 END) as after6,
              SUM(CASE WHEN time < '18:00' THEN values ELSE 0 END) as upto6  
    from table
    groupbyname;

  • Break formatting and number format of SUM value

    Where can I put number formatting functio, which will format breaking sum values...like:
    to_char(#SUM_VALUE#,'fmt 999G999G999G990')....maybe this thread is somewhere posted, but I cannot find it.
    Next, how to exclude showing reports total at the end of report?
    Is there any working demo to see some hints...
    THX!
    Message was edited by:
    Funky

    Hello Damir,
    "Maybe a hint for feature releases to have an option to disable total report sum on column …"There is a relative simple workaround, which will allow you exclude or highlight (style) this total report sum line, as you can see in here - http://htmldb.oracle.com/pls/otn/f?p=22710:10
    In the Report Attribute page, I'm using the Break Formatting section first field "Display this text when printing report sums" - http://i10.tinypic.com/4ie8ck5.png .
    If you want to exclude this line, you should use the same color as your cell background. For the example page, the code is looking like this:
    <div id="FinalSum"><script type="text/javascript">var lastRow=html_CascadeUpTill('FinalSum','TR'); lastRow.style.color='#f7f7e7';</script></div>If, on the other hand, you want to highlight the line, or use any other CSS attribute style available, the code would look something like this:
    <div id="FinalSum1"><script type="text/javascript">var lastRow=html_CascadeUpTill('FinalSum1','TR'); lastRow.style.backgroundColor='#CCCC99';</script>Total Report Sum</div>    Regards,
    Arie.

  • Calculate the max and sum value by weird way !!!

    this code calculate the sum value without sum clause :-
    DECLARE
    x NUMBER;
    y NUMBER := 0;
    CURSOR cur_sal
    IS
    SELECT sal
    FROM emp;
    BEGIN
    OPEN cur_sal;
    LOOP
    FETCH cur_sal
    INTO x;
    EXIT WHEN cur_sal%NOTFOUND;
    y := y + x;
    END LOOP;
    CLOSE cur_sal;
    DBMS_OUTPUT.put_line ('sum sal without using sum function = ' || y);
    END;
    and this code calculate the max value without max clause :-
    DECLARE
    x NUMBER;
    y NUMBER := 0;
    CURSOR cur_sal
    IS
    SELECT sal
    FROM emp;
    BEGIN
    OPEN cur_sal;
    LOOP
    FETCH cur_sal
    INTO x;
    EXIT WHEN cur_sal%NOTFOUND;
    IF (x > y)
    THEN
    y := x;
    END IF;
    END LOOP;
    CLOSE cur_sal;
    DBMS_OUTPUT.put_line ('max sal without using max function = ' || y);
    END;
    the Question is : how suppose that's happen ?
    what's the secret in those codes ?
    it's just new idea for me , but I don't understand !
    is there any name for this way in ( Oracle® Database PL/SQL User's Guide and Reference ) ?
    if not , so please anyone give me any help to understand those codes !

    Secret? What secret? It slowly and inefficiently fetch each row one at a time and consecutively add them together you get a sum. What the first, horribly inefficient, cursor loop is doing is roughly the equivalent of determining how many rivets are in a bucket by dumping them on the floor and picking them up one at a time rather than weighing one, weighing all, and then doing a simple division. The second loop does the same, horribly inefficient thing, by picking up each rivet and seeing if it is bigger than the previous one.
    Cursor loops are obsolete and this code is about as inefficient as you can get without using an Excel macro.

  • How can I sum values over a date range?

    I want to sum values (revenue) for a range of dates (i.e. for each month).  I'm trying to use  the MONTH function nested in SUMIF and keep getting an error message.  I want it to be SUMIF( MONTH (column of dates), cell with month, column with revenue) and it tells me "all ranges must be the same size".  It works if I create a separate column where I extract the month from each date and then compare that to a column with the number  of the month, but that is really annoying.

    You can use the sumif() function to compute the sum of revenues after the "End Date", the sum of revenues before some date and you can use the sum function to summ all revenue.  Then you can combine these into a single formula to get the answer by:
    sum between two dates is:
    sum("of all revenue") - sumif("before date") - sumif("after date"
    Cell B4 of the smaller table =SUM(Revenue)-SUMIF(Date, "<"&B1,Revenue)-SUMIF(Date, ">"&B2,Revenue)
    I highlighed cells to show before and after dates to highlight the sumif("after") and sumif("before")

  • I want to read and assign value of ADF Table rows  with Java Script

    Hi,
    I want to read and assign value of ADF Table rows with Java Script, but I cant true index of current row , so I assign wrong value to anathor column of ADF Table.
    My Code;
    ADF Table items
    <af:column sortProperty="Adet" sortable="false"
    headerText="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.labels.Adet}"
    binding="#{backing_ucret.column2}" id="column2">
    <af:inputText value="#{row.Adet}"
    required="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.attrDefs.Adet.mandatory}"
    columns="10"
    binding="#{backing_ucret.inputText2}"
    id="inputText2" onchange="getTutar('#{bindings.voHarcamaOdeme1Iterator.rangeStart + bindings.voHarcamaOdeme1Iterator.currentRowIndexInRange + 1}','#{bindings.voHarcamaOdeme1Iterator.estimatedRowCount}','#{row.index}')">
    <f:convertNumber groupingUsed="false"
    pattern="#{bindings.RezervasyonWithParams1voHarcamaOdeme1.formats.Adet}"/>
    </af:inputText>
    </af:column>
    MY JAVA SCRIPT CODE
    <f:verbatim>
    <script language="javascript" type="text/javascript">
    function getTutar(rowkey,totalrow,currentRow){
    alert('rowkey--totalRow--currentRow-->'+rowkey+'--'+totalrow+'--'+currentRow);
    if (currentRow==0) {
    rowkey=totalrow-1;
    }else{
    var rw=totalrow-currentRow-1;
    rowkey=rw;
    alert(document.getElementById('form1:table1:'+rowkey+':inputText8').value);
    alert(document.getElementById('form1:table1:'+currentRow+':inputText8').value);
    var birim_ucret=document.getElementById('form1:table1:'+rowkey+':inputText8').value;
    var adet=document.getElementById('form1:table1:'+rowkey+':inputText2').value;
    document.getElementById('form1:table1:'+rowkey+':inputText3').value=birim_ucret*adet;
    document.getElementById('form1:inputText6').value=0;
    var t;
    var toplam=0;
    alert('before Sum');
    for (var i=0;i!=totalrow-1;i++){
    t = document.getElementById('form1:table1:'+i+':inputText3');
    toplam+=t.value*1;
    document.getElementById('form1:inputText6').value=toplam;
    </script>
    </f:verbatim>

    You can achieve the use case you describe with partial page rendering (PPR), a feature of the ADF Faces framework. Here are a few posts that achieve an interactive behavior using PPR. Off the top of my head I do not know of an exact example, but this should be a good starting point:
    http://thepeninsulasedge.com/blog/2006/09/12/adf-faces-aftableselectmany/
    http://thepeninsulasedge.com/blog/2006/08/31/adf-faces-working-with-aftableselectone-and-the-dialog-framework/
    --RiC                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to sum value from a day to next day

    First, I provided the CREATE and INSERT sql statements for testing:
    CREATE TABLE TBL_CALC
        "YEAR"  VARCHAR2(4),
        "MONTH" VARCHAR2(2),
        "DAY"   VARCHAR2(2),
        "HOUR"  VARCHAR2(2),
        "VALUE" VARCHAR2(20)
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','1','20','32')
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','1','21','33');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','1','22','53');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','1','23','28');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','0','37');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','1','35');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','2','39');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','3','57');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','13','42');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','2','14','12');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','31','21','32');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','31','22','52');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','1','31','23','29');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','2','1','0','27');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','2','1','1','45');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','2','1','2','69');
    insert into tbl_calc (year,month,day,hour,value) values ('2000','2','1','3','68');I have this sql to get the period of time of a day:
             select year,month,day,hr,val,
                     sum(case when hr between 20 and 23 or hr between 0 and 3 then val else 0 end) over (partition by year,month,day) as new_value
                          from(
                                 select year,month,day,to_number(hour) hr,to_number(value) val from tbl_calc
             order by year,month,day,hrHere's the output:
    YEAR MONTH DAY HR VAL NEW_VALUE
    2000 1     1   20  32       146
    2000 1     1   21  33       146
    2000 1     1   22  53       146
    2000 1     1   23  28       146
    2000 1     2    0  37       168
    2000 1     2    1  35       168
    2000 1     2    2  39       168
    2000 1     2    3  57       168
    2000 1     2   13  42       168
    2000 1     2   14  12       168
    2000 1     31  21  32       113
    2000 1     31  22  52       113
    2000 1     31  23  29       113
    2000 2     1    0  27       209
    2000 2     1    1  45       209
    2000 2     1    2  69       209
    2000 2     1    3  68       209
    17 rows selected The above sql get the sum of time period which in 20-23 and 0-3 in every day.
    The values are recorded by each hour. (sometimes there are missed hours)
    My problem is how to get the sum of time period over each day?
    For example, I need to get the sum of value of a day night time from 20-23 and the next day morning 0-3, to become a sum value in this period.
    Let say, the sum from 1st Jan night time to 2nd Jan morning should be combined into 1 value (146+168)=314.
    In addition, there is a tricky point is that from every month last day (31th Jan night time to 1st Feb morning time) are also need to be combined into 1 value.
    And it appears the new problem is that how about if the last day is in a non-regular day (not 30,31,28,29), just say maybe March consist only 15 period records only and the last day is 19th March.
    The expected output:
    YEAR MONTH DAY HR VAL NEW_VALUE
    2000 1     1   20  32       314
    2000 1     1   21  33       314
    2000 1     1   22  53       314
    2000 1     1   23  28       314
    2000 1     2    0  37       314
    2000 1     2    1  35       314
    2000 1     2    2  39       314
    2000 1     2    3  57       314
    2000 1     2   13  42       314
    2000 1     2   14  12       314
    2000 1     31  21  32       322
    2000 1     31  22  52       322
    2000 1     31  23  29       322
    2000 2     1    0  27       322
    2000 2     1    1  45       322
    2000 2     1    2  69       322
    2000 2     1    3  68       322
    17 rows selected I think its quite complicated case, please ask me for more if you need to clarify for something.
    Thanks so much!! :)
    Edited by: 920575 on 2012/7/31 上午 1:09

    Are you looking for something like this (partially tested)...
    SQL> ed
    Wrote file afiedt.buf
      1  select year
      2        ,month
      3        ,day
      4        ,hr
      5        ,val
      6        ,sum(case when hr between 20 and 23 or hr between 0 and 3 then val else 0 end) over (partition by year,month,day) as new_value
      7        ,sum(case when hr between 20 and 23 or hr between 0 and 3 then val else 0 end) over (partition by trunc(dt-(4/24),'DD')) as day_value
      8  from(
      9       select year,month,day,to_number(hour) hr,to_number(value) val
    10             ,to_date(year||lpad(month,2,'0')||lpad(day,2,'0')||lpad(hour,2,'0')||'0000','YYYYMMDDHH24MISS') as dt
    11       from tbl_calc
    12      )
    13* order by year,month,day,hr
    SQL> /
    YEAR MO DA         HR        VAL  NEW_VALUE  DAY_VALUE
    2000 1  1          20         32        146        314
    2000 1  1          21         33        146        314
    2000 1  1          22         53        146        314
    2000 1  1          23         28        146        314
    2000 1  2           0         37        168        314
    2000 1  2           1         35        168        314
    2000 1  2           2         39        168        314
    2000 1  2           3         57        168        314
    2000 1  2          13         42        168          0
    2000 1  2          14         12        168          0
    2000 1  31         21         32        113        322
    2000 1  31         22         52        113        322
    2000 1  31         23         29        113        322
    2000 2  1           0         27        209        322
    2000 2  1           1         45        209        322
    2000 2  1           2         69        209        322
    2000 2  1           3         68        209        322
    17 rows selected.This turns the values into a proper DATE datatype and then offsets that back by 4 hours to bring the 0-3 hours into the previous day, and then partitions the sum based on that day.

  • Java API to read the Encrypted Values from Windows Registry settings

    Is there any Java API to read the Encrypted Values from Windows Registry settings ?
    My Java Application invokes a 3rd party Tool that writes the key/value to windows registry settings under : “HKLM\Software\<3rdparty>\dataValue”.
    This entry is in BINARY and encrypted with 3DES, using crypto API from Microsoft.
    3rd party software to encrypt the data stored in registry it
    either uses C++ code: and uses the call “CryptProtectData” and “CryptUnProtectData” or
    If it is a .NET (C#) it uses the call “Protect” or “UnProtect” from class “ProtectData” of WinCrypt.h from the library “Crypt32.lib.
    Note: The data is encrypted using auto-generated machinekey and there is no public key shared to decrypt the Encrypted data.
    Since the data is encrypted using auto-generated machinekey the same can be decrypted from a .Net / C++ application using CryptUnprotectData or UnProtect() API of WinCrypt.h from the library “Crypt32.lib.
    To know more about Auto-Generated MachineKey in Windows refer the links below
    http://aspnetresources.com/tools/machineKey
    http://msdn.microsoft.com/en-us/library/ms998288.aspx
    I need to find a way in Java to find the equivalent API to decrypt (CryptUnprotectData) and Microsoft will automatically use the correct key.
    But i couldn't find any informato related to Java APIs to enrypt or decrypt data using auto-generated machinekey.
    Is there a way to read the encrypted data from Windows regsitry settings that is encrypted using the Auto-Generated Machine Key ?
    Kindly let me know if Java provides any such API or mechanism for this.

    If the symmetric key is "auto-generated" and is not being stored anywhere on the machine, it implies that the key is being regenerated based on known values on the machine. This is the same principle in generating 3DES keys using PBE (password-based-encryption). I would review the documentation on the C# side, figure out the algorithm or "seed" values being used by the algorithm, and then attempt to use the JCE to derive the 3DES key using PBE; you will need to provide the known values as parameters to the PBE key-generation function in JCE. Once derived, it can be used to decrypt the ciphertext from the Regiistry in exactly the same way as the CAPI/CNG framework.
    An alternate way for Java to use this key, is to write a JNI library that will call the native Windows code to do the decryption; then the Java program does not need to know details about the key.
    That said, there is a risk that if your code can derive the key based on known seeds, then so can an attacker. I don't know what your applicatiion is doing, but if this is anything related to compliance for some data-security regulation like PCI-DSS, then you will fail the audit (for being unable to prove you have adequate controls on the symmetric key) if a knowledgable QSA probes this design.
    Arshad Noor
    StrongAuth, Inc.

  • Frm-40502: oracle error: unable to read list of values

    Hi All,
    I am personalizing the assignment form, where we need to restrict the JOB LOV based on Organization value.
    In Forms Personalization we are creating the record group from query and attaching to Job field.
    The query is,
    SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
    j.job_id job_id
    FROM per_jobs_v j
    WHERE j.business_group_id + 0 = :CTL_GLOBALS.BUSINESS_GROUP_ID
    AND j.date_from <= :CTL_GLOBALS.SESSION_DATE
    AND ( (j.date_to IS NULL)
    OR (j.date_to >= :CTL_GLOBALS.SESSION_DATE)
    ORDER BY j.NAME
    When we use this query, we are getting the error "frm-40502: oracle error: unable to read list of values"
    If i replace the bind variable with values we are not getting the error and its working fine.
    Replace query:
    SELECT DISTINCT j.NAME, DECODE (1, 2, 1, NULL) c_valid_job_flag,
    j.job_id job_id
    FROM per_jobs_v j
    WHERE j.business_group_id + 0 = 202
    AND j.date_from <= TRUNC(SYSDATE)
    AND ( (j.date_to IS NULL)
    OR (j.date_to >= TRUNC(SYSDATE))
    ORDER BY j.NAME
    how to use bind variables (Block.field) here? We are getting this error only when using the bind variable in the query.
    Please share your ideas.
    Thanks.

    Hi;
    What is your EBS version? There are 96 docs avaliable about similar error message. I suggest use metalink for your issue
    You can also check:
    FRM-40502: Oracle Error: Unable To Read List Of Values [ID 1161404.1]
    Frm-40502: Oracle Error: Unable To Read List Of Values. [ID 351931.1]
    FRM 40502: Oracle Error:Unable to Read List of Values [ID 179162.1]
    Regard
    Helios

  • How to read the selected value of a dropdown list box

    Hello,
    I have 2 custom fields which are of type dropdown list on Accounts(CRMM_ACCOUNT) PCUI application details tab.I need to read the selected value of first dropdown list item,based on that second dropdown list will be populated.
    I know where to populate the dropdown list box,it is in FILL_DROPDOWN_LISTBOX.
    I dont know how to trap the selection made on dropdown list.
    PLease guide me on how to trap the dropdown list field selection value.
    Thanks in advance.
    Thirumala.

    Hello,
    Check what is done in standard for the fielf REGION which is inked to the country.
    Otherwise, you can do the following :
    - in field group customizing, for field 1, flag the 'send request' flag. So, when you change the value in this field via the dropdown, the MAC methods are immediately called.
    - Put the new value in a global variable (GV).
    - in the fill_dropdown_listbox method, get the value from this GV and based on it, filter the values for the dropdown of field 2.
    Hope this will help you,
    Regards,
    Frederic

  • How to get/read region item value in java script

    Hi All,
    i have text item on a page.
    how to read the item value in java script
    EXAMPLE
    P10_RESULT IS ITEM IT HAS VALUE "38.956472,-77.447777","38.999123,-77.026184","12.951497,70.668646","17.459075,78.456888"
    NOW I WANT TO REFER ABOVE ITEM VALUE IN JAVA SCRIPT LIKE
    var myPoints=new Array(&P10_RESULT.);
    SO I CAN POPULATE ARRAY WITH CORDINATES
    IT IS NOT WORKING
    WHAT IS THAT I AM MISSING.
    PLESE HELP .
    ThankS
    Rk

    region header code....
    <script src="http://maps.google.com/maps?file=api&v=2&key=&API_KEY." type="text/javascript"></script>
    <script type="text/javascript">
    //<![CDATA[
    //globals
    var bounds = new GLatLngBounds();
    var map;
    var centerPoint = new GLatLng(38.984898,-76.854549);
    var gmarkers = [];
    //var x= ""38.956472,-77.447777","38.999123,-//77.026184","12.951497,70.668646","17.459075,78.456888"";
    //var myPoints=new Array(x);
    //var myPoints=new Array($x('P10_RESULT').value);
    var myPoints=new Array(document.getElementById('P10_RESULT').value);
    //var myPoints=new Array("38.956472,-77.447777","38.999123,-77.026184","12.951497,70.668646","17.459075,78.456888");
    function initMap()
              doLoad();
                        addMarkers();
    function doLoad()
         if (GBrowserIsCompatible())
                   map = new GMap2(document.getElementById("map"));
                   map.setCenter(centerPoint, 7);
                   map.addControl(new GScaleControl());
                   map.addControl(new GLargeMapControl());
                   map.addControl(new GMapTypeControl());
    function myclick(i) {
    GEvent.trigger(gmarkers, "click");
    function addMarkers() {
         if (myPoints.length) {
              var bounds = new GLatLngBounds();
              for (n=0 ; n < myPoints.length ; n++ ) {
                   var mData = myPoints[n].split(',');
                   var point = new GLatLng(mData[0],mData[1]);
                   bounds.extend(point);
                   var marker = createMarker(mData[1],point, mData[0]);
         map.addOverlay(marker);
              map.setCenter(bounds.getCenter(), map.getBoundsZoomLevel(bounds));
    function createMarker(i,point, title) {
         var marker = new GMarker(point,{title:title});
         GEvent.addListener(marker, "click", function() {
              marker.openInfoWindowHtml('<div style="width:250px;">' + title + '<hr>Lat: ' + point.y + '<br>Lon: ' + point.x + '</div>');
         gmarkers[i] = marker;
         return marker;
    //]]>
    </script>
    page body code
    onload="initMap()" onunload="GUnload()"

  • Any function module to read all the values in Tcode-PPQD?

    Hi all
    Is there any function module to read all the values in Tcode-PPQD (Display Qualifiaction Catalog).
    and any idea what tables are involved to get these values like parent and child relationship?
    Thanks in advance.
    Murali.

    Murali,
    you can use the following..
    data: w_sobid type sobid, "Qualification ID
          w_objid type objid. "Qualification Catalog
    select objid  into w_objid
                  up to 1 rows
                  from HRP1001
                 where otype = 'QK'
                   and plvar = '01'
                   and istat = 1
                   and risgn = 'B'
                   and relat = '030'
                   and endda ge sy-datum
                   and begda le sy-datum
                   and sclas = 'Q'
                   and sobid = w_sobid.
    endselect.
    if sy-subrc eq 0.
    write: / w_objid,w_sobid.
    endif.
    Regards,
    Suresh Datti

Maybe you are looking for

  • Work flow status is not changing

    Hi, The work flow  is not ending. The last approver is getting the item in his inbox repeatedly though he has approved it previously and the workflow status is showing as still in progress. Please kindly help me to solve this Regards, Sekhar.

  • Unable to collect objects into transport request BI 7.0

    Hello all! I have a fresh installation of BI netweaver 2004s. When attempting create a  transport (in transport collection), I get the following error message: Changes cannot be made, display user only Object IOBJ xxxxxxxx couldn't be saved to order

  • There are too many TREX Errors

    Hello Experts, I have created an Index for a specific folder in KM. Under KM--> Sys Conf --> KM --> Index Administration it shows the green led, which I believe that the data sources are completely indexed. But, under the KM--> Monitoring > KM> Index

  • Java Web Server 2.0 to Tomcat 3.2

    My company was running servlets using Java Web Server on Solaris and I want to switch to Tomcat 3.2. The installation was fairly simple but I can't figure out how to deploy my previous servlets on Tomcat. Under Java Web Server, all my apps were in th

  • I need different type size to appear on the same line

    I know this has to be easy, I just don't know how to do it. I have a line of type which starts out as Headline 2, but I need the last part of the same line to appear as 12 pt paragraph type. When I select the last part of the line to resize it to 12