Work incident API problem
Hello All,
I have a procedure to load work incident data through the work incident api. I get error regarding the p_incident_reference which I don't know what should be the value of it. Please help me on that.
Here is my procedure:
create or replace
PROCEDURE RTA_OLM_WORK_INCIDENT
AUTHID CURRENT_USER AS
l_incident_id Number;
l_object_version_number Number;
l_PERSON_ID Number;
l_EFFECTIVE_DATE Date;
l_INCIDENT_TYPE Varchar2(100);
l_INCIDENT_DATE Date;
l_INCIDENT_TIME Varchar2(100);
l_HAZARD_TYPE Varchar2(100);
l_ACTIVITY_WORK Varchar2(100);
l_incident_reference Varchar2(100);
CURSOR C1 IS
SELECT OLM_W_EFFECTIVE_DATE,
OLM_W_PERSON_ID,
OLM_W_INCIDENT_TYPE,
OLM_W_INCIDENT_DATE,
OLM_W_INCIDENT_TIME,
OLM_W_HAZARD_TYPE,
OLM_W_ACTIVITY_WORK
FROM OLM_WORK_INCIDENT;
Begin
FOR C1_REC IN C1
LOOP
select PAF.PERSON_ID INTO l_PERSON_ID
from PER.PER_ALL_PEOPLE_F PAF
where PAF.EMPLOYEE_NUMBER= C1_REC.OLM_W_PERSON_ID
and to_date (C1_REC.OLM_W_INCIDENT_DATE, 'DD-Mon-YY HH24:MI:SS ')
between to_date(paf.effective_start_date, 'DD-Mon-YY HH24:MI:SS')
and to_date (paf.effective_end_date, 'DD-Mon-YY HH24:MI:SS');
l_EFFECTIVE_DATE:= C1_REC.OLM_W_EFFECTIVE_DATE;
l_INCIDENT_TYPE:= C1_REC.OLM_W_INCIDENT_TYPE;
l_INCIDENT_DATE:= C1_REC.OLM_W_INCIDENT_DATE;
l_INCIDENT_TIME:= '08:00';
l_HAZARD_TYPE:= C1_REC.OLM_W_HAZARD_TYPE;
l_ACTIVITY_WORK:= C1_REC.OLM_W_ACTIVITY_WORK;
dbms_output.put_line('Person id:'||l_person_id);
dbms_output.put_line('Effective date:'||l_effective_date);
dbms_output.put_line('Incident type:'||l_incident_type);
dbms_output.put_line('Incident date:'||l_incident_date);
dbms_output.put_line('Incident time:'||l_incident_time);
dbms_output.put_line('Hazard type'||l_hazard_type);
dbms_output.put_line('Activity work:'||l_activity_work);
dbms_output.put_line('incident id:'||l_incident_id);
dbms_output.put_line('Object version number:'||l_object_version_number);
Begin
APPS_APPLMGR.PER_WORK_INCIDENT_API.CREATE_WORK_INCIDENT ( p_validate => False,
p_effective_date => l_EFFECTIVE_DATE,
p_person_id => l_PERSON_ID ,
p_incident_reference => l_incident_reference,
p_incident_type => l_INCIDENT_TYPE ,
p_at_work_flag => NULL,
p_incident_date => l_INCIDENT_DATE ,
p_incident_time => l_INCIDENT_TIME ,
p_description => NULL,
p_hazard_type => l_HAZARD_TYPE ,
p_activity_at_time_of_work => l_ACTIVITY_WORK,
p_incident_id => l_incident_id,
p_object_version_number => l_object_version_number
END;
END LOOP;
--COMMIT;
--rollback;
END;
Ok I am getting this error, after trying your code:
Person id:15170
Effective date:18-JUL-11 00:00:00
Incident type:Other
Incident date:18-JUL-11 00:00:00
Incident time:08:00
Hazard type:Other
Activity work:Operator Refresher RTW
incident id:
Object version number:
Entering:per_work_incident_apicreate_work_incident 10
Entering: PER_WORK_INCIDENT_BK1.CREATE_WORK_INCIDENT_B 10
Entering: per_per_bus.return_legislation_code 10
Leaving:per_work_incident_apicreate_work_incident 90
Process exited.
Disconnecting from the database or01.
Which I believe is about incident_reference. But I have no value for it. Where should I look for the value for this field?
Similar Messages
-
Comm API problems RS232 SerialDemo
Hello,
before you ask: yes, i have read a lot of postings concerning this topic.
However, my problem is different than the common Comm API problems.
Win2000, JDK 1.5.2, Comm API 2.0.
The SerialDemo compiles (wow), shows the correct COM Ports (1) (this has been a major problem in a lot of postings), and works without exceptions. Great, but i dont get any serialEvent when i send something from my device on COM1 (a balance).
I know the RS232 parameters (1200,7 data bits, 1 stop bit, parity odd), and i connected this device without problems to a Delphi application.
Cable is the same and the correct one. The device sends with CRLF (ASCII 13 and 10) at the end of each string.
I tried SimpleRead.java too, but here the same: no serialEvent has been triggered when the device sends its data.
Any ideas?
OliverHi
sorry, it does work now :)
It was the device itself which was causing the problem.
But i really wasnt expecting this, because the day before the device (a balance) worked without any problems. Its quite funny that the balance stopped working just the day i started with the Java communication :)
thanks
Oliver -
I have tried (unsuccessfully) for hours and hours to correct a deprecated Api problem with an old java program I have been tinkering with. Is there anyone out there who may be able to help me? I would appreciate it very much.
Hello Lovadina,
I do not think my problem is the most difficult problem that has ever been posted but because I am so new to this I am having difficulty in fixing a java program I am working on. It is to do with an old API Mouse event that is currently part of the source code and from what I have read about it, it should not take much to update it as an old version is being used. You can contact me at [email protected] Thanks -
I have a new laptop with Windows 8 as operating system. Installed latest version of iTunes ontop computer. I can play music in My Library but when I click on iTunes, I get the message " iTunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify if a solution is available."
Anyone know what is the cause and if there is a resolution? Have tried to re-installing iTunes and have also tried restoring laptop to an earlier date.iPad not appearing in iTunes
http://www.apple.com/support/ipad/assistant/itunes/
iOS: Device not recognized in iTunes for Mac OS X
http://support.apple.com/kb/TS1591
iOS: Device not recognized in iTunes for Windows
http://support.apple.com/kb/TS1538
iTunes for Windows: Device Sync Tests
http://support.apple.com/kb/HT4235
IOS: Syncing with iTunes
http://support.apple.com/kb/HT1386
Apple - Support - iPad - Syncing
http://www.apple.com/support/ipad/syncing/
iTunes 10.5 and later: Troubleshooting iTunes Wi-Fi Syncing
http://support.apple.com/kb/ts4062
The Complete Guide to Using the iTunes Store
http://www.ilounge.com/index.php/articles/comments/the-complete-guide-to-using-t he-itunes-store/
iTunes Store: Associating a device or computer to your Apple ID
http://support.apple.com/kb/ht4627
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
Best Fixes for ‘Cannot Connect to iTunes Store’ Errors
http://ipadinsight.com/ipad-tips-tricks/best-fixes-for-cannot-connect-to-itunes- store-errors/
Try this first - Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
This works for some users. Not sure why.
Go to Settings>General>Date and Time> Set Automatically>Off. Set the date ahead by about a year.Then see if you can connect to the store.
Cheers, Tom -
reinstalled my windows operating system and decided to put on windows 8. After loading all of my music back into a freshly installed itunes, my 4th gen ipod is not recognized by itunes. My 1st gen ipod nano works with no problem. I can eliminate any problems with the cable and connection.
I've stopped and started the service, and also have performed cold reboots.
Nothing seems to have helped the situation.
Help!See:
iOS: Device not recognized in iTunes for Windows
I would start with
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
iTunes for Windows: Device Sync Tests
Have you tried on another computer to help determine if you have a computer or iPod problem?
The iPod Classic uses different drivers than the Nano -
I have a Tour 9630 and just installed v6.0 and receiving an error window "Blackberry Desktop Software has stopped working. A problem as caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." I have not received any message from Windows after 2 days. Has anyone experienced this problem? If so, I would appreciate any guidance. I have Windows 7, if that matters. Thank you. in advance.
Hi somewhatstock
How far did you get with them? Did they have any ideas what might be causing the problem? Trying to work on it myself, so trying to eliminate what others might have tried. Curious why it works on my Desktop however. Losing tethering really causes problems as I rely on tethering with my laptop quite a lot.
Any information most welcome,
regards,
John -
iTunes64Setup.exe, even after multiple times of uninstalling and reinstalling with even a fresh download crashes with the message:
"iTunes has stopped working. A problem [unspecified] caused the program to stop working correctly. Windows will close the program and notify you IF a solution is available." I cannot get out of this loop and it renders my iPad HD useless. I tried calling the Apple Store but was referred by an automated system to this web site. I tried looking up the problem in the FAQ but it didn't help.
merylewHi there Nok Saensanoh,
I would recommend taking a look at the troubleshooting steps found in the article below.
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
-Griff W. -
I can't open my Itunes program in my laptop computer with windows 8. the message is "Itunes has stopped working. A problem causess the program to stop working properly. windows will close the program and notify you if a solution is available". I reboot the machine, Uninstall and re install the Itune program, stilll the same message pops up.
The first thing to try is System Restore to take you back to a point in time when it did work. If that is not successful, create a new user on the computer. log in with that and see if ID will start. This will tell us if the problem is in the system/program or the user account.
If it works in a new user account, see Replace Your Preferences and in addition to replacing the prefs, empty the InDesign Recovery folder that will be in the same location and the InDesign SavedData file. -
Whenever I connect to the iTunes store i receive an error message "iTunes has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available." This causes iTunes to close. I am using iTunes version 10.5.0.142 on a Windows Vista (64) PC. I have reinstalled iTunes selecting the "repair" option and also uninstalled and reinstalled iTunes. Any help will be deeply appreciated. Thank you. Below is the result of the diagnositc.
Microsoft Windows 7 x64 Home Premium Edition Service Pack 1 (Build 7601)
HP-Pavilion BN474AV-ABA HPE-150t
iTunes 10.5.0.142
QuickTime not available
FairPlay 1.13.35
Apple Application Support 2.1.5
iPod Updater Library 10.0d2
CD Driver 2.2.0.1
CD Driver DLL 2.1.1.1
Apple Mobile Device 4.0.0.96
Apple Mobile Device Driver 1.57.0.0
Bonjour 3.0.0.10 (333.10)
Gracenote SDK 1.9.3.494
Gracenote MusicID 1.9.3.106
Gracenote Submit 1.9.3.136
Gracenote DSP 1.9.3.44
iTunes Serial Number 002FAD94098CD0E0
Current user is not an administrator.
The current local date and time is 2011-11-13 22:08:54.
iTunes is not running in safe mode.
WebKit accelerated compositing is enabled.
HDCP is not supported.
Core Media is supported.
Video Display Information
NVIDIA, NVIDIA GeForce GT 220
**** External Plug-ins Information ****
No external plug-ins installed.
Genius ID: 2cb3fff3fa771d265b0f8ffdcca13b55
**** Network Connectivity Tests ****
Network Adapter Information
Adapter Name: {F4A2029C-16AA-4BDF-8DB7-9EC2A75B5991}
Description: Realtek PCIe GBE Family Controller
IP Address: 192.168.1.6
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DHCP Enabled: Yes
DHCP Server: 192.168.1.1
Lease Obtained: Sun Nov 13 21:09:29 2011
Lease Expires: Mon Nov 14 21:09:29 2011
DNS Servers: 192.168.1.1
Active Connection: LAN Connection
Connected: Yes
Online: Yes
Using Modem: No
Using LAN: Yes
Using Proxy: No
SSL 3.0 Support: Enabled
TLS 1.0 Support: Disabled
Firewall Information
Windows Firewall is on.
iTunes is NOT enabled in Windows Firewall.
Connection attempt to Apple web site was successful.
Connection attempt to browsing iTunes Store was successful.
Connection attempt to purchasing from iTunes Store was successful.
Connection attempt to iPhone activation server was successful.
Connection attempt to firmware update server was successful.
Connection attempt to Gracenote server was successful.
Last successful iTunes Store access was 2011-11-13 22:02:08.
**** CD/DVD Drive Tests ****
LowerFilters: PxHlpa64 (2.0.0.0),
UpperFilters: GEARAspiWDM (2.2.0.1),
E: hp DVD A DH16ABLH, Rev 3HD9
Data or MP3 CD in drive.
Found 1 songs on CD, playing time 15:40 on CDROM media.
Track 1, start time 00:02:00
Get drive speed succeeded.
The drive CDR speeds are: 8 16 24 32.
The drive CDRW speeds are: 8.
The drive DVDR speeds are: 8.
The drive DVDRW speeds are: 8.
The last failed audio CD burn had error code 4251(0x0000109b). It happened on drive E: hp CDDVDW TS-H653R on CDR media at speed 24X.
**** Device Connectivity Tests ****
iPodService 10.5.0.142 (x64) is currently running.
iTunesHelper 10.5.0.142 is currently running.
Apple Mobile Device service 3.3.0.0 is currently running.
Universal Serial Bus Controllers:
Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B34. Device is working properly.
Intel(R) 5 Series/3400 Series Chipset Family USB Enhanced Host Controller - 3B3C. Device is working properly.
FireWire (IEEE 1394) Host Controllers:
VIA 1394 OHCI Compliant Host Controller. Device is working properly.
Connected Device Information:
Bruce's iTouch, iPod touch (2nd generation) running firmware version 4.2.1
Serial Number: 1C9053CC201
**** Device Sync Tests ****
Sync tests completed successfully.Same exact thing with me. And no help from apple. Just dropped nearly $600 and cannot get a decent working setup.
Apple's only suggestion was to uninstall iTunes and Quicktime, and re-install... of course (the I.T. Crowd tactic).
The crash happens only on iTunes store access. -
Hello
My system version 10.5.8
I have installed Safari update - 5.0.6 and the browser stopped working. At openingit shows the following icon:
"Safari has suddenly finished working. Possible problem is in the action of the plugin "TastyAppsAVPlugin".
After deleting all plugins from the folder "Internet Plugin", Safari worked again no problem, BUT all sites with flash content (e.g.YouTube) did not work.
I then tried the following experimental steps:
a) Moved all plugins from the folder "Internet Plugin" into a temporary folder.
b) Downloaded and istalled Adobe Flash Player version 10.3.181.34
c) Started Safari and it did not work ( same message"TastyAppsAVPlugin")
d) Deleted Adobe Flash Player from the folder "Internet Plugin". Safari worked.
e) Moved back all plugins, except Adobe Flash Player, from the temporary folder to "Internet Plugin" folder. Safari works... But Flash won't work!!! Before update to Safari 5.0.6 , ev erything worked perfectly well.
Guys, please solve the problem
Regards
Ruslan Reed
[email protected]MayaMa --
There are many threads on this. I typed "Uninstalling TastyApps" in the Google search, and came up with these:
http://www.google.com/search?client=safari&rls=en&q=Uninstalling+tastyapps&ie=UT F-8&oe=UTF-8
I do not know which of the many TastyApps haxies you have. Perhaps it would be better to contact them directly, once you know which of their products you have. -
[Window Title]
Microsoft Windows
[Main Instruction]
iTunes has stopped working
[Content]
A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available.
[Close program]
This is what I got... sorry, not very tech savvy to copy the error message onto here...
Have tried uninstalled and re-installed iTune, updated the new version of 10.6... many times over still not working!!!
I share the frustrations of many here. HELP!!!!!Hi there Nok Saensanoh,
I would recommend taking a look at the troubleshooting steps found in the article below.
iTunes for Windows Vista, Windows 7, or Windows 8: Fix unexpected quits or launch issues
http://support.apple.com/kb/ts1717
-Griff W. -
After I purchased the creative cloud, I receive an error message when trying to use premier pro cc 2014. It states "Adobe Premiere Pro 2014.2 has stopped working. A problem has caused it to stop working. Windows will close the program and notify you of a solution." When I used the trial I never received this message. Now after purchasing it I receive this error each time I open PP and am unable to use. it. Any ideas or support to fix this issue?
What does the detailed crash report say?
And have you updated your video card drivers from the GPU maker's website? (most crashes on launch are due to bugs in out of date video card drivers) -
I keep getting this message when I try to open my new Adobe Photoshop. The main screen comes on and a box for the tutorials then this. "Adobe Photoshop CC 2014 has stopped working. A problem caused the program to stop working correctly." When I say Okay to the message, it shuts down the program.
Refer below link once
Photoshop: Basic Troubleshooting steps to fix most issues -
Hi,
I’m getting the following error message when ever I try to start cs6 and the program gets close.
“Adobe Photoshop CS6 has stopped working. A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available”
Please advise what is the problem? and How to sort this out?
OS Name
Microsoft Windows 8.1 Pro
Version
6.3.9600 Build 9600
Other OS Description
Not Available
OS Manufacturer
Microsoft Corporation
System Name
JARVIS
System Manufacturer
Dell Inc.
System Model
Inspiron N5110
System Type
x64-based PC
System SKU
To be filled by O.E.M.
Processor
Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz, 2501 Mhz, 2 Core(s), 4 Logical Processor(s)
BIOS Version/Date
Dell Inc. A11, 8/3/2012
SMBIOS Version
2.6
Embedded Controller Version
1.01
BIOS Mode
Legacy
BaseBoard Manufacturer
Dell Inc.
BaseBoard Model
Not Available
BaseBoard Name
Base Board
Platform Role
Mobile
Secure Boot State
Unsupported
PCR7 Configuration
Binding Not Possible
Windows Directory
C:\Windows
System Directory
C:\Windows\system32
Boot Device
\Device\HarddiskVolume2
Locale
United States
Hardware Abstraction Layer
Version = "6.3.9600.17196"
User Name
Jarvis\JARVIS\Abhishek
Time Zone
India Standard Time
Installed Physical Memory (RAM)
4.00 GB
Total Physical Memory
3.16 GB
Available Physical Memory
1.21 GB
Total Virtual Memory
3.72 GB
Available Virtual Memory
1.55 GB
Page File Space
576 MB
Page File
C:\pagefile.sys
Hyper-V - VM Monitor Mode Extensions
Yes
Hyper-V - Second Level Address Translation Extensions
Yes
Hyper-V - Virtualization Enabled in Firmware
Yes
Hyper-V - Data Execution Protection
Yes
Display adapters:
and NVIDIA GeForce GT 525M.Without the actual crash logs nobody can say, but chances are that your graphics hardware is to blame, so update the driver...
Mylenium -
Hello everybody> my itunes has stopped working and the problem report stated the following:
Problem signature:
Problem Event Name: APPCRASH
Application Name: iTunes.exe
Application Version: 10.5.3.3
Application Timestamp: 4f14cc3d
Fault Module Name: KERNELBASE.dll
Fault Module Version: 6.1.7601.17514
Fault Module Timestamp: 4ce7b8f0
Exception Code: 80000003
Exception Offset: 0003381b
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1033
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
can anybody help me?Are you seeing a similar message when launching QuickTime Player?
What security software is installed on the computer? Have you tried testing in an admin account or after uninstalling tthe security software?
Use one of the following articles to guide you through removing iTunes and the related QuickTime files.
Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
Removing and reinstalling iTunes, QuickTime, and other software components for Windows Vista or Windows 7
Maybe you are looking for
-
PC-UI: Document Preview not working in Portal
Hello CRM Gurus, I'm trying to use "Document Preview" as described in the PC-UI Book at Page 157. I've created my own structure ZCRMT_BSP_OPP_CREATE_QUOTATION which includes the structure CRMT_BSP_PREVIEW. I've created my own Modell access class and
-
When I try to print a pdf -- either one that I've created or one downloaded from the Internet, I get an error message and the document will not print.
-
Dear All, We have an external phase for our process order. As the result of which we have a purchase requisition associated with that phase which is later converted into purchase order. After we complete the whole process cycle and try to close the p
-
Give error message to expired contracts
Hi, My requirement is that,While creation of all contracts like T&M,Milestone and Fixed Bid contracts.I want to configure error message to expired contracts in line item,any one can give me the solution. Edited by: Interprise Project on Dec 7,
-
Hi Experts How to do Stock transfer of a Sales order stock from One plant to another plant. generally while doing sto system only considers unrestricted stock, but it won't consider Sales order Stock. Can any one pl help me on this Rajendra