Report ora 9i problem

I have the problem on my report. I generated the report with 3 user parameters:
char_niin (initial value=ammotest),
char_job (initial value= shipment),
char_types (initial value= W).
Here is my SQL query:
Select * from table
where (ri =:char_ri1 or :char_ri1 is null)
and (job =:char_job or :char_job is null)
and (types =:char_types or :char_types is null)
and I also test this code:
Select * from table
where (ri =:char_ri1)
and (job =:char_job)
and (types =:char_types)
No record set had been returned when I ran the report. (note: the record set should return because I did test it in Toad. and it returns about 400 records.)
Please help.
Thanks,

Thank you so much for your help, this solusion work for my report, but then when I ran this report using form, it appeared blank:
Here is my code:
DECLARE
listid          PARAMLIST;
listname     VARCHAR2(20) := 'TRANS_PARAMS';
repid          REPORT_OBJECT;
reptx          VARCHAR2(100);
Report_Svr VARCHAR2(20);
Report_Status VARCHAR2(80);
BEGIN
-- delete parameter list if it currently exits.
listid := GET_PARAMETER_LIST(listname);
IF NOT ID_NULL(listid) THEN
     DESTROY_PARAMETER_LIST(listid);
END IF;
-- Create parameter list
     listid := CREATE_PARAMETER_LIST(listname);
-- Add parameters list
ADD_PARAMETER(listid,'char_ri1',TEXT_PARAMETER,'"'||:DB_TRANSACTION.IP_char_ri1||'"');                         
ADD_PARAMETER(listid,'char_job',TEXT_PARAMETER,'"'||:DB_TRANSACTION.IP_char_job||'"');
ADD_PARAMETER(listid,'char_types',TEXT_PARAMETER,'"'||:DB_TRANSACTION.IP_char_types||'"');
     -- Run report     
     repid := FIND_REPORT_OBJECT('R_transaction');          
     Report_Svr := 'reportserver';
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_FILENAME, 'C:\R_transaction.jsp');
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_DESTYPE, CACHE);
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_DESFORMAT,'PDF');
SET_REPORT_OBJECT_PROPERTY(RepId,REPORT_SERVER, Report_Svr);           
     reptx := RUN_REPORT_OBJECT(repid,listid);          
     Report_Status := REPORT_OBJECT_STATUS(reptx);
WHILE Report_Status IN ('RUNNING','OPENING_REPORT','ENQUEUED') LOOP
     Report_Status := REPORT_OBJECT_STATUS(reptx);
END LOOP;
IF Report_Status = 'FINISHED' then
     WEB.SHOW_DOCUMENT('http://www.test.com:8888/reports/rwservlet/getjobid' || substr(reptx, length(Report_Svr) + 2, length(reptx)) || '?server=' || Report_Svr,'_blank');
END IF;
END;
The parameter names in form is the same as in the parameter names in reports. But when I passed these 3 values to the report, it did not return the record set. What did I do wrong? Is it in my report or Is it in my form?
pls help,
Thank you to all of you,

