Help: Procedure insertion of records works a TOAD does not work in APEX

Any who,

Why don't the work following procedure when performed with Toad... but does not work when running with and the application of APEX by APEX_PUBLIC_USER.

SCRIPT:

CREATE OR REPLACE PROCEDURE HRAPPS. C00_DENTAL_CHECKS_INSERT (P_BATCH_DATE, DATE,
NUMBER OF P_PLAN_ID) IS
/******************************************************************************
NAME: C00_DENTAL_CHECKS_INSERT
PURPOSE:

REVISIONS:
Worm Date Description of the author
--------- ---------- --------------- ------------------------------------
1.0 06/10/2009 TNOLTE 1. Created this procedure.

NOTES:

Keywords to replace automatically available Auto:
Object name: C00_DENTAL_CHECKS_INSERT
SYSDATE: 10/06/2009
Date and time: 2009-06-10 14:11:28 and 2007-04-18 14:11:28
User name: (put in TOAD Options, editor of the procedure)
Name of the table: (defined in the dialog box "New PL/SQL object")

******************************************************************************/

THE CNTR NUMBER;
v_check_seq NUMBER;

BEGIN

CNTR: = 0;

FOR THE DCI (SELECT IN
plan_id DC.plan_id,
Check_date PTP.regular_payment_date,
DC. Provider_id paid,
-1 check_number,
Pap1.person_id person_id,
Sum (DC.amount_100_pct) + SUM (dc.paid_at_80) + SUM (dc.paid_at_50) amount.
DP. Description: ' for '. note of DC. MEMO,
DCB.batch_date batch_date
OF hrapps.dental_claims dc.
Apps.per_all_people_f pap,
Apps.per_all_people_f pap1,
hrapps.dental_claim_batch dcb,
hrapps.dental_plans dp,
TPP apps.per_time_periods
WHERE dc.plan_id = P_PLAN_ID
AND dc.payee <>1069
AND dc.claim_status_id = 3
AND dcb.batch_id = dc.batch_id
AND dcb.batch_date = P_BATCH_DATE
AND pap.person_id = dc.patient_person_id
AND dc.date_of_service BETWEEN pap.effective_start_date AND
PAP.effective_end_date
AND pap1.person_id = dc.person_id
AND dc.date_of_service BETWEEN pap1.effective_start_date AND
Pap1.effective_end_date
AND dp.plan_id = dc.plan_id
AND ptp.payroll_id = decode (dc.plan_id, 1, 61, 67)
AND dcb.batch_date BETWEEN (ptp.start_date) AND (ptp.end_date)
Dc.plan_id GROUP,
PTP.regular_payment_date,
DC. Paid,
-1,
Pap1.person_id,
DP. Description: ' for '. DC. MEMO,
DCB.batch_date
ORDER BY dc.plan_id,
PTP.regular_payment_date,
DC. Paid,
-1,
Pap1.person_id,
DP. Description: ' for '. DC. MEMO,
DCB.batch_date)
LOOP
Select HRAPPS. C00_REIMB_CHECKS_SEQ. NEXTVAL in the double v_check_seq;
INSERT INTO HRAPPS. C00_REIMB_CHECKS (REIMB_ID,
PLAN_ID ARGUMENT,
CHECK_DATE,
PROVIDER_ID,
CHECK_NUM,
EMP_PERSON_ID,
AMOUNT,
MEMO,
BATCH_DATE)
VALUES (v_check_seq,
DCI.plan_id,
DCI.check_date,
DCI.provider_id,
DCI.check_number,
DCI.person_id,
DCI.amount,
DCI.memo,
DCI.batch_date);

CNTR: = CNTR + 1;

IF MOD(CNTR,20) = 0 THEN

COMMIT;

END IF;

END LOOP;

COMMIT;
END C00_DENTAL_CHECKS_INSERT;
/

Tami,

Please view the code in the process of the page. Maybe you format P_BATCH_DATE correctly. Maybe something else.

Scott

Tags: Database

