PL/PDF - Procedure test1 is executed but gives error

Hello All,
I have Oracle XE 10g with Oracle Apex and recently I installed PL/PDF in the same. I tried to execute the headerfooter procedure given in the installation guide. But it gives error ORA-20000: ERR-006 Procedure call error: xxfooter. How can I get the header and footer from this procedure headerfooter?
- create header footer procedure
CREATE OR REPLACE procedure headerfooter is
/* 7. Example: Header, Footer, number of pages */
l_blob blob;
begin
/* Initialize, without parameters means:
- page orientation: portrait
- unit: mm
- default page format: A4 */
plpdf.init;
/* Defines the page number alias.
Default: {nb} */
plpdf.nopAlias;
/*Sets the page header procedure name. The program name passed
as a parameter executes when the page header is created. */
plpdf.SetHeaderProcName(
p_proc_name => 'xheader', -- Page header procedure name: xheader
p_height => 10 -- Height of header section
/* Sets the page footer procedure name. The program name passed
as a parameter executes when the page footer is created. */
plpdf.SetFooterProcName(
p_proc_name => 'xfooter', --Page footer procedure name: xfooter
p_height => 10 --Height of footer section
/* Begin a new page, without parameters means:
- page orientation: default (portrait) */
plpdf.NewPage;
/* Sets the font and its properties */
plpdf.SetPrintFont(
p_family => 'Arial', -- Font family: Arial
p_style => null, -- Font style: regular (default)
p_size => 12 -- Font size: 12 pt
/* Draws a rectangle cell with text inside. */
plpdf.PrintCell(
p_w => 50, -- Rectangle width
p_h => 10, -- Rectangle heigth
p_txt => 'Page 1' -- Text in rectangle
/* Begin a new page, without parameters means:
- page orientation: default (portrait) */
plpdf.NewPage;
/* Draws a rectangle cell with text inside. */
plpdf.PrintCell(
p_w => 50, -- Rectangle width
p_h => 10, -- Rectangle heigth
p_txt => 'Page 2' -- Text in rectangle
/* Returns the generated PDF document.
The document is closed and then returned in the OUT parameter. */
plpdf.SendDoc(
p_blob => l_blob -- The generated document
/* Print it:*/
     owa_util.mime_header('application/pdf',false);
htp.p('Content-Length: ' || dbms_lob.getlength(l_blob));
owa_util.http_header_close;      
wpg_docload.download_file(l_blob);
end;
-Create footer procedure
CREATE OR REPLACE procedure xfooter is
begin
/* Sets the font and its properties */
plpdf.SetPrintFont(
p_family => 'Arial', -- Font family: Arial
p_style => 'I', -- Font style: Italic
p_size => 8 -- Font size: 8 pt
/* Print number of page */
/* Draws a rectangle cell with text inside. */
plpdf.PrintCell(
p_w => 0, -- Rectangle width
p_h => 10, -- Rectangle heigth
p_txt => to_char(plpdf.CurrentPageNumber) || '/{nb}', -- Text in rectangle
p_border => '0', -- Without frame
p_ln => '0', -- Cursor position after the cell is printed: Beside
p_align => 'C' -- Text alignment: Center
end;
Thanks.

Thanks for your reply,
Since the owner of header/footer procedures is different than plpdf, I should have given the grants to plpdf schema but unfortunately I missed. Thanks for the answer it worked. Instead of creating synonyms for the procedures in plpdf schema I am passing procedure name with qualifier, the name of its owner, to plpdf api (owner.procedure_name).

Similar Messages

  • When i run my executable it gives error 7

    when i run my executable it gives error 7
    and this is the error messege:
    Error 7 occurred at Invoke Node in PRC_Deploy.vi->Deploy Library.vi->Deploy SV2.vi->WSfrontpanel.vi
    and can any one tell me how to deploy the shared variable libraries on my executable file
    m.shair
    Mahmoud Alshair
    Intelligent Systems Integrator ( ISI )
    System Developer
    Solved!
    Go to Solution.

    Hi Mahmoud,
    What are you doing at the Invoke Node? Are you calling a vi? If you are check this KnowledgeBase.
    For deploying shared variables from your executable, check this KnowledgeBase.
    Regards,
    Hillary E
    National Instruments

  • Oracle ADF application run while debuging but gives error while running

    Hi,
    I created application in oracle ADF, which accesses database from SQL server 2008. I changed database names to different database having same tables. When I debug it by using breakpoint in EOIMPL class, it runs perfectly. But when run it by removing brakpoint it gives error (invalid object). Please Help.
    Thanks.

    can u paste the complete invalid objects error..
    I rember i have seen this case before which possibly got resolved by removing the system folder.. especially the systemfolder/o.j2ee/drs/ folder..
    may be some synching problem..

  • Long compiled and vaild package body executes but shows errors

    hello all,
    First of all sorry that i am posting such a big post with all the code here...
    I am new to debugging packegs,proc,fun..etc or as a matter of fact writing pl/sql...but here is the thing...the below package when execute it runs fine stating "PL/SQL procedure successfully completed" ...which says it has been compeleted fine....but the guy who executes its from the java side...said he is having problem...its give him some errors....see below
    here is the thing which i get when i execute the package.
    Edited by: S2K on Aug 8, 2009 11:27 AM

    The error: ORA-01422: exact fetch returns more than requested number of rows
    means that you have a implicit cursor in your code that is fetching more than one row, eg:
    declare
      num number;
    begin
      select 1 col1
      into   num
      from (select * from dual
            union all
            select * from dual);
    end;
    Error at line 1
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at line 4You need to find out what parameters the Java developer was passing through and work out which one of your implicit cursors is returning more than one row.
    It could be a data issue, or it could be that more than one row is expected for certain values and that this is ok. If it's the latter, then the code needs to be amended to cater for that situation. If it's the former, then the data needs correcting.

  • Code in before report getting executed but "Job error is: BIP job failed."

    Customer is executing a BIP job that fires a pl/sql procedure via before report trigger. Procedure is completing successfully. But the BIP report is not getting generated. ESS process ends in error with the following error:
    oracle.as.scheduler.ExecutionErrorException: ESS-07033 Job logic indicated a system error occurred while executing an asynchronous java job for request 604103. Job error is: BIP job failed.
         at oracle.as.scheduler.rp.AsyncFinalizeProcessor.processFinalizeRequest(AsyncFinalizeProcessor.java:131)
         at oracle.as.scheduler.rp.AsyncJavaSysExecWrapper.finalizeExecution(AsyncJavaSysExecWrapper.java:250)
         at oracle.as.scheduler.rp.EndpointProcessor.finalizeExecute(EndpointProcessor.java:1018)
         at oracle.as.scheduler.rp.EndpointProcessor.finalizeExecuteWrapper(EndpointProcessor.java:980)
         at oracle.as.scheduler.adapter.EndpointImpl.finalizeExecute(EndpointImpl.java:561)
         at oracle.as.scheduler.ejb.EssAppEndpointBean.finalizeExecute(EssAppEndpointBean.java:162)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy197.finalizeExecute(Unknown Source)
         at oracle.as.scheduler.ejb.ESSAppEndpoint_t596cy_MDOImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.MDOMethodInvoker.invoke(MDOMethodInvoker.java:35)
         at oracle.as.scheduler.ejb.ESSAppEndpoint_t596cy_MDOImpl.finalizeExecute(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.invokeFinalizeExecute(RequestProcessor.java:8133)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.execStage_Finalize(RequestProcessor.java:7331)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.process_execute(RequestProcessor.java:4813)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.dispatchHandler(RequestProcessor.java:2833)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.processExecuteEvent(RequestProcessor.java:696)
         at oracle.as.scheduler.adapter.ra.rdp.RequestProcessor.processUpdateEvent(RequestProcessor.java:1345)
         at oracle.as.scheduler.adapter.ra.WorkUnitWorkerBase.processWork(WorkUnitWorkerBase.java:199)
         at oracle.as.scheduler.adapter.ra.WAWorker.run(WAWorke...
    Any tips/pointers on possible issues? Could this be a template corruption?

    Any reply for the above error please.I do have the same issue.
    Please suggest.

  • OCI - Sample program works on Windows but gives error in Solaris ??

    Hi,
    I am new to OCI. I was trying the following sample program:
    #include<iostream>
    #include<conio.h>
    #include<firstheader.h>
    //#include<stdafx.h>
    #include<string.h>
    using namespace std;
    class OCIClass
    public:
         OCIClass()
    int p_bvi;
    char p_sli[20];
    int rc;
    char errbuf[100];
    int errcode;
    const char *s;
    printf("Hello\n");
    string sql;
    string sql2="select substr(ename,1,3) from emp where job='ANALYST'";
    cout<<sql2;
    //char sql[512];
    int flag=0;
    sql += "SELECT * from emp where job='";
    if (flag==0)
    sql += "MANAGER";
    else
    sql += "ANALYST";
    sql += "'";
    cout<<sql + "\n";
    s=sql.c_str();
    char* cstr = new char[sql.size()+1];
    strcpy (cstr, sql.c_str());
    char* cstr2 = new char[sql2.size()+1];
    strcpy (cstr2, sql2.c_str());
    sql=" ";
    /* Initialize evironment */
    rc=OCIEnvCreate((OCIEnv **)&p_env,(ub4)OCI_DEFAULT ,(void *)0, (void * (*)(void *, size_t))0,
    (void * (*)(void *, void *, size_t))0,(void (*)(void *, void *))0,(size_t)0, (void **)0);
    /* Initialize handles */
    rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_err, OCI_HTYPE_ERROR,
    (size_t) 0, (dvoid **) 0);
    printf("Error handle allocated\n");
    rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_svc, OCI_HTYPE_SVCCTX,
    (size_t) 0, (dvoid **) 0);
    printf("service handle allocated\n");
    printf("Value of RC before Logon\n %d", rc);
    /* Connect to database server */
    rc = OCILogon(p_env, p_err, &p_svc, (OraText *)"scott", 5,(OraText *) "welcome", 7,(OraText *) "", 0);
    printf("Value of RC after Logon\n %d", rc);
    if (rc != 0) {
    OCIErrorGet((dvoid *)p_err, (ub4) 1, (text *) NULL, &errcode, (OraText *)errbuf, (ub4) sizeof(errbuf), OCI_HTYPE_ERROR);
    printf("Error - %s\n",errbuf);
         printf("error");
    //exit(8);
         getch();
    printf("Connect successful\n");
    /* Allocate and prepare SQL statement */
    rc = OCIHandleAlloc( (dvoid *) p_env, (dvoid **) &p_sql,
    OCI_HTYPE_STMT, (size_t) 0, (dvoid **) 0);
    rc = OCIStmtPrepare(p_sql, p_err, (OraText*) cstr,
    (ub4) 37, (ub4) OCI_NTV_SYNTAX, (ub4) OCI_DEFAULT);
    /* Bind the values for the bind variables
    p_bvi = 10; /* Use DEPTNO=10
    rc = OCIBindByName(p_sql, &p_bnd, p_err, (text *) ":x",
    -1, (dvoid *) &p_bvi, sizeof(int), SQLT_INT, (dvoid *) 0,
    (ub2 *) 0, (ub2 *) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT);*/
    /* Define the select list items */
    rc = OCIDefineByPos(p_sql, &p_dfn, p_err, 1, (dvoid *) &p_sli,
    (sword) 20, SQLT_STR, (dvoid *) 0, (ub2 *)0,
    (ub2 *)0, OCI_DEFAULT);
    /* Execute the SQL statment */
    rc = OCIStmtExecute(p_svc, p_sql, p_err, (ub4) 1, (ub4) 0,
    (CONST OCISnapshot *) NULL, (OCISnapshot *) NULL, OCI_DEFAULT);
    while (rc != OCI_NO_DATA) {             /* Fetch the remaining data */
    printf("%s\n",p_sli);
    rc = OCIStmtFetch(p_sql, p_err, 1, 0, 0);
    printf("After fetch\n");
    rc = OCILogoff(p_svc, p_err); /* Disconnect */
    rc = OCIHandleFree((dvoid *) p_sql, OCI_HTYPE_STMT); /* Free handles */
    rc = OCIHandleFree((dvoid *) p_svc, OCI_HTYPE_SVCCTX);
    rc = OCIHandleFree((dvoid *) p_err, OCI_HTYPE_ERROR);
    void main()
    OCIClass c1;
    getch();
    The above program works on my Windows desktop. If I try this in Solaris, OCILogon fails and gives an error. If I check the value of rc, I find that it is -2. I can connect to the database using SQLPlus, but not through the program. Not sure how to debug this...
    Any pointers ?
    Thanks in advance,
    mrk

    Did you make the required port entry in the /etc/services file? You will need to add the gateway service port there. Then try to run your program.
    T00th

  • HP LaserJet Pro P1102w printer "Ready" for wireless printing, but gives "error -- printing" message

    This P1102w printer was configured for wireless printing from two computers (WinXP and Win7), both with a network sharing designation, and all functions worked perfectly:
    Printing from the WinXP computer directly, and from a networked Win2K computer as a guest.
    Printing from the Win7 computer directly, and from a networked Win2K computer as a guest.
    Windows Printer Test Pages were printed from both installed computers, showing correct computer names, the printer name, Port names (IP addresses), Data format (IMF), Driver information, etc.
    Several days later (after new boots), the WinXP computer showed printer status as being "Ready", along with the correct printer "Type" (HP LaserJet Professional P1102w), "Where" (IP address), and "Comment" (network printing).  When a print job was submitted from Microsoft Word, the control-panel printer window first showed the message "printing", and then the message "error -- printing".  Nothing was printed.  The same results occurred when a print job was sent to the WinXP computer from the networked Win2K computer.  HP’s troubleshooting routine did not identify the error, its cause, or what can be done about it.
    Successful printing continued, as before, from the Win7 computer directly, and from the networked Win2K computer to the Win7 computer as a guest.
    The printer’s blue “i” network indicator lamp is lit, and all three computers continue to communicate through the hub to each other and to the Internet.
    HP’s printer installation program was executed on the WinXP computer, using the “fix” option, but nothing changed.  The installation program was executed again on the WinXP computer, using the “new install” option (without removing the existing P1102w installation); the “browse” function saw the network, but no printers were found, and the installation could not be completed.
    This is very perplexing.  Any suggestions?
    PS:  The same problem occurred once before, and it was fixed by resetting factory defaults on the printer, hard wiring the printer to the WinXP computer through a USB cable, re-installing the printer’s wireless settings from HP’s installation disk, and repeating all of the networking and sharing setups on all three computers.  This is a lot of work that is not worth repeating, because the successful results have not been permanent. 

    To:  Neonskeleton,
    Thanks for your response -- especially because you are an HP employee!
    My Win2k machine does not use HP software, nor communicate to the HP printer.  (HP did not write a Win2k driver for the P1102w -- and evidently no one else has done this, either.)  My WinXP and Win7 machines use their HP drivers to send print jobs to the P1102w wirelessly, and both machines have the P1102w set up as a shared printer.  Then, when I connect to those machines as a "guest" and submit a print job to those machines, those machines receive the print job and then communicate with the printer using the proper installed printer drivers.
    Everything worked great with this configuration, until suddenly the printer was no longer responsive to ANY jobs coming from the WinXP machine, even though there was a "printer ready" indication on the WinXP machine, and even though the printer responded perfectly to print jobs coming from the Win7 machine.
    When I tried to "fix" the WinXP setup by running HP's setup program on CD, nothing changed.  Then, when I tried to reinstall the WinXP setup for wireless printing, the program insisted that I reset THE PRINTER'S factory defaults and proceed using a USB cable -- even though I wanted to simply ADD the computer for wireless communication to an existing networked printer!  I would conclude that something screwed up the printer's inner settings (maybe an unsolicited and invisible HP update sent to my printer from the Internet?).
    As I mentioned in my original post, I went through this process once before, reinstalled everything on all machines, and all was well.  Until THE SAME non-recognition problem surfaced again!
    I do not want to spend any more time on this.  I went to Staples and bought a second P1102w printer (it is a nice little machine that uses a xerographic cartridge, rather than costly inkjet cartridges that frequently plug up).  I'll use a USB cable for the connection, rather than the installed wireless feature, and set up the P1102w as a shared printer.  I expect that all of my other computers will be able to link as a "guest" through the wireless hub and be able to print.
    Thanks again.
    PS.  I am a retired computer-systems manager from Northrop Grumman. 

  • Put a commit in a stored procedure that is called remotely, give error

    I put a commit in a stored procedure that is called remotely, this gives me an error. Why?

    Why? Because only the calling procedure - the local one - can have commits. Please read my reply to Re: DBlink: Can I access to a remote type?. In particularly read the part of the documentation it links to, about distributed transactions.
    Cheers, APC

  • Email button error works but gives Error message "10"

    I have "attach to email" buttons on my forms. I leave the email address blank for the person to fill in themselves. It works fine but on one form (and one form only) when clicking on the button an error message window comes up - with exclamation mark and the number "10", that's it. The button works (attached the file to an email) but still gives the message. My other forms don't give this message though the buttons appear identical.
    What could be causing this?
    (Livecycle 8.0)
    Thanks in advance, Marg

    Remove the "mailto:" from the Submit tab if you have the script code written in the event.
    But usually if you have "mailto:" in the submit tab and while you are preview mode, it will open two email windows. A new email with the subject as "Form Returned"..(This new email error will work only if Acrobat Pro is used by the Designer while previewing the form. If the Designer uses Acrobat Reader while previewing it does not even show any error and simply quits. You can check which one is used while previewing by going to your Windows -> Task Manager and see which EXE is running. For Acrobat Acrobat.EXE and for Reader it will be AcroRd32.EXE).
    Try removing the mailto: from the Submit tab and if you still have issues, may be you can send the file to [email protected] , I can have a look at it..
    Thanks
    Srini

  • Itunes 64-bit on Windows & 64-bit does nothing but give errors!

    I've been trying to connect Iphone 3g 4.0.1 on Windows7 64-bit since last 5 days! Tried almost all the tips found on internet regarding this issue and none worked! At first simply downloaded the latest iTunes 9 (64-bit). It didnt work at all and I ended up seeing different errors. Then read this;
    http://www.sevenforums.com/installation-setup/4318-release-notes-important-issue s-beta-release-windows-7-a.html
    Tried that too and still getting nothing but errors. In last 5 days I encountered the following variety of errors;
    Device Manager -> Portable Device -> MTP Usb Devie -> Device cannot start (Code 10)
    Device Manager -> Portable Device -> Apple Iphone -> Device cannot start (Code 10)
    iTunes -> iTunes could not connect to this iPhone because an unknown error occurred (0xE8000065)
    iTunes -> iTunes could not connect to the iPhone "iPhone" because an unknown error occurred (0xE8000023)
    iTunes -> iTunes could not connect to the iPhone "iPhone" because an unknown error occurred (0xE8000035)
    iTunes -> iTunes could not connect to the iPhone because an invalid response was received from the device (0xE8000001)
    I even tried programs like iPhone Explorer, DiscAid, iFun-box etc. None worked. And now looking for a final answer. Will it work on Windows 7 or not? I am too tired of trying now.

    I don't know if this will help, but folks on Windows systems (typically laptops) with PM55 chipsets (like their brethen with P55 chipsets and other chipsets in the 5 series and 3400 series) have been reporting a lot of trouble with iPod/iPhone syncing (in particular, 0xE0000065 error messages, but the symptoms may vary).
    In cases where no BIOS updates are available, and the BIOS does not have a user configurable C-STATE setting, some success has been achieved by using an old trick ... changing the power management settings on the USB Host controllers, as per the following document:
    http://support.apple.com/kb/TS1401
    When attempting to connect iPhone or iPod touch, you may see one or more of the following error messages:
    ▪ iTunes could not connect to this iPhone because an unknown error occurred (0xE8000065)
    ▪ iTunes could not connect to this iPhone because an unknown error occurred (0xE800000a)
    ▪ iTunes could not connect to this iPhone because an unknown error occurred (0xE800006b)
    ▪ iTunes could not connect to this iPhone because an unknown error occurred (0xE8000001)
    Alternatively, the error may be the same as above but end with a different number. See:
    http://support.apple.com/kb/TS3221
    (thanks to B Noir for the tip)
    Hope this helps.

  • Reverse Execute Budget give error note

    Hello all,
    I need help from all of you who can suggest me these. I carried residual budget for fund from 2007 to 2008. The step are FMJA, FMJB and FMJC. now the budget was carried to 2008 already but when i want to redo it by using tcode FMJD. The system gave messages "_Read note 817104" and the notes defined that "To reset the residual budget carryforward, maintain the derivation strategy (EA-PS 200 or higher) or the carryforward rules (EA-PS 110 and IS-PS 462), so that 0% is transferred ("FM - CF: Distribution percentage" = 0)._
    To reset the budget carryforward to the commitments, reset the commitments carryforward. Then redetermine the amounts and the budget carryforward.". I didn't get that how to set derivation strategy and how to reset this carryforward. It's first time for me to implement FM , please help me stey by step.
    Thank you very much

    Hello
    Please check this link on the derivation strategy.
    http://help.sap.com/erp2005_ehp_02/helpdata/en/60/01ee403a85712ae10000000a155106/frameset.htm
    Reg
    assign points if useful

  • Query run in Sql prompt correctly but give error in APEX report ORA-01843

    Hi. all APEX user
    Last week I upgrade APEX 3.2 to 4.0.2 . Now i have a problem. PL/SQL reports which are working in APEX 3.2 not working in 4.0.2. Help me.....
    I am working on a mission critical application we have to upgrade there next month.
    Query code is :-
    select * from (
    Select pp.PAYMENT_DATE,pp.PATIENT_ID,p.name as name,pa.Service_Subtype,pp.PAYMENT_RECEIPT_ID,pa.Ward_Type,(pp.TOTAL_CHARGE-pp.discount) as amount ,pa.Service_Booked_By,pp.PAYMENT_COLLECTOR,
    case when pp.discount=0 then 1
    when pp.TOTAL_CHARGE = pp.discount then 3
    else 2
    end payment_status
    from patients p,PATIENT_Payment pp,PATIENT_account pa where p.patient_id = pp.patient_id and pp.patient_id=pa.patient_id and pa.SERVICE_SUBTYPE=pp.SERVICE_SUBTYPE AND pp.SERVICE_REGISTRATION_ID=pa.SERVICE_REGISTRATION_ID and
    (pp.PAYMENT_DATE>=to_date(:P15_date_from,'dd-mon-rr')) AND
    (pp.PAYMENT_DATE<=to_date(:P15_date_to,'dd-mon-rr'))AND
    (pa.GROUP_NAME=:p15_Group or :p15_Group='ALL') AND
    (pp.service_type=:p15_Service_Type or :p15_Service_Type='ALL') AND
    (pp.SERVICE_SUBTYPE=:p15_SERVICE_SUBTYPE or :p15_SERVICE_SUBTYPE='ALL') AND
    (pa.WARD_TYPE=:p15_Ward or :p15_Ward='ALL') AND
    (pp.PAYMENT_COLLECTOR=:p15_Collector or :p15_Collector='ALL')
    )order by pp.PAYMENT_DATE
    ) where payment_status=:p15_status
    order by 1

    In your query, you expect the date to have the format 'dd-mon-rr'. Have you checked if the format of the date-items is of this format?

  • RE: [Adobe Reader] when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? i

    HelloThank's for your helpsI hope this document is helpfulBest Regards,
    Date: Sun, 22 Jun 2014 17:10:17 -0700
    From: [email protected]
    To: [email protected]
    Subject:  when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th
        when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help m
        created by Anoop9178 in Adobe Reader - View the full discussion
    Hi,
    Would it be possible for you to share the document?
    Regards,
    Anoop
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at https://forums.adobe.com/message/6485431#6485431
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page:
         To unsubscribe from this thread, please visit the message page at . In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0.

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • When i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ? if you can help me th

    when i open pdf file it open all the pages but some pages give error massage (there was error processing a page,there was a problem reading this document 110) but if i open this page which give me error with google chrome it's work ?
    if you can help me thank's
    [email address removed by host]

    thank's for reply and your help
    i did the step's that you told me but  i still have the same problem
                                     i have the latest v.11.0.7
    i
    i disable the protected mode

  • Sql server services give error the remote procedure call failed [0x800706be] in sql server 2008

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.

    sql server services give error the remote procedure call failed [0x800706be] in sql server 2008.
    To resolve this issue, I executed the following mofcomp command in command prompt to re-register the *.mof files:
    mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof".
    but it does not work.
    Plz give the exact soln to solve this error.
    So when you tried starting SQL server service it gave the error right  ?  or when you click on SQL server services in SQL server configuration manager(SSCM) you get this error. Can you be more clear.  As far as I read your question it has something
    to do with permission. Close SSCM window and this time  right click on SQL server configuration manager and select run as administrator and check if you can see SQL server services
    Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
    My Technet Articles

Maybe you are looking for

  • Can I use Admin Console to Start Clustered Servers ?

              I have just started to look at clustering and am in the process of running through           the cluster example tutorial. I have used the domain config wizard to create           a manged server with a cluster and another server to act as

  • I lost the bookmarks drop-down on the menu bar

    == Issue == I have a problem with my bookmarks, cookies, history or settings == Description == I have Firefox 3.5.10. Somehow, I managed to click on "hide this folder?" while I was trying to organize my bookmarks, and now I can't get the folder back

  • Merge Mono to Stereo problem

    before we begin, i just want to thank anyone who can help me out. i've tried reading the manual and searching everywhere online, but can't find any help. i'm having a problem merging two mono files to a single stereo file. if i pan the two mono track

  • SAP Router status shows cancelled in SMP

    Dear all, We have an issue in SAP Router - SMP. I have checked SAP status , its shows cancelled in Service market place. we could not able access SAP through Router string . Kindl;y advise.

  • Premiere Pro CC file from MAC does not open on PC?!

    Hello, I had to edit a school assignment on Premiere Pro CC and I used my Macbook at home to edit it. When I tried to open the file on the PC computers at school with their Adobe Premiere Pro CC, it wouldn't open and said that I created the file with