Similar Messages

  • KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

    제품 : FIN_AP
    작성날짜 : 2002-12-02
    KR TAX LOCALIZATION REPORT 실행시의 ORA-20000, ORA-06512 ERROR MESSAGE
    ===================================================================
    PURPOSE
    Multi-Org 환경속에서 Kr Tax Localization Report 실행시의 ORA-20000, ORA-06512 Error Message 를 해결한다.
    Problem Description
    Kr Tax Localization의 Reports가 Error를 발생하고, View Log를 통해 확인한 Message가 다음과 같을 경우
    ORA-20000: APP-00001: Unable to find message:
    AR_NO_ROW_IN_SYSTEM_PARAMETERS
    ORA-06512: "APPS.ARP_STANDARD", 줄 999에서
    ORA-06512: "APPS.ARP_STANDARD", 줄 2246에서
    ORA-06512: "APPS.ARP_UTIL", 줄 29에서
    ORA-06512: "APPS.ARP_UTIL_TAX", 줄 111에서
    ORA-06512: "APPS.ARP_TAX_EXTRACT", 줄 6178에서
    ORA-06512: 줄 1에서
    Workaround
    Solution Description
    1) fnd_client_info.set_org_context(<org_id>);
    or
    2) v_org_id varchar2(10);
    v_org_id := fnd_profile.value('ORG_ID');
    fnd_client_info.set_org_context(v_org_id);
    .rdf 의 경우 : Before Report Trigger 에 추가
    .sql (Package Body, Procedure) 의 경우 : 각 Begin 절 이후
    Reference Documents
    -------------------

  • Listener suddenly looses connection to database reporting ORA-12518

    Hi all,
    This has been causing me endless problems for two days now and I desperately need to leave our database running before the weekend. I cloned our database and moved it to a new server following the instructions in this guide, after a quite a few attempts I finally managed to recreate the control files and startup the database but now it keeps crashing unexpectedly.
    The database starts up fine and both the listener and our application are able to communicate with it but after 10-15 minutes, the listener will report ORA-12518 and the only errors I can find are in the clsc.log and css.log, these state;
    2012-03-23 12:21:03.312: [ default][2004]ut_read_reg:2:ocr registry key SOFTWARE\Oracle\olr cannot be opened. error 2
    [CLSE][2004]clse_get_crs_home: Error retrieving OLR configuration [0] [Error opening olr registry key. The system cannot find the file specified.]
    and
    2012-03-23 14:36:37.523: [ GIPCNET][5384] gipcmodNetworkAsyncComplete: [network] error for endp 0C3BCA10, req 0C3BE270, type sgipcnreqtypeConnect (1), data 00000000, sret sgipcretConnectionRefused (28)
    2012-03-23 14:36:37.523: [ GIPCNET][5384] gipcmodNetworkAsyncComplete: slos op : sgipcwWait
    2012-03-23 14:36:37.523: [ GIPCNET][5384] gipcmodNetworkAsyncComplete: slos dep : The remote system refused the network connection. (1225)
    2012-03-23 14:36:37.523: [ GIPCNET][5384] gipcmodNetworkAsyncComplete: slos loc : GetQueueComp
    2012-03-23 14:36:37.523: [ GIPCNET][5384] gipcmodNetworkAsyncComplete: slos info: failed for over 0C3BDCC8
    2012-03-23 14:36:37.523: [ CSSCLNT][5384]clssscConnect: gipc request to clsc://(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=61100)) failed with 29 (00000013)
    2012-03-23 14:36:37.523: [ CSSCLNT][5384]clsssInitNative: connect to (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=61100)) failed, rc 29
    The content of my listener.ora is
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
         (ENVS="EXTPROC_DLLS=ANY")
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\Oracle\product\11.2.0\dbhome_1)
    (PROGRAM = extproc)
    (ENVS="EXTPROC_DLLS=ANY")
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
         (ADDRESS_LIST =
         (ADDRESS = (PROTOCOL = TCP)(HOST = 158.41.215.112)(PORT = 1521))
         (ADDRESS_LIST =
              (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    DEFAULT_SERVICE_LISTENER = (PVSSRDB)
    and my tnsnames.ora is
    PVSSRDB =
    (DESCRIPTION =
         (ENABLE=BROKEN)
         (ADDRESS = (PROTOCOL = TCP)(HOST = 158.41.215.112)(PORT = 1521))
         (CONNECT_DATA =
         (SERVICE_NAME = PVSSRDB)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
         (SID = PLSExtProc)
         (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    I would appreciate any advice you can offer on this issue...
    Edited by: JonathanR on 23-Mar-2012 07:53

    ocr registry key SOFTWARE\Oracle\olr cannot be openedDoesn't appear to be an XE install, just judging from your OH path but perhaps we can help anyways. And looks like CRS, cluster services, I don't have much practice on using that feature.
    Wondering about the localhost:port at 127.0.0.1:61100 entry in listener.log, if you have multiple NICs or multiple ethernet interfaces set up, it might be trying to talk on the wrong interface. Verify the IP address. Which OS? Win7? XP? Server 2008? 2008R2?
    Please post your ifconfig output, maybe there's a VPN adapter or another interface getting in the way.
    $ ipconfig /all
    ... Ethernet adapter Local Area Connection: ...
    ... IP Address ... : 158.41.215.112
    $ hostname
    ... -> <hostname>
    $ nslookup 158.41.215.112
    ... -> hostname[.domain?]
    $ nslookup <hostname>
    ... ->158.41.215.112 (?)
    $ nslookup <hostname>.<domainname>
    ... -> 158.41.215.112 (?) An ora-12518 usually indicates a resource problem- low memory, process unable to start, something along those lines. How large is your SGA+PGA, and how much physical memory, and pagefile size, on the host?
    Edited by: clcarter on Mar 23, 2012 12:25 PM
    add -12518 note

  • Report painter performance problem...

    I have a client which runs a report group consists of 14 reports... When we  run this program... It takes about 20 minutes to get results... I was assigned to optimize this report...
    This is what I've done so far
    (this is a SAP generated program)...
    1. I've checked the tables that the program are using... (a customized table with more than 20,000 entries and many others)
    2. I've created secondary indexes  to the main customized table with (20,000) entries - It improves the performance a bit(results about 18 minutes)...
    3. I divided the report group by 4... 3 reports each report group... It greatly improves the performance... (but this is not what the client wants)...
    4. I've read an article about report group performance that it is a bug. 
    (sap support recognized the fact that we are dealing with a bug in the sap standard functionality)
    http://it.toolbox.com/blogs/sap-on-db2/sap-report-painter-performance-problem-26000
    Anyone have the same problem as mine?
    Edited by: christopher mancuyas on Sep 8, 2008 9:32 AM
    Edited by: christopher mancuyas on Sep 9, 2008 5:39 AM

    Report painter/Writer always creates a prerformance issue.i never preffred them since i have a option with Zreport
    now you can do only one thing put more checks on selection-screen for filtering the data.i think thats the only way.
    Amit.

  • Report query parsing problem

    I didn't find any report of this problem...
    Using APEX 3.0.1.00.07, I have a report of type "SQL Query (PL/SQL function body returning SQL query)" with the "Use Generic Column Names (parse query at runtime only)" radio button selected.
    When the region source contains the string "ORDER BY" in any form that I've tried (even in a comment), attempting to save the region fails with "Your query can't include an "ORDER BY" clause when having column heading sorting enabled."
    I do indeed have column sorting enabled on certain columns, but I don't see how that is relevant under these circumstances since the query produced at runtime does not have an ORDER BY clause.
    Am I overlooking something or is this a parsing problem?
    Rodney

    Rodney,
    It's just checking for order by being included in your query, and if so and you have column heading sorting enabled, it's raising this error because you can't have both (even if it's commented out).
    Regards,
    Marc

  • How do I report a security problem to Firefox?

    Here's the problem: <br />
    Wednesday morning my Mac at home got infected by malware which I believe is usually called the "Google redirect virus". My Mac at home has been upgraded to OSX 10.6.7 and I believe I was using Firefox 3.6.13 (it automatically upgraded tonight). I haven't been able to find any useful information on line about this malware. <br />
    The behavior after infection was that every time I tried to use Google my request would get redirected. If I entered www.google.com in the address bar, the URL would get changed to www.google.com/FuneralHomes/<something> and the browser would try to go there and a "Under Construction" error message or a no-such-page message would be returned. This started happening after I did a Google search and was checking various links in Firefox, but once it started in Firefox I got the same behavior in Safari even without using Safari to look at any links. And it continued to happen in Safari even after I did a "Reset Safari..." <br />
    When I got infected I was using a non-adminstrator account and I was not asked to download anything nor was I prompted for a password. <br />
    I searched on "Google redirect Mac virus" using my (so far) untouched work computer and found several suggestions but no solutions. Apparently this is a PC problem that's been around a few years, but there were some Mac reports from last year. So last night I checked the DNS addresses in my
    Network preferences, looked at /etc/hosts, and removed the only plug-in from the Library:Internet Plug-ins of the infected account, even though it was a Picasa plug-in that predated this infection. None of those seemed to be the problem. I also scanned my disk with an up-to-date "Norton AntiVirus" which
    I got from work some time ago, but it found no viruses. <br />
    What really puzzles me is that the problem gradually went away while I was checking it last night. At first, when I entered www.google.com the browser would still show the redirected address in the prompt that comes up and it had the Legacy.com logo on the left instead of the Google one but it would actually go to the Google website (unless I'm being spoofed). Then at a later attempt, only the wrong logo persisted. Then at an even later attempt the logo got fixed and everything looked fine and appeared to behave correctly. <br />
    Frankly, that's a little scary. It's as if a really smart trojan got
    installed and was covering its tracks while it set up a man-in-the-middle attack (please advise if I'm misusing the jargon). If I'm being too paranoid, great, but I'd still like to know how such behavior could be induced on my machine just by linking to a website. Can anyone help?
    ''moderator- fixed the leading space formatting errors in this posting''

    Thanks, the-edmeister, but the only relevant post I found was from GB Colburn on bleepingcomputer.com, wherein he reported a similar problem about a year ago. I've found a few similar threads in the last year or so (by searching "Google redirect mac virus" in Google) but they are all about the same: someone reports the problem, responders have various random suggestions, the problem seems to go away by itself (at least sometimes), and there's nothing conclusive either good or bad.
    Without myself being as knowledgeable as GB Colburn, it doesn't look to me like the problem is in the DNS system or the router. It acts more like some malware in the automatic completion in the address bar of the browser or maybe in the history system, but I can't figure out how an infection in one browser could affect another browser. And I *really* can't figure out how it could be self-healing.
    It's really frustrating that none of the major parties involved in this—Firefox, Google, Safari (Apple), Verizon (my internet provider)—even have a process for reporting a security issue. At least not one that I, an ordinary semi-naive user, can find.

  • Report design Grouping problem

    I'm currently designing a report, something like an invoice. The invoice number is usually on the page header. But now i want to create a report to list down all the invoice numbers in the 'details' but when i drag the 'invoice number' data to 'details'
    it only show 1 row of numbers, wheareas the data has few rows of it. How can i make it view all my numbers? 

    Hi Eugene,
    Thank you for posting in MSDN forum.
    Since this forum is discuss the VS test issue, so
    I’m afraid that it is not the correct forum for this issue.
    As you said that the report design grouping problem, I suggest you could try to consult this issue directly to the VS Report Controls forum:
    https://social.msdn.microsoft.com/Forums/en-US/home?forum=vsreportcontrols , maybe you will get better support.
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Ora-00600 problem with the kodpunp1 and kope2upic954 arguments

    hi everybody,
    i have a problem with ora-00600 error on a oracle 8.1.7.0.0 database on winxp.
    i've read about many ora-00600 problems but only few were with kodpunp1 and kope2upic954 arguments.
    In my trc files i found something like this:
    *** SESSION ID:(29.2808) 2006-02-08 11:05:33.177
    *** 2006-02-08 11:05:33.177
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
    Current SQL statement for this session:
    call p$insert_rules_details(:1 , :2 , :3, :4)
    *** 2006-02-08 11:06:48.400
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [kodpunp1], [], [], [], [], [], [], []
    ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
    Current SQL statement for this session:
    call p$insert_rules_details(:1 , :2 , :3, :4)
    " so this is happenning when calling this procedure (p$insert_rules_details ...this is my procedure, not some procedure owned by sys).
    if anyone can help me, pls reply. i've heard replies like: call oracle support, put a tar on metalink ..... i don't have metalink support so i appreciate real help ;)
    what to do for avoiding/fixing this error?
    tx

    in addtion, this procedure p$insert_rules_details does some inserts into 3 tables from my schema. The problem might be from the usage of an num_array in this procedure declared as table of number. When number of elements from this num_array excels 4096, then the procedure generates errors.....i believe, not very sure about that. Can that be true?
    by

  • SAP NetWeaver Portal Crystal Reports PDF Export Problem

    Hallo all,
    We are working with BO Edge XI 3.1 with integration on SAP Netweaver Portal. The problem is that integrated in SAP Portal CR reports cannot be exported to PDF or printed out.
    I am using an URL iview with the parameter sOutputFormat=P to run the report.
    When I want to print out the report I get the warning message from Internet Explorer "The download of files from this page is for security reasons blocked. Click here..." --> Download the file. By clicking on the u201CDownload this fileu201D the report starts to run again. PDF export doesnu2019t happen.
    Did somebody have the same problem?
    Thanks a lot in advance!

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Crystal Reports PDF Export problem

    Hi I'm using Crystal 8.5 for my reports in VB 6.0. We have intrepret as RTF in the report. Now when we export this report to PDF the nested bullets loose formatting. All bullets show up at the same level. Any idea how to fix this?
    Thanks
    Sudha

    Hello Ingo,
    thanks a lot for Your help. I have already talked to my IT department and they are looking for the solution of this problem, too.
    Is there a documentation  about necessary settings in the browser to work with SAP NetWeaver Portal and Crystal reports?
    The problem is that on some clients the PDF export is working and on another clients not. The settings of IE seem to be equal.
    Regards,
    Katharina

  • Ora-01000 problem not resolve with other posts

    I've the ora-01000 problem which has been argued in other posts but it persist on me.
    I'm using JDK 1.3 and Oracle 8i with classes12_01.zip file.
    I've been looking at v$open_cursor to see how many cursors where open and even if I put
    rs.close(); rs=null;
    stmt.close(); stmt=null;
    it still doesn't work.
    Any ideas?
    Thanks.

    Sorry. It do work. It was my fault.
    null

  • Oracle Report Server wierd problem

    Hi All,
    I am facing very wierd problem with oracle report server.
    I am using Oracle Report Server 10g R1. The problem I am facing is as under:
    There is custom parameter form where user enters report filter criteria and press a button to create the report.
    The problem is that report is giving output some times and sometimes it gives no output at all. Both the times, the parameters passed by user are same. The report executions are done for both runs one after other. We have tried to look in report server trace file but could not find anything. When report server fails to give any data in the report, at the same time, we have tried to execute the report query on SQL prompt and it did return data.
    Can any one give any hint where the problem could be ?
    Thanks,
    Ramchandra Jetwani

    Hi,
    When i used to get only one page the options like facing, continuous facing are disabled. And displays only single page.
    These options are enabled only when there are multiple pages in pdf.
    One more thing i found that it happens when I first view the report as pdf it displays
    all the pages, then i change the display format to csv and again when i change
    the format to pdf the problem starts.
    And when I will restart the report server service, it works fine again until i wont view it in CSV format.
    Message was edited by:
    Yogesh

  • Error report: ORA-06531: Reference to uninitialized collection

    I have Procedure like this
    declare
    CURSOR lcu_emp
      IS
        (SELECT *
        FROM
      emp);
    ln_count PLS_INTEGER := 1;
      TYPE emp_TBL_TYPE
    IS
      TABLE OF LCU_emp%ROWTYPE;
      LT_emp emp_TBL_TYPE;
    begin
    FOR Lr_EMP IN LCU_EMP
      LOOP
        ln_count             :=1;
    Lr_EMP.EMP_NO:='1234';  -- updating the loop variable ... just for eg its 1234
    --Transferring the loop variable to collection
    lt_PREV_ASSIGN(ln_count):= Lr_PREV_ASSIGN;   -- THis line its errorring it as Error report: ORA-06531: Reference to uninitialized collection
      END LOOP;
    FOR lr_emp IN lt_emp.FIRST..lt_emp.LAST
      LOOP
    -- printing records when  LT_emp (lr_emp ).emp_no = 1234;
    END LOOP;
    end;Please help how to assign cursor record to collection...
    Thanks
    Vinoth.

    The realtime procedure is below... i thought it will be easy for u guys to understand
    PROCEDURE MAIN(
        P_ERRBUFF OUT VARCHAR2,
        P_RETCODE OUT NUMBER,
        P_BUSINESS_GROUP_ID IN NUMBER,
        P_EFFECTIVE_DATE    IN VARCHAR2,
        p_debug_flag        IN VARCHAR2 )
    AS
      LN_ELEMENT_LINK_ID pay_element_links_f.element_link_id%TYPE;
      LN_INPUT_VALUE_ID1 pay_input_values_f.input_value_id%TYPE;
      LN_INPUT_VALUE_ID2 pay_input_values_f.input_value_id%TYPE;
      ld_effective_start_date pay_element_entries_f.effective_start_date%TYPE;
      LD_EFFECTIVE_END_DATE PAY_ELEMENT_ENTRIES_F.EFFECTIVE_END_DATE%TYPE;
      LN_ELEMENT_ENTRY_ID PAY_ELEMENT_ENTRIES_F.ELEMENT_ENTRY_ID%TYPE;
      ln_object_version_number pay_element_entries_f.object_version_number%TYPE;
      lc_create_warning BOOLEAN;
      CURSOR lcu_prev_assign
      IS
        (SELECT *
        FROM
          (SELECT P_PAAF.ASSIGNMENT_ID PREV_ASSIGNMENT_ID,
            C_PAAF.ASSIGNMENT_ID CURR_ASSIGNMENT_ID,
            PAP.ACCRUAL_PLAN_NAME ACCRUAL_PLAN_NAME,
            APPS.PER_UTILITY_FUNCTIONS.GET_NET_ACCRUAL ( P_PAAF.ASSIGNMENT_ID, P_PAAF.PAYROLL_ID , P_PAAF.BUSINESS_GROUP_ID, -1 , TRUNC(XPPOS.PREV_ACTUAL_TERMINATION_DATE) , PAP.ACCRUAL_PLAN_ID) NET_ACCRUAL,
            XPPOS.PERIOD_OF_SERVICE_ID,
            XPPOS.PERSON_ID,
            XPPOS.CURRENT_DATE_START ,
            XPPOS.PREVIOUS_DATE_START,
            XPPOS.CURR_ACTUAL_TERMINATION_DATE,
            XPPOS.PREV_ACTUAL_TERMINATION_DATE ,
            XPPOS.PREV_LSP_DATE PREV_LSP_DATE,
            P_PAAF.BUSINESS_GROUP_ID PREV_BG_ID ,
            c_paaf.business_group_id curr_bg_id ,
            'N' NEW_ASSIGNMENT_ELEIGIBLE ,
            NULL PTO_ELIGBLE_DATE,
            NULL status,
            NULL ERROR_MESSAGE,
            NULL PREV_ASS_ELEMENT_ENTRY_ID,
            null curr_ass_element_entry_id
          FROM
            (SELECT PERIOD_OF_SERVICE_ID,
              PERSON_ID,
              DATE_START CURRENT_DATE_START,
              LEAD(DATE_START,1,NULL) OVER(PARTITION BY PERSON_ID ORDER BY DMY_ORDER) PREVIOUS_DATE_START,
              ACTUAL_TERMINATION_DATE CURR_ACTUAL_TERMINATION_DATE,
              LEAD(ACTUAL_TERMINATION_DATE,1,NULL) OVER(PARTITION BY PERSON_ID ORDER BY DMY_ORDER) PREV_ACTUAL_TERMINATION_DATE,
              lead(last_standard_process_date ,1,NULL) over(PARTITION BY person_id ORDER BY DMY_ORDER) prev_lsp_date,
              row_number() over (PARTITION BY person_id ORDER BY date_start DESC) DMY_SLCT
            FROM
              (SELECT period_of_service_id ,
                PERSON_ID ,
                DATE_START,
                ACTUAL_TERMINATION_DATE,
                last_standard_process_date,
                COUNT(PERSON_ID) OVER (PARTITION BY PERSON_ID) "CNT",
                row_number() over (PARTITION BY person_id ORDER BY date_start DESC) "DMY_ORDER"
              FROM PER_PERIODS_OF_SERVICE PPOS
          WHERE CNT     >=2
          AND DMY_ORDER IN (1,2)
            ) XPPOS,
            PER_ALL_ASSIGNMENTS_F C_PAAF ,
            PER_ALL_ASSIGNMENTS_F P_PAAF,
            PAY_ELEMENT_ENTRIES_F P_PEEF,
            PAY_ACCRUAL_PLANS PAP,
            PER_PERSON_TYPE_USAGES_F P_PPTUF,
            PER_PERSON_TYPES P_PPT
          WHERE XPPOS.DMY_SLCT =1
          AND C_PAAF.PERSON_ID = XPPOS.PERSON_ID
          AND TRUNC(CURRENT_DATE_START) BETWEEN C_PAAF.EFFECTIVE_START_DATE AND C_PAAF.EFFECTIVE_END_DATE
          AND C_PAAF.PRIMARY_FLAG = 'Y'
          AND P_PAAF.PERSON_ID    = XPPOS.PERSON_ID
          AND TRUNC(prev_actual_termination_date) BETWEEN P_PAAF.EFFECTIVE_START_DATE AND P_PAAF.EFFECTIVE_END_DATE
          AND P_PAAF.PRIMARY_FLAG  = 'Y'
          AND P_PEEF.ASSIGNMENT_ID = P_PAAF.ASSIGNMENT_ID
          AND TRUNC(PREV_ACTUAL_TERMINATION_DATE) BETWEEN P_PEEF.EFFECTIVE_START_DATE AND P_PEEF.EFFECTIVE_END_DATE
          AND PAP.ACCRUAL_PLAN_ELEMENT_TYPE_ID = P_PEEF.ELEMENT_TYPE_ID
          AND C_PAAF.BUSINESS_GROUP_ID         = P_BUSINESS_GROUP_ID
          AND TRUNC(PREV_ACTUAL_TERMINATION_DATE) BETWEEN P_PPTUF.EFFECTIVE_START_DATE AND P_PPTUF.EFFECTIVE_END_DATE
          AND P_PPTUF.PERSON_ID                                                                                                                                                                       = P_PAAF.PERSON_ID
          AND P_PPTUF.PERSON_TYPE_ID                                                                                                                                                                  = P_PPT.PERSON_TYPE_ID
          AND P_PPT.SYSTEM_PERSON_TYPE                                                                                                                                                               IN ('EMP', 'EMP_APL')
          AND P_PAAF.EMPLOYMENT_CATEGORY                                                                                                                                                             IN ('LOCAL' , 'FR')
          AND C_PAAF.ASSIGNMENT_ID                                                                                                                                                                    = 83528
          AND APPS.PER_UTILITY_FUNCTIONS.GET_NET_ACCRUAL ( P_PAAF.ASSIGNMENT_ID, P_PAAF.PAYROLL_ID , P_PAAF.BUSINESS_GROUP_ID, -1 , TRUNC(XPPOS.PREV_ACTUAL_TERMINATION_DATE) , PAP.ACCRUAL_PLAN_ID) <> 0
          ORDER BY NEW_ASSIGNMENT_ELEIGIBLE
        CURSOR LCU_PTO_ELGIBLE(P_ASSIGNMENT_ID NUMBER , P_PLAN_NAME VARCHAR2 , P_EFF_DATE DATE)
        IS
          (SELECT MIN(peef.EFFECTIVE_START_DATE) pto_eligble_date
          FROM PAY_ELEMENT_ENTRIES_F PEEF,
            PAY_ELEMENT_TYPES_F PETF
          WHERE PEEF.ASSIGNMENT_ID = P_ASSIGNMENT_ID
          AND PETF.element_NAME    = P_PLAN_NAME
          AND TRUNC(p_eff_date) BETWEEN petf.effective_start_date AND petf.effective_end_date
        CURSOR LCU_ELEMENT_LINK(p_plan_name VARCHAR2,p_eff_date DATE)
        IS
          (SELECT PIVF1.INPUT_VALUE_ID INPUT_VALUE_ID1,
            PIVF2.INPUT_VALUE_ID INPUT_VALUE_ID2,
            PELF.ELEMENT_LINK_ID
          FROM PAY_ELEMENT_LINKS_F PELF ,
            PAY_ELEMENT_TYPES_F PETF,
            pay_input_values_f pivf1 ,
            pay_input_values_f pivf2
          WHERE PELF.ELEMENT_TYPE_ID = PETF.ELEMENT_TYPE_ID
          AND PIVF1.ELEMENT_TYPE_ID  = PETF.ELEMENT_TYPE_ID
          AND PIVF2.ELEMENT_TYPE_ID  = PETF.ELEMENT_TYPE_ID
          AND TRUNC(P_EFF_DATE) BETWEEN PELF.EFFECTIVE_START_DATE AND PELF.EFFECTIVE_END_DATE
          AND TRUNC(P_EFF_DATE) BETWEEN PETF.EFFECTIVE_START_DATE AND PETF.EFFECTIVE_END_DATE
          AND TRUNC(P_EFF_DATE) BETWEEN PIVF1.EFFECTIVE_START_DATE AND PIVF1.EFFECTIVE_END_DATE
          AND TRUNC(p_eff_date) BETWEEN pivf2.effective_start_date AND pivf2.effective_end_date
          AND ELEMENT_NAME = p_plan_name
            ||' RollOver Adj'
          AND PIVF2.NAME             = 'Hours'
          AND PIVF1.NAME             = 'Effective Date'
          AND petf.BUSINESS_GROUP_ID = P_BUSINESS_GROUP_ID
        ln_count PLS_INTEGER := 1;
      TYPE PREV_ASSIGN_TBL_TYPE
    IS
      TABLE OF LCU_PREV_ASSIGN%ROWTYPE;
      LT_PREV_ASSIGN PREV_ASSIGN_TBL_TYPE;
      --LR_PREV_ASSIGN LCU_PREV_ASSIGN%ROWTYPE;
      --Lb_PREV_ASSIGN LCU_PREV_ASSIGN%ROWTYPE;
    BEGIN
      FOR Lr_PREV_ASSIGN IN LCU_PREV_ASSIGN
      LOOP
        ln_count             :=1;
        LN_ELEMENT_LINK_ID   := NULL;
        LN_INPUT_VALUE_ID1   := NULL;
        LN_INPUT_VALUE_ID2   := NULL;
        FOR LRU_ELEMENT_LINK IN LCU_ELEMENT_LINK (Lr_PREV_ASSIGN.ACCRUAL_PLAN_NAME,LR_PREV_ASSIGN.PREV_LSP_DATE )
        LOOP
          LN_ELEMENT_LINK_ID :=LRU_ELEMENT_LINK.ELEMENT_LINK_ID;
          LN_INPUT_VALUE_ID1 := LRU_ELEMENT_LINK.input_value_id1;
          LN_INPUT_VALUE_ID2 := LRU_ELEMENT_LINK.INPUT_VALUE_ID2;
          BEGIN
            apps.pay_element_entry_api.create_element_entry ( P_EFFECTIVE_DATE => LR_PREV_ASSIGN.PREV_LSP_DATE, P_BUSINESS_GROUP_ID => LR_PREV_ASSIGN.PREV_BG_ID ,p_assignment_id => Lr_PREV_ASSIGN.prev_assignment_id ,p_element_link_id => ln_element_link_id ,p_entry_type => 'E'
            --,p_creator_type => 'F'
            --,p_cost_allocation_keyflex_id => cost_keyflex_id
            --,p_date_earned => l_week_ending_date
            ,p_input_value_id1 => LN_INPUT_VALUE_ID1 ,p_input_value_id2 => LN_INPUT_VALUE_ID2
            --,p_input_value_id3 => l_inp_value3_id
            --,p_input_value_id4 => l_inp_value4_id
            ,P_ENTRY_VALUE1 => LR_PREV_ASSIGN.PREV_ACTUAL_TERMINATION_DATE ,p_entry_value2 => (-1)* LR_PREV_ASSIGN.net_accrual
            --,p_entry_value3 => l_constant_all_deductions
            --,p_entry_value4 => l_constant_no
            ,p_effective_start_date => ld_effective_start_date ,p_effective_end_date => ld_effective_end_date ,p_element_entry_id => ln_element_entry_id ,p_object_version_number => ln_object_version_number ,P_CREATE_WARNING => LC_CREATE_WARNING );
            LR_PREV_ASSIGN.STATUS                    :='P';
            Lr_PREV_ASSIGN.prev_ass_element_entry_id := ln_element_entry_id;
          EXCEPTION
          WHEN OTHERS THEN
            LR_PREV_ASSIGN.STATUS        :='E';
            Lr_PREV_ASSIGN.error_message := SQLERRM;
          END;
        END LOOP;
        FOR LR_PTO_ELGIBLE IN LCU_PTO_ELGIBLE(LR_PREV_ASSIGN.CURR_ASSIGNMENT_ID ,LR_PREV_ASSIGN.ACCRUAL_PLAN_NAME , LR_PREV_ASSIGN.CURRENT_DATE_START )
        LOOP
          LR_PREV_ASSIGN.NEW_ASSIGNMENT_ELEIGIBLE := 'Y';
          LR_PREV_ASSIGN.pto_eligble_date         := LR_PTO_ELGIBLE.pto_eligble_date ;
        END LOOP;
        IF(LR_PREV_ASSIGN.STATUS = 'P')
        then
        BEGIN
            apps.pay_element_entry_api.create_element_entry (
            P_EFFECTIVE_DATE => LR_PREV_ASSIGN.pto_eligble_date ,
            P_BUSINESS_GROUP_ID => LR_PREV_ASSIGN.CURR_BG_ID ,
            P_ASSIGNMENT_ID => LR_PREV_ASSIGN.CURR_ASSIGNMENT_ID ,
            P_ELEMENT_LINK_ID => LN_ELEMENT_LINK_ID ,
            p_entry_type => 'E'
            --,p_creator_type => 'F'
            --,p_cost_allocation_keyflex_id => cost_keyflex_id
            --,p_date_earned => l_week_ending_date
            ,P_INPUT_VALUE_ID1 => LN_INPUT_VALUE_ID1
            ,p_input_value_id2 => LN_INPUT_VALUE_ID2
            --,p_input_value_id3 => l_inp_value3_id
            --,p_input_value_id4 => l_inp_value4_id
            ,P_ENTRY_VALUE1 => LR_PREV_ASSIGN.PTO_ELIGBLE_DATE ,
            p_entry_value2 =>  LR_PREV_ASSIGN.net_accrual
            --,p_entry_value3 => l_constant_all_deductions
            --,p_entry_value4 => l_constant_no
            ,P_EFFECTIVE_START_DATE => LD_EFFECTIVE_START_DATE ,
            P_EFFECTIVE_END_DATE => LD_EFFECTIVE_END_DATE ,
            P_ELEMENT_ENTRY_ID => LN_ELEMENT_ENTRY_ID ,
            P_OBJECT_VERSION_NUMBER => LN_OBJECT_VERSION_NUMBER ,
            P_CREATE_WARNING => LC_CREATE_WARNING );
            LR_PREV_ASSIGN.STATUS                    :='S';
            LR_PREV_ASSIGN.CURR_ASS_ELEMENT_ENTRY_ID := LN_ELEMENT_ENTRY_ID;
            commit;
          EXCEPTION
          WHEN OTHERS THEN
          rollback;
            LR_PREV_ASSIGN.STATUS        :='E';
            LR_PREV_ASSIGN.ERROR_MESSAGE := SQLERRM;
          END;
          END IF;
        lt_PREV_ASSIGN(ln_count):= Lr_PREV_ASSIGN;
    ln_count:=ln_count+1;
      END LOOP;
      FOR lr_prev_assign IN lt_prev_assign.FIRST..lt_prev_assign.LAST
      LOOP
      IF(lt_prev_assign(lr_prev_assign).status = 'E')
      THEN
      FND_FILE.PUT_LINE(FND_FILE.LOG,lt_prev_assign(lr_prev_assign).error_message);
      end if;
        --print the error records here
      END LOOP;
    END MAIN;

  • Every time I start or close Firefox , Avira reports a malwaare problem.

    Every time I start or close Firefox , Avira reports a malware problem. "A Virus or unwanted program 'HTML/Frame.tzt.3' was found in file 'C:\Documents and settings \Diane.DESKTOP\...\0CAEBd04'. "
    I believe this began when I upgraded to Firefox 8.I have tried reinstalling Firefox 8, going back to Firefox 3.6, opening in safemode. Avira removes the file but warns again with each opening and closing. The warning does not appear with any other program or with IE. I am running XP.

    Do a malware check with a few malware scan programs. You need to use all programs because each detects different malware. Make sure that you update each program to get the latest version of the database.
    http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
    http://www.superantispyware.com/ - SuperAntispyware
    http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
    http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
    http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
    See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked

  • How to report Apple a problem in software by e-mail?

    How to report Apple a problem in software by e-mail?  For example I got a problem: new version of iTunes 11.1.1 is not running at all! (uninstalled old one first) When I try to launch itunes from my laptop desktop I get this box Win7 64. I don't want to open any system files, just wish that Apple will make a program which work. Apple please!
    "The file itunes Library.itl cannot be read because it was created by a newer version of itunes" and it not run at all!!

    Hi Nick.
    If you open a free Apple Developer account you can use the bug reporter tool. However if you want to file a bug report you need to tightly identify a reproducible fault, detail the conditions in which it arises and ideally supply any workaround you have discovered.
    In other circumstances iTunes Feedback is probably the appropriate channel. Common problems should gain attention.
    Apple don't provide free technical support for iTunes. The inital point of entry for online assistance is iTunes Support. If none of the online resources help then depending on the nature of the problem, or whether you qualify through a recent purchase, or you are prepared to pay, you may be able to make use of the Contact iTunes Support service. Failing that Apple Support Communities (here) is where users share solutions with each other.
    tt2

Maybe you are looking for

  • Portal application installation trouble

    Hi all, I need your help for this problem: Bea weblogic portal 10.3.2 doesn't install our portal application. Error messages are: ####<Jul 24, 2010 8:31:59 AM CEST> <Info> <Deployer> <..> <..> <[STANDBY] ExecuteThread: '6' for queue: 'weblogic.kernel

  • CMS Administrator Import Wizard Help

    Is there a way to grant privileges/permissions to a user so that the user can use the import wizard to migrate objects, LOV, reports with dynamic cascading parameters, etc? I am the administrator and one of our agencies is looking to use our enterpri

  • Error message 'Unable to connect to server'.

    When I launch the trial version of Muse CC I get the error message 'Unable to connect to server;. I'm definitely on-line, McAfee doesn't appear to be blocking any communication. Don't know what to do next. Any ideas?

  • Can't burn or import cds

    I have re-installed Itunes 4 times. I have also unblocked the filters thriugh the Registry, and still nothing.

  • Adding counter variable

    Hello all- I know this has been discussed numerous times but I can't seem to get it working! I'm trying to start simple first and here is what I am trying to accomplish at this time: I have three "rectangle" boxes (on the stage), each a symbol(names