Employee No: 20227 exists but has no assignment id!

Please could someone read through my script that uses several APIs to insert and update employee records and suggest why Im getting my error message "Employee No: 20227 exists but has no assignment id." How does it not have an assignment ID? A simpler version of this script has been working fine in LIVE Production. I can post this if required. Totally stumped.
/* Formatted on 2009/04/29 11:52 (Formatter Plus v4.8.7) */
SET serveroutput ON SIZE 1000000 FORMAT WRAPPED
SET verify OFF
SET feedback OFF
DECLARE
-- Debugging/error handling
-- Work variables
   obj_vers_no_failed exception;
   emp_status_errors1 exception;
   emp_status_errors2 exception;
   location_code_errors  exception;
   v_emp_no number;
   l_employ_start_date        DATE:= TO_DATE ('01-APR-1999', 'DD-MON-YYYY');
   v_ora_loc_code number                     := 0;
   p_emp_number                     VARCHAR2 (14);
   v_rec_cnt                        NUMBER                          := 0;
   insert_flag                      VARCHAR2 (8);
   err_num                          NUMBER;
   err_msg                          VARCHAR2 (150);
   err_line                         VARCHAR2 (350);
   err_seq                          NUMBER                          := 0;
   l_validate                       BOOLEAN                     DEFAULT FALSE;
   l_std_business_group_id          NUMBER                          := '0';
   l_default_code_comb_id           NUMBER                        := '218048';
   l_organization_id                NUMBER              := '0';
   l_set_of_books_id                NUMBER              := '1';
   l_job_id                         NUMBER             := '10';
   l_obj                            NUMBER := '0';
   l_obj2          NUMBER  := '0' ;
   l_datetrack_update_mode          VARCHAR2 (30)             := 'CORRECTION';
   l_assignment_sequence            NUMBER;
   l_name_combination_warning       BOOLEAN                         := FALSE;
   l_assign_payroll_warning         BOOLEAN                         := FALSE;
   l_org_now_no_manager_warning     BOOLEAN;
   l_other_manager_warning          BOOLEAN;
   l_spp_delete_warning             BOOLEAN;
   l_entries_changed_warning        VARCHAR2 (30);
   l_tax_district_changed_warning   BOOLEAN;
   l_person_id                      NUMBER;
   l_assignment_id                  NUMBER := 0;
   l_assignment_id2           NUMBER       := 0;
   l_special_ceiling_step_id        NUMBER;
   l_per_effective_end_date         DATE:= TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
   l_people_group_id                NUMBER;
   l_group_name                     VARCHAR2 (30);
   l_assignment_number              VARCHAR2 (35);
   l_effective_end_date             DATE := TO_DATE ('11-Jul-2049', 'DD-MON-YYYY');
   l_date                           DATE                           := SYSDATE;
   ip_p_address_id                  per_addresses.address_id%TYPE;
   ip_p_object_version_number       NUMBER;
   ip_p_party_id                    per_addresses.party_id%TYPE;
   l_per_object_version_number      NUMBER;
   l_asg_object_version_number      NUMBER;
   l_full_name                      VARCHAR2 (240);
   l_per_comment_id                 NUMBER;
   l_per_effective_start_date       DATE;
   l_concatenated_segments          VARCHAR2 (240);
   l_soft_coding_keyflex_id         NUMBER;
   l_comment_id                     NUMBER;
   l_no_managers_warning            BOOLEAN;
-- Get employee details info from work table
   CURSOR get_employee_details
   IS
      SELECT std_hire_date, std_last_name, std_sex, std_date_of_birth,
             std_email_address, std_emp_status,
             LPAD (std_employee_number, 8, '0') std_employee_number,
             std_first_name, std_marital_status, std_middle_names,
             std_nationality, std_title, std_national_identifier,
             std_address_line1, std_address_line2, std_address_line3,
             std_address_line4, std_post_code, std_telephone_1, std_country,
              std_location_id, std_supervisor_id
        FROM SU_TEMPLOYEE_DETAILS     
     WHERE std_employee_number IS NOT NULL AND std_national_identifier IS NOT NULL;
-- checks employee details info from PER_ALL_PEOPLE_F table
   CURSOR c_check_employee (p_emp_number VARCHAR2)
   IS
      SELECT per.person_id, per.business_group_id, per.last_name,
             per.start_date, per.date_of_birth, per.email_address,
             per.employee_number, per.first_name, per.marital_status,
             per.middle_names, per.nationality, per.national_identifier,
             per.sex, per.title, padd.address_id, padd.primary_flag,
             padd.address_line1, padd.address_line2, padd.address_line3,
             padd.town_or_city, padd.postal_code, padd.telephone_number_1, paas.assignment_id,
             paas.assignment_number, paas.object_version_number, paas.EFFECTIVE_START_DATE,
     paas.job_id, paas.position_id, paas.location_id, paas.organization_id, paas.assignment_type, paas.supervisor_id,
             paas.default_code_comb_id, paas.set_of_books_id, paas.period_of_service_id
      FROM   per_all_people_f per,
             per_all_assignments_f paas,
             per_addresses padd
       WHERE per.employee_number = p_emp_number
         AND per.person_id = padd.person_id
         AND paas.person_id(+) = per.person_id;
