Issue with fetching data based on the given criteria.....

Dear All,
I am a bit new to oracle, Please can some help me.
I need to design a report out of the below data:
1. bprf_no will be my primary field
2. report parameters will be the bill_month & no_of_months
Based on above 2 parameters I need to scan through the data for BILL_MONTH <= '30-Jun-2012' and NO_OF_MONTHS >= 3 the other criteria being the AVG_IND in (1,2).
In brief the criteria will be to pick all BPRF_NO having AVG_ID in (1, 2) consecutively till a break (AVG_IND not in (1, 2) starting from the given BILL_MONTH and going below this period, that is BILL_MONTH <= '30-Jun-2012'.
For the below data, if my parameters are: BILL_MONTH <= '30-Jun-2012' and NO_OF_MONTHS >= 3, only the underlined data should be picked (as they fulfill the criteria) and the report output will be like the one posted below the sample data:
Here the NO_OF_TIMES is the count, that is no of times the BPRF_NO falls into the above mentioned criteria consecutively starting from the provided BILL_MONTH.
BPRF_NO BILL_MONTH VOID_STATUS AVG_IND
BP01 30-Jun-12 0 0
BP02 30-Jun-12 0 0
BP03 30-Jun-12 0 1
BP04 30-Jun-12 0 1
BP05 30-Jun-12 0 1
BP06 30-Jun-12 0 2
BP07 30-Jun-12 0 2
BP08 30-Jun-12 0 2
BP09 30-Jun-12 0 0
BP10 30-Jun-12 0 0
BP10 30-Jun-12 0 0
BP01 31-May-12 0 0
BP02 31-May-12 0 0
BP03 31-May-12 0 1
BP04 31-May-12 0 1
BP05 31-May-12 0 1
BP06 31-May-12 0 2
BP07 31-May-12 0 2
BP08 31-May-12 0 2
BP09 31-May-12 0 0
BP10 31-May-12 0 0
BP01 30-Apr-12 0 0
BP02 30-Apr-12 0 0
BP03 30-Apr-12 0 0
BP04 30-Apr-12 0 0
BP05 30-Apr-12 0 1
BP06 30-Apr-12 0 2
BP07 30-Apr-12 0 2
BP08 30-Apr-12 0 2
BP09 30-Apr-12 0 0
BP10 30-Apr-12 0 0
BP01 31-Mar-12 0 0
BP02 31-Mar-12 0 0
BP03 31-Mar-12 0 1
BP04 31-Mar-12 0 1
BP05 31-Mar-12 0 1
BP06 31-Mar-12 0 2
BP07 31-Mar-12 0 2
BP08 31-Mar-12 0 2
BP09 31-Mar-12 0 0
BP10 31-Mar-12 0 0
BP01 29-Feb-12 0 0
BP02 29-Feb-12 0 0
BP03 29-Feb-12 0 1
BP04 29-Feb-12 0 1
BP05 29-Feb-12 0 1
BP06 29-Feb-12 0 2
BP07 29-Feb-12 0 2
BP08 29-Feb-12 0 2
BP09 29-Feb-12 0 0
BP10 29-Feb-12 0 0
BP01 31-Jan-12 0 0
BP02 31-Jan-12 0 0
BP03 31-Jan-12 0 0
BP04 31-Jan-12 0 0
BP05 31-Jan-12 0 1
BP06 31-Jan-12 0 2
BP07 31-Jan-12 0 2
BP08 31-Jan-12 0 2
BP09 31-Jan-12 0 0
BP10 31-Jan-12 0 0
Below is the correct output that I am supposed to get.
BPRF_NO BILL_MONTH NO_OF_TIMES
BP05 30-Jun-2012 6
BP06 30-Jun-2012 6
BP07 30-Jun-2012 6
BP08 30-Jun-2012 6
My below query is fetching me wrong data:
Here BP03 & BP04 should not come into the listing itself.
select bprf_no, last_avg_bill_month, no_of_month
from
( select a.bprf_no, max(a.bill_month) last_avg_bill_month, count(*) no_of_month
from
( select
bill_month, avg_ind, bprf_no
from ibsoifc.vw_ibs_bill
where bill_month <= '30-Jun-2012'
and void_status = 0
and avg_ind in (1, 2)
order by bprf_no desc, bill_month desc ) a, ibsoifc.vw_ibs_bill b
where a.bprf_no = b.bpref_no
and a.bill_month = b.bill_month
group by a.bprf_no
having count(a.bprf_no) >= '&no_of_month' )
group by bprf_no,last_avg_bill_month, no_of_month
BPRF_NO LAST_AVG_BILL_MONTH NO_OF_TIMES
BP03 30-Jun-2012 4
BP04 30-Jun-2012 4
BP05 30-Jun-2012 6
BP06 30-Jun-2012 6
BP07 30-Jun-2012 6
BP08 30-Jun-2012 6

Based on my understanding..
select *
from t
order by bill_month desc,bprf_no;
BPRF_NO    BILL_MONTH VOID_STATUS AVG_IND
BP01       30-JUN-12            0       0
BP02       30-JUN-12            0       0
BP03       30-JUN-12            0       1
BP04       30-JUN-12            0       1
BP05       30-JUN-12            0       1
BP06       30-JUN-12            0       2
BP07       30-JUN-12            0       2
BP08       30-JUN-12            0       2
BP09       30-JUN-12            0       0
BP10       30-JUN-12            0       0
BP10       30-JUN-12            0       0
BP01       31-MAY-12            0       0
BP02       31-MAY-12            0       0
BP03       31-MAY-12            0       1
BP04       31-MAY-12            0       1
BP05       31-MAY-12            0       1
BP06       31-MAY-12            0       2
BP07       31-MAY-12            0       2
BP08       31-MAY-12            0       2
BP09       31-MAY-12            0       0
BP10       31-MAY-12            0       0
BP01       30-APR-12            0       0
BP02       30-APR-12            0       0
BP03       30-APR-12            0       0
BP04       30-APR-12            0       0
BP05       30-APR-12            0       1
BP06       30-APR-12            0       2
BP07       30-APR-12            0       2
BP08       30-APR-12            0       2
BP09       30-APR-12            0       0
BP10       30-APR-12            0       0
BP01       31-MAR-12            0       0
BP02       31-MAR-12            0       0
BP03       31-MAR-12            0       1
BP04       31-MAR-12            0       1
BP05       31-MAR-12            0       1
BP06       31-MAR-12            0       2
BP07       31-MAR-12            0       2
BP08       31-MAR-12            0       2
BP09       31-MAR-12            0       0
BP10       31-MAR-12            0       0
BP01       29-FEB-12            0       0
BP02       29-FEB-12            0       0
BP03       29-FEB-12            0       1
BP04       29-FEB-12            0       1
BP05       29-FEB-12            0       1
BP06       29-FEB-12            0       2
BP07       29-FEB-12            0       2
BP08       29-FEB-12            0       2
BP09       29-FEB-12            0       0
BP10       29-FEB-12            0       0
BP01       31-JAN-12            0       0
BP02       31-JAN-12            0       0
BP03       31-JAN-12            0       0
BP04       31-JAN-12            0       0
BP05       31-JAN-12            0       1
BP06       31-JAN-12            0       2
BP07       31-JAN-12            0       2
BP08       31-JAN-12            0       2
BP09       31-JAN-12            0       0
BP10       31-JAN-12            0       0
61 rows selected
with t1 as
  (select BPRF_NO,BILL_MONTH,VOID_STATUS,AVG_IND,sm,
         case when sm >= 3 then
                    nvl(sm - lag(sm) over(partition by bill_month order by bprf_no),sm)
              else 0 end d
  from(
    select BPRF_NO,BILL_MONTH,VOID_STATUS,AVG_IND,
           sum(decode(avg_ind,1,1,2,1,0)) over(partition by bill_month order by bprf_no) sm
    from t
    where bill_month = to_date('30-Jun-12','dd-Mon-yy')
    order by bill_month desc,bprf_no)
select t1.bprf_no,count(t.bprf_no)+1 no_of_times -- "The '1' stands for the count in t"
from t1, t
where t1.bprf_no = t.bprf_no -- "This can be an outer join based on your requirement and data.."
and t1.d = 1
and t.bill_month < to_date('30-Jun-12','dd-Mon-yy')
group by t1.bprf_no
order by 1;
BPRF_NO    NO_OF_TIMES
BP05                 6
BP06                 6
BP07                 6
BP08                 6

Similar Messages

  • Issue with fetching data from AFRU

    Hi All,
    We are trying to immitate the standard transaction COOIS but with some extra features to get a report.
    We have a particular select in the custom code which is timing out and taking an unusually long time(infact never finished the select) if run in background.
    Custom Code
        SELECT RUECK
               RMZHL
               LMNGA
               IEDD
               MANUR
               AUFNR
               APLFL FROM AFRU
                     INTO TABLE GT_AFRU
                     FOR ALL ENTRIES IN GT_AFVC
                     WHERE RUECK = GT_AFVC-RUECK
                      AND RMZHL = GT_AFVC-RMZHL
                       AND MANUR = '1'
                       AND APLFL NE ' '.
    Standard Code
      SELECT * FROM afru INTO TABLE afru_tmp
                         FOR ALL ENTRIES IN rueck_tmp
                         WHERE rueck     =  rueck_tmp-rueck
                         AND ( canum     =  canum_0
                         OR    canum     IS NULL ).
    The standard code returns the entries in blink of the eye whereas the custom code runs on for ever. Both the for all entries tables have the same entries and use the same primary key.
    I also tried to fetch data from the table directly using SE16 and I input only 10 confirmations(RUECK-primary key) into the table and I try to execute this in background and it also seems to run for ever. Does anyone have any idea what is going wrong here? Pointers will be appreciated.
    Regards,
    Karthik

    YOu should make a check if the table GT_AFVC has any entries in it or not.
    if not GT_AFVC[] is initial.
    SELECT RUECK
    RMZHL
    LMNGA
    IEDD
    MANUR
    AUFNR
    APLFL FROM AFRU
    INTO TABLE GT_AFRU
    FOR ALL ENTRIES IN GT_AFVC
    WHERE RUECK = GT_AFVC-RUECK
    AND RMZHL = GT_AFVC-RMZHL
    AND MANUR = '1'
    endif.

  • How to search xml file data based on the given keyword from html form

    hi,
    i'm new to XML. I have this problem regarding searching within a XML file.
    the
    idea is that my search will be based on the keyword entered
    in
    by the user from a HTML form. the keyword is then used to search all
    the
    question nodes and the choice nodes within a XML file. once the match
    is
    found, i will have to display the results.
    But i don't know how to do so - especially the part of searching xml file.
    Can
    anyone help me in this? Your help is much appreciated.
    Edited by: Moti_Lal.D on Apr 4, 2008 7:28 AM

    yeah.. what i was trying to do is
    i have one xml fine. then i have to read all the tag values say
    <book>
    <title>Java</title>
    <author>agarwal</author>
    <price>200</price>
    </book>
    <book>
    <title>Xml</title>
    <author>saxmann</author>
    <price>300</price>
    </book>
    i can read the tag values like this
    File file = new File("dom.xml");
    try {
    DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
    Document doc = builder.parse(file);
    NodeList nodes = doc.getElementsByTagName"book");
    for (int i = 0; i < nodes.getLength(); i++) {
    Element element = (Element) nodes.item(i);
    NodeList title = element.getElementsByTagName("title");
    Element line = (Element) title.item(0);
    what i want is i may give any xml file
    like File file = new File("xxx.xml");
    (it may be one level/two level/3level tagged one)
    then the i should read all the tag values and store them in some array. Then when i enter some character from keyboard (say "a") then it has to show all the tag values starts with "a" and display them.
    i guess u understand my problem.

  • How to insert values using pushputtons in text item & fetch data based on

    Dear friends,
    I want to insert values in the Text item using pushbutton e.g to insert 05CST884 into text item using pushbuttons '0' '5' 'C' 'S' 'T' '8' '8' '4' (alpha numeric buttons) in the layout editor and then fetch data based on the number entered with that of one in the table in the another text item2 in the layout editor.
    Suggestions regarding how to develop and use effective triggers are welcome.

    At the block level (for the control block where all your push buttons are, let's call it block1) create a WHEN-BUTTON-PRESSED trigger. Your [A-Z] and [0-9] buttons should be on a dedicated non-database datablock to reduce problems. As stated previously, this trigger should just contain the code:
    :block2.text_item := :block2.text_item||get_item_property(:system.trigger_item, label);
    Also on the pushbutton block, create a backspacve button with its own dedicated WHEN-BUTTON-PRESSED trigger containing:
    if length(:block2.text_item) > 0 then :block2.text_item := substr(:block2.text_item, 1, length(:block2.text_item)); end if;
    This will hopefully erase the last character entered.
    block2 should be based on the database table (see Property Palette --> Database) you wish to query and text_item should be based on the database item which contains the code you entered. All the other database items you wish to displayshould also be added to block2.
    Add another FIND push button to block1 with the code:
    go_block('block2');
    execute_query;
    Without writing the whole thing for you, I'd suggest you get a decent Forms tutorial book to guide you through the basics (Oracle Forms Developers Handbook).

  • Formatting a Date based on the user's Locale

    I'm having some trouble formatting a date based on the user's locale. I'm aware you can do something like this:
       public static String getAsString( Object dateObject, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.MEDIUM, locale );
          return dateFormat.format( dateObject );
    However, this is returning something like Jan 21, 2009. I need 01/21/2009. Of course, if this was the UK locale it'd have to be 21/01/2009. Any help would be appreciated.

    another issue I'm running into is that when I'm logged in as a users' locale which uses '-' instead of '/' (i.e. 21-01-2009), I get a parse error. Can anyone provide any input? Thanks.
        * Parse a Date
        * @param dateString
        * @param locale
        * @return parsed Date
       public static Object parseDate( String dateString, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
          try {
             return dateFormat.parse( dateString );
          catch( Exception exception ) {
             throw new ExceptionUtl( UtlMessageHelper.getMessage( UtlMessageConstants.ERROR_FailedParseDateFromString, dateString ), exception );
        * Format the given value into a DateFormat
        * @param dateObject
        *           Object value to be formatted
        * @param locale
        *           Locale format to use
        * @return dateObject in SimpleDateFormat
       public static String formatDate( Object dateObject, Locale locale ) {
          DateFormat dateFormat = DateFormat.getDateInstance( DateFormat.SHORT, locale );
          if( dateFormat instanceof SimpleDateFormat ) {
             SimpleDateFormat simpleDateFormat = ( SimpleDateFormat )dateFormat;
             String pattern = simpleDateFormat.toPattern();
             if( !pattern.contains( "yyyy" ) ) {
                pattern = pattern.replace( "yy", "yyyy" );
             if( !pattern.contains( "dd" ) ) {
                pattern = pattern.replace( "d", "dd" );
             if( !pattern.contains( "MM" ) ) {
                pattern = pattern.replace( "M", "MM" );
             simpleDateFormat = new SimpleDateFormat( pattern );
             return simpleDateFormat.format( dateObject );
          return null;
       }

  • Has anyone had issues with Administration\Data Import/Export\Data Import???

    Has anyone had issues with Administration\Data Import/Export\Data Import???
    I have a client who has recently upgraded from V2007 to V8.81. They were succesfuly  using this standard function to import supplier prices to their master price list, but now it has failed?
    I have looked at the file they are importing and it appears to be fine.
    On closer inspection, it did contain approx 46,000 entries, so I took the first 1,000 and created a test file, which imported fine.
    The only issue I found was Speed, with the test file of 1,000 records taking about 30 Mins to import. This appeared to get slower and slower the further through the file it got!
    Based on this, I have estimated that the whole file would takle about 13 hours to import. The client say that when they used to run it on version 2007 it was far quicker?
    In practice, it does appear to run, but the speed is the issue. Having said this, I set the whole file to run last night (over night)and this morning it had appeared to hang after about 2,307 rows, with nothing else being updated.
    Has anyone any ideas or is aware of performance issues like this?
    Thanks,
    Ian

    Always an option, but would you give your clients access to this tool?
    Not sure really.
    I have uploaded a copy of their database onto my test system and run the same routine. Its equally as SLOW
    I can't gauage if its an issue with 8.81 that 2007 didn't have, as I only have the client's word on it, however I have no reason to disbelieve them.
    Kind regards,
    Ian

  • How to fetch data based on this selection screen

    Hi Friends:
       I've a selection screen which contains these 3 fields:
    company code (t001-bukrs)
    material division (mara-spart)
    posting date  (bkpf-budat)
    based on the above fields, I've to fetch the following:
    ekpo-bukrs
    mara-spart
    mseg-werks
    mseg-lgort
    bseg-hkont
    bseg-kostl
    bseg-hkont
    skat-txt50
    mseg-mblnr
    mseg-zeile
    bseg-belnr
    bkpf-bktxt
    mseg-insmk
    bkpf-monat
    bkpf-budat
    mseg-bwart
    mbew-matnr
    makt-maktx
    mseg-menge
    mseg-meins
    mbew-stprs
    mseg-dmbtr
    bseg-pswsl
    ausp-atwrt
    mara-matkl
    mara-mtart
    mbew-bklas
    mbew-bwtar
    mkpf-vgart
    mcha-charg
    mseg-ebeln
    aufk-aufnr
    mseg-ummat
    vbak-vbeln
    likp-vbeln
    bkpf-usnam
    Please help me with the logic . I want to ask that in which order I should start fetching data.How to relate it from selection screen. Which table I should fetch first based on the selection screen.how to relate mseg/bseg/mara/mbew/vbak/bkpf  etc.
    Please help.
    Thanks for your time.

    Hi,
    I dont think you need EKPO to fetch your bukrs. It is available in BKPF too.
    Use inner join to join MKPF, BKPF, MAKT, fetch all the related entreis.
    Use Inner join on MBEW, MCHA for all entries from above query.
    use inner join on AUSP for all entries from above query.
    Use may use separate queries or inner joins for LIKP and VBAK with for all entries.
    Use separate for all entries for BSEG and MSEG. Do not use any JOIN on BSEG as it is a pooled table.
    As per the need you may change the queries..
    Regards,
    Subramanian

  • Issue with 2LIS_02_SCL Data source

    Hi Everybody,
    I am facing the below 2 issues with 2lis_02_scl data source,
    1) This is fetching only the records  ETENR (Delivery Schedule Line Counter) value with ' 1 ', It is ignoring others ex:2,3 and 4. Hence Data is not reconciling with ECC system.
    2) The standard field GLMNG is not getting any data, Data was existed in table(EKET) level. So i have written the code and data is coming now. But the problem is, This is not considering the ROCANCEL indicator it seems. All the other key figures values are coming in with Negative sign When ROCANCEL Value is ' X ' or ' R ', But this field is getting all the positive values irrespective of ROCANCEL indicator. Hence showing the incorrect values compared to the ECC.
    Can anybody help me on this,
    Regards,
    Gopinath

    Hi Gopinath:
       Have you already applied any SAP Note to solve this problem?
    Please check if the SAP Note below is applicable to your system.
    668177 - "LIS BW: wrong quantity for documents with invoice plan"
    Regards,
    Francisco Milán.

  • I am having a issue with getting data useage alerts for my iphone 4s

    I am having a issue with getting data useage alerts for my iphone 4s from AT&T.  I do not download anything huge at all.
    I looked into it and figured out that the phone dials out nightly at 12:29am every night.   I went into my settings and went to general..about..diagnostics and useage..then diagnostics and useage data to see this.  I then clicked don't send...but I am still getting useage alerts.  Can anyone help me please...
    Thanks

    Honestly, from reading the thread linked, they all come off as a bunch of whiney people that cannot be bothered to help themselves.
    Little to nothing in that thread indicates an issue beyond inept consumers.  Yes, I read several pages on the incessant gripes.  Very few made any actual attempts to troubleshoot issues before whining about the "Apple issue" and those that did actual troubleshooting got their issues resolved.
    So no, Apple has nothing to fix beyond a few specific devices that are experiencing hardware issues.
    If you have actually put forth effort and done the basic troubleshooting, take the device to Apple for evaluation and possible replacement.  Whining will get nothing accomplished.

  • Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Our software vendor tells to use FF 3.5.1. because of some printer issues with their web based program. How safe is it to work with FF 3.5.1 in 2012?

    Thanks for the reply. I'll have a look at your solution.

  • I've to extract the data based on the sysdate...like today dd is 11,

    BM_PERF is the table name and
    BM_PERF_YR,BM_PERF_MONTH,BM_NOP_CT_1........BM_NOP_CT_31 are the column names.
    I've to extract the data based on the sysdate...like today dd is 11
    so i've to get data from BM_NOP_CT_11 and the column names changes dynamically based on the sysdate. don't use any procedures and functions.

    You could always pivot it into a more convenient form for querying:
    WITH t1 AS
         ( SELECT 2008 AS yr, 4 AS mnth
                , 20 AS dy1
                , 10 AS dy2
                , 15 AS dy3
                , 1  AS dy4
                , 17 AS dy5
                , 99 AS dy6
                , 55 AS dy7
                , 45 AS dy8
                , 33 AS dy9
                , 22 AS dy10
                , 74 AS dy11
                , 35 AS dy12
                , 62 AS dy13
                , 24 AS dy14
                , 85 AS dy15
           FROM dual )
       , t2 AS
         ( SELECT yr
                , mnth
                , sys.DBMS_DEBUG_VC2COLL
                  (dy1,dy2,dy3,dy4,dy5,dy6,dy7,dy8,dy9,dy10,dy11,dy12,dy13,dy14,dy15)
                  AS day_data
           FROM   t1 )
    SELECT t2.yr, t2.mnth, sys_op_ceg(t2.day_data,5) day_value
    FROM   t2;
            YR       MNTH DAY_VALUE
          2008          4 17
    1 row selected.Note that SYS_OP_CEG (first discovered by Padders) is undocumented and unsupported - for production code you'd need to pick the collection row using a WHERE clause, and for that you'd need a custom object and collection type with an attribute to hold the day number.
    Message was edited by:
    William Robertson
    ...like this:
    CREATE TYPE id_value_ot AS OBJECT
    ( id INTEGER, val NUMBER );
    CREATE TYPE id_value_tt AS TABLE OF id_value_ot ;
    WITH t1 AS
         ( SELECT 2008 AS yr, 4 AS mnth
                , 20 AS dy1
                , 10 AS dy2
                , 15 AS dy3
                , 1  AS dy4
                , 17 AS dy5
                , 99 AS dy6
                , 55 AS dy7
                , 45 AS dy8
                , 33 AS dy9
                , 22 AS dy10
                , 74 AS dy11
                , 35 AS dy12
                , 62 AS dy13
                , 24 AS dy14
                , 85 AS dy15
           FROM dual )
       , t2 AS
         ( SELECT yr
                , mnth
                , id_value_tt
                  ( id_value_ot(1,dy1)
                  , id_value_ot(2,dy2)
                  , id_value_ot(3,dy3)
                  , id_value_ot(4,dy4)
                  , id_value_ot(5,dy5)
                  , id_value_ot(6,dy6)
                  , id_value_ot(7,dy7)
                  , id_value_ot(8,dy8)
                  , id_value_ot(9,dy9)
                  , id_value_ot(10,dy10)
                  , id_value_ot(11,dy11)
                  , id_value_ot(12,dy12)
                  , id_value_ot(13,dy13)
                  , id_value_ot(14,dy14)
                  , id_value_ot(15,dy15) )
                  AS day_data
           FROM   t1 )
    SELECT yr, mnth, dd.val
    FROM   t2, TABLE(t2.day_data) dd
    WHERE  dd.id = 5;
            YR       MNTH        VAL
          2008          4         17
    1 row selected.

  • CVC creation - Strange issue with Master data table of 9AMATNR

    Hi Experts,
    We have encountered a strange issue with Master data table (/BI0/9APMATNR) of info object 9AMATNR.
    We have a BADI implemented for checking the valid Characteristic before creation of the CVC using transaction /SAPAPO/MC62. This BADI puts a select on master data tab of material /BI0/9APMATNR and returns no value. But the material actually exists in the table (checked through SE16).
    Now we go inside the info object 9AMATNR and go to the Master data Tab. There we go inside the master table
    /BI0/9APMATNR and activate that. After activating the table it is read by the select statement inside BADI (Strange) and allows the CVC to be created.
    Ideally it should not allow us to activate the SAP standard table /BI0/9APMATNR. I observed that in technical settings of this table it has single record buffering as switched on. (But as per my knowledge buffer gets refreshed every 2 to 4 mins and not in 2 days or something).
    Your expert comment is valuable to us. Thanks.
    Best Regards,
    Chandan Dubey

    Hi Chandan,
                 Try to use a WAIT statment with 5 seconds before your select statment.
    I'm not sure whether this will work. Anyway check it and let me know the result.
    Regards,
    Siva.

  • So, about a week ago my macbook pro started having lots of issues: wifi connectivity, slow performance, sound issues, spotlight wasn't working. After going through the issues with apple support, they decided the best course of action was to erase it...

    So, about a week ago my macbook pro started having lots of issues: wifi connectivity, slow performance, sound issues, spotlight wasn't working. After going through the issues with apple support, they decided the best course of action was to erase the hard drive and do a reinstall. Since I have a recent backup this seemed like a good enough option. They were kind enough to send me a copy of the snow leopard disk to do the install since we couldn't get it to complete through the disk utility. Not sure why, since it says we are fully connected, it just never completed.
    Anyway, so now that you have the background here is the new issue. The macbook pro keeps spitting out the disk I'm trying to install from. Disk utility and using the 'Startup Disk' function from the apple menu doesn't read the disk.
    Can anyone suggest a solution to this vexing problem?
    Thanks in advance.

    Jeremy.Laurin,
    have you tried agb76’s approach here?

  • Issues with our SSL connection to the Web dispatcher

    HI Alle,
    I having issues with our SSL connection to the Web dispatcher with SAP Web AS. Below is the error in the log files form dev_webdisp:
    Started service 80 for protocol HTTP on host "wdpeht1"(on all adapters) (processing timeout=120, keep_alive_timeout=30)
    [Thr 368] =================================================
    [Thr 368] = SSL Initialization  on  PC with Windows NT
    [Thr 368] =   (701_REL,Jan 28 2010,mt,ascii-uc,SAP_UC/size_t/void* = 16/64/64)
    [Thr 368]   profile param "ssl/ssl_lib" = "E:\usr\sap\WDP\W00\sec\sapcrypto.dll"
               resulting Filename = "E:\usr\sap\WDP\W00\sec\sapcrypto.dll"
    [Thr 368]   profile param "ssl/server_pse" = "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
               resulting Filename = "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    [Thr 368] =   found SAPCRYPTOLIB  5.5.5C pl29  (Jan 30 2010) MT-safe
    [Thr 368] =   current UserID: WDPEHT1\SAPServiceWDP
    [Thr 368] =   found SECUDIR environment variable
    [Thr 368] =   using SECUDIR=E:\usr\sap\WDP\W00\sec
    [Thr 368] * ERROR =>   secudessl_Create_SSL_CTX():  PSE "E:\usr\sap\WDP\W00\sec\SAPSSL.pse" not found! [ssslsecu.c   1354]
    [Thr 368] secudessl_Create_SSL_CTX: SSL_CTX_set_default_pse_by_name() failed --
      secude_error 4129 (0x00001021) = "The PSE does not exist"*
    [Thr 368] >> -
    Begin of Secude-SSL Errorstack -
    >>
    [Thr 368] ERROR in SSL_CTX_set_default_pse_by_name: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    ERROR in ssl_set_pse: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    ERROR in af_open: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    ERROR in secsw_open: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    ERROR in secsw_open_pse_or_extension: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    ERROR in sec_get_PSEtype: (4129/0x1021) The PSE does not exist : "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    [Thr 368] << -
    End of Secude-SSL Errorstack -
    [Thr 368] * ERROR => SapISSLAddCredential(): Error SSSLERR_PSE_ERROR trying to create SERVER Credential
            for "E:\usr\sap\WDP\W00\sec\SAPSSL.pse" [ssslxxi.c    2278]*
    [Thr 368]* ERROR => Initialization of SSL library failed -- NO SSL available!
    [Thr 368] =================================================
    [Thr 368] <<- ERROR: SapSSLInit(read_profile=1)==SSSLERR_PSE_ERROR*
    [Thr 368] *** ERROR => IcmAddService: SapSSLInit (rc=-40): SSSLERR_PSE_ERROR [icxxserv.c   319]
    [Thr 2128] IcmCreateWorkerThreads: created worker thread 0
    Regards

    Hi Olivier,
    Thanks for replay,
    The PSE does exist  in my SEC "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"  .
    I did tried Again I get  this error. I think I missing som parameter
    = SSL Initialization  on  PC with Windows NT
    [Thr 2292] =   (701_REL,Jan 28 2010,mt,ascii-uc,SAP_UC/size_t/void* = 16/64/64)
    [Thr 2292]   profile param "ssl/ssl_lib" = "E:\usr\sap\WDP\W00\sec\sapcrypto.dll"
               resulting Filename = "E:\usr\sap\WDP\W00\sec\sapcrypto.dll"
    [Thr 2292]   profile param "ssl/server_pse" = "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
               resulting Filename = "E:\usr\sap\WDP\W00\sec\SAPSSL.pse"
    [Thr 2292] =   found SAPCRYPTOLIB  5.5.5C pl29  (Jan 30 2010) MT-safe
    [Thr 2292] =   current UserID: WDPEHT1\SAPServiceWDP
    [Thr 2292] =   found SECUDIR environment variable
    [Thr 2292] =   using SECUDIR=E:\usr\sap\WDP\W00\sec
    [Thr 2292] -*ERROR =>   secudessl_Create_SSL_CTX():  PSE "E:\usr\sap\WDP\W00\sec\SAPSSL.pse" not found! [ssslsecu.c   1354]
    [Thr 2292] secudessl_Create_SSL_CTX: SSL_CTX_set_default_pse_by_name() failed --
      secude_error 1281 (0x00000501) = "open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned"*-
    [Thr 2292] >> -
    Begin of Secude-SSL Errorstack -
    >>
    [Thr 2292] -*ERROR in SSL_CTX_set_default_pse_by_name: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"*-
    -*ERROR in ssl_set_pse: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    ERROR in af_open: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"*-
    ERROR in secsw_open: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    ERROR in secsw_open_pse_or_extension: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    ERROR in sec_get_PSEtype: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    ERROR in aux_read_PSEFile: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    ERROR in aux_file2OctetString: (1281/0x0501) open("E:\usr\sap\WDP\W00\sec\SAPSSL.pse") returned : "Permission denied"
    [Thr 2292] << -
    End of Secude-SSL Errorstack -
    [Thr 2292] *** ERROR => SapISSLAddCredential(): Error SSSLERR_PSE_ERROR trying to create SERVER Credential
            for "E:\usr\sap\WDP\W00\sec\SAPSSL.pse" [ssslxxi.c    2278]
    [Thr 2292] *** ERROR => Initialization of SSL library failed -- NO SSL available!
    [Thr 2292] =================================================
    [Thr 2292] <<- ERROR: SapSSLInit(read_profile=1)==SSSLERR_PSE_ERROR
    [Thr 2292] *** ERROR => IcmAddService: SapSSLInit (rc=-40): SSSLERR_PSE_ERROR [icxxserv.c   319]
    Her is my profile parameter for https.
    h6*#Https parameters for Web dispatcher  E:\usr\sap\WDP\W00\sec
    #icm/server_port_0 = PROT=HTTPS,PORT=443$$
    DIR_INSTANCE = E:\usr\sap\WDP\W00\sec
    ssl/ssl_lib = E:\usr\sap\WDP\W00\sec\sapcrypto.dll
    ssl/server_pse = E:\usr\sap\WDP\W00\sec\SAPSSL.pse
    wdisp/ssl_cred = E:\usr\sap\WDP\W00\sec\SAPSSL.pse
    ssf/ssfapi_lib = E:\usr\sap\WDP\W00\sec\sapcrypto.dll
    sec/libsapsecu = E:\usr\sap\WDP\W00\sec\sapcrypto.dll
    ssf/name = SAPSECULIB
    wdisp/ssl_encrypt = 0
    icm/server_port_1=PROT=HTTPS, PORT=8400, TIMEOUT=120
    ###icm/server_port_1=PROT=HTTPS, PORT=44302, TIMEOUT=900 (old)
    ########icm/server_port_0 = PROT=HTTP,PORT=80, TIMEOUT=120
    icm/HTTPS/verify_client=0
    wdisp/add_client_protocol_header = true
    wdisp/auto_refresh = 120
    wdisp/max_servers = 100
    wdisp/ssl_auth= 0
    ms/https_port = 8400
    wdisp/HTTP/use_pool_for_new_conn=1
    wdisp/HTTPS/dest_logon_group = HTTPS
    #wdisp/server_info_protocol = https
    #wdisp/group_info_protocol = https
    #wdisp/url_map_protocol = https
    wdisp/ssl_ignore_host_mismatch = fals
    icm/HTTPS/forward_ccert_as_header = true
    icm/HTTPS/trust_client_with_issuer = CN = SAP CA,*
    icm/HTTPS/trust_client_with_subject = CN = sapwebdisp,*h6
    Regards

  • Having issues with Adobe Flash player hanging the browser

    Having issues with Adobe Flash player hanging the browser.
    WIN 7 enterprise 32 bit / Firefox 19.0.2 /
    Internal company website keeps giving attached screen shot error, and hangs the browser when error pops up.
    Steps taken:
    Uninstalled Adobe Flash player with the file “uninstall_flash_player.exe”
    Deleted provided directory in instructions
    "Copy and paste the following and click OK.
    C:\Windows\system32\Macromed\Flash        
    Delete all the files in this folder."
    Rebooted PC and reinstalled the flash player directly from “http://www.adobe.com/support/flashplayer/downloads.html”
    Re launched company website and received same error.
    Repeated above steps as well as uninstalled Firefox browser.  Even went so far as to remove all profile information to start fresh from all profiles on the laptop with the same results.
    Note: The web page will work without the flash player plugin, and my page doesn’t hang the browser. Required to open page in FireFox per company policy.

    I'm sorry you're encountering this.  Could you paste a few of the most recent report ID links displayed when you go to "about:crashes" in the Firefox address bar?
    As for workarounds, the first thing I'd suggest is trying our 11.7 labs release which you can get here: http://labs.adobe.com/downloads/flashplayer.html
    If that doesn't help, please try the troubleshooting steps outlined in this FAQ:
    How do I troubleshoot Flash Player's protected mode for Firefox?
    In particular, I'd recommend temporarily disabling protected mode (for troubleshooting purposes only) to see if that addresses the issue.
    Thanks,
    Chris

Maybe you are looking for

  • Attachments in pdf Portfolio

    I keep getting the error message:  Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened. I have a .exe file within a pdf portfolio.  I have already changed the Trust settings, but

  • Problems with adding a new device in Common Services

    Hello, I have the following problem: I need to add a new device in my Cisco Works. What I do is I go to Common Services >> Device and Credentials >> Device Management. There I click "Add" and I add the new device with the corresponding credential set

  • HOW TO SEND SAP INBOX TRANSACTION  AS A LINK TO OUTLOOK MAIL IN WORKFLOW

    Hi , I hav a reqirement following. Thing is I need to send SAP INBOX transation as  a link to outlook  mail... once clicking tat link user enter to SAP inbox for further option is task complete/edit.... Please tel the step achive this.... REPLAY ASAP

  • Windows 2012 RDS CALs - OLP NL downgrade to Windows 2003 TS CALs

    Hi, Hope someone can shed some light on this inquiry I plans to purchase the following:  2x Windows 2014 SQL STD 2 Core License OLP NL  30 Windows 2012 RDS CALs (User or Device) OLP NL            Breakdown example             Site A = 10             

  • Cannot Restore From Time Machine Backup - Account Exists Error

    I used Time Machine to perform a full backup of my machine, then performed a Delete and Install of Leopard. I am trying to use Migration Assistant to restore from my Time Machine backup, however it tells me my account name already exists. It will not