This script is not checking the existing of the new created item

Dear Friends
I have This script is not checking the existing of the new created item I am using this script in side WHEN-BUTTON-PRESSED trigger
I am using oracle Forms [32 Bit] Version 6.0.8.11.3 (Production)
My script as the following :
BEGIN
BEGIN
SELECT ITEM_CODE INTO :GLOBAL.DUMMY
FROM IM_INVENTORY
WHERE ITEM_CLASS = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.ITEM_CLASS)))
AND ITEM_TYPE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.ITEM_TYPE)))
AND ITEM_LENGTH = :IM_NEW_ITEMS.ITEM_LENGTH
AND ITEM_WIDTH = :IM_NEW_ITEMS.ITEM_WIDTH
AND ITEM_HIGHT1 = :IM_NEW_ITEMS.ITEM_HIGHT1
AND ITEM_HIGHT2 = :IM_NEW_ITEMS.ITEM_HIGHT2
AND COLOR_CODE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.COLOR_CODE)))
AND SHAPE_CODE = TO_NUMBER(RTRIM(LTRIM(:IM_NEW_ITEMS.SHAPE_CODE)));
-- get_err_message(87);
SHOW_MESSAGE('This Item Already Exist !!!');
RAISE FORM_TRIGGER_FAILURE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
show_message('here');
INSERT INTO IM_INVENTORY
(ITEM_CODE,ITEM_NAME_A,ITEM_NAME_E,STOCK_ITEM,ITEM_CLASS,ITEM_TYPE,SUPP_CODE,ITEM_LENGTH,ITEM_WIDTH,
ITEM_HIGHT1,ITEM_HIGHT2,COLOR_CODE,SHAPE_CODE,ITEM_SIZE_TYPE,VOLUME,CON_FACTOR,ITEM_PRICE1,
ITEM_DISCOUNT,MIN_QTY,MAX_QTY,COSTING_METHOD,ITEM_COST,STANDARD_COST,WEIGHT,ITEM_PRICE2,ITEM_PRICE3,
OPENING_COST,LAST_PUR_COST,QTY_FOR_PRICE2,QTY_FOR_PRICE3,ITEM_PRICE_METHOD,USER_ID,USER_DATE)
VALUES(:IM_NEW_ITEMS.ITEM_CODE,:GLOBAL.LOC_VAR_A,:GLOBAL.LOC_VAR_E,'1',:IM_NEW_ITEMS.ITEM_CLASS,:IM_NEW_ITEMS.ITEM_TYPE,'0',
:IM_NEW_ITEMS.ITEM_LENGTH,:IM_NEW_ITEMS.ITEM_WIDTH,:IM_NEW_ITEMS.ITEM_HIGHT1,:IM_NEW_ITEMS.ITEM_HIGHT2,
NVL(:IM_NEW_ITEMS.COLOR_CODE,0),NVL(:IM_NEW_ITEMS.SHAPE_CODE,0),1,NVL(:IM_NEW_ITEMS.VOLUME,0),1,:GLOBAL.ITEM_PRICE1,0.00,0.00,0.00,'1',0.00,0.00,
0.00,:GLOBAL.ITEM_PRICE1,:GLOBAL.ITEM_PRICE1,0.000,0.000,0.000,0.000,1,:IM_NEW_ITEMS.USER_ID,:IM_NEW_ITEMS.USER_DATE);
standard.commit; -- NEW COMMITED
clear_message; -- NEW COMMITED
     WHEN FORM_TRIGGER_FAILURE THEN
     SHOW_MESSAGE('Error : '||SQLERRM);
RAISE FORM_TRIGGER_FAILURE ;
WHEN OTHERS THEN
SHOW_MESSAGE('Error : '||SQLERRM);
RAISE FORM_TRIGGER_FAILURE ;
END;
END;
Waiting for your valuable answer .
Best regards
Jamil Alshaibani