--  AND per.employee_number IS NOT NULL AND per.national_identifier IS NOT NULL;
   emp_rec                          c_check_employee%ROWTYPE;
-- Cursor retrieves latest Object Version Number from per_assignments_f table..
     CURSOR csr_ovn (cp_person_emp_no IN per_all_people_f.EMPLOYEE_NUMBER%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;
        AND employee_number = cp_person_emp_no;
     CURSOR csr_ovn2 (cp_person_emp_no IN per_all_people_f.EMPLOYEE_NUMBER%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;
        AND employee_number = cp_person_emp_no;
-- Cursor to get Oracle_Loc_Code from SU CHRIS vs ORACLE Locations Table into a variable..
CURSOR csr_ora_loc_code (cp_location_id IN SU_TEMPLOYEE_DETAILS.std_location_id%TYPE)
IS
      SELECT sil.ORACLE_LOC_CODE
     FROM SU_TEMPLOYEE_DETAILS std, SU_IEXP_LOCATIONS sil
     WHERE std.STD_LOCATION_ID = sil.CHRIS_LOC_code
     AND std.STD_LOCATION_ID = cp_location_id;
BEGIN
-- Process each record in the work table
   FOR v_emp IN get_employee_details
   LOOP
-- Obtain the most recent Object Version Numbers..
       OPEN csr_ovn (v_emp.std_employee_number);
       FETCH csr_ovn
       INTO l_obj;
--    IF csr_ovn%NOTFOUND     THEN        RAISE NO_DATA_FOUND;   END IF;
       IF csr_ovn%NOTFOUND   THEN  RAISE  obj_vers_no_failed;
        DBMS_OUTPUT.PUT_LINE ('csr_ovn obj vers no failed..   '  );
        DBMS_OUTPUT.PUT (CHR (10));      
        END IF;
      CLOSE csr_ovn;
       OPEN csr_ovn2 (v_emp.std_employee_number);
       FETCH csr_ovn2
       INTO l_obj2;
      IF csr_ovn2%NOTFOUND     THEN        RAISE NO_DATA_FOUND;   END IF;
      -- IF csr_ovn2%NOTFOUND   THEN  RAISE  obj_vers_no_failed;
     -- DBMS_OUTPUT.PUT_LINE ('csr_ovn2 obj vers no failed..   '  );  END IF;
      CLOSE csr_ovn2;
-- determine whether customer already exists
      OPEN c_check_employee (v_emp.std_employee_number);
      FETCH c_check_employee
       INTO emp_rec;
       v_emp_no :=  LPAD (v_emp.std_employee_number, 8, '0');
      l_assignment_id2 := emp_rec.assignment_id;
      l_assignment_id := emp_rec.assignment_id;
-- ===================================
-- these next 6 lines is to check the default code comb id..     
-- ===================================
IF emp_rec.default_code_comb_id is NULL THEN
     l_default_code_comb_id = 218048;
     END IF;     
     IF emp_rec.job_id is NULL THEN
     l_job_id = 10;
     END IF;     
      IF v_emp.std_emp_status = 'N'   and c_check_employee%NOTFOUND
      THEN
      insert_flag := 'I';
          DBMS_OUTPUT.PUT_LINE ('New Employee No: ' || v_emp.std_employee_number);
          DBMS_OUTPUT.PUT (CHR (10));
       end if;
      IF v_emp.std_emp_status = 'C' and v_emp.std_national_identifier is not null
        and c_check_employee%NOTFOUND
      THEN  
       insert_flag := 'I';
       DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number || ' doesnt exist but theyre goin in anyway.. ');
          DBMS_OUTPUT.PUT (CHR (10));
   --      DBMS_OUTPUT.PUT_LINE ('Insert Flag is: ' || insert_flag  );
       end if;
      IF v_emp.std_emp_status = 'C' and c_check_employee%FOUND     
       THEN
       insert_flag := 'C';
      DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number ||  '      ..is status C but is present in LIVE... '   );  
      DBMS_OUTPUT.PUT (CHR (10));
       DBMS_OUTPUT.PUT_LINE ('Insert Flag is: ' || insert_flag  );  
     END IF;
--   if l_assignment_id2 is null then
  --        raise_application_error (-20010, 'Employee No: ' || v_emp.std_employee_number  || ' exists but has no assignment id!');
     --   end if;
  IF l_assignment_id2 is null then      raise emp_status_errors1;     END IF;
--  IF l_assignment_id is null then      raise emp_status_errors1;     END IF;
      IF l_obj2 is null then  raise emp_status_errors2; END  IF;
      IF l_obj is null then  raise emp_status_errors2; END  IF;
    insert_flag := 'C';
    --      END IF;
      CLOSE c_check_employee;
-- Open Oracle Location Code cursor
OPEN csr_ora_loc_code(v_emp.std_location_id); 
      FETCH csr_ora_loc_code
       INTO v_ora_loc_code;
       IF csr_ora_loc_code%NOTFOUND  THEN    RAISE   location_code_errors;
       CLOSE csr_ora_loc_code;
-- Create new PER_ALL_PEOPLE_F and PER_ADDRESSES record from
--            info in  table record
      IF insert_flag = 'I'
      THEN
