Wrong payslip in case of seperation

Dear all ,
While running payroll for seperated employees the system is displaying wron information in payslip , like the amounts , tax etc. is coming right but the no. of paid days is wrong.
What could be the possible error.
Regards,
neha

Hi Friends,
I am  also facing the same problem,  In my scenario,
Iif the employee is a regular, it show the full days in salary slip(ie.30/31), but  when employee seprated from the orgnisation on suppose 15th of that month it is showing 13 days in salary slip. why this difference is coming.( salary is calculating correct).
Can you please give the solution.
Regards
Raj

Similar Messages

  • How to show no. of actual working days in Payslip in case of +ve time mgt

    Dear Experts,
    We have a requirement of showing no. of actual working days in payslip, which should be Calendar Days-(Paid+Unpaid absence). I created an w/t 1WRD for actual working days. Our paid absence w/t is 2006 and unpaid absence is 2005 copied from /845 and /846 respectively, both the absences are included in absence valuation table and working fine in that respect. But issue is i wrote a small PCR for calculating actual working days like below:
    ZWRD
         NUM=TKSOLL Set
         NUM-E 2005
         NUM-E 2006
        ADDWTE1WRD
    But still its fetching full working days i.e. calendar days 30 or 31 not deducting paid or unpaid absence for a month.
    Pls help, what else should i do.
    Regards
    Tan

    Sorry, i am unable to paste RT, but its exactly as below
    01, April, 2011
    1WRD Working days     30.00
    2006  Paid Absence       2.00                
    02, May, 2011
    1WRD Working days     31.00
    2005  Unpaid Absence   1.00                 
    regards
    Tan

  • Special characters converted in wrong in Upper case ?

    Hello,
    In material description , some characters such as µ when converted into upper case it will be 'M' in stead of 'µ' . This is in SAP ECC unicode . But it's ok in R/3.
    So in this case, Is there any solution for this problem ?
    Thanks

    MAKT-MAKTG : For upper case characters , When our client search for values when pressing F4 in material , If there's material description that contain 'u03BC', It will be displayed as 'M' in the text . This will happen in ECC 6 not in R/3 ( in R/3 two texts are the same) .
    The different behavior you're observing between what you call R/3 and ECC 6 is not due to the different releases, but based on the fact that one system is Unicode enabled and the other not. I suspect that you are most likely logging onto the system with a language that's linked to code page 1100 (in the non-Unicode release). Code page 1100 is similar to the Latin-1/ISO-8859-1 code page, which is designed to have most characters for western languages, but does not contain all Greek letters (SAP would most likely use code page 1700 if you set a greek locale).
    Again, it may sound silly, but you have to distinguish between the symbol µ (Unicode code point U+00B5) and the lower case greek letter u03BC (U03BC). SAP code page 1100 contains only the symbol µ (U00B5), which represents the prefix micro as for example in 1µm = 1 micro meter = 0.000001m. Neither the greek lower case letter u03BC (U+03BC) nor it's corresponding upper case letter exists in code page 1100.
    The Unicode standard defines the greek upper case letter u039C (U039C) as the upper case to use for both the symbol  µ (U00B5) and the lower case greek letter u03BC (U+03BC), see for example the Unicode mapping chart for Greek (so that's why you see a different behavior in ECC 6).
    I'm not sure why, but for some reason SAP found it worthwhile mentioning that they actually also convert the symbol  µ (U00B5) to u039C (U039C), though that essentially just means following Unicode standard. Anyhow, if you're interested in further details, check out OSS note 1078295 - Incomplete to upper cases in old code pages.

  • Ipod case becoming seperated between white and metal seam..what to do

    I have had a video ipod for 4 months now and am noticing that in the upper right corner by the headphone jack the case is loose and the whole upper and right half of the ipod comes loose. I can see inside the ipod and i am worried about further damage being caused because of this defect. What should my next course of action be? There is not an apple store within 100 miles and I obviously want to protect my 400 dollar investment

    Welcome to Apple Discussions!
    Why don't you give apple a call...
    Apple Phone Numbers
    They will say that you are out of your 90 days worth of free phone calls or whatever, but quickly say what is happening and if you should send it in.
    If they won't listen, then you may want to send it in...
    iPod Service
    btabz

  • BRF Expression OCE001 CASE get no Scheme

    Hello There,
    I'm using the workflow expression OCE001 (CASE).
    When using the case expression to allocate my scheme name literals with the when-values got from the another expression the system find no scheme.
    The when column I filled with literal which have the same spelling as the ZBOR2121 attribute I'm reading before. The result column is the schema name as literal.
    When debugging the process following went wrong:
    After the case expression in Method PROCESS_SPECIFIC in Class CL_VALUE_REQUEST_SIMPLE_BRF there is the coding line
    134
    if lv_error is inital
    access the desired field -
    Assign lp_structure->* TO <structure>.
    but the assigning of the field symbol runs to an error sy-subrc = 4
    Then in method if_event_brf~add_message
    I get the error message 162 that field symbol is not assigned.
    On the other hand the transaction SLG1 shows me warnings that my expressions are not translated.
    has anyone an idea what's wrong`?

    I have solved my the problem with a work around using another expression.
    For more details look at this threat
    Re: Error message while i create custom BRF with expression type 0CE001

  • CASE statement in PL/SQL

    Hi PL/SQL experts,
    I'm going a bit loopy here, so could someone please point out what I'm doing wrong with this case statement:
    Test procedure is:
    CREATE OR REPLACE procedure SCOTT.postcode_validate_2 (input_post_code VARCHAR2) as
    alphabet_string VARCHAR2(52) := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvxwyz';
    number_string VARCHAR2(10) := '012345789';
    last_part_postcode VARCHAR2(3) := NULL;
    BEGIN
    IF INSTR(input_post_code,' ') = 0
    THEN
    DBMS_OUTPUT.PUT_LINE('We need a space in the postcode please');
    GOTO exit;
    ELSIF LENGTH(SUBSTR(input_post_code,instr(input_post_code,' ')+1)) > 3
    THEN
    DBMS_OUTPUT.PUT_LINE('Last part of postcode can only be 3 characters');
    GOTO exit;
    ELSE
    last_part_postcode := SUBSTR(input_post_code,instr(input_post_code,' ')+1);
    END IF;
    CASE input_post_code
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 2
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A9')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A9');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA9')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA9');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A99')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A99');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A9A')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A9A');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 4
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0
    AND instr(number_string,substr(input_post_code,4,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA99')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA99');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 4
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,4,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA9A')
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA9A');
    -- GOTO exit;
    -- END IF;
    END;
    -- Check last part of format, should be AA9
    IF (instr(number_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('End part of the postcode is in the correct format, 9AA');
    ELSE
    DBMS_OUTPUT.PUT_LINE('End part of the postcode is in the wrong format!');
    END IF;
    <<exit>>
    DBMS_OUTPUT.PUT_LINE('Please try again');
    END;
    However, I'm getting the following error:
    LINE/COL ERROR
    37/6 PLS-00103: Encountered the symbol "WHEN" when expecting one of
    the following:
    := . ( % ;
    On a second note, can I not have the ELSE structure embedded within the case (currently commented out)?
    Thanks very much in advance.
    Dev

    Fixed code:
    CREATE OR REPLACE procedure postcode_validate_2 (input_post_code VARCHAR2) as
    alphabet_string VARCHAR2(52) := 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvxwyz';
    number_string VARCHAR2(10) := '012345789';
    last_part_postcode VARCHAR2(3) := NULL;
    BEGIN
    IF INSTR(input_post_code,' ') = 0
    THEN
    DBMS_OUTPUT.PUT_LINE('We need a space in the postcode please');
    GOTO exit;
    ELSIF LENGTH(SUBSTR(input_post_code,instr(input_post_code,' ')+1)) > 3
    THEN
    DBMS_OUTPUT.PUT_LINE('Last part of postcode can only be 3 characters');
    GOTO exit;
    ELSE
    last_part_postcode := SUBSTR(input_post_code,instr(input_post_code,' ')+1);
    END IF;
    CASE
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 2
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A9');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A9');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA9');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA9');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A99');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A99');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 3
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(number_string,substr(input_post_code,2,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format A9A');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format A9A');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 4
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0
    AND instr(number_string,substr(input_post_code,4,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA99');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA99');
    -- GOTO exit;
    -- END IF;
    WHEN (length(substr(input_post_code,1,instr(input_post_code,' ')-1)) = 4
    AND instr(alphabet_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(number_string,substr(input_post_code,3,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,4,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('We have a valid postcode in the format AA9A');
    -- ELSE
    -- DBMS_OUTPUT.PUT_LINE('Sorry but that is an incorrect postcode! Format AA9A');
    -- GOTO exit;
    -- END IF;
    END CASE;
    -- Check last part of format, should be AA9
    IF (instr(number_string,substr(input_post_code,1,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,2,1)) != 0
    AND instr(alphabet_string,substr(input_post_code,3,1)) != 0)
    THEN
    DBMS_OUTPUT.PUT_LINE('End part of the postcode is in the correct format, 9AA');
    ELSE
    DBMS_OUTPUT.PUT_LINE('End part of the postcode is in the wrong format!');
    END IF;
    <<exit>>
    DBMS_OUTPUT.PUT_LINE('Please try again');
    END;
    /As VG2 pointed out you were missing some semicolons.
    Also, CASE input_post_code was replaced with just CASE since you are doing a searched case.
    Also, END at the end of the case statement was replaced with END CASE.

  • RFC destination with CIF application case !

    Hi,
    Can someone explain the difference between
    Assigning a logical system to a RFC destination  and
    u201CAssigning a logical system to a RFC destination with CIF Application case" (there are 4 of them in all as i see - AC, RL, RQ, DG, AC- refers to availability check)
    e.g I have 2 entries in the system landscape settings.
    1)     Logical system u2013 RFC destination
    2)     Logical system- application case AC u2013 RFC destination.
    Even if I remove the 2nd entry, the relevant APO ATP FMu2019s are called  (just a negative testing to see what goes wrong without application case) but am clueless about this concept of CIF application case. Why such a provision to begin with. The context help says. some transaction need to have synchrious RFC and hence the need but i see the same even without his entry.
    Regards,
    Loknath

    Hello Loknath,
    If I understand your query correctly,
    1.Assign logical system to RFC destination is OK for you.
    2.Assigning the RFC destination to a specific CIF application is used in the following case,
    You have a system/service user set up for communicating with the R/3 system thru CIF & this is assigned to the RFC destination assigned to the point no:1
    & for debugging purposed you need a dialogue user, so you may assign this dialogue user to a different RFC destination & assign it here in the customizing (Assign RFC to application cases) to the application Debugging..so that while the particulat application is called (Debugging...CIF cockpit...etc)the corresponding settings from the different RFC destinations will be used.
    I could not understand your query, where u relate some ATP stuffs with this CIF topic...
    Thanks,
    Mahesh

  • Semi-automatic update/upgrade; is Arch wrong distro for these boxen?

    I wanted to post here a semi-automatic update/upgrade solution I--with a lot of help from someone more knowledgeable--came up with in case it might be of benefit to anyone else. It's been working pretty well for me over the course of the last couple of weeks and should aid me in becoming a better Archer. I also want to ask in this thread for confirmation on whether installing Arch on a couple of machines I have that see fairly intermittent use is inadvisable: if so, I'll look into installing some other distro. First the semi-automatic update solution.
    To begin with, what do I mean by "semi-automatic?" Mainly I mean something that's only partially automatic. See, I've come to understand that automating updates/upgrades is a bad idea©™. And I think I understand why. Still, I apparently lack the discipline to be a good Archer, upgrading/updating frequently so as to conform with the philosophy. So I thought I should use my computer to help me be more disciplined: that's partly what they're for, after all, isn't it?
    I decided I might make the computer help me be more disciplined, first of all, by making it issue reminders at frequent, regular intervals, that it is time to update/upgrade. Of course cron came immediatelty to mind as part of the solution, though I ended up using the remind program instead. In any case, it seemed like a solution that, not only would remind me at regular, frequent intervals would be desireable, but one that would at the same time initiate the process, would be even better. I thought it must be possible to, for example, cause a terminal to open with a message and corresponding menu that would say something like "System update/upgrade needed: proceed now? 1. Yes 2. No"
    This latter would be one of the elements that makes the solution semi-automatic (as opposed to automatic). Answering 2. in that terminal would cause the terminal to simply exit. Answering 1., on the other hand, runs the command sudo pacman -Syu. There is a further level of semi-automation at this stage: you are then prompted to enter the root password before pacman -Syu will run. So, no updating/upgrading happens without input at these two stages.
    I should mention as I wrap up this description of my solution that there is yet another important element to it that, while independent of it, is nonetheless related: I subscribed some weeks ago to the Arch news RSS feed. I check that daily, so an even further level of semi-automation is in play here.
    This seems to me like it will be a very good solution to bringing my behavior into better conformity with the Arch philosophy. It's worked well so far. That said, I'm certainly open to criticisms. I'm also very open to any improvements that might be suggested. Without further ado, here is the script I run every other day from the remind daemon:
    #!/bin/bash
    PS3='Begin full system upgrade? '
    options=("Yes" "No")
    select opt in "${options[@]}"
    do
    case $opt in
    "Yes")
    echo "Beginning full system upgrade..."
    sudo pacman -Syu
    exit
    "No")
    exit
    echo "Please choose the corresponding number"
    esac
    done
    Now, to my question about my other machines as possible Arch install targets. The above applies to the desktop machine in my apt. which is almost always powered on and connected to the 'net: what follows applies to two different machines.
    One is a laptop that I use primarily when I travel. It often sits powered off for 1-2 months between uses. The other is an alternate desktop machine in my apt. that is also infrequently used: essentially, when both the wife and I want to work on-line separately--which is not all that frequently (she prefers knitting to computing during her time at home)--it gets fired up. Again, it often sits for 1-2 months without being used.
    Now, it seems to me these machines are poor targets for an Arch install because they are far more frequently off-line than on-line, powered down than powered up. Thus they are very unlikely to be updated/upgraded on any kind of regular basis, and certainly never regularly and frequently, as seems to be recommended for Arch machines.
    Am I correct in assuming I should be looking for some other distro to install on these infrequently-used machines?
    Thanks,
    James
    Last edited by jamtat (2013-02-11 22:50:09)

    I like pacmatic (as suggested at https://wiki.archlinux.org/index.php/Pa … _pacmatic). What is supposed to be wrong with it?
    It doesn't ignore updates, by the way. It does two things. First, it checks the news and tells you about important news items as soon as you run e.g. pacmatic -Syu. Then it runs the upgrade in the normal way. For example, a news item today concerned lvm2, dev-mapper and linux being upgraded together. It gave me the news item. Then it did the usual paman upgrade routine and upgraded everything, including those packages. Second, every time you run it, it reminds you of any *.pacnew files you haven't dealt with and asks if you want to deal with them now. At least, it asks about most. It never mentions kdmrc.pacnew for some reason.
    It's just a wrapper for pacman. From the script:
    Pacmatic is a pacman wrapper that takes care of menial but critial tasks.
    These include
    Checking the archlinux.org news
    Summarizing the arch-general mailing list
    Reminding if it has been a while since the last sync
    Reporting pacnew files
    Editing pacnew files
    Personally, I've installed an alternative distro on machines which I'm not sure I will be using very regularly. (Also, I like having distinct distros just in case something goes wrong in one case - even if it is a bit of a faff sometimes.)
    Last edited by cfr (2013-02-13 01:49:24)

  • Case Statement Error - Need help

    What's wrong with this case statement
    Case When Opportunity."Probability %" = '0' then "- Product Revenue"."Product Revenue (000)" *( Opportunity."Probability %" / 100) else "- Product Revenue"."Product Revenue (000)" *( "Opportunity - Product"."Probability %" / 100) end if
    I am getting an error when I place this in a pivot table

    Disregard, it is working now

  • Case when question

    Hi All,
    Is it possible to use case-when statement in this SQL query?
    select SUB_ID, count(T_ID),sum(TIME)
    from TABLE_A
    where SUB_ID <> ' '
    and STARTDATE between :P6_DATE_FROM and :P6_DATE_TO
    CASE :P6_FILTER_BY
    WHEN '1' THEN 'and SUB_ID like :P6_FILTER_BY_TEXT || ''@%'' '
    WHEN '2' THEN 'having sum(TIME) >= :P6_FILTER_BY_TEXT '
    END
    group by SUB_ID
    as it is it seems not to work...
    thanks
    Liron

    Hi,
    Is it possible to use case-when statement in this SQL query?Yes
    First of all you are using the wrong syntax of CASE.
    The correct syntax is :
       CASE
            WHEN var1 = 1  THEN
                       'One'
            WHEN var 2 = 2 THEN
                 'Two'
         ELSE
            'Three'
         ENDTell us your requirement we might suggest something ?
    Regards

  • Case with select into and sub query

    hi im trying to use case and select with sebqueries, but my beginer like understanding of syntax fails me. can someone point out what im doing wrong in the case select below. im using select into, as i ultimatly need to load a ref cursor for use with crystal reports.
    thanks
    james
    ps if anyone is london based, and would like to spend a day or two teaching me how to be a bit better at PL/SQL (can aford to pay a little bit) please get in touch!!
    SELECT
    Case (select kind_code from event where                    
    event.event_id = event.container_event_id)     
    when 1094006
    then          promo_name     
    end
    into      result
    FROM promo,     promo_plan ,     event_promotion
    WHERE      promo.promo_id = promo_plan.promo_id
    AND     promo_plan.promo_plan_id = event_promotion.promo_plan_id
    AND     event_promotion.detail_id = '33532282'
    when blah then 'blah';

    Hello
    AH i see what you are driveing at, yes i am just using case slect to determin which >routine to run, as the name is stored in a diferent location depending on the event kind >code. are are you saying i need multiple selects within the case statment? one for each >type of kind code?Well it depends really. If the select
    select kind_code from event where
    event.event_id = event.container_event_idIs going to return more than one row for any given run, you're going to need to take a bit of a different approach. Is it the case that this query will return more than one row which would mean that you want value X and value Y for each row?
    Using the test data and everything from before:
    SQL> CREATE OR REPLACE PROCEDURE p_GetStuff(ac_Result   OUT sys_refcursor)
      2  IS
      3
      4  BEGIN
      5     /*
      6             This uses a cartesian product i.e. repeat every row in
      7             dt_test_data against every row in dt_test_event
      8     */
      9     OPEN Ac_Result FOR
    10     SELECT
    11             CASE dt_test_event.kind_code
    12             WHEN 1 THEN
    13                     dt_test_data.object_name
    14             WHEN 2 THEN
    15                     dt_test_data.object_type
    16             END
    17     FROM
    18             dt_test_data,
    19             dt_test_event;
    20
    21  END;
    22  /
    Procedure created.
    SQL> var x refcursor
    SQL> exec p_getstuff(:x)
    PL/SQL procedure successfully completed.
    SQL> print x
    CASEDT_TEST_EVENT.KIND_CODEWHEN1THENDT_TEST_DATA.OBJECT_NAMEWHEN2THENDT_TEST_DAT
    ABC
    ABC4
    AD1
    AD2
    ADHOC_CONTACT_LOG
    AK_CD_CLAIM_VALIDATION_SOURCE
    AK_CD_CLAIM_VALIDATION_TYPE
    AK_CLAIM_ACTION_ROWSOURCE
    APPROVAL_LIST_MEM_IE
    APPROVE_GRP_HIST_IE
    10 rows selected.
    SQL> insert into dt_test_event values(2);
    1 row created.
    SQL> exec p_getstuff(:x)
    PL/SQL procedure successfully completed.
    SQL> print x
    CASEDT_TEST_EVENT.KIND_CODEWHEN1THENDT_TEST_DATA.OBJECT_NAMEWHEN2THENDT_TEST_DAT
    ABC
    ABC4
    AD1
    AD2
    ADHOC_CONTACT_LOG
    AK_CD_CLAIM_VALIDATION_SOURCE
    AK_CD_CLAIM_VALIDATION_TYPE
    AK_CLAIM_ACTION_ROWSOURCE
    APPROVAL_LIST_MEM_IE
    APPROVE_GRP_HIST_IE
    TABLE
    CASEDT_TEST_EVENT.KIND_CODEWHEN1THENDT_TEST_DATA.OBJECT_NAMEWHEN2THENDT_TEST_DAT
    TABLE
    TABLE
    TABLE
    TABLE
    INDEX
    INDEX
    INDEX
    INDEX
    INDEX
    20 rows selected.Or an alternative to that would be, if you have a fixed number of event ids and they relate to a fixed number of attributes you could use something like:
    CREATE OR REPLACE PROCEDURE p_GetStuff3(ac_Result     OUT sys_refcursor)
    IS
    BEGIN
              The SUBSTR
              is just there to make sure the data fit on screen, my SQL*Plus
              is a bit weird!
         OPEN Ac_Result FOR
         SELECT
              SUBSTR(MAX(DECODE(dt_test_event.kind_code,1,dt_test_data.object_name,NULL)),1,30) attribute_1,
              SUBSTR(MAX(DECODE(dt_test_event.kind_code,2,dt_test_data.object_type,NULL)),1,30) attribute_2
         FROM
              dt_test_data,
              dt_test_event
         GROUP BY
              object_name;
    END;
    SQL> delete from dt_test_event where kind_code=2;
    1 row deleted.
    SQL> exec p_getstuff3(:x)
    PL/SQL procedure successfully completed.
    SQL> print x
    ATTRIBUTE_1                    ATTRIBUTE_2
    ABC
    ABC4
    AD1
    AD2
    ADHOC_CONTACT_LOG
    AK_CD_CLAIM_VALIDATION_SOURCE
    AK_CD_CLAIM_VALIDATION_TYPE
    AK_CLAIM_ACTION_ROWSOURCE
    APPROVAL_LIST_MEM_IE
    APPROVE_GRP_HIST_IE
    10 rows selected.
    SQL> insert into dt_test_event values(2);
    1 row created.
    SQL> exec p_getstuff3(:x)
    PL/SQL procedure successfully completed.
    SQL> print x
    ATTRIBUTE_1                    ATTRIBUTE_2
    ABC                            TABLE
    ABC4                           TABLE
    AD1                            TABLE
    AD2                            TABLE
    ADHOC_CONTACT_LOG              TABLE
    AK_CD_CLAIM_VALIDATION_SOURCE  INDEX
    AK_CD_CLAIM_VALIDATION_TYPE    INDEX
    AK_CLAIM_ACTION_ROWSOURCE      INDEX
    APPROVAL_LIST_MEM_IE           INDEX
    APPROVE_GRP_HIST_IE            INDEX
    10 rows selected.Message was edited by:
    david_tyler
    Oops, copy + pasted the wrong comments for the 2nd proc.

  • Case fans ? Air in or out (Case suggestions ?)

    Maybe this is a stupid question.
    But because of my high CPU temps i was beginning to think that maybe i had installed all my fans the wrong way 
    About case fans. Should they be installed so they draw cold air into the case or push hot air out ?
    I ask because i was in another Dansih forum where thay was talking about a new case with a 125cm (Big) slow fan in the side,
    and the guys said it should draw cold air into the case instead of pushing hot air out...  mmm
    Normally hot air should be pushed out, right ???  or
    Second. How can you if the fan blow or sucks air ?

    I have a windowed case, so when I see some dust in the window, I do open the case and clean everything that have dust, and this is every 2 weeks, or less... :D
    I understand that if you have overpressure inside the case and use filters with every fan, in the same period of time you will end with less dust inside than with underpressure, because the air will not enter through every hole of the case, but if you do not use filters (as I don't) the resulting dust in the case will be more or less the same.
    I don't like filters because they greatly reduce the airflow produced by the fans, so I prefer to clean the case more often.
    And about "getting as much hot air out of the box as possible", I have to say that I've tried with a big 38 x 120 mm rear exhaust fan of 103 CFM (the noise was unbereable !!) and the case temperature was the same as with the stock 25 x 120 mm fan that has much lower CFM, so every solution has its limits. I think that is very important to extract the hot air from the case, but nothing is more efficient than a direct and fresh airflow over the device to cool. I have 2 x 80 mm front fans that flows directly over my two hard drives, and they are currently at 29 and 24 ºC (the Samsung is amazingly cool), and even in summer the temperatures are barely higher.
    Anyway is very difficult to find the best setup with a given case/fans configuration. I have another 80m fan in the side window, and when I've inverted the airflow (stock was in exhaust mode) the processor temperature dropped 2 ºC, but in the same time the motherboard temperature unexpectedly raised 2 ºC. I leave the side fan flowing air inside the case, but I can't understand why the motherboard temperature is higher.

  • Yesterday, as today's deadline for filing tax returns approached, I was paralyzed by the inability to create new IRS PDF forms and to retrieve archived ones from a year ago. My computer went crazy. 24 hours later, I am still paralyzed. Can you help?

    My computer went crazy yesterday on two occasions involving PDF documents. One dealt with attachments to an email from a bona fide corporation. The other dealt with IRS PDF forms & schedules needed for today's submission.
    As both dealt with PDF and had nothing else in common, I suspected my PC had a virus. When I asked a local store technician, he agreed. I turned to Norton, which protects my PC from viruses, and after a few hours of really thorough searching, the computer was found to have no viruses.
    Before describing what I call "crazy" computer behavior, you need to know that I have long had IE8 as my default browser but a few weeks ago switched to Mozilla Firefox because IE8 had beome incompatible with some websites from which I get information.
    When I received the email from AT&T email service and clicked the first of four icons representing attachments, there was figuratively an explosion on my monitor: a series of new tabs, each called New Tab, burst onto the monitor--but no text or picture. The new tabs appeared faster than I coul kill them. I finally decided just to shut down the computer, hoping they would not reappear when I restarted. I was wrong. After 2 repeats, I decided to forget about the attachments and asked the sender to send them to me by regular mail.
    That was no solution for my IRS PDFs. I wanted to complete filling in the various forms and schedules that I had begun months ago so that I could mail them today to the IRS (without having to copy them all in ink). When I tried to open the first one, BOOM. The same thing happened: the blizzard of New Tabs atop blank pages; my IRS form or schedule did not show up. Did the same shutdown/restart routine with the same results.
    When I looked at the list of current forms that had to be completed, I noticed something very strange: the icons that began the listing of the documents' names were replaced one by one by Mozilla icons. When I moused over them, they said Firefox HTML. Why?
    Starting the day today, I had the same experience. What's more, when I started to retrieve 2012 IRS PDFs from a year ago, the same New Tab tabs appeared and had to be killed, and Mozilla icons replaced whatever icon was there before.
    Assuming that the problem arose with Adobe Reader's reading of the PDFs, I contacted Adobe but got no helpful phone number because PDFs are a free service and was directed to use this Forum to get help.
    What do I have to do to (a) read and use PDFs in the normal way and (b) remove the Mozilla icon from those that have appeared on icon documents. If Mozilla is the source of the problem, shall I go back to IE8? (In my 80s, I want eventually to replace my old computer but for the time being I must continue using it. It will not take an IE9. Anther possible default browser would be Google Chrome, but I have unfavorable impressions of it because of its intrusiveness, loading my PC with stuff I do not need.
    Can you help?

    The problem is absolutely not Reader. The problem is that FireFox has stepped in front of Reader and handles all the PDF stuff - wrongly in your case. FireFox is DESIGNED to take over PDF files. But it is not capable of doing IRS forms!
    To start with go back to IE for these forms. When you save them to disk DO NOT DOUBLE CLICK ON THEM until this is fixed. Just open the in the normal way - start Adobe Reader and use Open from the File menu.

  • Supplier Open Interface Errors

    I created an supplier interface in plsql. Want I want to do is kick off the following concurrent programs from pl/sql using fnd_request.submit_request
    Supplier Open Interface Import
    Supplier Sites Open Interface Import
    Now when I run the pl/sql without the call to the fnd_submit, then run the concurrent programs through the app in Payables Manager, it works fine. BUT when I add the fnd_submit call, it executes fine but there is a weird error dealing with reports. Now this seems like some kind of privilege thing maybe?
    Below is my call to FND_SUBMIT and also my initialize. Also is the error. Ideas on what is up?
    Maybe it is because the code is in a custom schema and not under apps??
    APPS.fnd_global.apps_initialize(user_id =>'0'
    ,resp_id =>'50517'
    ,resp_appl_id =>'200');
    v_header_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSUIMP');
    v_site_req := APPS.FND_REQUEST.submit_request( application => 'SQLAP',
    program => 'APXSSIMP');
    Payables: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    APXSSIMP module: Supplier Sites Open Interface Import
    Current system time is 24-MAR-2009 16:52:02
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    Enter Password:
    MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-1419: MSG-00001: After SRWINIT
    MSG-00002: After Get_Company_Name
    MSG-00003: After Get_NLS_Strings
    MSG-00004: After Importing Suppliers
    REP-1419: 'beforereport': PL/SQL program aborted.
    Report Builder: Release 10.1.2.2.0 - Production on Tue Mar 24 16:52:06 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program exited with status 1
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 370808.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 24-MAR-2009 16:52:07

    Hello Jason,
    We have done somewhat the same, I see you dont add any arguments in the submit request call.
    Maybe all below is already known, maybe it helps you to find just what is wrong in your case.
    We did it this way:
    l_id := fnd_request.submit_request( application => 'SQLAP'
    +, program => p_name+
    +, description => null+
    +, start_time => null+
    +, sub_request => null--fnd_global.conc_request_id+
    +, argument1 => 'APXSUIMP'+
    +, argument2 => 'ALL'+
    +, argument3 => 1000+
    +, argument4 => 'N'+
    +, argument5 => 'N'+
    +);+
    After this we immediately execute a commit (as this will trigger the request start).
    After that we also wait for the request to finish by doing the following:
    if fnd_concurrent.wait_for_request
    +( l_request_id+
    +, 2 --interval+
    +, 0 --max_wait+
    +, l_phase --phase+
    +, l_status --status+
    +, l_dev_phase --dev_phase+
    +, l_dev_status --dev_status+
    +, l_message )+
    then ...
    Hope this helps,
    Mark

  • Error while executing a procedure in pl/sql

    Hi,
    iam execvuting a procedure in pl/sql and i get the following error,
    proc Running: Wed Sep 7 06:13:20 IST 2005
    Table truncated.
    BEGIN <procedure_name> ; END;
    ERROR at line 1:
    ORA-01555: snapshot too old: rollback segment number 75 with name "RBS74" too
    small
    ORA-06512: at "<procedure_name>", line 104
    ORA-06512: at line 1
    could anyone explain what has gone wrong in this case???

    According to the documentation:
    ORA-01555: snapshot too old: rollback segment number string with name "string" too small
    Cause: Rollback records needed by a reader for consistent read are overwritten by other writers.
    Action: If in Automatic Undo Management mode, increase the setting of UNDO_RETENTION. Otherwise, use larger rollback segments.
    Error: ORA-01555: snapshot too old (rollback segment too small)
    Cause: This error can be caused by one of the problems, as described below.
    Action: The options to resolve this Oracle error are:
    This error can be the result of there being insufficient rollback segments.
    A query may not be able to create the snapshot because the rollback data is not available. This can happen when there are many transactions that are modifying data, and performing commits and rollbacks. Rollback data is overwritten when the rollback segments are too small for the size and number of changes that are being performed.
    To correct this problem, make more larger rollback segments available. Your rollback data for completed transactions will be kept longer.
    This error can be the result of programs not closing cursors after repeated FETCH and UPDATE statements.
    To correct this problem, make sure that you are closing cursors when you no longer require them.
    This error can occur if a FETCH is executed after a COMMIT is issued.
    The number of rollback records created since the last CLOSE of your cursor will fill the rollback segments and you will begin overwriting earlier records.

Maybe you are looking for