Hi,
I have written the script also with constants values but still it is not going to
SHOW_MESSAGE('This Item Already Exist !!!');
and the script is written as the following :
BEGIN
SELECT 1 INTO :GLOBAL.DUMMY
FROM IM_INVENTORY
WHERE ITEM_CLASS ='110'
AND ITEM_TYPE ='110105'
AND ITEM_LENGTH = 1
AND ITEM_WIDTH = 1
AND ITEM_HIGHT1 = 1
AND ITEM_HIGHT2 = 0
AND COLOR_CODE = '3001'
AND SHAPE_CODE = '201' ;
SHOW_MESSAGE('1- This Item Already Exist !!!');
RAISE FORM_TRIGGER_FAILURE;
EXCEPTION
WHEN NO_DATA_FOUND THEN
show_message('here');
INSERT INTO IM_INVENTORY
(ITEM_CODE,ITEM_NAME_A,ITEM_NAME_E,STOCK_ITEM,ITEM_CLASS,ITEM_TYPE,SUPP_CODE,ITEM_LENGTH,ITEM_WIDTH,
ITEM_HIGHT1,ITEM_HIGHT2,COLOR_CODE,SHAPE_CODE,ITEM_SIZE_TYPE,VOLUME,CON_FACTOR,ITEM_PRICE1,
ITEM_DISCOUNT,MIN_QTY,MAX_QTY,COSTING_METHOD,ITEM_COST,STANDARD_COST,WEIGHT,ITEM_PRICE2,ITEM_PRICE3,
OPENING_COST,LAST_PUR_COST,QTY_FOR_PRICE2,QTY_FOR_PRICE3,ITEM_PRICE_METHOD,USER_ID,USER_DATE)
VALUES(:IM_NEW_ITEMS.ITEM_CODE,:GLOBAL.LOC_VAR_A,:GLOBAL.LOC_VAR_E,'1',:IM_NEW_ITEMS.ITEM_CLASS,:IM_NEW_ITEMS.ITEM_TYPE,'0',
:IM_NEW_ITEMS.ITEM_LENGTH,:IM_NEW_ITEMS.ITEM_WIDTH,:IM_NEW_ITEMS.ITEM_HIGHT1,:IM_NEW_ITEMS.ITEM_HIGHT2,
NVL(:IM_NEW_ITEMS.COLOR_CODE,0),NVL(:IM_NEW_ITEMS.SHAPE_CODE,0),1,NVL(:IM_NEW_ITEMS.VOLUME,0),1,:GLOBAL.ITEM_PRICE1,0.00,0.00,0.00,'1',0.00,0.00,
0.00,:GLOBAL.ITEM_PRICE1,:GLOBAL.ITEM_PRICE1,0.000,0.000,0.000,0.000,1,:IM_NEW_ITEMS.USER_ID,:IM_NEW_ITEMS.USER_DATE);
standard.commit; -- NEW COMMITED
clear_message; -- NEW COMMITED
     WHEN FORM_TRIGGER_FAILURE THEN
     SHOW_MESSAGE('Error : '||SQLERRM);
RAISE FORM_TRIGGER_FAILURE ;
WHEN OTHERS THEN
SHOW_MESSAGE('Error : '||SQLERRM);
RAISE FORM_TRIGGER_FAILURE ;
END;
Best regards
Jamil

