HR_MAINTAIN_MASTERDATA create new employee with specific PERNR

I have a list of new employee to import into SAP in automation
And this employee have a I have a list of new employee to import into SAP in automation
And this employees have a their id
How can i create new employees into SAP with a their id ?
thanks

Is your system set up to assign a new employee number when the hire process is initiated?  Why are you giving people an employee number before they are hired into the HR system?
If you use PA40 I think (not sure) you can assign an employee number on the screen.
SL

Similar Messages

  • Create new user with specific UID

    I have posted this question in the 10.4 group but I need to do it on Leopard, too.
    Creating a new user from the Accounts GUI creates users with UID's 502 onwards. How do I create a user from scratch with a specific UID, e.g. 1234?
    I know that modifying user 502 won't work because trash files etc. are set up with 502 in their path names.
    Any help, links to help etc. appreciated.

    Peter,
    In Leopard, UIDs can be changed just as Baltwo described. I do not know if this will also change the UID of files in the user's HOME folder, but you can do that yourself. In fact, it would be a good idea to do so, manually, in any case.
    Go ahead and change the UID for the user as described. This should be done from a different, admin account. Then, open /Applications/Utilities/Terminal. Type the following, followed by a <RETURN>:
    <pre style="overflow:auto; font-family: 'Monaco'; font-size: 10px">sudo chown -R username /Users/username</pre>
    In the above text, you will replace all instances of "username" with the short name for the user in question. If the short name is "fred," for example, you would type the following exactly:
    <pre style="overflow:auto; font-family: 'Monaco'; font-size: 10px">sudo chown -R fred /Users/fred</pre>
    When you press <RETURN>, you will be asked for your admin password. Enter it (it will not be echoed) and again press <RETURN>.
    Scott

  • Hiring new employee with HR_MAINTAIN_MASTERDATA

    Hi,
    I am trying to hire new employee with HR_MAINTAIN_MASTERDATA. For now, I only gives the mandatory values of the infotype 0002 in proposed_values and parameters to the FM.
    CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
         EXPORTING
           pernr                    = no_emp_int
           massn                    = '01'
           actio                    = 'INS'
           tclas                    = 'A'
           begda                    = sy-datum
           endda                    = '99991231'
    *       OBJPS                    =
    *       SEQNR                    =
    *       SPRPS                    =
    *       SUBTY                    =
           werks                    = '1000'
           persg                    = '1'
           persk                    = 'D9'
    *       PLANS                    =
           dialog_mode              = '1'
    *       LUW_MODE                 = '1'
           no_existence_check       = 'X'
    *       NO_ENQUEUE               = ' '
          IMPORTING
            return                   = return
    *       RETURN1                  =
    *       HR_RETURN                =
          TABLES
            proposed_values          = it_prop_val
    *       MODIFIED_KEYS            =
    When it is executed, it gives me the error:
    'No data available for A 00007787 0003' where 00007787 is the employee number. My guess is that 0003 is for the Payroll status (0003) infotype. I thought it would be automatically created with the FM.
    When I change the dialog_mode parameter to '0', no error appears but, the employee data isn't saved i.e. I cannot access it with PA30 or PA40. It says 'Personnal number not yet assigned'.
    So, I'd like to know how to save data correctly and why dialog_mode '1' or '2' failed everytime.
    Thanks a lot for your answers, points will be awarded as it fits my needs!

    Patrick
    My guess is that this FM HR_MAINTAIN_MASTERDATA will not create all 4 infotypes (0, 1, 2 and 3 as I think all those 4 are mandatory for every employee). I would say that you need to specify data for each infotype separately. You can in fact create all those 4 infotypes in separate calls of FM. I was doing this some time ago (with calling FM 4 times) but I was using different FM - HR_INFOTYPE_OPERATION.
    The obligatory fields for each infotype depends on the setting in you system so you need to find this out by your-self.
    As per infotype 0003 do not forget to set properly field VIEKN - see feature IVWID otherwise maintenance of created employee may not be possible.
    One last thing - you may try to use IDOC HRMD_A for employee creation. This way is much faster than using FM's. But be careful no data check/validation is done when you pass an IDOc to application (which maybe an advantage in your situation).
    Andrzej

  • Could i use 'HR_MAINTAIN_MASTERDATA' to create new employee ?

    Dears
    it seems using PA40 to create new employee.
    i just want to create simple person with infotype 0000, but when i using 'HR_MAINTAIN_MASTERDATA' it will automitically jump into new screen of new infotype such as 0001 without push saving button the same as i use PA40.
    How could i control the screen sequence ?

    Hi,
    You cannot create  Employees using this FM HR_MAINTAIN_MASTERDATA. This FM can be used to maintain infotypes AFTER an employee/applicant has been created in SAP(pa40).
    i think there are no FMs to create Employees. There are FM's to create,update,delete,delimit etc other infotypes but IT0000(actions) Need to be performed either using PA40 or thru other mass data entry precedures like LSMW etc. where Recording of a transaction is performed.
    and coming to the jumping of screens u mentioned, it is initiated by Infogroups, where the sequence of infotypes to be maintained while performing an action are defined.
    you can remove the infotypes you dont want to maintain by identifying the infogroup and deleting it from there.
    also for this FM 'HR_MAINTAIN_MASTERDATA' the important import parameter itself is PERNR? how are u using this FM to create an employee?
    any special reason why u wanna use a Function module to create an employee?
    Message was edited by:
            Hruser

  • How to create an employee with a specific effective_start_date with api?

    Hello,
    I'm trying to create an employee through the hr_employee_api.create_employee (R12 Apps)
    In Forms, if we want create it in a different date than sysdate, we use the "Alter effective date" screen... what this does is to copy into global.g_session_date variable the value we set.. and I suppose that this date is what api takes as sysdate to create an employee with desired effective_start_date.
    But.. how to set it through Plsql procedure that call to create_employee api? p_per_effective_start_date is an out parameter... But after following the code through internal apis.. I didn't get to find where is that value set...
    Any ideas?
    If no one is passed, it's set to sysdate.. but what we want is to set this date to one specific...
    Thanks,

    Hi again,
    sorry for a "quick" conclusion...
    Although the session date wwill be set inserting in fnd_sessions.. the effective_start_date returned ..continues with the value of hire_date.
    I've checked the screen behavior and it inserts directly into PER_ALL_PEOPLE_F (when we have a "normal" employee, not CWK) through per_people11_pkg.insert_row1 procedure.
    So.. is there anyway with create_employee api to create an employee (CORRECTION p_datetrack_update_mode) with hire_date different from p_effective_start_date??
    Interesting issue...
    Regards.

  • Error while trying to create new assignment with supervisor through API

    Hi Experts,
    I'am trying to create new assignment with supervisor for employee, but i'am facing this error:
    =============================================================
    ORA-20008: Error While Create new assignment..-20001
    ORA-20001: The supervisor assignment that you have entered is invalid.
    Please check that you have entered the supervisor,
    that the supervisor assignment belongs to this supervisor and that the assignment is effective.
    ORA-06512: at line 198
    =============================================================
    This is my script, (Oracle EBS 12.1.1)(DB 11):
    DECLARE
    v_user_id NUMBER;
    v_res_id NUMBER;
    v_res_appl_id NUMBER;
    v_org_now_no_manager_warning BOOLEAN;
    v_spp_delete_warning BOOLEAN;
    v_other_manager_warning BOOLEAN;
    v_tax_district_changed_warning BOOLEAN;
    v_entries_changed_warning VARCHAR(4000);
    v_person_id per_all_assignments_f.person_id %TYPE;
    v_business_group_id hr_all_organization_units_tl.organization_id %TYPE;
    v_people_group_id per_all_assignments_f.people_group_id %TYPE;
    v_object_version_number per_all_assignments_f.object_version_number %TYPE;
    v_special_ceiling_step_id per_all_assignments_f.special_ceiling_step_id %TYPE;
    v_group_name pay_people_groups.group_name %TYPE;
    v_ass_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_start_date per_all_assignments_f.effective_start_date %TYPE;
    v_effective_end_date per_all_assignments_f.effective_end_date %TYPE;
    v_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_sup_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_supervisor_assignment_id per_all_assignments_f.assignment_id %TYPE;
    v_job_id per_jobs.job_id %TYPE;
    v_grade_id per_grades.grade_id %TYPE;
    v_location_id hr_locations_all.location_id %TYPE;
    v_payroll_id pay_all_payrolls_f.payroll_id %TYPE;
    v_pay_basis_id per_pay_bases.pay_basis_id %TYPE;
    BEGIN
    v_user_id := FND_GLOBAL.user_id ;
    v_res_id := FND_GLOBAL.resp_id ;
    v_res_appl_id:= FND_GLOBAL.resp_appl_id;
    FND_GLOBAL.apps_initialize(v_user_id, v_res_id, v_res_appl_id);
    BEGIN
    SELECT organization_id
    INTO v_business_group_id
    FROM hr_all_organization_units_tl
    WHERE name = 'Vision University'
    AND language = 'US';
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20000,'Error While Retrieving (Business Group ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    FOR R IN (SELECT * FROM xx_assignment) LOOP
    BEGIN
    SELECT assignment_id , ass_f.object_version_number
    INTO v_assignment_id , v_object_version_number
    FROM per_all_assignments_f ass_f, per_all_people_f p_f
    WHERE ass_f.person_id = p_f.person_id
    AND ass_f.business_group_id = p_f.business_group_id
    AND ass_f.business_group_id = v_business_group_id
    AND p_f.employee_number = R.employee_number
    AND TRUNC(p_f.effective_start_date)= TRUNC(ass_f.effective_start_date)
    AND TRUNC(p_f.effective_end_date) = TRUNC(ass_f.effective_end_date);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20001,'Error While Retrieving (Assignmet_ID) for employee..'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT job_id
    INTO v_job_id
    FROM per_jobs
    WHERE trim(lower(name)) = trim(lower(r.employee_job))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20002,'Error While Retrieving (Job_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT grade_id
    INTO v_grade_id
    FROM per_grades
    WHERE trim(lower(name)) = trim(lower(r.employee_grade))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20003,'Error While Retrieving (Grade_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT location_id
    INTO v_location_id
    FROM hr_locations_all
    WHERE trim(lower(description))= trim(lower(r.employee_location))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20004,'Error While Retrieving (Location_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT payroll_id
    INTO v_payroll_id
    FROM pay_all_payrolls_f
    WHERE trim(lower(payroll_name)) = trim(lower(r.payroll_name))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20005,'Error While Retrieving (Payroll_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT pay_basis_id
    INTO v_pay_basis_id
    FROM per_pay_bases
    WHERE trim(lower(pay_basis)) = trim(lower(r.pay_basis))
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20006,'Error While Retrieving (Pay_Basis_ID) Info...'||SQLCODE||' '||SQLERRM);
    END;
    BEGIN
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20007,'Error While Retrieving (Assignmet_ID) for supervisor..'||SQLCODE||' '||SQLERRM);
    end;
    BEGIN
    hr_assignment_api.update_emp_asg_criteria(p_effective_date => TRUNC(SYSDATE),
    p_datetrack_update_mode => 'CORRECTION',
    p_assignment_id => v_assignment_id,
    p_validate => FALSE,
    p_called_from_mass_update => NULL,
    p_grade_id => v_grade_id,
    p_position_id => NULL,
    p_job_id => v_job_id,
    p_payroll_id => null,--v_payroll_id,
    p_location_id => v_location_id,
    p_organization_id => v_business_group_id,
    p_pay_basis_id => v_pay_basis_id,
    p_segment1 => NULL,
    p_segment2 => NULL,
    p_segment3 => NULL,
    p_segment4 => NULL,
    p_segment5 => NULL,
    p_segment6 => NULL,
    p_segment7 => NULL,
    p_segment8 => NULL,
    p_segment9 => NULL,
    p_segment10 => NULL,
    p_segment11 => NULL,
    p_segment12 => NULL,
    p_segment13 => NULL,
    p_segment14 => NULL,
    p_segment15 => NULL,
    p_segment16 => NULL,
    p_segment17 => NULL,
    p_segment18 => NULL,
    p_segment19 => NULL,
    p_segment20 => NULL,
    p_segment21 => NULL,
    p_segment22 => NULL,
    p_segment23 => NULL,
    p_segment24 => NULL,
    p_segment25 => NULL,
    p_segment26 => NULL,
    p_segment27 => NULL,
    p_segment28 => NULL,
    p_segment29 => NULL,
    p_segment30 => NULL,
    p_employment_category => NULL,
    p_concat_segments => NULL,
    p_grade_ladder_pgm_id => NULL,
    p_supervisor_assignment_id => v_sup_assignment_id,
    p_people_group_id => v_people_group_id,
    p_object_version_number => v_object_version_number,
    p_special_ceiling_step_id => v_special_ceiling_step_id,
    p_group_name => v_group_name,
    p_effective_start_date => v_ass_effective_start_date,
    p_effective_end_date => v_effective_end_date,
    p_org_now_no_manager_warning => v_org_now_no_manager_warning ,
    p_spp_delete_warning => v_spp_delete_warning,
    p_entries_changed_warning => v_entries_changed_warning,
    p_tax_district_changed_warning => v_tax_district_changed_warning,
    p_other_manager_warning => v_other_manager_warning);
    EXCEPTION
    WHEN OTHERS THEN
    RAISE_APPLICATION_ERROR(-20008,'Error While Create new assignment..'||SQLCODE||' '||SQLERRM);
    END;
    END LOOP;
    COMMIT;
    END;
    Thank you & Best Regards

    I think this is essentially saying that the Supervisor Assignment is wrong or no longer effective. Looking at your SQL to fetch the Supervisor Assignment there are a number of potential issues. This is what you've currently got:
    SELECT person_id
    INTO v_person_id
    FROM per_all_people_f
    WHERE employee_number = r.supervisor_number
    AND business_group_id= v_business_group_id;
    SELECT assignment_id
    INTO v_sup_assignment_id
    FROM per_all_assignments_f
    WHERE person_id = v_person_id
    AND business_group_id = v_business_group_id;
    Potential Problems/Clarifications
    1. What is r.supervisor_number, what does it contain and how is it derived? I can't see that anywhere else in the block...
    2. Is there a chance that r.supervisor_number is referencing an employee who has left, ie, now an ex-employee?
    3. The SELECT statement that fetches the assignment_id does not perform any date-effective restrictions, which means you might be lucky enough to fetch the person's current assignment. But you might also fetch an old or future-dated assignment.
    4. The SELECT statement that fetches the assignment_id does not restrict the type of assignment, so if this manager has applied for a job (ie, they have an applicant assignment) or some other type of non-employee assignment you might be picking that up.
    This would work better for you:
    SELECT paaf.assignment_id
    INTO v_sup_assignment_id
    FROM per_all_people_f papf
    ,per_all_assignments_f paaf
    WHERE papf.employee_number = r.supervisor_number
    AND papf.business_group_id = v_business_group_id
    AND nvl(papf.current_employee_flag, 'N') = 'Y'
    AND trunc(sysdate) BETWEEN
    papf.effective_start_date AND papf.effective_end_date
    AND papf.person_id = paaf.person_id
    AND paaf.assignment_type = 'E'
    AND paaf.primary_flag = 'Y'
    AND trunc(sysdate) BETWEEN
    paaf.effective_start_date AND paaf.effective_end_date;
    If it doesn't return a row it means that the supervisor (or whatever employee is returned by r.supervisor_number) is not active as at sysdate and cannot be used. Note that this SQL only applies for employees. If you can have Contingent Workers as supervisors in your implementation then this needs tweaking.
    Does that help?

  • Creating New Employee Record

    Hello Expert,
    I am very new to SAP HR module. Is anybody knows hoe to create new employee record in SAP HR module?
    Other than creation, My requirement also is to edit some data given pernr number using pa30 transaction.
    Any help??
    Thanks,
    Prashant

    Prashant,
    To hire an employee, go to PA40.
    Leave the personnel number field blank; as it is internally given by the system.
    Give the date on which the employee is being hired.
    Select 'Hiring' action from the list of actions.
    Press F8(Execute).
    This leads to different Infotype records, which need to be filled and saved accordingly.
    ~Kumar K

  • How to create two employees with same name as supplier record?

    Dear all,
    We need to create a supplier record for an employee so that we can issue invoice for pretty cash payment. If there are 2 employees with same name, how can we create supplier records for these 2 employees? The system does not allow duplicate supplier name.
    Please advise.
    Regards,
    HY

    Hello,
    In R12 it is possible to create 2 employee with same name but different employee number.
    And also possible to create these 2 employees as suppliers in Payables.
    HTH,
    Vik

  • HT204088 Dear sirs,  Could you please help me on my problem with my apple ID  I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,  My account have 50$ and stil

    Dear sirs,
    Could you please help me on my problem with my apple ID
    I create new account with security questions, and when I try to purchase paid application,it ask me for answers the questions but it's not working,
    My account have 50$ and still didn't buy anything

    You need to ask Apple to reset your security questions; ways of contacting them include clicking here and picking a method for your country, phoning AppleCare and asking for the Account Security team, and filling out and submitting this form.
    (100546)

  • How to create new docs with custom swatch palette?

    Looking to create new documents with a corporate color palette already available instead of having to load the .ase files. Fat chance?

    Thanks Bob - I was trying that on a test MAC and it just was not sticking. A shutdown instead or a restart seemed to put things back in order and now all is good.

  • How to create new user with more than one default folder

    hi
    A new user created in OCS has only one default folder(Inbox).
    I want to create new user with customized default folder.
    for example:
    a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
    And also I want to automaticly enable the functions:
    When sending messages, place a copy in Outbox
    Keep message drafts in Draft
    Move deleted messages to Dustbin
    who know that?
    thanks

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • New employee with wrong hiring date - how to change?

    Hi,
    I've entered a new employee with a wrong hiring date and I don't know how to change it. Some employee date are easily changeable not the hiring date!?

    Hi Marko.
    Go to t-code PA30, enter the personnel number of the employee whom you have hired.
    At the top in the menu bar, select "UTILITIES" - "Change entry/leaving date".
    It will take you to the screen - "Change Actions" - Change " Start date".
    This will correct the hiring date of the employee.
    Reward points, if helpful.
    Regards,
    Reema

  • Create New user with ...

    Hi all
    I need to create new user with the following privileges :
    1- access any table data (read only)
    2- access the tables structure (read only)
    3- access the tables relations (read only)
    thanx in advance

    Hi,
    giggs11 wrote:
    I did the following :
    create user youruser identified by yourpassword;
    grant connect to youruser;
    grant SELECT_CATALOG_ROLE to username;
    but I cann't see my tables
    there is no erroExample :-
    Step 1:-
    sql> Conn system/manager@orcl;
    connected.
    step 2:-
    SQL> create user trial identified by trial;
    User created.
    Step 3:-
    SQL> grant connect to trial;
    Grant succeeded.
    SQL>grant SELECT_CATALOG_ROLE to trial;
    Grant succeeded.
    SQL> grant select any table to trial;
    Grant succeeded.
    Step 4:
    SQL> conn trial/trial@orcl;
    Connected.
    SQL> select * from tab;
    no rows selected
    Step 5:
    SQL> select * from scott.dept;
    DEPTNO DNAME LOC
    10 ACCOUNTING NEW YORK
    20 RESEARCH DALLAS
    30 SALES CHICAGO
    40 OPERATIONS BOSTON
    Step 6:
    SQL> desc scott.dept;
    Name Null? Type
    DEPTNO NOT NULL NUMBER(2)
    DNAME VARCHAR2(14)
    LOC VARCHAR2(13)
    you must read about privileges..
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96521/privs.htm
    Regards
    S.Azar
    DBA
    "Question is Unquestionable"
    Edited by: azarmohds on Aug 15, 2009 6:28 AM
    Edited by: azarmohds on Aug 15, 2009 6:32 AM

  • How to remove 'Create new employee' option for a scenario in org modelling?

    Hi Luke,
    We want to remove 'create new employee' option that appears under 'actions' in details panel for a position in scenario (for org chart).
    I checked in linkconfiguration folder for position, but it doesn't show this option to be disabled. I also checked detailspresentationconfiguration folder but no luck. I am assuming, it must be pretty different to achieve this for a scenario object.
    Please help!
    Thanks,
    Prashant

    Hi Prashant,
    I'm not entirely sure this can be changed. It doesn't appear to be controlled through configuration or XSL. My guess is it is hard-coded.
    Sorry I can't be of more help.
    Best regards,
    Luke

  • Creating new Employee in ECC

    Hi,
    i am new to SAP and new to this group also, Can any one help me how to create new employee(HR) in SAP using the BAPIs, after creation of employee how can i check the new employee details in SAP.Can one give me step by step approach to solve this problem.
    Thanks in advance.
    Thanks & Regards
    sushma

    Hi,
      Welcome to SDN. Please post your question in the correct forum for better replies.
    /community [original link is broken]
    Regards,
    Harini S

Maybe you are looking for