--                      -- Importing Employee Procedure --
DBMS_OUTPUT.PUT_LINE ('Inserting Employee.. ' || v_emp.std_employee_number  || ' ..now '); 
         Hr_Employee_Api.create_gb_employee
                 (p_validate                       => l_validate,
                  p_hire_date                      => l_employ_start_date,
                  p_business_group_id              => l_std_business_group_id,
                  p_date_of_birth                  => v_emp.std_date_of_birth,
                  p_email_address                  => v_emp.std_email_address,
                  p_first_name                     => v_emp.std_first_name,
                  p_middle_names                   => v_emp.std_middle_names,
                  p_last_name                      => v_emp.std_last_name,
                  p_sex                            => v_emp.std_sex,
                  p_ni_number                      => v_emp.std_national_identifier,
                  p_employee_number                => v_emp.std_employee_number,
                  p_person_id                      => l_person_id,
                  p_title                          => v_emp.std_title,
                  p_assignment_id                  => l_assignment_id,
            --      p_assignment_id                  => l_assignment_id2,
                  p_per_object_version_number      => l_per_object_version_number,
                  p_asg_object_version_number      => l_asg_object_version_number,
                  p_per_effective_start_date       => l_per_effective_start_date,
                  p_per_effective_end_date         => l_per_effective_end_date,
                  p_full_name                      => l_full_name,
                  p_per_comment_id                 => l_per_comment_id,
                  p_assignment_sequence            => l_assignment_sequence,
                  p_assignment_number              => l_assignment_number,
                  p_name_combination_warning       => l_name_combination_warning,
                  p_assign_payroll_warning         => l_assign_payroll_warning
         Hr_Person_Address_Api.create_person_address
                                  (p_validate                     => l_validate,
                    --            p_effective_date               => v_emp.std_hire_date,
                                   p_effective_date              =>  l_employ_start_date,
                                   p_pradd_ovlapval_override      => NULL,
                                   p_validate_county              => NULL,
                                   p_person_id                    => l_person_id,
                                   p_primary_flag                 => 'Y',
                                   p_style                        => 'GB_GLB',
                                   p_date_from                    => SYSDATE,
                                   p_date_to                      => NULL,
                                   p_address_type                 => NULL,
                                   p_comments                     => NULL,
                                   p_address_line1                => v_emp.std_address_line1,
                                   p_address_line2                => v_emp.std_address_line2,
                                   p_address_line3                => v_emp.std_address_line3,
                                   p_town_or_city                 => v_emp.std_address_line4,
                                   p_region_1                     => NULL,
                                   p_region_2                     => NULL,
                                   p_region_3                     => NULL,
                                   p_postal_code                  => v_emp.std_post_code,
                                   p_country                      => v_emp.std_nationality,
                                   p_telephone_number_1           => NULL,
                                   p_telephone_number_2           => NULL,
                                   p_telephone_number_3           => NULL,
                                   p_party_id                     => ip_p_party_id,
                                   p_address_id                   => ip_p_address_id,
                                   p_object_version_number        => l_obj
                             --      p_object_version_number        => l_obj2
         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               => l_assignment_id,
                 --        p_assignment_id               => l_assignment_id2,
                         p_object_version_number       => l_obj,
                   --      p_object_version_number       => l_obj2,
                         p_supervisor_id               => v_emp.std_supervisor_id,
                         p_default_code_comb_id        => l_default_code_comb_id,
                         p_set_of_books_id             => l_set_of_books_id,
                         p_concatenated_segments       => l_concatenated_segments,
                         --IN/OUT
                         p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                         --IN/OUT
                         p_comment_id                  => l_comment_id,
                         --IN/OUT
                         p_effective_start_date        => l_date,     --IN/OUT
                         p_effective_end_date          => l_effective_end_date,
                         --IN/OUT
                         p_no_managers_warning         => l_no_managers_warning,
                         --IN/OUT
                         p_other_manager_warning       => l_other_manager_warning
                        --IN/OUT
         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                     => l_assignment_id,
        --      p_assignment_id                     => l_assignment_id2,
              p_object_version_number             => l_obj,
        --      p_object_version_number             => l_obj2,
              p_organization_id                   => l_organization_id,
              p_location_id                       => v_ora_loc_code,
              p_job_id                            => l_job_id,
              p_special_ceiling_step_id           => l_special_ceiling_step_id,
              p_effective_start_date              => l_date,
              --per_effective_start_date,
              p_effective_end_date                => l_effective_end_date,
              --IN/OUT
              p_people_group_id                   => l_people_group_id,
              --IN/OUT
              p_group_name                        => l_group_name,    --IN/OUT
              p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
              --IN/OUT
              p_other_manager_warning             => l_other_manager_warning,
              --IN/OUT
              p_spp_delete_warning                => l_spp_delete_warning,
              --IN/OUT
              p_entries_changed_warning           => l_entries_changed_warning,
              --IN/OUT
              p_tax_district_changed_warning      => l_tax_district_changed_warning
             --IN/OUT
         v_rec_cnt := v_rec_cnt + 1;
         DBMS_OUTPUT.PUT (CHR (10));
         DBMS_OUTPUT.PUT_LINE (   'There were '
                               || v_rec_cnt
                               || '  Insert Flag I records read in..'
-- Updating PER_ALL_PEOPLE_F and PER_ADDRESSES record from
--            info in  table record
   ELSE IF insert_flag = 'C'
      THEN
         l_assignment_id2 := emp_rec.assignment_id;
          DBMS_OUTPUT.PUT (CHR (10));
         DBMS_OUTPUT.PUT_LINE ('Employee No: ' || v_emp.std_employee_number ||  '  is about to be updated.. '   );
          DBMS_OUTPUT.PUT (CHR (10));
--  END IF;
-- =========
-- Section end
-- =========
         Hr_Assignment_Api.update_emp_asg
                        (p_validate                    => l_validate,
                         p_effective_date           => SYSDATE,
                         p_datetrack_update_mode       => l_datetrack_update_mode,
                         p_assignment_id               => l_assignment_id2,
                     --    p_object_version_number       => l_obj2,
                         p_object_version_number       => l_obj,
                         p_supervisor_id               => v_emp.std_supervisor_id,
                         p_default_code_comb_id        => emp_rec.default_code_comb_id,
                         p_set_of_books_id             => emp_rec.set_of_books_id,
                         p_concatenated_segments       => l_concatenated_segments,
                         --IN/OUT
                         p_soft_coding_keyflex_id      => l_soft_coding_keyflex_id,
                         --IN/OUT
                         p_comment_id                  => l_comment_id,
                         --IN/OUT
                         p_effective_start_date        => l_date,     --IN/OUT
                         p_effective_end_date          => l_effective_end_date,
                         --IN/OUT
                         p_no_managers_warning         => l_no_managers_warning,
                         --IN/OUT
                         p_other_manager_warning       => l_other_manager_warning
                        --IN/OUT
         Hr_Assignment_Api.update_emp_asg_criteria
             (p_validate                          => l_validate,
              --p_effective_date                    => emp_rec.EFFECTIVE_START_DATE,
              p_effective_date                    => SYSDATE,
              p_datetrack_update_mode             => l_datetrack_update_mode,
              p_assignment_id                     => l_assignment_id2,
        --      p_object_version_number             => l_obj2,
              p_object_version_number             => l_obj,
              p_organization_id                   => emp_rec.organization_id,
              p_location_id                       => v_ora_loc_code,
              p_job_id                            => emp_rec.job_id,
              p_position_id                       => emp_rec.position_id,
              p_special_ceiling_step_id           => l_special_ceiling_step_id,
              p_effective_start_date              => emp_rec.EFFECTIVE_START_DATE,
              p_effective_end_date                => l_effective_end_date,
              --IN/OUT
              p_people_group_id                   => l_people_group_id,
              --IN/OUT
              p_group_name                        => l_group_name,    --IN/OUT
              p_org_now_no_manager_warning        => l_org_now_no_manager_warning,
              --IN/OUT
              p_other_manager_warning             => l_other_manager_warning,
              --IN/OUT
              p_spp_delete_warning                => l_spp_delete_warning,
              --IN/OUT
              p_entries_changed_warning           => l_entries_changed_warning,
              --IN/OUT
              p_tax_district_changed_warning      => l_tax_district_changed_warning
             --IN/OUT
         v_rec_cnt := v_rec_cnt + 1;
         DBMS_OUTPUT.PUT (CHR (10));
         DBMS_OUTPUT.PUT_LINE (   'There were '
                               || v_rec_cnt
                               || '  INsert Flag C records read in..'
         DBMS_OUTPUT.PUT (CHR (10));
-- End of customer related details
      END IF;
  END IF;
      END IF;
   END   LOOP;
   COMMIT;
EXCEPTION
WHEN OBJ_VERS_NO_FAILED THEN   ROLLBACK;
dbms_output.put_line (' No Object version No was found.. ');
WHEN  emp_status_errors1 THEN  ROLLBACK;
dbms_output.put_line  ( 'Employee No: ' || v_emp_no || ' exists but has no assignment id!') ;
WHEN  emp_status_errors2 THEN  ROLLBACK;
dbms_output.put_line  ( 'Employee No: ' || v_emp_no  || ' Assgnmnt Obj Vers No is not being passed!');
WHEN  location_code_errors THEN  ROLLBACK;
dbms_output.put_line  ('Location ID unknown or not found, please check..');
   WHEN NO_DATA_FOUND     THEN     ROLLBACK;
      err_num := TO_CHAR (SQLCODE);
      err_msg := SUBSTR (SQLERRM, 1, 150);
      err_line :=   'ORACLE error occurred processing record.. ' ||  err_msg;
      DBMS_OUTPUT.PUT_LINE (err_line);
      INSERT INTO SU_ERROR_LOG  VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
    WHEN OTHERS    THEN      ROLLBACK;
      err_num := TO_CHAR (SQLCODE);
      err_msg := SUBSTR (SQLERRM, 1, 150);
      err_line :=   'ORACLE error occurred processing record.. ' ||  err_msg;
      DBMS_OUTPUT.PUT_LINE (err_line);
      INSERT INTO SU_ERROR_LOG  VALUES (err_msg, 'TEMPLOYEE_DTLS.sql', SYSTIMESTAMP);
END;
EXIT;Many thanks...
Steven

Thanks for taking the time out.
You're 2nd suggestion was correct the employee doesn't exist in ORACLE Financials becuase its a new employee.
Ive since placed some more lines in to give me more idea which of the 2 assignment_ids it could be. Its saying it finds the employee from the temporary table (SU_TEMPLOYEE_DTLS, that Ive loaded in) but it cant find anything in the variable 'l_assignment_id2' - which Ive got placed for the UPDATE section of the script only (insert_flag = 'C'hanged rather than 'I'nsert).
I cant understand this. Prior to been asked to put more error handling code this has worked fine updating and inserting employee records. Ive tried this morning comparing the two scripts but no success. Would you live a new version of the scripting posting?
Thanks again.
Steven

Similar Messages

  • Pricing error; ''Condition record exists, but has not been set''

    hello friends
    we created the order (credit memo req), refer to this created the credit memo.
    in the order one line item and only 2 condition records
    base price and tax (MWST)
    in the order both conditions are coming and in the invoice it is not showing the condition (mwst)  and in the Analysis it is showing as ''Condition record exists, but has not been set''
    what would be the reason?
    regards
    siva

    Hi,
    if both the condition types are showing in the order then you need to update pricing in billing because sometimes when u chnage any condtion value for base price after creation of order then system is not able to find valid condition record at billing document level.
    Narasimha

  • Condition record exists, but has not been set IN JVRD Condition

    Dear Expert,
    I am facing a problem, when trying to create P.O with Excise and Vat Condition. So i am getting Error like Condition record exists, but has not been set so all duties are Calculated Properly but JVRD condition is not Appearing. when going for analysis so that time i am finding this error.
    Thanks You.

    hi,
    Please check that have you maintained Sett-off Conditions for JVRD Condition Types in T-Code: FV11 with respect to your combinations.
    Thanks,
    Raviteja

  • Sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null

    Can anyone help please!
    what this error means by invalid contents: getSchema() == null
    when I try to deploy or veryfy, this is what I get:
    deployment started : 0%
    Deploying application in domain failed; Error while running ejbc -- Fatal Error from EJB Compiler -- JDO74041: While deploying 'EJBModuleOnlineRegistration' from 'EJBModuleOnlineRegistration': sun-cmp-mappings.xml exists but has invalid contents: getSchema() == null
    ; requested operation cannot be completed
    D:\Projects\EJBModuleOnlineRegistration\nbproject\build-impl.xml:317: Deployment failed.
    BUILD FAILED (total time: 29 seconds)

    The most probable there are some errors in your sun-cmp-mappings.xml file.
    A few similar Q&As:
    http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5045366
    http://www.netbeans.org/issues/show_bug.cgi?id=59394

  • Condition record exist, but has not been set

    I am creating proforma invoice for STO replenishment delivery. I am getting error log "Billing type contains split criteria, n invoiced:123456789, invoice not required". But I am able to save it. I used all standard settings for copy control and billing type.
    For the proforma invoice the condition records are picking up some times and some times not picking up. In the analysis its showing "Condition record exist, but has not been set". When I update with carry out new pricing some times its updating with condition records some times not. I need a solution urgently. Please help.
    Edited by: k c on Nov 4, 2009 7:50 AM

    Hello,
    The message "condition record exists, but has not been set" tells you
    that the condition record exists, but has not  been set in the document.
    If pricing was carried out again for the document item, then the
    condition would be set.
    This can have different causes:
    The condition was deleted manually in the item condition screen.
    The condition record was created later. Please note that order
    processing and pricing have buffer mechanisms. This means that a newly
    added condition record might only be found after order processing have
    been left completely and then started again.
    When an item was added, the condition record was accessed with key
    fields other than change time. This could lead to different results in
    the requirements check at the time of adding and the change time. This
    can occur when modifications are made.
    In billing (or when copying orders): Certain condition types were not
    determined in the source document (this is usually controlled by the
    pricing requirements). When creating the document, the document flow
    (TVCPF,TVCPA) is processed using a pricing type that does not
    redetermine these condition types, although they are supposed to be
    called via the requirments."
    Please check if any of those reasons apply to your problem.
    Note that the condition type is determined just in the moment when
       the billing item is created. And it then that the userexit fills the
       field. When you save the billing document, pricing is called.
       Please ensure that you have any userexits switched off and then test
       this issue again.
    If you have access to OSS notes. please see:
         24832      Pricing rules / TVC
        130416     Requirements in the condition preliminary st
          27636     Message: Condition exists (removed manually)
        859876     Condition is missing: Message VE 108 or VE 008
    I hope you find this information very helpful and hopefully it will solve your problem.
    Regards,
    Martina McElwain
    SD - Forum Moderator

  • Airport Connects but has Self-Assigned IP address and no internet

    All right Apple this is some Bull#@$% I own 3 Apple units One is a MacBook Pro, one is a Macbook and the other is a G5 Dual processor tower. The MacBook and Tower are using OS X 10.5.5 and the MacBook Pro has OS X 10.4.11. Ok here is my problem all of a sudden all 3 units that had been connecting to the same wireless router for the past year started saying (AirPort has a self-assigned IP address and may not be able to connect to the internet) Apple Care suggested replacing the router well I did that and hello I have the same message. Its connecting but not going to the internet. Under network status I have green lights for Airport and Airport settings a yellow light for network settings and red lights for ISP, Internet and Server. I have this problem with both MacBooks both at the library, my friends house and my neighbors house thats 4 different wireless networks that do the same dang thing. I need help!!

    I have also encountered this problem and I have been researching it all over the internet all evening and trying everything I could find a suggestion for. Here's what I have: Two G4 Powerbooks, one is a 550MHz 15" Powerbook, the other is a 1.5 GHz 17" Powerbook, they are both running 10.4.11 with all the updates that Software Update has to offer, the 17" is connecting via built in Airport Extreme card, the 15" is connecting via Sonnets Aria Extreme PC card. I have AT&T DSL and I'm using the 2Wire modem/router they provided me with. Neither of the Powerbooks can connect wirelessly to the internet. Furthermore, they cannot even ping the wireless router. 4 days ago, both were connecting without any trouble (and had been able to reliably every day since the beginning of August when I hooked everything up). I have made no changes to my router's settings over the weekend. Nor had I made any changes to the Powerbooks' settings during that time. It just stopped working. If I wire one or both of them to the router with ethernet cables, connection works fine. My Desktop G4 which is normally wired into the router via ethernet, connects fine so I know my internet service is available.
    So far, I've restarted both machines numerous times, restarted the router numerous times. Reset the WEP password. Changed the wireless security to WPA. Changed it back to WEP. Trashed the airport plist. deleted every wireless network entry in Keychain. Disabled DHCP and assigned IP numbers manually. Changed the wireless channel (I've tried 1, 6, and 11 with and without interference robustness).
    I've been reading posts about this issue on half a dozen web forums (dating back to as early as June 2004). It appears to affect a variety of routers (2Wire, Netgear, Linksys), a variety of machines (Powerbooks, iBooks, MacBookPros, iMacs) a variety of OSes (10.3, 10.4, 10.5).
    This thing is really getting me down. Anybody have any other ideas?

  • Condition record exists, but has not been set

    Hi
    in the pricing analysis this is the explanation i got.
    the reasons could be an Condition record overflow  or the condition record wpuld have been created after the documnet is created.
    But i found the record has been mainatined earlier to the creation of document.
    this was for MWST condition type in IS Oil. where the tax rate manatined for this condition record is zero%
    Since this is a mandatory condition, the document could not be completed.
    Your help in this regard is highly appreciated.
    thanks
    C.Sivakumar

    Hi,
    Check the pricing procedure for the condition type MWST. Whether this condition is taken from any prevoius steps
    (check the from and to for the condition type MWST).
    If this condition is with reference to somw other condition, then check whether that condition is maintianed or not?
    Check the condition record maintenance in VK13, did you maintian the right access?
    Prase

  • Condition record exist but not set in SO

    Hi SDN Team,
    I have a problem.  Where in the sales order for the Discount condition type condition record where already exist in diffferent validity period.
    EG
    ZAJ1 discount condition type - with the same key combination with different valididity period
    EG:
    ZAJ1 - 27.01.2009 to 15.02.2009
    ZAJ1 - 16-02-2009 to 15-03-2009
    The reason is not set for the ZAJ1 condition in the Sales Order is due to the sales order was created before the pricing condition record validity datet.  Sales order where created on 11.02.2009.  But the condition record where valid from 16.02.2009  that is the reason the condition record was not set in the sales order.
    Based on this explanation user agreed and the call was closed. 
    I have also explained Where ZAJ1 has condition record. but which is not set in the document. if pricing was carried out again it will set the condition for the item.
    But now again the call was reopened stating that -
    At the time of creating the sales order the ZAJ1Condition record exist in the period 27-01-2009 to 15-02-2009. now the primary rebate should be used by the system. Unfortunately it did not.
    Based on the reopend call - i have further investigated the issue but i could not find the root cause.
    Based on this when i checked the previous order where the ZAJ1 condition was well picked up with the validity period 27-01-2009 to 15-02-2009, what might be the reason the condition type was not picked up in the sales order?
    Can you please let me know with your expertise in solving this issue.
    Regards,
    J

    1)Requirement is set with 2 (itme with pricing). and calculation type is assigned with own calculation type.
    2) In the pricing analysis - it shows as per below
    This message tells you that the condition record exists, but has not been set in the document. If pricing was carried out again for the document item, then the condition would be set.
    There are different reasons for this:
    The condition was deleted manually in the item condition screen.
    The condition record was created later. Please note that order processing and pricing have buffer mechanisms. This means that a newly added condition record might only be found after order processing has been left completely and then started again.
    If the condition type is used for subsequent settlement (rebate), there may be subsequent updating of business volume (the agreement is is created retrospectively). The document conditions do not contain the condition record, as the condition record was not created when pricing was carried out. Updating of business volume is carried out using special functions for subsequent settlement.
    When an item was added, the condition record was accessed with key fields other than change time. This could lead to different results in the requirements check at the time of adding and the change time. This can occur when modifications are made.
    In billing (or when copying orders): Certain condition types were not determined in the source document (this is usually controlled by the pricing requirements). When creating the document, the document flow (TVCPF,TVCPA) is processed using a pricing type that does not redetermine these condition types, although they are supposed to be called via the requirements.
    Thanks,
    J

  • I am trying to hook up a airport express from a work server that has a assigned ip address. the airport works but no internet

    I am trying to hook up a airport express from a work server that has a assigned ip address. the airport works but no internet

    Encryption wouldn't matter except for Wifi.
    While 10.2 might help, there's not much you can do on the Internet these days with less than 10.4.11
    Tiger Requirements...
    To use Mac OS X 10.4 Tiger, your Macintosh needs:
        * A PowerPC G3, G4, or G5 processor
        * Built-in FireWire
        * At least 256 MB of RAM (I recommend 1GB minimum)
        * DVD drive (DVD-ROM), Combo (CD-RW/DVD-ROM) or SuperDrive (DVD-R) for installation
        * At least 3 GB of free disk space; 4 GB if you install the XCode 2 Developer Tools  (I recommend 20GB minimum)
    http://support.apple.com/kb/HT1514
    http://www.ebay.com/sch/i.html?_nkw=mac+os+x+tiger+retail+10.4
    See Tom's, (Texas Mac Man), great info on where/how to find/get Tiger...
    https://discussions.apple.com/message/15305521#15305521
    Or Ali Brown's great info on where/how to find/get Tiger...
    http://discussions.apple.com/thread.jspa?messageID=10381710#10381710
    As far as Memory, that's sort of easy, find your eMac here...
    http://eshop.macsales.com/MyOWC/Models.cfm?Family=emac&sType=Memory
    As far as Hard Drive, it's not easy to replace the Internal drive, I'd maybe suggest an external Firewire drive to boot from...
    http://eshop.macsales.com/item/Other%20World%20Computing/MAU4S7500G16/

  • "The company code does not exist or has not been fully maintained" in mm01

    Hi all,
    I am creating a material, it needs me to provide company code. when I gave out my company code, it reports:
    "The company code ZXXX does not exist or has not been fully maintained".
    what should the problem be?
    thanks and regards,
    Smaosn Zhu

    Hi Raja,
    Checked all you specified.
    I have done these assignments:
    1. assign comp - > comp code
    2. assign plant- > comp code
    3. assign purch. org - > comp code
    4. assign purch. org - > plant
    but the problem is still there.
    let me try to re-do it.
    thanks,
    samson

  • Domaindnszones Forestdnszones exists but does not show in Dns

    Guys I have a weird situation where the Domaindnszones and Forestdnszones partitions exists but does not show in dns.
    If I try to recreated the partition in DNS it says "partition already exists".
    I try Recreating it in DNS by creating a new domain under the "mydomain" zone but it never gets populated.
    Replication seems to be working fine between my DC's
    This domain was created from way back in the NT days and has just been upgraded over the years..
    currently we have 1 2003 Dc and 2 2008 r2 Dc. we want to retire the 2003 dc. all 3 dc are DNS, and GC servers.
    at this point should i even worry about this two partitions. ( Domaindnszones, Forestdnszones).
    I think Dns was never configure correctly when we went from 2000 to 2003
    thanks

    HI.
    Correction. the 2003 dns and dc is no loger in the environment. It was the Primary FSMO role holder.looks like all the roles has been transfer over to the new 2008 r2 dc. 
    I did not set this domain up. but are trying to clean it up.
    I notice in dns there was only one AD integrated zone (mydomain). that the (Domaindnszones and forestdnszones) are not visible. I tested replication between the DC via sites and services and replication is ok.
    I created and AD integrated Zone in DNS called _msdcs.mydomain and it looks like it populated it with all the corrected corresponginng zones.
      _mcdcs.mydomain
    ----------dc
    ----------domain
    -----------gc
    -----------pdc
    when i try in dns to Create default application directory partition, it tells me the "partition exists"
    using adsiedit connecting to DC=domaindnszones. dc=mydomain I can see the partition same is true for Dc=forstdnszones, dc=mydomain
    so digging around i found this similiar thread:
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/b5551ad5-65ec-48f7-81b2-2a00bbd93def/msdcs-doesnt-exist?forum=winserverNIS&prof=required
    I followed solution suggested by ACE. which did allow me to delete and create the new (domaindnszones and forestdnszones) partitions. but sitll not showing in dns.
    some more research showed this link..
    http://blogs.technet.com/b/the_9z_by_chris_davis/archive/2011/12/20/forestdnszones-or-domaindnszones-fsmo-says-the-role-owner-attribute-could-not-be-read.aspx
    and indeed the script did clean up the deleted 2003 Dc/dns server. and assigned the new 2008 r2 dc/dns server
    still the Domaindnszones and Forestdnszones are not visible.
    Manually Creating a delegation under Mydomain (domaindnszones forestdnszones) only yield Grayed out folders
    Manually Creating 2 domains under Mydomain (domaindnszones forestdnszones) shows the folders. but once I restart netlogon and restart dns
    the folders disappear...
    any suggestion solutions will be greatly appreciated...

  • The company code OMPL does not exist or has not been fully maintained

    hi friends i did in obyc setting also fi posting are happens but the think is mm posting are not happen and not able work on transation code-mmo1i seen  transation code:omsy but company code is not mantain properly this is happen in mm module please give hints where to customization please help friends i am on client please
    ok
    The company code OMPL does not exist or has not been fully maintained
    Message no. M3150
    Diagnosis
    You have entered either the company code OMPL or a plant assigned to this company code. However, the company code either does not exist or has not yet been configured for materials management.
    Procedure
    Ask your system administrator to configure the company code.
    Procedure for System Administration
    Carry out the following activities as required:
    u2022     Create the company code if it does not already exist.
    You do this in Customizing for Enterprise Structure in the activity Define, copy, delete, check company code.
    u2022     Make sure that a fiscal year variant is assigned to the company code.
    You do this in Customizing for Financial Accounting (Global Settings) in the activity Enter global parameters.
    u2022     Configure the company code for materials management.
    You do this in Customizing for the Material Master in the activity Maintain company codes for materials management.

    hi
    Try to maintain the settings in OMSY
    and check the posting periods for your company
    regards

  • How do I display the playlist(s) to which my music has been assigned?

    I know that I have music in my library which is not in any of my playlists. The question is, "Which songs?" I suppose I could look in the playlist I think it should be in to see if it's there, but by number 500 or so my eyes get kind of tired; and what if I put it in the wrong playlist by accident; or what if I overlooked it? I suppose I could just start from scratch too, but I hope I don't have to do that. I think it would be a lot simpler if there were a way to display the playlist to which a piece of music is assigned in the music library window. That way I could see what playlist each piece was in as well as see if there are pieces that are not in any playlist. It would even be helpful if I could just click on an individual song to see what playlist, if any, I have it in. Is there a way to do either of these things? I hope so

    Using the Smart Playlist idea was a great help. It worked perfectly! Thank you very much for the suggestion. I really appreciate it. Now all of my music has been assigned to at least one Playlist. I always worry, though, that I may have accidentally dragged a song to the Playlist above or below it; or maybe I should have put it in different Playlist; or more than one Playlist. I guess I have a little OCD. Anyway, it would be nice just to be able to review all of the music information, including the playlists that are assigned, in the music list. It would be a lot easier with a lot less clicking. Thanks to your suggestion, though, I now know that all of the songs have been assigned to Playlists. Again, I appreciate your help. Thank you.

  • Error 1075: The dependency service does not exist or has been marked for deletion

    Windows 7 Pro laptop will not connect to corporate domain. Multiple identical twin laptops have no problem.
    Best suggestion so far has been to leave the domain and rejoin it, BUT the relevant buttons are grayed out and the comment says "Note: The identification of the computer cannot be changed because:- The Workstation service is not running. Open the Services
    snap-in (services.msc) to ensure it is running and set its Startup Type as "Automatic"."
    In services.msc the Workstation service is already set to Automatic but is not started. When I try to start it manually the response is "Windows could not start the Workstation service on Local Computer." and then "Error 1075: The dependency service does
    not exist or has been marked for deletion."
    Rebooting gets me nowhere.
    In all other respects that laptop appears fine and can connect to the Internet, but NOT to the network. I have brought it and a twin laptop home to try on my domestic network and get the same results.
    Any ideas, please?

    Hi,
    Let us go to services.msc and navigate to Network Store Interface Service. Please check whether this service has been set to Automatic and turned on.
    Kim Zhou
    TechNet Community Support

  • Error : COmpany code does not exist or has not been fully maintained

    Hi ,
    I tried creating a material with industry sector : mechanical , material type : raw material.
    i selected basic data 1 and 2 view or MRP 1 view for views , i gave plant as SUJA and storage location value S001 ( plant and stor loc i have created in the company code 2001)
    but i get this error COmpany code 2001 does not exist or has not been fully maintained..
    I created COMPANY CODE using SPRO - Entreprise structure --definition -  financial accounting --define , copy , check , delete company code..
    kindly suggest me the solution for this error..

    Hi,
    Your company code not activated for material management. Few pre-requisites to create material and one is to activate company code for material management
    Please activate in T.code: OMSY,
    [For example: For Fiscal year variant K4]
    In OMSY steps, u have to enteru2026u2026u2026..
    Company Code (enter your company code name 2001)u2026u2026u2026u2026u2026.
    Company Name..
    Fiscal Year of Current Period 2009
    Current period (posting period) 03( )
    Fiscal year of previous period 2008( will come automatic)
    Month of previous period 02( will come automatic)
    Fiscal year of last period of previous year 2008
    Last month of previous year 12
    Allow Posting to Previous Period (Back posting)
    Disallow back posting after a change of period
    Now create material with T.code; MM01
    Regards,
    Biju K

Maybe you are looking for

  • Function Module (ENQUEUE_ES_PROG) not working in Background

    I scheduled a job which runs every 15 mins in the the background to fetch data from an external system,depending on the data volume ,the program can sometimes run for over 15 minutes.To avoid data conflict I used a function module ENQUEUE_ES_PROG on

  • Problem in  Graphical Mapping

    Hi all,      i have a Graphical mapping logic here Source Structure: GS GP[1]   F1-     QI   SDQ     F2-     2 GP[2]   F1-     QD   SDQ     F2-     3 GP[3]   F1-     PC   CTP     F2- 5.3 GP[4]   F1-     AI   SDQ     F2-     4 GS Target structure:    

  • How can I search renderable text in Acrobat X PRO?

    It's crazy.  I've never had difficulty searching for words before.

  • Nokia 2330 disable loudspeaker permanently

    Is there a setting to permanently disable the loudspeaker forever on the Nokia 2330 Classic? I will never use this feature, but keep activating it all of the time when I answer the phone in a hurry. Very embarrassing esp. on public transport or at wo

  • E63 Current Date on Home Screen

    E63-1, 410.21.010 Nokia programmers, please enhance the home screen (I use Active home screen) by providing current date below the current time. Currently, the space below the current time is blank. It would be useful if I can see: --------------- Cu