Similar Messages

  • I am on a MAC Application. It has  been rejected by following reason.  This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed. We recommend implementing receipt validation to reso

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

    I am on a MAC Application.
    It has  been rejected by following reason.
    This app does not check for the existence of a purchase receipt, which can prevent In-App Purchases from being correctly processed.
    We recommend implementing receipt validation to resolve this issue.
    At a minimum, the app will need to check for the existence of an App Store receipt and exit at launch with a status of 173 if it does not exist.
    Any help ?
    Thanks in Advance.

  • HELP!  I tunes wouldn't update so I tried to delete and reinstall.  I keep getting a message stating the installation source for this product is not available.  Verify that the source exists and that you can access it.  please help!!

    Help!  Itunes wouldn't update so I tried to delet and reinstall.  I keep getting a message: The instillation source for this product is not available.  Verify that the source exists and that you can access it.  I also get this message:  The feature you are trying to use is on a network resource that is unavailable.  Click OK to try again, or enter an alternate path to a folder containing the installation package 'iTunes64.msi' in the box below.  Help I have no idea what that means or how to fix it. 

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page). Here's a screenshot showing the particular links on the page that you should be clicking:
    After clicking one of the circled links, you should be taken to another page, and after a few seconds you should see a download dialog appear for the msicuu2.exe file. Here's a screenshot of what it looks like for me in Firefox:
    Choose to Save the file. If the dialog box does not appear for you, click the link on the page that says "CLICK HERE IF IT DOES NOT". Here's a screenshot of the page with the relevant link circled:
    When the dialog appears, choose to save the file.
    (2) Go to the Downloads area for your Web browser. Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • HT1338 hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine.

    hi, my firefox and safari are both having difficulty loading certain parts of web pages. previous to this my firefox would freeze and state that a script was not responding. i would stop the script and reload the page and everything would be fine. now though the pages just load very very slowly or load leaving out certain pictures and video content. i've tried clearing my cache's and cookies, resetting my browser etc, but it seems like its a system issue as both safari and firefox are having issues. i've run Avast to screen for malware and it came up empty. any suggestions?

    10.4.8's been a pain for Networking... not sure of all the reasons though, or whether all the complaints might not be MS working around Bugs/Non-compliance, but at this point I think you should get Applejack...
    http://www.versiontracker.com/dyn/moreinfo/macosx/19596
    After installing, boot holding down CMD+s, then when the prompt shows, type in...
    applejack AUTO
    Then let it do all 5 of it's things.
    Fixes a lot of problems, and besides, if your Mac ever gets to the point it won't Boot... this is a life saver!
    After you run that... let's see where we are.
    BTW, several ISPs seem to have trouble with their DNS Servers lately, might try these insead...
    208.67.222.222
    208.67.220.220

  • This script is not updating or returning anything..

    This script is not updating or returning anything.. Ive also tried running it as a Stored Procedure but didnt get very far..
    I'm reluctant to remove the line from the get_employee cursor that gets only one record..
    Also, Ive got a couple of 'dbms_output..' lines to catch the employee number but nothing. Can anyone suggest how I at least debug it?
    I can also supply it as Stored Procedure but I didnt really know how to run it and it just hung in UNIX at what looked at the last line number..
    here's the code
    /* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    DECLARE
    -- Debugging/error handling
    -- Work variables
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                     := 0;
       insert_flag                      VARCHAR2 (8);
       job_exists                       VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                     := 0;
       l_date                           DATE                       := SYSDATE;
       l_validate                       BOOLEAN                    DEFAULT FALSE;
       l_ass_obj                        NUMBER;
       l_emp_obj                        NUMBER;
       l_default_code_comb_id           NUMBER                     := 217269;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_organization_id                NUMBER                     := 0;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_effective_end_date             DATE
                                        := TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
       l_no_managers_warning            BOOLEAN;
       l_special_ceiling_step_id        NUMBER;
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_entries_changed_warning        VARCHAR2 (30);
       l_spp_delete_warning             BOOLEAN;
       l_org_now_no_manager_warning     BOOLEAN;
       l_tax_district_changed_warning   BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_business_group_id              NUMBER                     := 0;
       l_person_id                      NUMBER;
       l_assignment_number              VARCHAR2 (35);
       l_style                          VARCHAR2 (4)               := 'GB';
       ip_p_address_id                  NUMBER;
       l_effective_date                 DATE                       := SYSDATE;
       l_date_from                      DATE                       := SYSDATE;
       l_date_to                        DATE                       := NULL;
    -- CURSOR 1 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_get_employee_details
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
    -- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
       emp_rec                          c_check_employee%ROWTYPE;
    -- Cursor 3 to SELECT all existing Employees that DO NOT have a JOB specified.
    /*   CURSOR c_check_emps_job (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.full_name, paas.assignment_id,
                          paas.supervisor_id, paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND paas.job_id IS NULL
                      AND per.person_id = '30188';
       empjob_rec                       c_check_emps_job%ROWTYPE;
    -- Cursor 4 retrieves latest Object Version Number from per_assignments_f table..
       CURSOR csr_ass_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    BEGIN
    -- UPDATE of EXISTING Employees Details from work table..
       FOR v_emp IN c_get_employee_details
       LOOP
    -- determine whether customer already exists
          OPEN c_check_employee (v_emp.employee_number);
          FETCH c_check_employee
           INTO emp_rec;
          IF c_check_employee%FOUND
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
          ELSE
             DBMS_OUTPUT.PUT_LINE (   'Employee No: '
                                   || v_emp.employee_number
                                   || '  has not been found!  '
             insert_flag := 'X';
          END IF;
          CLOSE c_check_employee;
    -- determine which customers already have been assigned a Job
          /*  OPEN c_check_emps_job (v_emp.employee_number);
           FETCH c_check_emps_job
           INTO empjob_rec;
           IF c_check_emps_job%FOUND
          THEN       job_exists := 'X';   -- so we're wanting all those with job_exists := 'X'..
          ELSE        job_exists := 'I';
          END IF;
          CLOSE c_check_employee;
    -- Obtain the most recent Object Version Number..
          OPEN csr_ass_ovn (v_emp.person_id);
          FETCH csr_ass_ovn
           INTO l_ass_obj;
          CLOSE csr_ass_ovn;
    -- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
          IF insert_flag = 'I'
          THEN
             BEGIN
         DBMS_OUTPUT.PUT_LINE (   ' Updating Employee..:' || v_emp.employee_number );
                -- Importing Emp Job, Default Cost Code and Supervisor details --
                Hr_Assignment_Api.update_emp_asg
                   (p_validate                    => l_validate,
                    p_effective_date              => SYSDATE,           -- l_date,
                    p_datetrack_update_mode       => l_datetrack_update_mode,
                    p_assignment_id               => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number       => l_ass_obj,
                    p_supervisor_id               => v_emp.supervisor_id,
                    p_default_code_comb_id        => l_default_code_comb_id,
                    p_concatenated_segments       => l_concatenated_segments,
                    p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                    p_comment_id                  => l_comment_id,
                    p_effective_start_date        => l_date,              --IN/OUT
                    p_effective_end_date          => l_effective_end_date,
                    p_no_managers_warning         => l_no_managers_warning,
                    p_other_manager_warning       => l_other_manager_warning
                Hr_Assignment_Api.update_emp_asg_criteria
                   (p_validate                          => l_validate,
                    p_effective_date                    => SYSDATE,     -- l_date,
                    p_datetrack_update_mode             => l_datetrack_update_mode,
                    p_assignment_id                     => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number             => l_ass_obj,
                    p_organization_id                   => l_organization_id,
    --            p_location_id                       => std_location_id,
    --            p_job_id                            => l_job_id,
    --            p_position_id                       => std_position_id,
                    p_special_ceiling_step_id           => l_special_ceiling_step_id,
                    p_effective_start_date              => l_date,
                    p_effective_end_date                => l_effective_end_date,
                    p_people_group_id                   => l_people_group_id,
                    p_group_name                        => l_group_name,
                    p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                    p_other_manager_warning             => l_other_manager_warning,
                    p_spp_delete_warning                => l_spp_delete_warning,
                    p_entries_changed_warning           => l_entries_changed_warning,
                    p_tax_district_changed_warning      => l_tax_district_changed_warning
                DBMS_OUTPUT.PUT_LINE (   ' Employee Updated..:'
                                      || v_emp.employee_number
    -- End of customer related details
             END;
          END IF;
       END LOOP;
       COMMIT;
    EXCEPTION
       WHEN NO_DATA_FOUND
       THEN
          ROLLBACK;
    -- DBMS_OUTPUT.PUT_LINE ( '"No Data Found" for Employee:'  || v_emp.employee_number || SQLERRM );
       WHEN OTHERS
       THEN
          ROLLBACK;
          err_num := TO_CHAR (SQLCODE);
          err_msg := SUBSTR (SQLERRM, 1, 150);
          err_line :=
                'Oracle error (seqno='
             || err_seq
             || ') '
             || err_num
             || ' occurred processing record '
             || TO_CHAR (v_rec_cnt + 1)
             || ' : '
             || err_msg;
          DBMS_OUTPUT.PUT_LINE (err_line);
          INSERT INTO SU_SL_ERRORS
               VALUES (err_num, err_msg, SYSTIMESTAMP);
    END;
    EXIT;

    Hi
    Check if that works for you
    /* Formatted on 2009/04/22 14:43 (Formatter Plus v4.8.7) */
    SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
    SET verify OFF
    SET feedback OFF
    DECLARE
    -- Debugging/error handling
    -- Work variables
       p_emp_number                     VARCHAR2 (14);
       v_rec_cnt                        NUMBER                     := 0;
       insert_flag                      VARCHAR2 (8);
       job_exists                       VARCHAR2 (8);
       err_num                          NUMBER;
       err_msg                          VARCHAR2 (150);
       err_line                         VARCHAR2 (350);
       err_seq                          NUMBER                     := 0;
       l_date                           DATE                       := SYSDATE;
       l_validate                       BOOLEAN                    DEFAULT FALSE;
       l_***_obj                        NUMBER;
       l_emp_obj                        NUMBER;
       l_default_code_comb_id           NUMBER                     := 217269;
       l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
       l_organization_id                NUMBER                     := 0;
       l_concatenated_segments          VARCHAR2 (240);
       l_soft_coding_keyflex_id         NUMBER;
       l_comment_id                     NUMBER;
       l_effective_end_date             DATE
                                        := TO_DATE ('17-FEB-2059', 'DD-MON-YYYY');
       l_no_managers_warning            BOOLEAN;
       l_special_ceiling_step_id        NUMBER;
       l_people_group_id                NUMBER;
       l_group_name                     VARCHAR2 (30);
       l_entries_changed_warning        VARCHAR2 (30);
       l_spp_delete_warning             BOOLEAN;
       l_org_now_no_manager_warning     BOOLEAN;
       l_tax_district_changed_warning   BOOLEAN;
       l_other_manager_warning          BOOLEAN;
       l_business_group_id              NUMBER                     := 0;
       l_person_id                      NUMBER;
       l_assignment_number              VARCHAR2 (35);
       l_style                          VARCHAR2 (4)               := 'GB';
       ip_p_address_id                  NUMBER;
       l_effective_date                 DATE                       := SYSDATE;
       l_date_from                      DATE                       := SYSDATE;
       l_date_to                        DATE                       := NULL;
    -- CURSOR 1 - get all Existing Employees (well, for testing purps..
    just Peter Barlow for now..)
       CURSOR c_get_employee_details
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
    -- CURSOR 2 - get all Existing Employees (well, for testing purps.. just Peter Barlow for now..)
       CURSOR c_check_employee (p_emp_number VARCHAR2)
       IS
          SELECT DISTINCT per.person_id, per.employee_number, per.full_name,
                          paas.assignment_id, paas.supervisor_id,
                          paas.default_code_comb_id
                     FROM per_all_people_f per, per_all_assignments_f paas
                    WHERE per.employee_number = p_emp_number
                      AND paas.person_id(+) = per.person_id
                      AND per.person_id = '30188';
       emp_rec                          c_check_employee%ROWTYPE;
    -- Cursor 4 retrieves latest Object Version Number from per_assignments_f table..
       CURSOR csr_***_ovn (cp_person_id IN per_all_people_f.person_id%TYPE)
       IS
          SELECT MAX (paas.object_version_number)
            FROM per_assignments_f paas, per_all_people_f per
           WHERE paas.person_id = per.person_id
             AND per.employee_number = paas.assignment_number
             AND per.person_id = cp_person_id;
    BEGIN
    -- UPDATE of EXISTING Employees Details from work table..
       FOR v_emp IN c_get_employee_details
       LOOP
    -- determine whether customer already exists
          OPEN c_check_employee (v_emp.employee_number);
          LOOP
          FETCH c_check_employee
           INTO emp_rec;
          IF c_check_employee%FOUND
          THEN
             insert_flag := 'I';
             DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.employee_number);
          ELSE
             DBMS_OUTPUT.PUT_LINE (   'Employee No: '
                                   || v_emp.employee_number
                                   || '  has not been found!  '
             insert_flag := 'X';
          END IF;
          END LOOP;
          CLOSE c_check_employee;
    -- Obtain the most recent Object Version Number..
          OPEN csr_***_ovn (v_emp.person_id);
          LOOP
          FETCH csr_***_ovn
           INTO l_***_obj;
          END LOOP;
          CLOSE csr_***_ovn;
    -- Now Update PER_ALL_PEOPLE_F and PER_ASSIGNMENTS with default Cost Code '9999'
          IF insert_flag = 'I'
          THEN
             BEGIN
         DBMS_OUTPUT.PUT_LINE (   ' Updating Employee..:' || v_emp.employee_number );
                -- Importing Emp Job, Default Cost Code and Supervisor details --
                Hr_Assignment_Api.update_emp_asg
                   (p_validate                    => l_validate,
                    p_effective_date              => SYSDATE,           -- l_date,
                    p_datetrack_update_mode       => l_datetrack_update_mode,
                    p_assignment_id               => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number       => l_***_obj,
                    p_supervisor_id               => v_emp.supervisor_id,
                    p_default_code_comb_id        => l_default_code_comb_id,
                    p_concatenated_segments       => l_concatenated_segments,
                    p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                    p_comment_id                  => l_comment_id,
                    p_effective_start_date        => l_date,              --IN/OUT
                    p_effective_end_date          => l_effective_end_date,
                    p_no_managers_warning         => l_no_managers_warning,
                    p_other_manager_warning       => l_other_manager_warning
                Hr_Assignment_Api.update_emp_asg_criteria
                   (p_validate                          => l_validate,
                    p_effective_date                    => SYSDATE,     -- l_date,
                    p_datetrack_update_mode             => l_datetrack_update_mode,
                    p_assignment_id                     => v_emp.assignment_id,
                                                          --- ** REQUIRED FIELD **
                    p_object_version_number             => l_***_obj,
                    p_organization_id                   => l_organization_id,
    --            p_location_id                       => std_location_id,
    --            p_job_id                            => l_job_id,
    --            p_position_id                       => std_position_id,
                    p_special_ceiling_step_id           => l_special_ceiling_step_id,
                    p_effective_start_date              => l_date,
                    p_effective_end_date                => l_effective_end_date,
                    p_people_group_id                   => l_people_group_id,
                    p_group_name                        => l_group_name,
                    p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
                    p_other_manager_warning             => l_other_manager_warning,
                    p_spp_delete_warning                => l_spp_delete_warning,
                    p_entries_changed_warning           => l_entries_changed_warning,
                    p_tax_district_changed_warning      => l_tax_district_changed_warning
                DBMS_OUTPUT.PUT_LINE (   ' Employee Updated..:'
                                      || v_emp.employee_number
    -- End of customer related details
             END;
          END IF;
       END LOOP;
       COMMIT;
    END;
    EXIT;Thanks

  • How to change the Existing alias with new alias name...MAXL SCRIPT

    HI Experts
    I need to change alias name of the existing member with new alias name.
    please send me maxl code to change the alias name .
    My thought is
    1) Old alias should be replaced with new alias name .
    2)There is one account that should be rolled out to another parent..these parents are already exsist
    3) I need a MAXL Script to change the new alias name .
    please suggest ASAP.
    Thanks
    USER

    John
    I heard that we can replace existing alias name with new alias thru MAXL
    i.e replace alias name XXXX member with YYYY ;
    please correct me if iam wrong ,might be Maxl command is wrong but this is the idea.
    Thanks
    USER

  • Some, but not all, podcasts existing on the iPod no longer appear in iTunes. Different podcasts have been affected at different times, after changes in the state of the iPod. Only podcasts are affected.

    I have not seen this precise issue addressed anywhere. I don’t know if it’s an iTunes or an iPod problem:
    - Some, but not all, podcasts existing on the iPod no longer appear in iTunes;
      this, after normal behavior for more than a year since purchase of the iPod.
    - Different podcasts have been affected at different times, after changes in the state of the iPod.
    - Only podcasts are affected.
    - This concerns an iPod nano 6th gen. and iTunes 11.0.2 (26) on System 10.6.8
    - The only change to iTunes, the Mac, or the iPod is that just before this condition began
      I’d begun syncing an iPhone via iTunes.
    I sync manually (“manually manage music and videos”). The first time this happened, I wanted to delete seventeen podcast episodes (all belonging to one podcast) existing on the iPod — but they didn’t show up in iTunes. I tried re-downloading them and re-syncing, to see if the new versions would somehow “re-link” to iTunes. They didn’t. Only one — new — episode appeared in iTunes.
    I ultimately reset the iPod and manually resynced all the podcasts I currently had on iTunes. That worked, though I had to painstakingly add in all the other content deleted by the reset.
    So: after that reset and manual sync, all podcasts and episodes on the iPod were visible to iTunes and I was able to delete the podcast and its — now 18 — episodes I’d wanted to get rid of to begin with. But the next time I connected the iPod, only 8 podcast episodes out of 21 episodes total existing on the iPod were visible to iTunes. These are different podcasts; I’d deleted the original “invisible” ones.
    By “visible,” I mean in the “Podcasts” list view under “[name]’s iPod” in the iTunes sidebar. If I select “[name]’s” iPod in the iTunes sidebar and the “Podcasts” tab, all podcasts and episodes are visible, though greyed out because I’m set to sync manually. It’s unclear to me if these are the podcasts on the iPod or those currently in iTunes, as they are currently the same. If I switch to syncing automatically, all content on the iPod will be lost again, so I’m not up to trying it at the moment.
    As I said,  this involves only podcasts. All other content on the iPod does appear in iTunes.

    I have the same problem- i see my movies in the ipod section in itunes and they even show as mpeg4 in the 'kind' section but they dont have that small TV icon next to them. if i play these in itunes, they play fine- but try playing them on the ipod and all you hear is the sound and no picture. All videos that i manually transfer work fine in the beginning- its when i hook up the ipod to the comp again and start itunes- they start showing up without the 'tv' icon!! i have to again transfer them from the itunes library to activate them as videos.
    Need Help!!!

  • Hi, I upgraded my iphone 4 to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tels that this device is not registered as part of the iphone developer programme. How could I fix this problem? Please..?

    Hi, I upgraded my iphone 4 (4.3.3) to iso 5 beta 6, but now it shows "No Service" at top left, and unable to complete your activation. Also tells that "this device is not registered as part of the iphone developer programme." How could I fix this problem? Please help me...,

    I had a similar occurrence with my just activated iPhone 4.
    I had been using the phone for three days when an odd occurrence with voice mail caused me to call tech support. After some discussion they decided to push the activation to my phone (even though I had been using it for three days). When I went to power it back up again I repeatedly got the "no service" notification. I got tech support on a land line and we tried hard reboots and so on. No joy. They told me to take it in to the point of sale and either the SIM card or the phone needed (or both) needed replacing.
    I tried one last hard reboot after dinner and the phone came up with service, but I took it in to the point of sale in the morning and they swapped the SIM card out and I went to a Genius Bar appointment to get the phone checked out. It is supposedly OK, but I am still having some problems when syncing it so I will have to visit the Genius Bar again tomorrow about that. At least I have not experienced the "no service" problem in the roughly 24 hours since the SIM card was replaced. (Fingers crossed)

  • When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this?

    When I clear my history, Firefox clears my browsing and download history even though this checkbox is not checked. It didn't use to do this. What can I do to fix this? I believe the problem started with the last Firefox update.

    Do you mean the "Form autocomplete" feature?
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history" > "Remember search and form history"
    *https://support.mozilla.org/kb/Form+autocomplete

  • Failed to create an IDataAdapter object. This provider may not be fully supported with the Execute SQL Task

    I executed a simple query inside an execute SQL task - 
    SELECT col1, col2
    from thetable
    where code = ?
    order by id asc
    Exec sql task - ADO.NET connection
    parameter "code" is an int32 in SSIS and int32 in parameter mapping of exec sql task.
    It works fine in SQL server, but in SSIS it causes the error - 
    [Execute SQL Task] Error: Executing the query "SELECT col1, col2
    from thet..." failed with the following error: "Failed to create an IDataAdapter object. This provider may not be fully supported with the Execute SQL Task. Error message 'Incorrect syntax near '?'.'.". Possible failure reasons: Problems with
    the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly.
    How do I fix this error ? 

    Thanks. I think it was sqlclient. I changed it to OLEDB to avoid that issue. Btw, what is this "provider" ?
    Hi blastoSO,
    To check which provider is used by the current ADO.NET Connection Manager, you can open the “Configure ADO.NET Connection Manager” window, and check the “Managed Provider” option of each Data connection.
    In an Execute SQL Task, if the managed provider is “System.Data.SqlClient”, we should use the rule for the ADO.NET connection type in the following table. If the managed provider is “System.Data.Oledb” or “System.Data.Odbc”, it actually uses the OLE DB provider
    or ODBC provider, so we should use the rule for the OLE DB or OBC rule in the following table:
    Reference:
    http://technet.microsoft.com/en-us/library/cc280502.aspx
    Regards,
    Mike Yin
    TechNet Community Support

  • Why don't the options to not check if Firefox is the default browser, set the homepage to a blank page, and password settings hold?

    Why don't the options to not check if Firefox is the default browser, set the homepage to a blank page, and password settings hold? It opens to a firefox page and asks if I want to make firefox the default and has the checkbox checked to check for default with every launching.
    Just updated to Firefox ESR 24.6.0

    This article lists a number of possible reasons that Firefox might be unable to save your preference changes during your session, or that they might be overridden at startup: [[How to fix preferences that won't save]].
    Another common issue is a feature of security or utility software that protects you from unwanted browser settings changes by reverting them back to an earlier state. For example, Advanced SystemCare's Surfing Protection feature can do this. You may need to turn off such features, if you have them, in order to keep your changes.

  • My Iphone 4 will not start up, when i connect it to itunes i says : Activation error This device is not registered as part of the iPhone Developer Program.If you are a member of the Program, please register your device in the iPhone Developer Program Port

    my Iphone 4 will not start up, when i connect it to itunes i says : Activation error This device is not registered as part of the iPhone Developer Program.If you are a member of the Program, please register your device in the iPhone Developer Program Port

    Well, you downloaded a bootleg copy of iOS 7 beta and have installed it on your phone without being a developer. It has bricked your phone and you cannot get help here because doing what you did has voided your warranty. Have a nice day.

  • This method should not be called anymore. The client was already released i

    Hi,
    while configuring Business Packager for Projects 50.3 fo, we made few changes in R/3 side as per the documentation. after that we are getting following error in portal
    "This method should not be called anymore. The client was already released into the pool or the pool entry was deleted"
    all the chages were reverted in R/3 system still we are getting the same error.
    Can any one help on this issue....
    Thanks in advance and for early responce higher marks would be awarded!!!..     
    Regards
    Ravi Sankar Karri

    Hi,
    Well there were errors in how stop works:
    "Stopping a thread with Thread.stop causes it to
    unlock all of the monitors that it has locked (as a
    natural consequence of the unchecked ThreadDeath
    exception propagating up the stack). If any of the
    objects previously protected by these monitors were in
    an inconsistent state, the damaged objects become
    visible to other threads, potentially resulting in
    arbitrary behavior. "
    I do understand that you want to have something like
    killTheTreadIDontCareAboutConcequences-method, but
    it's better to let all your methods that you want to
    be able to terminate take a timeout argument, and deal
    with the termination in the method. (Close the
    sockets/streams etc that you are blocking on).
    /KajThe point is, it is not always possible to make those blocking methods stop, via some magic "timeout" thingamabob. The bottom line is still that the blocking methods were written incorrectly to begin with (to possibly block indefinitely), so one cannot come up with an across-the-board solution, other than getting the root cause fixed in the first place. However, one is not always in control of fixing the root cause.

  • Mountain lion has killed my mac book pro. After downloading and trying to install, I am stuck in a loop of "not enough room to install on this disk" and not being able to access the old disk's data to open up space.

    Mountain lion has killed my mac book pro. After downloading and trying to install, I am stuck in a loop of "not enough room to install on this disk" and not being able to access the old disk's data to open up space.

    Nope. It just opened the installer and stayed in the same loop.
    It tells me to choose a startup disk but the only option is the HD which it will not use because it says it cannot gather enough information.
    Eveything was working fine until the mountain lion failed install.

  • Hi,when ı work on photoshop suddenly my computer restart but i have saved my project before restart.and when ı want to open my psd ,  photoshop alert me with this messagge ;Could not complete your request because the file is not compatible this version of

    hi,when ı work on photoshop suddenly my computer restart but i have saved my project before restart.and when ı want to open my psd ,  photoshop alert me with this messagge ;Could not complete your request because the file is not compatible this version of photoshop ..ı tried all versions but cold not open again.there was a very ımportant work for two days.can you help me please?

    tworules wrote:
    …photoshop need a recovery or auto save system.
    tworules,
    You haven't mentioned the exact version of Photoshop you are running.  As the always helpful and knowledgeable JJMack told you, new versions of Photoshop do have auto save and recovery when enabled in your Photoshop Preferences.
    However, no auto recovery and/or autosave is a match for a defective machine.  As suggested by Mr. Cox, you should do a thorough inspection of all your hardware ASAP.

Maybe you are looking for