Reassigning activities - please help
Hello everyone,
I am fairly new in working with sap and therefore have the following question. I have 300 activities/calls assigned to a person. This person has left my company. I now want to reassign the activities to his replacement. In other words, the person who left the company needs to be replaced by a new name. Can the activities be reassigned all at once instead of changing the name one by one for each activity?
Thx!
Bart
hi
one way is to do some simple coding to take care of that ,another is you try n use tcode
MASS
it is used to mass update the data or BP in the system
it actually update all the BPs in the system in a way some BPs may be deleted ,like some employees leave the org and new one enter ,so by mass updation the new one take place of the old one.
hope you got what i said
try using it
best regards
ashish
Similar Messages
-
Schedule Manager - List of Activities, please help
Hello Experts,
could you pleased help me, as to what all activities could be covered under process Schedule Manager in FICO.Hi Hussein,
Please find the following link, it may be helpful
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c9/e7913618e55d40e10000009b38f839/frameset.htm -
Please help me on following Queries!! (Activities, Web-IC)
Hi CRM Experts,
Please help me on following queries.
1)Can we create multiple follow-up activities for given activity by using action profile?
2)What is the differance between ERP Sale Order and ECC Sales Order in Web-IC?
3)Is there any relationship between Status and Result in Activities?
4)How to activate Multilevel categorization in WEB-IC? When we have multiple subject profiles? How to deactivate existing one?
Please help me..
Points will be rewarded.
Thanks in advance.
Regards
SreeHi Sree
You can create multiple follow up activites for the given activity
ERP Sales Order and ECC Sales order is same when the backend is ECC. Basically ERP Order refers to the Order of the backend system
Hope this will help
Regards,
Rekha Dadwal
<b>You gain a point for every point that you reward. So reward helpful answers generously</b>
<b></b> -
How to access the activities created by an end user especially when the end user has left the organization?Please help me out with the possible solution
Hi Ramesh,
In the web UI we have business role IC_manger where you can search the activities based on employee responsible and you can use business transaction assignment functionality to assign those activities to any other end user or team.
Else you can also use Agent inbox functionality if you have configure the agent inbox for those activity.
Hope this helps solving your query -
Satellite m300 won't boot! please help!
Hi,
I've got a bit of an issue here.. I have a Satellite m300.. a white one..
and it won't boot... I've had this very issue before but it turned out to be an external USB HDD that stopped it from booting up but now even with everything removed it still won't boot.
And it was fine until yesterday, it just gave up.. I am away from home for work so I have all the work stuff and unfortunately without my recovery cd, but my guess is that it won't even read it..
So this is what happens..
turn on..
all light come on.. including power and all the white lights around the keypad..
and then maybe 5 sedconds later caplock and numlock(?) green lights flash..
then it's a dead still.. no HDD activities or sound.. just dead quite..
the screen remains black blank through out..
it seems to get stuck here before reaching the post screen.
i thought the power button usually took more than just a push to turn off? it instantly swithces off with a single push of the power button..
I think this laptop is like on sleep or something and can't seem to wak up.. maybe?
And it has vista.
Please help.. I have some important work files I need to recover at least before formatting..
and that has to wait till I get home which won't be for a month or so..
which also lets me take it back for warranty as well..
any help appreciated!!!
cheers,
MinQuote
Originally posted by syar2003
If running a LCD display with DVI connection , try to hook it up with
an analog VGA cable.
Can also be that the motherboard fails to initialize the vga AGP card.
Turn off all power incl. AC .
Disconnect all devices from motherboard : AGP/memory/drives/floppy/USB/PCI cards etc. take out the 20pin & 4pin PSU connectors and reset the motherboards
cmos .
Assemble PSU connectors ,only one DIMM module and graphics card and turn it on and se if you get a post .
Just removed all components. I reset the CMOS. I then reconnected the 20pin and 4pin, 1 stick ram, and the video card (no ide devices, no mouse, keyboard cd drives) and the monitor doesn't show up. I also tried another monitor so it isn't the monitor.
Could it have a bad AGP port?
Any other suggestions? I am thouroughly stumped. Also the power and reset buttons don't work no matter what configuaration I put the front panel connectors in. The Power LED is lit up and it doesn't work and the reset light is off and it doesn't work.
Also noticed one of my fans connected to one of the two other fan pins on the motherboard isn't working.
What a nightmare. -
The Internet (firefox, safari) are loading VERY slow. At first I thought it was just my school's website acting up, but after talking to their technical support they had me delete cache and cookies, make sure all programs are updated including plug ins like adobe, flash plug in etc. All of these things didn't help when I did them. On my school's website the videos do not load completely so they are choppy when viewed. After finishing an activity it won't load my score, during activities the page constantly has errors. It was just this website that was slow to load but now it seems like any website I go to is very slow. I am wondering if the loading problem is contributed to the computers memory, or lack of. However, I am not expert when it comes to computers so I don't know how to figure out how much free disc space I have/memory etc. I'm wondering if this is the problem. I have increased my activity on this computer for school, including more documents, downloading etc. So do you think the slowness of the internet is contributed to the memory or disc space? I believe I have snow leopard. it is MAC OS X 10.6.8 with Memory: 2GB 1067 MHz DDR3. Please help! Thank you!
To find out how much space you have & what is left, open up Disk Utility/Machintosh HD/First Aid. The info will be at the bottom of the window.
Sluggish Finder - Bunch of icons on your desktop? An overcrowded desktop slows down your Mac.
Get rid of needless Finder calculations - Open a window in Finder/View/Show View Options: ensure "Calculate All Sizes" option is unchecked.
Internet related - It's likely that your broadband connection is the bottleneck. You can check your speed on http://www.speedtest.net to see how fast your connection is. If your web browser specifically performs slowly, quit and relaunch it.
If browser remains sluggish, empty its cache.
Safari/Empty Cache
Firefox/Preferences - select the Network tab of the Advanced preferences and click the "Clear Now" button in the "Offline Storage" area.
Application related - Launch "Activity Monitor" - Applications/Utilities - click the CPU heading and see what float to the top. If an application takes up a large chunk of CPU and won't let it go, it could be dragging down your Mac's performance. Quit it by clicking the Quit Process button at the top of the Activity Monitor window.
Too little ram - max out your ram.
Solution may be found if you search in the "More Like This" section over in the right column. -
Please help about Report Printer and PS tables-objects . ..
Hi everybody
I'm in trouble. I have a requirement in PS módule related with reports created by the Report Printer tool. I don't have any idea about these topics.
My requirement is to create a report (not with Report Printer) with the structure for projects, with all the structure Project-WBS-Network-Activity and with some values like Budget, Commit, Actual, Paid, etc.
The functional consultant only tells me about some reports created with Report Printer wich have the columns required, some report has the Budget, other one has the Commit, etc. For example, one report is the tcode S_ALR_87013532; i don't know if this transaction exists in all the SAP implementations or if it was created only for my company.
These reports only show two levels (Project-Network) so i i have to investigate:
1. How to get all the structure levels (project-WBS-network-activity)
2. How to 'translate' in code some value showed in a report created with Report Printer, i guess these values are created with formules and objects.
3. How to get the same values showed in these reports, but for the Networks and Activities.
I do not know anything about PS module and Report Printer and i really don't have any idea about how to make my development.
4. I think the functional consultant could be able to create the report himself with the Report Printer, but he tells me he does not manage this tool so good and he wants to send SAP mails with the reports, and he say the reports created with Report Printer can not send mails. Is this true ? and then, would be easier for me to learn Report Printer and create the report myself instead to develop it ?
Does somebody can help me ? Any idea ?
Please help !! I don't know even how to start with this.
Thanks in advance ..
FrankHi Frank,
here're some links:
-http://help.sap.com/saphelp_47x200/helpdata/en/ca/01993862b47c67e10000009b38f8cf/frameset.htm
-http://www.sapgenie.com/abap/tables_ps.htm
-Re: Project System Costs: budget/actual/commt/rem.plan/assd
Andreas -
Please help-PLSQL complex procedure writing
Hi all,
I am back again and requesting your help on this.I want your help to properly write the below code because now i feel-that its very confusing and not easily readable and following the program is tough.
I want to replace the same looping done below in many places using a function/or any other approaches.Then,need all your important suggestions in any other ways,approach...i can do the same which would be good for performance and best practices here.
Please help me as i am very stuck with this and struggling so much.
For any suggested things-please help me with the new code which will be very helping
CREATE OR REPLACE PROCEDURE "TEST_PROCEDURE" (
p_strtplanid test_training_plan.tplan_id%TYPE,
p_strpersonid test_person.person_id%TYPE,
p_strorg_id test_org.org_id%TYPE
IS
/*Here declarartion of variables */
BEGIN
/*Since TP is presently in LR,verify if its completed or not*/
SELECT COUNT (learning_record_id)
INTO v_inttpcompltd
FROM test_learning_record lr
WHERE lr.catalog_item_type = 'training-plan'
AND lr.status IN ('PASSED', 'WAIVED', 'TESTED_OUT')
AND lr.lr_catalog_history_id = p_strtplanid
AND lr.lr_person_id = p_strpersonid
AND lr.lr_org_id = p_strorg_id;
/*Credit based */
SELECT is_credit_based
INTO v_intcreditbased
FROM test_training_plan
WHERE tplan_id = p_strtplanid;
IF (v_inttpcompltd > 0)
THEN
IF (v_intcreditbased = 1)
THEN
DBMS_OUTPUT.put_line ('Starting Credit based ');
v_inttotreqactcompltd :=
fn_tp_get_cmpltd_act_cnt (p_strtplanid,
p_strpersonid,
p_strorg_id
SELECT NVL (EXTRACT (tplan_xml_data, '//numberOfCredits/text()').getstringval
0
NVL (EXTRACT (tplan_xml_data, '//accreditingOrg/text()').getstringval
0
INTO v_intrequiredcredits,
v_straccreditingorg
FROM test_training_plan
WHERE tplan_id = p_strtplanid;
SELECT accred_org_id
INTO v_straccreditingorg
FROM test_tp_acc_org
WHERE tplan_id = p_strtplanid;
IF (v_intrequiredcredits > v_inttotreqactcompltd)
THEN
DBMS_OUTPUT.put_line ('test_tp_acc_org ');
FOR obj IN (SELECT t_objective_id,
NVL (required_credits, 0) required_credits
FROM test_tp_objective
WHERE tplan_id = p_strtplanid)
LOOP
DBMS_OUTPUT.put_line
( ' Looping each Objective******************************'
|| obj.t_objective_id
SELECT NVL (SUM (lcdt.credit_hours), 0)
INTO v_inttotreqacttobecompltd
FROM test_train_obj_activity toa,
test_tp_objective tpobj,
test_learningactivity_credits lcdt,
test_tp_acc_org acc_org
WHERE lcdt.learning_activity_id = toa.activity_id
AND lcdt.acc_org_id = v_straccreditingorg
AND toa.t_objective_id = tpobj.t_objective_id
AND tpobj.tplan_id = acc_org.tplan_id
AND toa.t_objective_id = obj.t_objective_id
AND tpobj.tplan_id = p_strtplanid
AND tpobj.t_objective_id = obj.t_objective_id
AND toa.is_required = 1;
DBMS_OUTPUT.put_line
( 'Total credits for required activities****'
|| v_inttotreqacttobecompltd
--get credits for non event activities
SELECT NVL (SUM (credit_hours), 0)
INTO v_intnoneventbasedactcredit
FROM test_tp_objective tobj,
test_train_obj_activity toa,
test_learningactivity_credits lac,
test_learning_record lr,
test_tp_learning_activity tplplr,
test_learning_record tplr
WHERE tobj.t_objective_id = obj.t_objective_id
AND toa.t_objective_id = tobj.t_objective_id
AND toa.activity_id = lac.learning_activity_id
AND toa.activity_id = lr.lr_catalog_history_id
AND toa.is_required = 1
AND lr.learning_record_id = tplplr.activity_lp_lr_id
AND tplplr.tp_lp_lr_id = tplr.learning_record_id
AND tobj.tplan_id = p_strtplanid
AND tplr.lr_catalog_history_id = p_strtplanid
AND acc_org_id = v_straccreditingorg
AND lr.lr_person_id = p_strpersonid
AND tplr.lr_person_id = p_strpersonid
AND lr.status IN ('PASSED', 'WAIVED', 'TESTED_OUT');
--Get credits for events
SELECT NVL (SUM (credit_hours), 0)
INTO v_inteventbasedactcredit
FROM test_learningactivity_credits lac
WHERE lac.learning_activity_id IN (
SELECT event_id
FROM test_tp_objective tobj,
test_train_obj_activity toa,
test_learning_record lr,
test_event_sessions sessions,
test_tp_learning_activity tplplr,
test_learning_record tplr
WHERE tobj.t_objective_id = obj.t_objective_id
AND tobj.t_objective_id = toa.t_objective_id
AND toa.activity_id = sessions.event_id
AND toa.is_required = 1
AND sessions.event_session_id =
lr.lr_catalog_history_id
AND lr.learning_record_id =
tplplr.activity_lp_lr_id
AND tplplr.tp_lp_lr_id = tplr.learning_record_id
AND tplr.lr_catalog_history_id = p_strtplanid
AND tobj.tplan_id = p_strtplanid
AND tplr.lr_person_id = p_strpersonid
AND lr.lr_person_id = p_strpersonid
AND lr.status IN
('PASSED', 'WAIVED', 'TESTED_OUT'))
AND acc_org_id = v_straccreditingorg;
v_inttotreqactcompltd :=
v_intnoneventbasedactcredit + v_inteventbasedactcredit;
DBMS_OUTPUT.put_line
( ' Total credits of reqd. completed activities'
|| v_inttotreqactcompltd
IF (v_inttotreqacttobecompltd <= v_inttotreqactcompltd)
THEN
DBMS_OUTPUT.put_line
( '****** START INSIDE OBJ-COUNT COMPLETED************** '
|| obj.required_credits
v_strreturnval :=
fn_tp_obj_comp_act_cdt (p_strpersonid,
p_strtplanid,
obj.t_objective_id,
v_intcreditbased
DBMS_OUTPUT.put_line ( 'FN_TP_GET_CMPLTD_ACT_CNT'
|| v_strreturnval
IF (obj.required_credits > v_strreturnval)
THEN
DBMS_OUTPUT.put_line
|| obj.required_credits
*I want to write a function/or any other approaches to do the below looping and SELECT functionality and also read the return certain values selected.*
*Most importantly- this query being run in several places throughout the whole main program and everytime I have to put this SQL there and*
*which has increased the code by huge amount.*
**Another thing is-I want to remove the NOT IN below and use a different approach.
/*Start processing of new activity */
FOR activity IN
(SELECT objact.activity_id, objact.activity_type,
objact.is_required
FROM test_training_plan tp,
test_tp_objective tp_obj,
test_train_obj_activity objact
WHERE tp.tplan_id = tp_obj.tplan_id
AND tp.tplan_id = p_strtplanid
AND tp_obj.t_objective_id = obj.t_objective_id
AND tp_obj.t_objective_id = objact.t_objective_id
AND objact.activity_id NOT IN (
SELECT tplplr.activity_id
FROM test_learning_record lr,
test_learning_record lr1,
test_tp_learning_activity tplplr
WHERE lr.lr_catalog_history_id =
tplplr.activity_id
AND lr.learning_record_id =
tplplr.activity_lp_lr_id
AND tplplr.tp_lp_lr_id =
lr1.learning_record_id
AND lr1.lr_catalog_history_id =
p_strtplanid
AND lr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr.status IN
('PASSED', 'WAIVED',
'TESTED_OUT'))
AND objact.activity_id NOT IN (
SELECT event_id
FROM test_train_obj_activity toa,
test_event_sessions sessions,
test_learning_record lr1,
test_tp_learning_activity tplearnact,
test_learning_record tplr
WHERE toa.activity_id = sessions.event_id
AND sessions.event_session_id =
lr1.lr_catalog_history_id
AND lr1.learning_record_id =
tplearnact.activity_lp_lr_id
AND tplearnact.tp_lp_lr_id =
tplr.learning_record_id
AND tplr.lr_catalog_history_id =
p_strtplanid
---AND toa.is_required = 1
AND toa.t_objective_id =
obj.t_objective_id
AND tplr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr1.status IN
('PASSED', 'WAIVED',
'TESTED_OUT')))
LOOP
/*The function should return data so that i can validate them as the below ones*/
IF (activity.activity_type = 'Course')
THEN
sp_test_assign_coursetp (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id,
v_strlpid
ELSIF (activity.activity_type = 'Test')
THEN
sp_assign_testtp (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id
END IF;
END LOOP;
DBMS_OUTPUT.put_line ('Case of Optional Activity');
ELSE
/*Start processing of new activity */
FOR activity IN
(SELECT objact.activity_id, objact.activity_type,
objact.is_required
FROM test_training_plan tp,
test_tp_objective tp_obj,
test_train_obj_activity objact
WHERE tp.tplan_id = tp_obj.tplan_id
AND tp.tplan_id = p_strtplanid
AND tp_obj.t_objective_id = obj.t_objective_id
AND objact.is_required = 1
AND tp_obj.t_objective_id = objact.t_objective_id
AND objact.activity_id NOT IN (
SELECT tplplr.activity_id
FROM test_learning_record lr,
test_learning_record lr1,
test_tp_learning_activity tplplr
WHERE lr.lr_catalog_history_id =
tplplr.activity_id
AND lr.learning_record_id =
tplplr.activity_lp_lr_id
AND tplplr.tp_lp_lr_id =
lr1.learning_record_id
AND lr1.lr_catalog_history_id =
p_strtplanid
AND lr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr.status IN
('PASSED', 'WAIVED',
'TESTED_OUT'))
AND objact.activity_id NOT IN (
SELECT event_id
FROM test_train_obj_activity toa,
test_event_sessions sessions,
test_learning_record lr1,
test_tp_learning_activity tplearnact,
test_learning_record tplr
WHERE toa.activity_id = sessions.event_id
AND sessions.event_session_id =
lr1.lr_catalog_history_id
AND lr1.learning_record_id =
tplearnact.activity_lp_lr_id
AND tplearnact.tp_lp_lr_id =
tplr.learning_record_id
AND tplr.lr_catalog_history_id =
p_strtplanid
AND toa.is_required = 1
AND toa.t_objective_id =
obj.t_objective_id
AND tplr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr1.status IN
('PASSED', 'WAIVED',
'TESTED_OUT'))
LOOP
/*Move the TP only for required ids */
IF (activity.activity_type = 'Course')
THEN
SP_TEST_ASSIGN_COURSETP (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id,
v_strlpid
ELSIF (activity.activity_type = 'Test')
THEN
sp_assign_testtp (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id
END IF;
END LOOP;
END IF;
ELSE
DBMS_OUTPUT.put_line
('*********/*No of required credits is more then completed
******Start processing of new activity */'
/*Start processing of new activity */
FOR activity IN
(SELECT objact.activity_id, objact.activity_type,
objact.is_required
FROM test_training_plan tp,
test_tp_objective tp_obj,
test_train_obj_activity objact
WHERE tp.tplan_id = tp_obj.tplan_id
AND tp.tplan_id = p_strtplanid
AND tp_obj.t_objective_id = obj.t_objective_id
AND objact.is_required = 1
AND objact.t_objective_id = tp_obj.t_objective_id
AND objact.activity_id NOT IN (
SELECT tplplr.activity_id
FROM test_learning_record lr,
test_learning_record lr1,
test_tp_learning_activity tplplr
WHERE lr.lr_catalog_history_id =
tplplr.activity_id
AND lr.learning_record_id =
tplplr.activity_lp_lr_id
AND tplplr.tp_lp_lr_id =
lr1.learning_record_id
AND lr1.lr_catalog_history_id =
p_strtplanid
AND lr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr.status IN
('PASSED', 'WAIVED', 'TESTED_OUT'))
AND objact.activity_id NOT IN (
SELECT event_id
FROM test_train_obj_activity toa,
test_event_sessions sessions,
test_learning_record lr1,
test_tp_learning_activity tplearnact,
test_learning_record tplr
WHERE toa.activity_id = sessions.event_id
AND sessions.event_session_id =
lr1.lr_catalog_history_id
AND lr1.learning_record_id =
tplearnact.activity_lp_lr_id
AND tplearnact.tp_lp_lr_id =
tplr.learning_record_id
AND tplr.lr_catalog_history_id =
p_strtplanid
AND toa.is_required = 1
AND toa.t_objective_id = obj.t_objective_id
AND tplr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr1.status IN
('PASSED', 'WAIVED', 'TESTED_OUT')))
LOOP
/*Move the TP only for required ids */
IF (activity.activity_type = 'Course')
THEN
sp_assign_coursetp (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id,
v_strlpid
ELSIF (activity.activity_type = 'Test')
THEN
sp_assign_testtp (p_strpersonid,
activity.activity_id,
p_strpersonid,
activity.activity_type,
activity.is_required,
p_strtplanid,
v_straccreditingorg,
obj.t_objective_id
END IF;
END LOOP;
END IF;
FOR lr_lp_act IN (SELECT tplplr.activity_id,
tplplr.tp_lp_lr_id
FROM test_tp_objective tp_obj,
test_train_obj_activity toa,
test_learning_record lr,
test_tp_learning_activity tplplr,
test_learning_record tplr
WHERE tplplr.activity_lp_lr_id =
lr.learning_record_id
AND lr.lr_catalog_history_id =
toa.activity_id
AND tplplr.tp_lp_lr_id =
tplr.learning_record_id
AND tp_obj.t_objective_id =
toa.t_objective_id
AND tp_obj.tplan_id = p_strtplanid
AND tplplr.lp_lr_flag = 'LR'
AND tp_obj.t_objective_id =
obj.t_objective_id
AND lr.status IN
('PASSED', 'WAIVED', 'TESTED_OUT')
AND lr.lr_person_id = p_strpersonid
AND tplr.lr_person_id = p_strpersonid)
LOOP
DBMS_OUTPUT.put_line
( 'Get data for the activity to update TPs LP id****'
|| v_strlpid
DBMS_OUTPUT.put_line
( 'Values which I am updating----lr_lp_act.activity_id---'
|| obj.t_objective_id
DBMS_OUTPUT.put_line
( 'Values which I am updating----lr_lp_act.activity_id---'
|| lr_lp_act.activity_id
DBMS_OUTPUT.put_line
( 'Values which I am updating----lr_lp_act.tp_lp_lr_id---'
|| lr_lp_act.tp_lp_lr_id
UPDATE test_tp_learning_activity
SET tp_lp_lr_id = v_strlpid
WHERE activity_id = lr_lp_act.activity_id
AND tp_lp_lr_id = lr_lp_act.tp_lp_lr_id;
UPDATE test_learning_record
SET is_for_training_plan = 'NO'
WHERE learning_record_id IN (
SELECT activity_lp_lr_id
FROM test_tp_learning_activity
WHERE tp_lp_lr_id =
lr_lp_act.tp_lp_lr_id);
END LOOP;
END LOOP;
DELETE FROM test_learning_record_details
WHERE learning_record_id =
(SELECT learning_record_id
FROM test_learning_record
WHERE lr_catalog_history_id = p_strtplanid
AND lr_person_id = p_strpersonid
AND status = 'PASSED');
DBMS_OUTPUT.put_line
('UPDATE
test_learning_record_details'
DELETE FROM test_learning_record
WHERE learning_record_id =
(SELECT learning_record_id
FROM test_learning_record
WHERE lr_catalog_history_id = p_strtplanid
AND lr_person_id = p_strpersonid
AND status = 'PASSED');
END IF;Hello, as I mentioned on the other thread, views are the way to go here, not functions (they can be expensive from a performance perspective).
Therefore, for each group of repeated SELECTs, can you create a view based on that SELECT, and then substitute the view for the SELECTs in this code, and repost it (you know the code best) -- it will be easier then to rationalise it, and it would seem very likely that the LOOPs could be minimised if not eliminated altogether.
Edit
For example, you could try something like:
CREATE OR REPLACE VIEW TEST_EVENT_V
AS
SELECT event_id
FROM test_train_obj_activity toa,
test_event_sessions sessions,
test_learning_record lr1,
test_tp_learning_activity tplearnact,
test_learning_record tplr
WHERE toa.activity_id = sessions.event_id
AND sessions.event_session_id =
lr1.lr_catalog_history_id
AND lr1.learning_record_id =
tplearnact.activity_lp_lr_id
AND tplearnact.tp_lp_lr_id =
tplr.learning_record_id
AND tplr.lr_catalog_history_id =
p_strtplanid
---AND toa.is_required = 1
AND toa.t_objective_id =
obj.t_objective_id
AND tplr.lr_person_id = p_strpersonid
AND lr1.lr_person_id = p_strpersonid
AND lr1.status IN
('PASSED', 'WAIVED',
'TESTED_OUT'))And then replace all the NOT INs associate with that SQL with:
AND objact.activity_id NOT IN (
SELECT event_id
FROM TEST_EVENT_V) -
How to add fingerprint to 5s? I can`t press add a fingerpint please HELP ios 8,0,2
Hi, SillDeividas.
Thank you for visiting Apple Support Communities.
Here is an article that I would recommend taking a look at for this issue.
Get help with Touch ID
Make sure that you're using the latest version of iOS.
Make sure that your fingers and the Home button are clean and dry.*
Cover the Home button completely. Don't tap too quickly, don't press down hard, and don't move your finger while Touch ID is scanning. Make sure that your finger touches the metal ring around the Home button.
If you're using a case or screen protector, make sure it doesn't cover the Home button or the surrounding ring. If it does, remove the case or screen protector and try again.
Tap Settings > Touch ID & Passcode and make sure that iPhone Unlock or iTunes & App Store is on. Also make sure that you've enrolled one or more fingerprints.
Try enrolling a different finger.
If you can't enroll any of your fingers, take your device to an Apple Retail Store, Apple Authorized Service Provider, or contact AppleCare for help.
* Moisture, lotions, sweat, oils, cuts, or dry skin might affect fingerprint recognition. Certain activities can also temporarily affect fingerprint recognition, including exercising, showering, swimming, cooking, or other conditions or changes that affect your fingerprint.
iPhone 5s: Using Touch ID
http://support.apple.com/kb/HT5883
Cheers,
Jason H. -
The file just won't load into array...Please Help!
hi i need some help in loading a binary file into an array so that i can edit the data that was saved from previous run..
i could save the file but after that when i try to load it back to memory...i can't...ie. all the information keyed in were lost...please help
this is the Code for the loading process...
public static void loadAircraft (ArrayList aircraft) {
try {
FileInputStream filein = new FileInputStream(".\\Data\\Aircraft.bin");
ObjectInputStream objectin = new ObjectInputStream(filein);
Aircraft craft = (Aircraft) objectin.readObject();
aircraft.add(craft);
objectin.close();
filein.close();
catch (Exception e) {}
}the above code won't load anything into memory...is there a way for overcoming this?
inside the Aircraft class there are four different data of which they contain two differen data types.
one of which is String and the other three are in int.
Awaiting for reply...thanksyes...its some objects of an array that i am trying to load back...
erm...i'll show you the whole code maybe...
//to reference the swing library
import javax.swing.*;
import java.util.*;
import java.io.*;
public class SetupAircraft {
static ArrayList aircraft;
public static void init () {
aircraft = new ArrayList(5);
loadAircraft(aircraft);
//opens up another sub group while the user
//entered 1 as his/her option in the SetupSystem
//menu
public static void Setup () {
//this will create a string that is going to be displayed
//in the input dialog box
String menu = " Please select an option: \n"
+"----------------------------\n"
+"1) Add New Aircraft\n"
+"2) Edit Existing Aircraft\n"
+"3) List Aircraft\n"
+"4) Delete Existing Aircraft\n"
+"5) Save\n"
+"6) Return to Main Menu\n\n"
+" Enter a number between 1-6\n";
//declare a field named option for selection through menu
int option = 0;
//continue the loop until the user inputs the number 6
do {
//error handling for the input from the menu
//if the input is not integer the error is caught and
//reassigning option to be 0
try {
option = Integer.parseInt(JOptionPane.showInputDialog(null, menu,
"Setup Aircraft", JOptionPane.QUESTION_MESSAGE));
catch (NumberFormatException e) {
option = 0;
//determine which option the user has chosen
//and enters the respective section
switch (option) {
case 1: add(aircraft);
break;
case 2: edit(aircraft);
break;
case 3: list(aircraft);
break;
case 4: //delete(aircraft);
break;
case 5: save(aircraft);
break;
case 6: return;
default: JOptionPane.showMessageDialog(null, "Please enter a number between 1-6",
"Alert", JOptionPane.ERROR_MESSAGE);
option = 0;
while (true);
public static void add (ArrayList aircraft) {
String type = "";
int first = 0;
int business = 0;
int economy = 0;
do {
try {
type = JOptionPane.showInputDialog(null,"Enter Aircraft Type", "Prompt for Type",
JOptionPane.QUESTION_MESSAGE);
try {
if(aircraft.contains(type)) {
JOptionPane.showMessageDialog(null, type + " already exist!",
"Error", JOptionPane.ERROR_MESSAGE);
type = "-100";
catch (Exception e) {}
if (type=="-100");
else if (type.length()==0) {
JOptionPane.showMessageDialog(null, "Please enter an aircraft type",
"Error", JOptionPane.ERROR_MESSAGE);
else if (!(type.startsWith("-",3))) {
JOptionPane.showMessageDialog(null, "Please enter the aircraft type with XXX-XXX format where X is integer.",
"Error", JOptionPane.ERROR_MESSAGE);
type = "0";
//catch the input error that the user has produces.
catch (Exception e) {
return;
while (!(type.startsWith("-",3)));
//try to ask the user for the passenger's name and if the name field contains
//no characters at all repeat the prompt for name field until the user presses
//Cancel.
try {
first = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter First Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
try {
business = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Business Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
try {
economy = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Economy Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
Aircraft newAircraft = new Aircraft (type, first, business, economy);
aircraft.add(newAircraft);
JOptionPane.showMessageDialog(null, "Aircraft Sucessfully Added",
"Successful", JOptionPane.INFORMATION_MESSAGE);
public static void edit (ArrayList aircraft) {
String type = "";
int first = 0;
int business = 0;
int economy = 0;
do {
try {
type = JOptionPane.showInputDialog(null, "Enter Aircraft Type to Edit",
"Prompt for Type", JOptionPane.QUESTION_MESSAGE);
if (type.length()==0) {
JOptionPane.showMessageDialog(null,"Please enter an aircraft type",
"Error",JOptionPane.ERROR_MESSAGE);
else if (!(type.startsWith("-",3))) {
JOptionPane.showMessageDialog(null, "Please enter the aircraft type with XXX-XXX format where X is integer.",
"Error", JOptionPane.ERROR_MESSAGE);
type = "0";
catch (Exception e) {
return;
while (!(type.startsWith("-",3)));
try {
int edited = aircraft.indexOf(new UniqueAircraft(type));
Aircraft craft = (Aircraft)aircraft.get(edited);
try {
first = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter First Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
try {
business = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Business Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
try {
economy = Integer.parseInt(JOptionPane.showInputDialog(null, "Enter Economy Class Capacity",
"Prompt for Capacity", JOptionPane.QUESTION_MESSAGE));
catch (Exception e) {
String error = "For input string:";
if (e.getMessage() == "null") {
return;
else if (e.getMessage().startsWith(error)) {
JOptionPane.showMessageDialog(null, "Please enter only numbers",
"Error", JOptionPane.ERROR_MESSAGE);
Aircraft newAircraft = new Aircraft (type, first, business, economy);
aircraft.add(newAircraft);
aircraft.add(newAircraft);
JOptionPane.showMessageDialog(null, "Successfully edited aircraft\n"+type+" to capacities\n"
+"First: "+first+"\n"+"Business: "+business+"\n"+"Economy: "+economy,
"Successful", JOptionPane.INFORMATION_MESSAGE);
catch (Exception e) {
JOptionPane.showMessageDialog(null,e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
public static void list (ArrayList aircraft) {
JOptionPane.showMessageDialog(null, aircraft.size()+" aircraft found", "Found",JOptionPane.INFORMATION_MESSAGE);
Object[] aircrafts;
aircrafts = aircraft.toArray();
for (int i=0;i<aircraft.size();i++) {
Aircraft a = (Aircraft) aircrafts;
JOptionPane.showMessageDialog(null, a, "Aircrafts" + (i+1), JOptionPane.INFORMATION_MESSAGE);
public static void save (ArrayList aircraft) {
try {
FileOutputStream fileout = new FileOutputStream(".\\Data\\Aircraft.bin");
ObjectOutputStream objectout = new ObjectOutputStream(fileout);
Object[] aircrafts;
aircrafts = aircraft.toArray();
objectout.writeObject(aircrafts);
objectout.close();
fileout.close();
JOptionPane.showMessageDialog(null,aircraft.size()+" aircrafts saved", "Sucessful", JOptionPane.INFORMATION_MESSAGE);
catch (IOException e) {
JOptionPane.showMessageDialog(null,e.getMessage(),"Error",JOptionPane.ERROR_MESSAGE);
public static void loadAircraft (ArrayList aircraft) {
try {
FileInputStream filein = new FileInputStream(".\\Data\\Aircraft.bin");
ObjectInputStream objectin = new ObjectInputStream(filein);
Aircraft craft = null;
while ((craft=(Aircraft)objectin.readObject())!=null) {
aircraft.add(craft);
objectin.close();
filein.close();
catch (Exception e) {
JOptionPane.showMessageDialog(null,e.toString());
e.printStackTrace();
i think thats a bit too long..but it would explain what i am trying to save...its linking to the class Aircraft tho...
thanks...i appreciate your help... -
Hello to all,
My first post, but directly with a very difficult case I suddenly encountered yesterday evening...
When, as usually I opened the lid, it turned on from sleep, as usually, however frozen suddenly... so I did hard turn off... with ON/OFF button. When it turned on again, I had no possibility to put my password, but I was directly faced with "OSX tools" with 4 options (it is in Polish so I try the translation):
1) Recover from Time Machine back up;
2) Install OSX again;
3) Get online help;
4) Disk tool;
I am totally ****** off how this could happen. There was so much stuff on the disk, including the whole Aperture libary with thousends of my daughter photos (she was born a year ago) - priceless stuff.
I would never expect Apple to give me such an "experience"... never heppened to me on any PC's before..
I have 2011 MacBook Pro 13" with Maverics.
This is what I encountered using each of solutions:
1) I use Synology DS209 for Time Machine backup (connected via Lan cable). As far as I remember backup is about 2 months old. Anyway when I choose this option. OSX tool finds the Time Machine in DiskStation, connects to "MacBook Pro" timemachine on the external disk, BUT cannot find any BACKUP further on!!!! I am lost!
2) second, but not preferred option is OSX reinstallation.After initial analysis, and conditions acceptance, I cannot choose the only disk available. I can see only "recovery disk", but when I click on it, there is a message popping up "This disk is blocked". Obviously this prevents any further activities in reinstallation;
3) Third option is BS clearly, no help at all.
4) Disk tool shows me several disks / I am not an expert, so I am not sure how to understand it (Bold is active, standard non active):
- 320,07 GB Hitach HTS54503...
- Macintosh HD
- Superdrive
- disk1
- OS X Base System
I run "check disk" for Hitachi. No problems. Nothing to repair.
I run "check disk" for Macintosh HD => This disk requires repair. So I run "repair". Quickly I get a message "Disk Tool is unable to repair this disk. Please backup as much data as possible, format the disk and recover the files from backup"..... Really????? How can I backup any files???
DEAR COMMUNITY, please HELP!
What to do in order not to loose any data on one hand and on the other be able to use the computer again?
Please note I do not use "recovery CD" all is running without anything in CD/DVD drive.
Thanks in advance for your answers, competence and experience!
Disk tool does not give any solution, showingYou are in a bad situation, because the internal drive has malfunctioned and your only backup is on a device that is not suitable for use with Time Machine, despite what its manufacturer says.
You must try to make another backup now, before you do anything else. It may or may not be possible.
There are several ways to back up a Mac that is not fully functional. You need an external hard drive to hold the backup data.
1. Boot from the Recovery partition or from a local Time Machine backup volume (option key at startup.) Launch Disk Utility and follow the instructions in this support article, under “Instructions for backing up to an external hard disk via Disk Utility.”
2. If you have access to a working Mac, and both it and the non-working Mac have FireWire or Thunderbolt ports, boot the non-working Mac in target disk mode. Use the working Mac to copy the data to another drive. This technique won't work with USB, Ethernet, Wi-Fi, or Bluetooth.
3. If the internal drive of the non-working Mac is user-replaceable, remove it and mount it in an external enclosure or drive dock. Use another Mac to copy the data. -
Hi Everyone,
So I have
an InfoPath form that when it is created a SharePoint designer workflow is
kicked off that creates a document set in another library, the issue I am
having is that the document set it creates doesn’t have any documents in it??
When I go in to the library and manually choose to create a docset, it creates
the docset and the templates that I have in it is well, so I am really not sure
what is going on, any help at all would be really great.<o:p></o:p>
Best regards, MikeHi,
According to your post, my understanding is that the document set created by workflow does not contain documents.
I try to reproduce the issue, the result is the same as yours.
As a workaround, I recommend to use the use the custom workflow activity Copy List Item Extended Activity
to copy documents to document sets.
You can do this with codeless SharePoint Designer workflows as long as you can install the
Codeplex Custom SharePoint Designer Workflow Activities.
These activities are also built-in to SPD2010.
To install the custom activities, please follow the steps as below:
Download the solution file form
Useful Sharepoint Designer Custom Workflow Activities
Copy the wps file to the Disk C.
Open the SharePoint 2010 Management Shell.
Run the command: add spsolution c:\ dp.sharepoint.workflow.wsp
Open the Center Administration, click System Setting->Manage Farm Solution-> dp.sharepoint.workflow.wsp->Deploy to one or more Web Application.
Open the SharePoint designer, add action from Custom Actions.
Here is a similar thread for your reference:
http://social.technet.microsoft.com/Forums/exchange/en-US/cf7f9a50-dfc1-422a-8ba8-88cbb27c8575/workflow-create-a-document-set-and-add-default-documents-to-it?forum=sharepointcustomizationprevious
Thanks,
Linda Li
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Linda Li
TechNet Community Support -
Please help on RandomAccessFile
Hi all,
I need help with RandomAccessFile. I have looked everywhere without success. Here is what I want to do: I create a file that I want to update through my program. The change must occur at a specific location. This is why I use RandomAccess.
Assume the file is like that
1.Task: one
2.Date:
3.Assigned to: Paul
4.Resolve:literal
5.Yat:never
Now if the user wants to reassign a task to "Robert" or maybe add another person to the task , line 3 of the same file must be updated. It should look like:
1.Task: one
2.Date:
3.Assigned to: Paul,Robert
4.Resolve:literal
5.Yat:never
I first read the file in. If I hit line 2, I record the file pointer and break out of the loop. then the I type the following code:
RandomAccessfile write = new RandomAccessFile(File toUpdate,"rw");
.......// I read in here up to line 2. Then I do...
String newLine = oldLine+","+newAssignedName;
byte [ ] infos = newLine.getBytes();
ecrire.seek(pointer);
ecrire.write(infos,0,infos.length-1); //I rewrite the entire line
ecrire.close();After I do this the file looks like this
1.Task: one
2.Date:
3.Assigned To: Paul,Robertsolve:literal
5.Yat:never
if I change the statement ecrire.write(infos,0,infos.length-5); or somewhere close to that, it does not print less and less of the Paul,Robert part and more of the next line.
It somehow, grabs the next line and overwrites it as well. I dont know where else to turn. I have gone over and over again on the API but the methods that would seem the most logic to use do not work.
Please help
Sorry its so long.
Thanks java.langOk then the only option I have is to delete the file and create a new one with all the information that I'll probably need to save before hand. This is a big waste of time.
Mwell thanks, at least I wont waste my time looking anymore.
Thanks -
C_THR12_66 Certified Consultants please Help
Hi All,
I am planning to do SAP HCM Certification in C_THR12_66.
I am having THR10_1, THR10_2, THR12_1 and THR12_2 books, but I think all these books are of EHP5 version.
Are all the topics for the exams covered in these old Books?
Did any of you got questions from Pay Roll?
Did any one managed to write down the score for each topic after the exam. If so could you please post the topic areas for the exam or is it same as the below topic areas mentioned in traning.sap.com
Organizational Management Configuration > 12%
Configure the master data elements required for Organizational Management
Personnel Administration Configuration > 12%
Identify and configure the data elements used for Personnel Administration
Time and Attendance Management Configuration > 12%
Identify and configure the data elements used for Time and Attendance Management
Organizational Management 8% - 12%
Perform work activities around Organizational Management
Personnel Master Data 8% - 12%
Configure master data elements including: personnel actions, wage types, infotype characteristics
Reporting and Analytics 8% - 12%
Describe how to create infosets and build queries to support business decisions in HR
SAP HCM Business Processes 8% - 12%
Describe the business processes associated with HCM and their integration with other SAP applications
Time and Attendance Management 8% - 12%
Explain the business processes for Time and Attendance Management
Personnel Administration 8% - 12%
Describe the types of personnel information which can be maintained
https://training.sap.com/shop/certification/c_thr12_66-sap-certified-application-associate--human-capital-management-wit…
Please Help.
Regards,
SumanHi Suman,
I cleared THR12_66 in Jan this year. Payroll is excluded from this certification now and there was not a single question from payroll. Also, all the topics are covered in THR10 and THR12 (some of the topics are not required and you can skip them). I noted the score for each topic after exam.. it contained the topic, score and relevant course. Below are the details
Topic - Course
OM - THR12
Time config - THR10
PA config - THR10
SAP HCM business process - THR10, THR12
PA - THR10
OM Config - THR12
Reporting and Analysis - THR12
Time and Att management - THR10
I will try to recall more details on the major areas within each topic and update here. -
Please Help: Activity Units allocated in Full during Partial Confirmation
Dear All
I am facing a problem and need your help. When going for partial confirmation of a process order the system is allocating the full Costing Activity units. For example the process order is of 1000 units production and for 1000 unit production we have defined following controlling activities with certain rations
Setup
Machine
Labor
Factory Overhead
The unit of these activities are totally allocated even if i am going for a partial confirmation or i finally confirmed the process order even for 800 units. The unit and cost of these activities is charged on the basis of 1000 initially planned units.
Please help me urgently as we are having severe problems in Costing of process orders
Regards
Bilal AtharDear Siva
I have checked n OPK4 last tab page (Services --> Tick on Propose)
Its already ticked
And we are processing the confirmation through COR6N and here system is not displaying the activities automatically
Tell me what to do
Regards
Bilal Athar
Maybe you are looking for
-
Hi All, How would u hide a row of fields in a screen based on a condition ? Thanks in advance Archana.
-
NTFS format partition problem - install Windows 8.1
I cannot install Windows 8.1 from USB via bootcamp, on Mavericks late 2013 rMPB 15" When I get towards the end of the Windows Setup screen the Bootcamp partition is showing as not NTFS format There is no 'advanced options' to click, under the 4 parti
-
I've been getting a lot of partially downloaded podcasts in iTunes. They podcasts are supposed to be 55 minutes long, but often only 20 seconds or 20 minutes or so of the podcast gets downloaded. I do not see any obvious way to "re-download" the podc
-
Hi, I have to write a stored procedure to open a https web page. The environment we work in our company is a secure server with Oracle 10g where we enter our username and password to log into the company's portal. From here I would like to provide a
-
Cpu is burning because of Football Manager 2013
Hi Guys, I have Mid 2012 Macbook Pro i7 2.9 Ghz 8GB, 128GB OCZ Vertex 4 SSD. I install Football Manager 2013. When the match simulation run, cpu start to burn, fan is working so fast, It's very hot when I touch upper keyboard. It's turning normal tem