Similar Questions

  • PS ask activetion again. the worm is first CS PS v8, it fails, I tried to call help number given on the page but service does not exist, redirect to .../go/activation statement fails, it causes some assistance - activate is not possible to click

    PS ask activetion again. the worm is first CS PS v8, it fails, I tried to call help number given on the page but service does not exist, it redirects to .../go/activation

    statement fails it causes some assistance - activate is not possible to click

    Adobe has disabled the server activation for pre CS3 products a long time ago and that's why you are unable to activate your product. I can not to suggest what to do, but I don't know that CS2 owners with this problem can download a version specially created that doesn't require activation. To my knowledge, no such version exists for CS. If it was me, then as the real owner of the software and just unable to use it due to having no mechanism to activate, I download CS2 and use it until someone from Adobe told me to stop. It is a sensitive issue because the download site clearly indicates that there must be an existing CS2 owner. However, the url to the download was posted the pirate not many Adobe Web sites not as a way to free download the CS2. I imagine that there have been hundreds if not thousands of downloads from 2013 when it became first available and so far Adobe has not made any attempt to restrict the download to current owners of CS2. Their policy is quite clear if CS2 is not given away for free. Fortunately, I use CC2015, I can't make a call on it, but the URL is below if you want to move forward.

    Download Adobe Acrobat 7 and Adobe Creative Suite 2

    Terri

  • PROCEDURE INSERTION OF RECORDS

    Hi guys,.

    I am running Oracle Database 10 g Enterprise Edition Release 10.2.0.2.0 on Solaris 9...

    I have problems with one of the insert statements.

    I'm you insert records into a table and my insertions is taking forever...

    No single line is inserted in the table after 6 hours, what could be the problem?

    Thanks in advance...

    There is not enough information here to help you.

    1. after the DML
    2 post a plan explain report generated using the DML dbms_xplan.display
    3. check if the table being affected have triggers
    4 ask the DBA to check the status of the tablespace (s) associated with the or more tables

    And why 10.2.0.2? Anyone who does not believe in the patches?

    My guess however, and it's only a guess, that the issue is your procedural code not the DML itself.

  • Need help with insertion of records

    I am new to develop dynamic web pages. I followed the instructions step by step in the files using Dreamweaver 8, but for some reason any this code does not work. I have links to the database. I have the set of records and and the insert record everything correct, or at least I thought I had. Can someone help me please. I'm losing my mind. Thanks in advance.

    I took a break from that and when I came back to it I realized it was a problem with my database, not my code. Thanks anyway.

  • Ofa: need help to insert a record into DB

    Hi friends
    I am totally new to the OFA and Jdev
    I use Jdev version 9i 9.0.3.5

    MY first task is to create a queryPG ... for that, I created a table in my PB with 3record
    who has created a table in my Db with 3record,
    and I created VO, AM, QueryPG, and QueryMainCO in my Jdev

    And in my first task I can successfully recover data from forms my DB*.

    (2) in the same .jpr my second task is to insert a record into my DB
    In this task, I have been struck for more than 2 weeks... so please help me to do my 2nd task
    in my queryPG I HAV to set a button called wen 'Person to create' I click that it must navigate to the CreatePG were I want to get data and wen I click on 'save' which is located in the CreatePG... the data I enter the createPG must be stored in my DB

    In the createPG I HAV to set this field {personId, firstname, lastname, phoneno, e-mail, address}

    First I HAV created VO not based on EO... beak for questioning we don't want EO
    for inserting a record I HAV to create EO...
    And one of VO based on EO is good?
    Please help me to do this task

    Thanks in advance
    thiliban

    Please follow the tutorial create exercise.

    Thank you
    AJ

  • Help, please... My online website does not work for users of Windows, Chrome...

    Hi, everyone, I really need your help.

    I just finished my first Muse site for a client and made live for everyone to see. I double and triple checked everything and it looked fine on my computer (Google Chrome browser, but on a Mac). However, when my client saw it, he said there was a huge mistake - the text of the navigation bar has been cut in half!

    I asked my boyfriend to go to the site on his computer... also a Windows and on Google Chrome. Same question. However, when he went on the site of Mozilla Firefox or Internet Explorer, it works wonders for him.

    How can I solve this? According to Google Analytics, most of our customers use the internet browser Chrome... and the site is already online and people visit it (ah!).

    EDIT: according to my mother, it does not work on his computer and neither Firefox or Google. So I do not know how this bug of functions.

    Here is the link to the site: www.alpineslopes.ca

    And here is a picture of the bug: (I don't know why he inserted upside down, do not know how to change it, but I hope you can see that the upper part of the navigation has disappeared).

    IMG_2761.jpeg

    Hi Claudia,.

    I see that the problem is with the font that you used in the navigation, a bubbler. I'll have to discuss with the team of devs. In the meantime, solution faster that I can suggest is to use a different font on the navigation.

    - Abhishek Maurya

  • How to make the default visible bookmarks. response on Firefox Help "What happened to the bookmarks toolbar?" does not work.

    I want to have my favorites in the left pane of the default desktop, when I connect in firefox, as before. the solution proposed in the firefox help page "What happened to the bookmarks toolbar?", i.e. to check "bookmarks toolbar" in the drop-down display-toolbars menu, does not work.

    can you suggest an alternative?

    I use firefox on a macbookpro with os10.6.6 4.0b11

    The bookmarks toolbar has nothing to do with the Bookmarks Sidebar (on the left side of the browser window). {Ctrl + B} open/close the bookmarks bar. If you close Firefox with the open bookmarks bar, it should be open when you launch Firefox, next time. If it does not work like that in your profile file localstore.rdf file is probably damaged.

  • Cannot get the procedure for d3dperf_setoption (d3d9.dll) - Skype address does not work

    I face this big mistake:-failed to get address of procedure for d3dperf_setoption (d3d9.dll)

    ... when I start my pc, then show this msg my Skype software does not work. installation of the software is no longer. Please solve my problem. thanking you...

    Hello jassi8,

    Often we see errors as the result of a program from loading at startup.

    To solve these, we use the clean boot troubleshooting.

    The following describes this process:

    http://support.Microsoft.com/kb/310353

    http://support.Microsoft.com/kb/316434

    Best regards

    Matthew_Ha

  • Autorun does not work WinXP home. I insert a cd and the autorun does not work.

    I have tried everything I can find on solving this.   When I insert a music cd, it is used to bring up a box that I wanted to use it as a player, etc.   Now it's just sitting there and when I right click on a song to play windows media is not even an option to use.
    I hope it's make sense.  Basically the autorun does not work for anything.
    I've seen references to the registry, but I tried everything.

    Try to use the Autoplay Repair Wizard

  • Random Records Access database RND() does not work

    I have a sort of a time finding it. I will start by trying to explain what I want to do:
    Objective: I want 12 files chosen randomly from the list has my Access database.
    Whenever the page is refreshed, I want a new set of 12 cited records. I tried a lot of solutions in recent days does not! Here is my query:

    < CFQUERY NAME = "ctlst" DATASOURCE = 'absi"cachedwithin =" #CreateTimeSpan (0,0,0,0) #">
    SELECT TOP 12 prodmat.*
    FROM Catfit INNER JOIN ProdMat ON Catfit.prodid = ProdMat.prodid WHERE Catfit.slsid = 1
    ORDER BY Rnd (prodmat.prodid)
    < / cfquery >

    It irritates me 12 Archives randomly once and then I get the same list on one more when updating.

    Here's a quick and dirty example. Just set the desired maximum of lines and store them in the structure. The reason to use a structure is to eliminate duplicates.

    Then be looped through the structure directly, or convert to a list.

  • An SD card is inserted, but my laptop Packard Bell does not recognize the memory card.

    Original title: peripheral equipment

    An SD card is inserted, but the PC (my laptop is a Packard bell) has no reaction. It does not recognize the memory card.

    Thanks for your help.
    Christine.

    Hi Stefano,

    Thanks for posting your question in the Microsoft Community.

    This problem can be caused if the SD card is damaged or the card reader may not work properly.

    1. What is the brand and model of the SD memory card?

    2. What is the number of the model of the Packard Bell laptop?

    3. you receive an error code or the message after inserting the SD card into your laptop?

    4. have you made any recent hardware or exchange of software on your computer before the show?

    5. have you tried to insert different SD card in your laptop?

    6. have you checked the SD card in another computer?

    7. you try to connect the SD card to a built-in card reader or externally by USB port card reader?

    8. is the specific question to a SD card or any type of cards?

    9. are you able to detect the SD card in the Device Manager?

     

    Open the Device Manager:

    http://Windows.Microsoft.com/en-in/Windows7/open-Device-Manager

    If your computer is having problems with a recently installed device or other hardware, try to use the hardware and peripheral troubleshooting tool to solve the problem. It checks the common issues of interest and ensures that a new device or hardware connected to your computer has been installed correctly.

    Open the hardware and devices Troubleshooter:

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

     

    For reference:

     

    Updated a hardware driver that is not working properly:

    http://Windows.Microsoft.com/en-us/Windows/Update-driver-hardware-ISN

    Let us know the status of the issue. If you need help, please after return. We will be happy to help you.

  • Hi, I inserted my USB key, but it does not open because it shows the shortcut symbol

    Hello

    I inserted my USB on my pc, but it does not open because it shows the shortcut symbol and I also tried another

    pendrive.it too do the same (does not open) I also scanned the computer, but it shows no virus.

    What can be the problem.pls help me recover from this very urgent problem.its

    Hi Arul,

    Thanks for posting your query in the Microsoft Community Forums.

    According to the description of the problem, it seems that you are unable to open the USB on the computer.

    I would appreciate it if you could answer the following questions to help you best:

    1. the pen drive recognizes on the computer?

    2. what happens when you try to open the USB?

    3. do you get an error message?

    4 have you checked the question in different USB ports?

    5 have have there been recent changes made on the computer before the show?

    This question could be corrupted USB drivers. Here are some methods that you can try in order to solve the problem.

    Method 1: Run the hardware and devices Troubleshooter and check.

    It checks the common issues of interest and ensures that a new device or hardware connected to your computer has been installed correctly.

    http://Windows.Microsoft.com/en-us/Windows7/open-the-hardware-and-devices-Troubleshooter

    Method 2: Reinstall the USB controllers.

    This method addresses the steps where the USB driver currently loaded became unstable or corrupted.

    a. click Start, and then type Device Manager in the Start Search box, and then click Device Manager.

    b. expand Bus USB controllers. Right click on a device, and then click Uninstall. Repeat for each device.

    c. Once complete, restart your computer. Your USB controllers will automatically install.

    d. check the issue.

    For more information, see the link.

    Updated a hardware driver that is not working properly

    If the problem persists, or you have questions about Windows Media Player, do not hesitate to let us know. We will be happy to help you.

  • Help! Aspire 5735 laptop with broken screen does not recognize external monitor after the factory restore

    I have an ACER Aspire 5735, running horrible Vista that never worked from the beginning, always locked up, media player never worked, on, on, and after about a year my dog took in the power cord and threw out of the table and the broken screen. I used it with an external monitor for a while, but it was even worse after that and after that he take to get fixed yet has proceeded to run super slow, always locked up, refused to stop or start upward normally, and so he sat in a closet for about 3 years.

    I took it out a week ago to see if I could at least use it for my kids to friends to play on, but that she still had so many questions, I decided to do a factory restore. And of course the recovery disks that I did when I got it do not work and are not yet recognized by the computer. So I went online and has used a method that I found there by rebooting and hitting the keys ALT F10 until I was at the factory reset option. It worked GREAT! Except once the computer has restarted and opened up to windows deleted monitor and I can't do anything with the computer because apparently it does not recognize that it is hooked to an external monitor on the restore to factory settings! Help!

    She does not recognize the monitor as it has been restarted and was even the windows start the display of the icon, but as soon as it loads the screen becomes black with just the graphics "monitor is on but not connected to what either" floating around.

    Is it possible to access something in the BACK or other so he could recognize the external monitor?  What is finally toast?

    Connect the external monitor to the laptop.

    Hold down the FN key and press the F4 key. Check if you get a display on the external monitor.

  • "Recording with wavepad sound recorder with headset microphone does not.

    Record music on youtube with sound on a microphone

    I like rap I used to have windows xp, but my computer doesn't work and now I have a new one with vista. I use the same registration program that I used, but now it records only the sound into the microphone. My goal is to be able to record sound on the headphones with the words that I say into the microphone. I get my beats on youtube and I use sound recorder of wavepad.

    Hello coinstar.

    1 do you mean that you are not capable of recording using the microphone that is built with the helmet?

    2. have you checked if the microphone with the headphones work well?

    Make sure you setup recording properly on your computer. Run the configuration of recording when you connect the headset. Here is a tutorial that I found on the Wavepad website that shows how to set the microphone:

    http://www.NCH.com.au/KB/10010.html

    Important note: this response contains a reference to third party World Wide Web site. Microsoft provides this information as a convenience to you. Microsoft does not control these sites and no has not tested any software or information found on these sites; Therefore, Microsoft cannot make any approach to quality, security or the ability of a software or information that are there. There are the dangers inherent in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Also connect the headphones with microphone and check if it works normally.

    Here is an article that will give you information on troubleshooting registration issues in Windows Vista:

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-audio-recording-problems

    Thank you
    Irfan H, Engineer Support Microsoft Answers. Visit ourMicrosoft answers feedback Forum and let us know what you think.

  • Can anyone help with 0x8009001d windows standalone installer error code does not not usually leave my Windows Manager of development I am using windows vista 32

    messages error 0x8009001d every time I try to download then says windows standalone installation does not

    Quote your full version of Windows (for example, WinXP SP3;) Vista 64 - bit SP2; Win7 RC. Win7) when you post in a forum or a newsgroup. Please do it in your next reply.

    Try to do a reset:

    How to reset the Windows Update components?
       http://support.Microsoft.com/kb/971058 ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

Maybe you are looking for