Bogus data from collection in 3.1

Hello-
My college recently upgraded from version 2.2 to 3.1. After exporting/importing my applications to the new environment, we started experiencing problems where there were none before. The primary problem has to do with inaccurate data being returned from a collection. I can currently still run the same page in both environments and even though the collection is pulling from the same production table... they are returinng different data. Thinking the problem may have been the result of the export/import, I tried creating the same page from scratch by copy/pasting the code from 2.2 into 3.1; this, however, did not resolve the problem. I've also copy/pasted the code from my create collection statement (based on a query) into SQL workshop... there it worked fine. Any suggestions how I might debug a problem such as this?
The other problem we're having in 3.1 is that some pages are now timing out. These pages ran long in 2.2 but did successfully return output. Any suggestions on this would also be appreciated.
Thanks.
Don

Hi John-
First-off, thanks for your response. Here's my create collection code:
=====================================================================
APEX_COLLECTION.DELETE_ALL_COLLECTIONS;
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
p_collection_name => 'INPROG',
p_query => 'select sfrstcr_pidm, sum(NVL(sfrstcr_credit_hr,0))
from sfrstcr
where sfrstcr_rsts_code in (''RE'',''NG'')
and sfrstcr_term_code = v(''P2_TERM'')
and NVL(sfrstcr_credit_hr,0) > 0
and sfrstcr_levl_code <> ''09''
and exists
(select ''x'' from ssbsect
where ssbsect_term_code = sfrstcr_term_code
and ssbsect_crn = sfrstcr_crn
and exists
(select ''x'' from sobptrm
where sobptrm_term_code = ssbsect_term_code
and sobptrm_ptrm_code = ssbsect_ptrm_code
and trunc(sysdate) >= trunc(sobptrm_start_date)))
group by sfrstcr_pidm');
APEX_COLLECTION.CREATE_COLLECTION_FROM_QUERY_B(
p_collection_name => 'OUTPROG',
p_query => 'select sfrstcr_pidm, sum(NVL(sfrstcr_credit_hr,0))
from sfrstcr
where sfrstcr_rsts_code in (''RE'',''NG'')
and sfrstcr_term_code = v(''P2_TERM'')
and NVL(sfrstcr_credit_hr,0) > 0
and sfrstcr_levl_code <> ''09''
and exists
(select ''x'' from ssbsect
where ssbsect_term_code = sfrstcr_term_code
and ssbsect_crn = sfrstcr_crn
and exists
(select ''x'' from sobptrm
where sobptrm_term_code = ssbsect_term_code
and sobptrm_ptrm_code = ssbsect_ptrm_code
and trunc(sysdate) < trunc(sobptrm_start_date)))
group by sfrstcr_pidm');
==============================================================
Here's some sample output. The errant data is coming from my OUTPROG collection ('credits not in progress' column). As you can see, in 2.2 there are no credits not in progress for these 3 records... which is correct. It "appears" the credits from my INPROG collection ('credits in progress") are somehow making their way to the OUTPROG column. This pattern, for the most part, hold true... there are, however, exceptions. (I hate exceptions)
Version 3.1
Crn     Course Credits     Course Start Date     DC Date     Credits in Progress     Credits Not In Progress     
30329     4     18-Apr-09     24-Apr-09     24     24     
30329     4     18-Apr-09     24-Apr-09 4     4
30329     4     18-Apr-09     24-Apr-09     8     8
Version 2.2
30329     4     18-Apr-09     24-Apr-09     24          
30329     4     18-Apr-09     24-Apr-09     4          
30329     4     18-Apr-09     24-Apr-09     8

Similar Messages

  • SCSM Connector not importing new data from collection

    Hello -
    I just installed SCSM with SP1.  I set up a test collection in SCCM with 20 machines.  I created an SCCM connector and ran the import.
    all machines in the collection with a client showed up and with all data.  I then installed the SCCM client on one of the machines that didn't have it.  That machine has not been updated with any data in SCSM even though resource explorer in SCCM
    shows all the hardware and software inventory.
    Further, I added more machines to the collection and did a manual 'resynch' and those machines did not show up in SCSM - also waited several hours and did a scheduled import and the newly added machines are not showing up in SCSM.
    has anyone experienced this?
    Thanks

    Hello Andreas -
    I see that the import started successfully with event ID 3333, Source Lfx Service
    I then see event 3339, more 3333, and then an event 34012 that says: 'imported 64 changes for data of type Microsoft.SystemCenter.ConfigurationManager.CollectionInfo from cache table Collections.
    Those events are repeated throughout the collecton process which takes approximately 20 minutes I also see event IDs 34011 several times throughout those 20 minutes.  The last event related to the synchronization is a 3339 which indicates 'Finished'.
    I see no errors, it looks like data was imported according to the events, but the data does not show up in the 'all computers' list.
    I'm concerned because the data I want imported is going to change frequently and I want the data for SCSM to match what is in SCCM.
    I have anothe question also - If a computer is removed from SCCM will it be removed from SCSM?
    Thanks,

  • Retrieving Data from Collections

    Greetings to all!!!
    I am trying to write some java code that creates an ArrayList of Time objects and then reads them back. (this as part of my assignment creating a Squash Court Booking System).
    The class Time has a method that adds minutes to the object and I use this to create 12 different timings from 9:00 to 17:15. In order to test that they are being correctly created, I add the created object (via the toString() method) to a String variable ?timeOutput?. In tests, timeOutput correctly gathers the 12 different Times.
    CODE:
    String timeOutput = "";
    //create arrayList of time objects
    Time tempTime = new Time(8,15);
    ArrayList bookingTimes = new ArrayList();
    //fill arrayList with a set of Booking Times
    for(int i =0; i < 12; ++i) {
    tempTime.addTime(45);
    bookingTimes.add(tempTime);
    timeOutput += tempTime.toString() + "\n";
    JOptionPane.showMessageDialog(null, timeOutput, "Booking Times", 1);
    My PROBLEM arises when it comes to reading back those Time objects?..I am only able to retrieve the value for the LAST item in the ArrayList (ie the Time 17:15)?..this is returned 12 times, regardless of whether the for loop or the iterator is used. This time (17:15) is also returned if I don?t use a loop/iterator at all, and just try to access one item in the Arraylist by its index value!
    CODE (using a for loop to access the index numbers of the ArrayList)
    Time tempTime_2 = new Time(9,00);
    for(int j =0; j < 12; ++j) {
    tempTime_2 = (Time)bookingTimes.get(j);
    timeOutput += tempTime_2.toString() + "\n";
    JOptionPane.showMessageDialog(null, timeOutput, "Booking Times", 1);
    CODE (using a an iterator to iterate across the ArrayList)
    Iterator timings = bookingTimes.iterator();
    while(timings.hasNext()) {
    timeOutput += ((Time)(timings.next())).toString() + "\n";
    JOptionPane.showMessageDialog(null, timeOutput, "Booking Times", 1);
    I feel that I must be repeating some basic syntax error, and feel very stuck?(and I haven?t even got on to retrieving values from nested HashMaps!!).
    I?d be very grateful for a helping hand??..I really want to know where I'm going wrong....
    cheerz 4 applying ur grey cells to my problem
    barge

    Hi all, and thanx for suggestions,
    Yatarchivist, I've tried printing booking times by retrieving the value from the ArrayList and outputting it to a JOPane........with the same result, namely that they seem to be loaded properly (see code below).
    My instinct is to agree with all of u that the problem is in loading the Array, but I can't for the life of me find the crux of the problem, or a way round it. All the tests I do seem to confirm that it's loading properly, just not regurgitating anything but the last item in the ArrayList
    for(int i =0; i < 12; ++i) {
          bookingTimes.add(tempTime);
          Time t = (Time)bookingTimes.get(i);
          JOptionPane.showMessageDialog(null, t.toString(), "Booking Times", 1);
    Pleeez, someone enlighten this troubled soul!!
          tempTime.addTime(45);     
        }

  • Moving data's from collection

    Hi friends,
    I have a APEX form and soon after if i insert via form means, then it will save the details(data's) in the table. But my question is how to move a data from a collection table to a main table. Is there any way of moving the stored data's from the collection to the table.
    Once the data is transferred into the table from collection, the transferred data in the collection has to get deleted. Only the data's which is not transferred to the main table should exist in the collection.
    Once the data is transferred from the collection to the table means, then that transferred data (i.e) row data should not exist in collection..
    Anyways of achieving it friends.
    Brgds,
    Mini

    Dear Jari,
    I have created an example in apex.oracle.com
    http://apex.oracle.com/pls/apex
    Workspace: mini_ws
    Username: [email protected]
    Password: 4i@duppyApplication 11569 - Upload Data File..
    I have two buttons over there..one is Upload and the other one is Upload1
    If u pressed Upload button soon after browsing one csv file with a Separator as ,(comma), then the datas from the .csv file will be saved in the collection..
    And after that if u pressed the Upload1 button means, then the data from the collection will be saved in my custom table named(excel_upload_table).
    What is the problem that im facing here is.
    Suppose if i upload the csv file with an column heading for each column(that is the two column ID, NAME)  means then i couldnt upload the data from collection to my custom table.
    I have two columns in my custom table like
    <li> ID
    <li> Name
    But if i upload the csv file without the column heading for each column(that is the two column ID, NAME) means, then i can upload the data from the collection to the my custom table.
    How i can proceed with this task, so that i can upload the csv file with the column heading for each and every column.
    Brgds,
    Mini

  • How to add a new view in Factsheet to collect data from R3

    Hi Experts,
    I need to add a new view in Account Factsheet called  'Open Delivery data'
    which will collect the delivery data from R3 system.
    As I know we have two Function Modules (at CRM) 'CRMT_ERP_FACT_SHEET_RETRIEVE'
    (at R3) 'CRM_CCKPT_EXPORTSUMMARY'
    All We need to do is create view which calls the data from R3 Via these modules.
    How should I proceed.
    Is this relevent steps :-
    http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock
    Regards,
    Ram

    Hi Sandeep,
    To add a new currency in Metadata, just add in Currencies dimension, and to add in Data form-just send the script what you are using as of now for rest of the currencies, or follow the same steps as specified above. or just add the script A#CLORATE.w#Periodic.C2#XYZ in rows of your data form (where XYZ- is the new currency).
    To add a new location in FDM login to FDM web client- click on Metadata--> locations and select the Controls review location where you want to add the data load location, right click and add the new location.

  • Error getting value from collection to a date picker field

    Hi all,
    I'm stumble with getting correct data value from collection.
    The column is described as
    'wwv_flow_item.date_popup(3,null, c002, 'dd/mm/yyyy', 10, 10) purchase_date'
    This field is causing error: 'report error:
    ORA-01843: invalid month'
    I'm sure, c002 has correct value '08/08/2003' because I've temporarily changed description of the field to
    'htmldb_item.text(3,c002,10) purchase_date' that returned correct value.
    What can be wrong? I'm puzzled.
    Any suggestion please.

    Are you sure that when you used 'htmldb_item.text(3,c002,10) purchase_date' you got 08/08/yyyy and not 0808yyyy. I have seen that message often in Oracle (outside of HTMLDB) and it is normally when one assumes one format when it is actually another, or the leading zero gets dropped (08082005 becomes 8082005, which converts to 80/82/0205).

  • How to calculate the total of absences? How to collect data from a specific line of a table?

    Hi,
    Again, I made a nice coloured picture from a screen capture which summarise the improvements that I would like to make in my form,
    Situation:
    For an educational purpose, I made this form   to simplify the way of recording the data and also to develope the independence of the students.
    ( I am doing this on a voluntary basis, working extra hours on my free time but I don't really mind because I am learning a lot of things in the same time)
    After being tested by the teacher, the student has to record the short date, the lines memorised, his grade, number of mistakes, and his attendance.
    I created everything in Word, then converted the file in PDF, then I created all the different fields with Adobe acrobat.
    There is in total 4 sheets, there are all similar except the first one in which there is a box with: date started, date finished, total time spent, absences.
    Below this box there is a table with 16 lines from (A to P) and 7 columns (Days, Date, From.. to.. , Grade, No. lines memorised, No. Errors, Attendance) ( so this table is present on all the sheets)
    Due to the fact that some students need more time than others, and also beacause some text need more time, I estimated a need of 4 sheets at the very most.
    I would like to make the following amelioration and automate the inputting of some of the data because I know that some of the students will certainly forget, so to avoid this scenario I am trying to make this form the easiest possible.
    screen capture of the form:
    screen capture of the form editing, you can see the names of the different fields:
    here is the form (only the first page) : http://cjoint.com/12fe/BBotMMgfYIy_memorisation_sheet_sample.pdf
    In  yellow 00000:
    At present, the students has to input the total of absences manually, is there a way ( script) to automate this by initialising the field next to "Absences" at  " 0 day"   and then everytime that Absent is selected from the COMBO BOX, it add 1 and it is displayed like this:  " 1 day" then " 2 days"  then " 3 days" etc … (so from what I read I have to initialise a counter a the beginning and then for (i...   ) count= count++; something like this...
    Furthermore, I need a solution to overcome the possibility that a second sheet may be needed for the same student; therefore I would need the data from the "attendance column" from the second sheet ( and perhaps the 3rd and 4th aswell) to be added on the "absences field" in the first sheet
    My idea: everytime that the short date is inputted in the first line (next to A) in the "Date" column of one of the 4 sheets then we check the 16 Combo box of the attendance column in this sheet instead to check 16*4=64 fields fot the 4 sheets in one go?
    but I don't know at all how to write it in Javascript. Or perhaps there is a way more easier than that?
    Shall I allocate a value for Absent on the “ export value”?
    In purple
    At present I wrote a simple script which matches the number of lines to the poem selected (Eg.  if I select the poem V.Hugo,  the number "36" will appear next to Number of lines).
    Again I would like the make the life of the students very easy so I would like a script which detects this number “36” on the "From .. to …" column,  as soon it is detected (on the first sheet or 2nd or 3rd or 4th)  check from the same line if "A / Pass" or "B / Pass" have been selected in the "Grade" column ,if yes the short date inputted on this line will be written on the field next to "Date finished" .
    this is a simple example with 36 lines only but somethimes, the students may have to memorise 80 lines and more, this is the reason for having 4 sheets in total.
    So basically I would like to automate the field next to" Date finished:" with a script that collect the short date from the day in which the student has finished his memorisation with "A / Pass" or "B / Pass"
    As for the "Total time spent" George Johnson helped me with a script that calculate the difference betwen date started and date finished (thank you)
    I am sollicting your help, because after trying for hours I was really confused with the different if/else needed. And in top of that, it’s my first experience with Javascript.
    I anticipate your assistance, thanking you in advance.

    I found this for counting the absences, its give you the total that's perfect, but is there a better methode which avoid me to write all the fields name, more simple????
    ( I found the idea here : Re: Total number added automatically  )
    // custom calculation script for field "Total #"
    function CountFields(aFields) {
    var nFields = 0;
    for(i = 0; i < aFields.length; i++) {
    try {
    // count null values, export value of Absence is 0;
    if(this.getField(aFields[i]).value == "0") nFields++;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to count
    var aNames = new Array("Sheet1AttendanceA","Sheet1AttendanceB","Sheet1AttendanceC","Sheet1AttendanceD","Sh eet1AttendanceE","Sheet1AttendanceF",
    "Sheet1AttendanceG","Sheet1AttendanceH","Sheet1AttendanceI","Sheet1AttendanceJ","Sheet1Att endanceK","Sheet1AttendanceL",
    "Sheet1AttendanceM","Sheet1AttendanceN","Sheet1AttendanceO","Sheet1AttendanceP" );
    // count the non-null fields;
    event.value = CountFields(aNames);
    As for the 2nd question, I've tried to do something similar to the previous script, but of course it doesn't work, but I am quite sure that the idea is similar:
    I don't know also how to add the other condition: the student should get A / Pass or B / Pass in order to consider he has finished??? and also how to check these condition from page 2, 3 and 4 and collect the date
    function Datefinished(bFields) {
    d2.value = nFields[i].value;
    for(i = 0; i < aFields.length; i++) {
    try {
    if(this.getField(aFields[i]).value == this.getField("NumberLines").value) d2.value = nFields[i].value;
    } catch(e) {
    if(e['message'] == "this.getField(aFields[i]) has no properties") app.alert("unknown field name: " + aFields[i]);
    else app.alert(e.toString());
    } // end catch
    } // end for aFields
    return nFields;
    // create array of field names to check
    var aNames = new Array("Texte00","Texte54","Texte56","Texte58","Texte60","Texte62","Texte64","Texte66","Te xte68","Texte70","Texte72","Texte74","Texte76","Texte78","Texte80","Texte82");
    var bNames = new Array("d1","d3","d4","d5","d6","d7","d8","d9","d10","d11","d12","d13","d14 ","d15","d16","d17");   // d1 is included because in some cases a student can finish in 1 day (short text);

  • How can I extract data from embedded collection??????

    I have 4 classes (class1, class2, class3, class4). Each of them contains properties, methods and a set (HashSet). The set declaration code is: private Set set1;
    The initialization occurs in the appropriate method (however I did declare and initialize as private Set set1= new HashSet(); without success). Each Set is declared and initialize in their own class. The insert and update method works perfectly well.
    When I load class1 object, I can see at runtime in the debug feature all properties data as well as all set elements (set1, set2, set3, and set4). I can extract the data from all properties belongs to the class1 as well as the set1 element. However I cannot extract the data from the set2, set 3 and set4. By writing the following �String s = class1.set1(). Property name;� and I will get the information. The problem that I have is that I cannot write the following �String s= class1.set1().set2().property name;� since set2 cannot be seen. What should I do to get the info from the other set collection???? The loading method provide an object that contains everything. This object is equal as class1 and the set are embedded one inside the other.
    Used hibernate and Struts.
    Could someone help???? Many thanks

    Are we talking about Java source code here or some weird expression language?
    Can you post a minimal, example Java program that demonstrates your problem?

  • Use Java to collect data from HTML

    Hi Guys
    I am doing a online stock trading project, the main part is to collect raw data from http://finance.yahoo.com User can retrieve the stock detail by inputting the right stock symbol, such as "AOL". I dont have too much problem in this part because yahoo provde a spreedsheet format to display the result. If you type the URL below, it can bring you a set of stock data separating by comma. So, I can use StringTokenizer(date, ",") to collect each data from yahoo into my system.
    ========================================================================
    http://finance.yahoo.com/d/quotes.csv?f=sl1d1t1c1ohgv&e=.csv&s=AOL&
    "AOL",15.57,"8/12/2003","4:01pm",+0.04,15.47,15.63,15.40,12097200
    ========================================================================
    However beside this function, I also need to search Stock Symbol, because user may only know the company name. Although Yahoo finance also provide this function, with no spreedsheet format provided. So, if I type the URL below, it will only give me a set of result BUT in HTML format.
    ========================================================================
    http://finance.yahoo.com/l?s=AOL&t=S&m=
    ========================================================================
    So, can anyone tell me what is the best way to collect data from a HTML page? Or anyone know any good stock quoting sites which also provide spreedsheet format?
    Thank you very much
    Kel

    I am doing a online stock trading project, the
    the main part is to collect raw data from
    http://finance.yahoo.com
    Sounds fun.
    So, can anyone tell me what is the best way to
    to collect data from a HTML page? Or anyone know any
    good stock quoting sites which also provide
    spreedsheet format?I really don't know any other stock quote sites. But if you want to implement a search function for stock names, I would do it like this
    1) Code the HTTP SUBMIT/POST to lookup the possible stock names
    2) Use XSL to filter out the HTML path to the table with results, the layout is consistent, so there are no strange exceptions. You can check the DOM structure by using Mozilla's DOM inspector. Just write down the path to the TABLE element and select it, and transform it to CSV for example.
    3) Reparse the CSV to fill some boxes
    To possibly save some server load use a small fixed size in memory cache to store N requests based on some strategy.
    The other part is actual a separate part of what you want to code and should be a separate class in which you can feed the stock name.
    If the user types in a bad stock name, you can retrieve a list of possible names using the input as the company name.
    Greets.
    Maybe there is a SOAP service out there somewhere.

  • Is there a way to use REST service to query data from a forms collection?

    I want to query and retrieve data from a SharePoint forms collection. I have a forms library that has multiple documents all being created using the same template.
    I need to query and retrieve data from it using oData/ReST API.
    I could see the /_vti_bin/listdata.svc and it seems I cannot get the forms data using this.
    What will be the best approach?
    Does that helps?
    If you found this post helpful, please “Vote as Helpful”. If it answered your question, please “Mark as Answer”.
    Thanks,
    Kangkan Goswami |Technical Architect| Blog: http://www.geekays.net/
    http://in.linkedin.com/in/kangkan

    Hi,
    Rest service is not available to retrieve the data in forms.
    For this issue, the common workaround I know is to first populate the form fields as columns in form library, then retrieve the columns value instead. You can also use rest service in this way.
    If it is not convenience this way, please provide more information about the scenario to get the data.
    Thanks,
    Qiao Wei
    TechNet Community Support

  • Collect data from a dynamic XML file into multiple internal tables

    I need to convert the XML file into multiple internal tables. I tried many links and posts in SDN but still was facing difficulty in achieving this. Can some one tell me where I am going wrong.
    My XML file is of the following type.It is very complex and the dynamice.
    The following tags occur more than once in the XML file. The "I" and "L" tags and its child tags can occur ones or more than once for each XML file and it is not constant. i.e in one file they can occur 1 time and in another they can occur 100 times.
    "I" and "L" are child tags of <C>
    <I>
           <J>10</J>
             <K>EN</K>
      </I>
    <L>
             <J>20</J>
              <N>BB</N>
      </L>
    Tags <C> and <F> occur only ones for each XML file. <C> is the child tag of "A" and "F" is the child tag of <C>.
    I need to collect <D>, <E> in one internal table ITAB.
    I need to collect <G>, <H> in one internal table JTAB.
    I need to collect <J>, <K> in one internal table KTAB.
    I need to collect <J>, <N> in one internal table PTAB.
    Below is the complete XML file.
    ?xml version="1.0" encoding="iso-8859-1" ?>
    <A>
        <B/>
        <C>
           <D>RED</D>
           <E>999</E>
        <F>
           <G>TRACK</G>
           <H>PACK</H>
        </F>
        <I>
           <J>10</J>
           <K>EN</K>
        </I>
        <I>
           <J>20</J>
           <K>TN</K>
        </I>
        <I>
           <J>30</J>
           <K>KN</K>
        </I>
        <L>
           <J>10</J>
           <N>AA</N>
        </L>
        <L>
           <J>20</J>
           <N>BB</N>
        </L>
        <L>
           <J>30</J>
           <N>CC</N>
        </L>
        </C>
      </A>
    With the help of SDN I am able to gather the values of <D> <E> in one internal table.
    Now if I need to gather
    <G>, <H> in one internal table JTAB.
    <J>, <K> in one internal table KTAB.
    <J>, <N> in one internal table PTAB.
    I am unable to do. I am following  XSLT transformation method. If some one has some suggestions. Please help.
    Here is my ABAP program
    TYPE-POOLS abap.
    CONSTANTS gs_file TYPE string VALUE 'C:\TEMP\ABCD.xml'.
    * This is the structure for the data from the XML file
    TYPES: BEGIN OF ITAB,
             D(10) TYPE C,
             E(10) TYPE C,
           END OF ITAB.
    * Table for the XML content
    DATA: gt_itab       TYPE STANDARD TABLE OF char2048.
    * Table and work ares for the data from the XML file
    DATA: gt_ITAB     TYPE STANDARD TABLE OF ts_ITAB,
          gs_ITAB     TYPE ts_ITAB.
    * Result table that contains references
    * of the internal tables to be filled
    DATA: gt_result_xml TYPE abap_trans_resbind_tab,
          gs_result_xml TYPE abap_trans_resbind.
    * For error handling
    DATA: gs_rif_ex     TYPE REF TO cx_root,
          gs_var_text   TYPE string.
    * Get the XML file from your client
    CALL METHOD cl_gui_frontend_services=>gui_upload
      EXPORTING
        filename                = gs_file
      CHANGING
        data_tab                = gt_itab1
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    * Fill the result table with a reference to the data table.
    * Within the XSLT stylesheet, the data table can be accessed with
    * "IITAB".
    GET REFERENCE OF gt_shipment INTO gs_result_xml-value.
    gs_result_xml-name = 'IITAB'.
    APPEND gs_result_xml TO gt_result_xml.
    * Perform the XSLT stylesheet
    TRY.
        CALL TRANSFORMATION zxslt
        SOURCE XML gt_itab1
        RESULT (gt_result_xml).
      CATCH cx_root INTO gs_rif_ex.
        gs_var_text = gs_rif_ex->get_text( ).
        MESSAGE gs_var_text TYPE 'E'.
    ENDTRY.
    * Now let's see what we got from the file
    LOOP AT gt_ITAB INTO gs_ITAB.
      WRITE: / 'D:', gs_ITAB-D.
      WRITE: / 'E :', gs_ITAB-E.
    ENDLOOP.
    Transformation
    <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
      <xsl:output encoding="iso-8859-1" indent="yes" method="xml" version="1.0"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="/">
        <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
          <asx:values>
            <IITAB>
              <xsl:apply-templates select="//C"/>
            </IITAB>
          </asx:values>
        </asx:abap>
      </xsl:template>
      <item>
          <D>
            <xsl:value-of select="D"/>
          </D>
          <E>
            <xsl:value-of select="E"/>
          </E>
        </item>
      </xsl:template>
    </xsl:transform>
    Now the above pgm and transformation work well and I am able to extract data into the ITAB. Now what changes should I make in transformation and in pgm to collect
    <G>, <H> in one internal table JTAB.
    <J>, <K> in one internal table KTAB.
    <J>, <N> in one internal table PTAB.
    Please help..i am really tring hard to figure this out. I am found lot of threads addressing this issue but not my problem.
    Kindly help.
    Regards,
    VS

    Hi Rammohan,
    Thanks for the effort!
    But I don't need to use GUI upload because my functionality does not require to fetch data from presentation server.
    Moreover, the split command advised by you contains separate fields...f1, f2, f3... and I cannot use it because I have 164 fields.  I will have to split into 164 fields and assign the values back to 164 fields in the work area/header line.
    Moreover I have about 10 such work areas.  so the effort would be ten times the above effort! I want to avoid this! Please help!
    I would be very grateful if you could provide an alternative solution.
    Thanks once again,
    Best Regards,
    Vinod.V

  • How to collect my data from a disk that I suspect to contain a malware

    I have experience several crashes the last 72 hours and I have to buy a new hard drive that I am using as an external drive to work from as a startup disk.
    Once I install all my software back, how can I collect my data from a hard drive that I am suspecting to contain a malware. I previously use Bitdefender for mac and because I do not know which software is causing the problem, I just install Clamxav.
    Please advise.

    BitDefender was likely causing the problem.
    Just plug it in and transfer the data. You'd have to install the malware for it to affect your Mac, but XProtect blocks all known malware from installing.

  • RICS0001:Internal Error,unable to process the collected data from the device.

    Hi all,
    I've got the following error in Inventory Collection: 'RICS0001:Internal Error,unable to process the collected data from the device.'
    System is CW LMS 2.6
    If I search the web I get the following Cisco document:
    http://www.cisco.com/en/US/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html
    '...in the log directory look for IC_Server.log.'
    IC_Server.log:
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-25],com.cisco.nm.rmeng.inventory.ics.core.ICSCore,173,Got Async Request, User Name :admin
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-25],com.cisco.nm.rmeng.inventory.ics.core.ICSCore,179,Request ID is : 1289919235488
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,309,Started processing device ID: 3341
    [ Di Nov 16  15:54:27 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.RMELogger,724,com.cisco.nm.rmeng.util.db.DatabaseConnectionPool,getConnection,59,Inside ICSDatabaseConnection, MAX_COUNT =20
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,387,Started processing device Name: 9.152.255.101
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,g$eval,103,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:g$eval:populating ContainmentAG attributes, begins...
    [ Di Nov 16  15:54:28 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,110,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,collection from the device begins...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,147,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,collection from the device successful...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,149,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,population begins...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,216,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:Before method getSlotsConfiguredStatistics
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,225,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:After method getSlotsConfiguredStatistics
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,populatingTheChassis,245,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:populatingTheChassis:ContainmentAG attributes,population completed...
    [ Di Nov 16  15:54:29 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.util.logger.XDILogger,77,com.cisco.nm.xms.xdi.pkgs.SharedInventoryCatIOS.ContainmentAGI_ENTITY_Mib_Non_Modular,g$eval,105,com.cisco.nm.xms.xdi.pkgs.SharedInventoryRouter:ContainmentAGI_ENTITY_Mib_Non_Modular:g$eval:populating ContainmentAG attributes, ends...
    [ Di Nov 16  15:54:43 CET 2010 ],INFO ,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,477,DP time is 15 seconds for 9.152.255.101
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.util.logger.RMELogger,770,com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange,effect,33,Unexpected error :com.sybase.jdbc2.jdbc.SybSQLException: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2834)
        at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2156)
        at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203)
        at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1766)
        at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1758)
        at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:619)
        at com.cisco.nm.rmeng.inventory.ics.dbrep.DBRecord.insert(DBRecord.java:50)
        at com.cisco.nm.rmeng.inventory.ics.util.ICSDatabaseConnection.insert(ICSDatabaseConnection.java:91)
        at com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange.effect(AddInvChange.java:29)
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:394)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor,448,ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
    com.sybase.jdbc2.jdbc.SybSQLException: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2834)
        at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:2156)
        at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:220)
        at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:203)
        at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1766)
        at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1758)
        at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:619)
        at com.cisco.nm.rmeng.inventory.ics.dbrep.DBRecord.insert(DBRecord.java:50)
        at com.cisco.nm.rmeng.inventory.ics.util.ICSDatabaseConnection.insert(ICSDatabaseConnection.java:91)
        at com.cisco.nm.rmeng.inventory.ics.invchange.AddInvChange.effect(AddInvChange.java:29)
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:394)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    [ Di Nov 16  15:54:44 CET 2010 ],ERROR,[Thread-14],com.cisco.nm.rmeng.inventory.ics.core.CollectionController,861, Exception occured in process method while processing: 9.152.255.101 ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
    ICSException :: ASA Fehler -193: Primärschlüssel für Tabelle 'PhysicalElement' ist nicht eindeutig
        at com.cisco.nm.rmeng.inventory.ics.server.InvDataProcessor.processInvData(InvDataProcessor.java:463)
        at com.cisco.nm.rmeng.inventory.ics.core.CollectionController.run(CollectionController.java:849)
        at java.lang.Thread.run(Thread.java:534)
    I don't know where the German error message comes from. The whole system is English. Translation is: "ASA error -192: primary key for table 'PhysicalElement' isn't distinct'
    Thanks for your help!
    Alex

    Well known issue in LMS 2.6. Most likely you are hitting CSCsm97530. As a temporary solution you could remove and re-add problematic device from CS. To get a permanent fix you need a patch (provided by TAC).

  • How can i control NI-6115 to collect data from 2 channels and save as 2 files?

    I want to program NI-6115 card to collect data from 2 channels and save the two data into two different filenames that i specified?
    How do i write in labview codes?

    Calibur,
    LabVIEW includes a number of examples that demonstrate how to acquire analog input data and write it to disk. Dependent upon the type of file you would like to use, I would suggest that you examine one of the following examples:
    Cont Acq to File (binary).vi
    Cont Acq to File (scaled).vi
    Cont Acq to Spreadsheet File.vi
    With regards to writing each channel's data to a separate file, you will need to use the Index Array function to generate two 1-D arrays, each containing data for one channel. These arrays can then be written to separate files using two Write File functions.
    Good luck with your application.
    Spencer S.

  • Select data from plsql collections

    Hi All,
    I am not a developer but working as a DBA, so not very much familiar with pl/sql, still gone through with documentation and could come up with some solution of my problem. I need some expert advice here.
    Problem : I am writing down some kind of plsql program for monitoring of some special batch job, I know we have lot of other option to do the same including db/grid control ..etc but for some
    reason i have to do this using plsql only.
    Requirement : my requirement is to select data from table in plsql and then should have ability to query it again and again. I would not prefer to go to table rather than directly from plsql..
    I wrote down below code for sample, bulk collect data into collection type and can print using for loop.
    Declare
    type ts is table of v$session%rowtype index by pls_integer;
    tsess ts;
    begin
    select * bulk collect into tsess from v$session ;
    for i in 1..tsess.count loop
    dbms_output.put_line(tsess(i).terminal);
    end loop;
    end;
    But, is there any way same collection ( tsess in above example ) can be queried using select statement like 'select * from table ( Tsess ) ' I have searched on net and found this can be done using creating type at database level. But my problem is I can not create any object in database as being it is a production one.
    I was looking for if is there any way same can be accomplished ... like cast / multiset .. however, I could not get it through.
    your help would be appreciated !!
    Regards,

    I don't think you need to use arrays here, only SQL, have a look at subquery factors and report back if that is insufficient...
    Edited by: BrendanP on 12-Feb-2012 03:07 to add an example:
    I gather that you want to 'requery' data that you have already got from the database purely to be able to use SQL functionality such as ORDER BY in multiple ways. Here is how you can do this in the original SQL for one particular example, where you want to query v$sql ordering by CPU time and by disk reads separately (I tested this but the output won't look good here, so omitting it):
    WITH v AS (
    SELECT
        Substr (sql_text,1,500)             sql_text,
        cpu_time/1000000                    cpu_seconds,
        disk_reads,
        buffer_gets,
        executions,
        CASE WHEN rows_processed != 0 THEN Round( buffer_gets / Nvl (Replace (rows_processed, 0, 1) ,1)) END Buffer_gets_rows_proc,
        Round (buffer_gets / Nvl (Replace (executions, 0, 1), 1)) Buffer_gets_executions,
        elapsed_time / 1000000              elapsed_second,
        module
    FROM v$sql s)
    SELECT
        'CPU'                order_by,
        cpu_seconds          order_val,
        sql_text,
        cpu_seconds,
        disk_reads,
        buffer_gets,
        executions,
        buffer_gets_rows_proc,
        buffer_gets_executions,
        elapsed_second,
        module
    FROM v
    UNION
    SELECT
        'Disk reads',
        disk_reads,
        sql_text,
        cpu_seconds,
        disk_reads,
        buffer_gets,
        executions,
        buffer_gets_rows_proc,
        buffer_gets_executions,
        elapsed_second,
        module
    FROM v
    ORDER BY order_by, order_val DESC

Maybe you are looking for

  • No of days worked.

    Hi experts, Can anybody plz help me out.In negative time managemnt where is the no of days worked stored. In which table can we find this. The Payroll is processed for an employee. And i need the no of days worked to be reflected on the payslip.

  • I have an iPhone 4, and the other person can not hear me when i call, any ideas?

    I am originally from SD, but i was in boulder, colorado this weekend and my iPhone 4 worked fine on Saturday. I got up on Sunday and when i would make a call, the person on the other end could not hear me. I thought it might have been something with

  • Problem while setting the selected value of h:selectOneMenu to bean

    Hi all, I am new to JSF. I am working on application where i have combo boxe on the page. I am setting some values to the combobox from database using <f:selectItems> tag and one value using <f:selectItem> tag. The value combobox value selected by us

  • Photos:  "Selected folders" grayed out.

    I've been having issues syncing photos to my ipad mini.  1.  the "Selected folders" option is grayed out so I can't choose that.  2.  When I sync anything it replaces the album I syncing previously.   Basically, I can't put any albums on by syncing i

  • Verizon, why can we not get a statement released on the cause of the recent My Verizon downtime?

    The My Verizon service has been down for over 24 hours now.  People are not able to activate their phones or pay their bills.  What is the cause of this outage and what is to be done about the fees people will inevitably incur?