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

Similar Messages

  • 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

  • How to know "pernr" after creation of employee with HR_MAINTAIN_MASTERDATA

    Hello,
    Anybody any idea how you can know the pernr of the employee you created with HR_MAINTAIN_MASTERDATA?
    Problem I am facing:
    I create a new employee using HR_MAINTAIN_MASTERDATA.
    As I do not have all information required yet, I only  update/insert IT0000.
    (otherwise the program asks me to "Fill in all required fields")
    Then I want to fill up the other IT with HR_INFOTYPE_OPERATION, but I don't know the number that was created.
    Can anybody help me?
    Thanks.

    Have you checked the exporting parameter from the fm call?
    EXPORTING
    *"             VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN
    *"             VALUE(RETURN1) LIKE  BAPIRETURN1 STRUCTURE  BAPIRETURN1
    *"             VALUE(HR_RETURN) LIKE  HRHRMM_MSG STRUCTURE  HRHRMM_MSG

  • Hiring new employee

    hi,
    i am working on sap 4.7 .
    when i try to creat hiring new employee through PA 40 i can't see Hire  can any body give me procedure for how to hire new employee

    Hi,
    Can you cehck the following necessary configurations.
    IMG  Personnel Management  Personnel Administration  Customize Procedures  Actions  Define Info groups
    u2022     In this step, you define the mile-stone Actions that need to be performed for an employee during his tenure with the organization.  The User Group (user parameter "UGR") is also activated for each Action so that the Info Groups associated with each Action would be User Group dependent.
    u2022     If there are no entries for an info group for the user's user group or if the user has not maintained their user group, then the info group is determined using the default user group which is the country grouping.
    u2022     In addition to this, the info group can be set up so that it is dependent on the employee's control data. This is activated by using feature Info group modifier (IGMOD).
    IMG  Personnel Management  Personnel Administration  Customize Procedures  Actions  Change Info groups
    The info groups are chosen by assigning the operations, info types and info subtypes for the user group 40.
    u2022     When operation INS is used while assigning ITs to IGs the system checks to see whether an info type already exists (possibly with the same subtype).  If such an IT already exists, the system switches from "Create" to "Change".
    u2022     It normally makes sense to use the operation "Create" (INS) for a hiring action. For all other actions, we could use function code "Copy" (COP).  While using function code u201CCopyu201D, existing records with the start date of the action are proposed. If no records exist for the info type, the system internally switches to "Create".
    u2022     During a Termination action, we use the operation LIS9 for delimiting records.
    Personnel Management  Personnel Administration  Customizing  Procedures  Actions  Set up personnel actions  Personnel Action types
    Personnel Management  Personnel Administration  Customizing  Procedures  Actions  Create reasons for personnel actions
    Personnel Management  Personnel Administration  Customizing  Procedures  Actions  Change action menu  User Groups dependency on Menus and Info Groups
    Here you can check the ref user group
    Personnel Management  Personnel Administration  Customizing  Procedures  Actions  Change action menu  Action Menu
    Thanks and Regards,
    Revathi.

  • PA40 - HIRING - NEW EMPLOYEES

    Dear experts,
    when i m goin for hiring-new employee thr PA40, the personel number is generating even I not saved it. The personel no. is
    getting generated in sequence everytime even I not saved it.
    Pls help
    jigs

    Hi Friends
    PA40 is actions which automatically popup the infotype screens one by one and saves them too.
    --> Infact this is the one of feature of PA40. It is behaving normally. (Nothing is abnormal here)
    Since the personnel Number is Unique Key, It can't create duplicate record. So even though if you create single record also automatically it chooses next number
    Regards

  • 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

  • Creating Employee with Foreign currency

    HI HR gurus
    Our company code currency is INR and till now employees were paid in INR. Now we got new requirement that is , we have to create some new employees with currency SGD (Singapore dollar) . with this we want to generate all MIS in SGD only .Posting can happen in INR after converting as per exchange rate.
    Kindly let me know the possibilities and alternatives.
    Thanks in advance
    Sneha

    Created another company code

  • Create employee with detached infotype framework

    Hello,
    I'm desperately trying to create a new employee with the decoupled infotype framework, without success.
    I try to save IT0000 and IT0003 (as secondary record) at first, but when I call the  'if_hrpa_masterdata_bl~get_infty_container' method, a 'cx_hrpa_missing_infty_data' exception is raised because the framework can not find any IT0003 record for the new employee (of course, since I'm trying to create it!).
    So I can't do any insert since I can't get any container...
    Thanks in advance.
    Mathieu

    So, isn't there a way to create an employee with the detached infotype framework?
    Here is the code I used to try to create an employee in the system:
    *-- Get business logic from masterdata factory
      CALL METHOD cl_hrpa_masterdata_factory=>get_business_logic
        IMPORTING
          business_logic = lo_masterdata_bl.
      TRY.
          CREATE OBJECT lo_message_list.
    *-- THIS IS WHAT DOESN'T WORK. Since I can't get a container, I can not do anything else.
          lo_masterdata_bl->get_infty_container(
            EXPORTING
              tclas           = c_employee_tclas
              pskey           = ls_pskey
              massn           = '00'
              massg           = '00'
              no_auth_check   = abap_true
              message_handler = lo_message_list
            IMPORTING
              container       = lo_infty_container
              is_ok           = success
    *-- Message management
    *-- Update old data with new one
          lo_infotype_container ?= lo_infty_container.
          lo_infty_container ?= lo_infotype_container->modify_key( ls_pskey ).
          lo_infotype_container ?= lo_infty_container.
          lo_infty_container ?= lo_infotype_container->modify_primary_record( pnnnn ).
          IF pnnnn2 IS NOT INITIAL.
            lo_infty_container ?= lo_infotype_container->modify_secondary_record( pnnnn2 ).
          ENDIF.
    *-- Insert record
          CALL METHOD lo_masterdata_bl->insert
            EXPORTING
              massn           = space
              massg           = space
              update_mode     = ls_update_mode
              no_auth_check   = abap_true
              message_handler = lo_message_list
            IMPORTING
              is_ok           = success
            CHANGING
              container       = lo_infty_container.
    *-- Flush
          IF flush_immediately EQ abap_true.
            CALL METHOD lo_masterdata_bl->flush
              EXPORTING
                no_commit = space.
          ENDIF.
    *-- Message management
        CATCH cx_hrpa_violated_assertion INTO lo_exception.
    *-- Message management
      ENDTRY.

  • 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

  • Add a new employee - Connection is busy with results for another command

    Hi all,
    I try to add a new employee in my SAP Business One system, but I get an error message like that : [Microsoft][SQL Native Client] Connection is busy with results for another command * (HEM5) (HEM5)
    So I try to see if I get the same message when I update an employee, and I don't get this message.
    Do you have an idea, why I get this error message when I add a new employee ?
    Message was edited by:
            Marc Riar

    Hello,
    I am afraid there maybe two users / workstations using the same user code and one of them is creating (add) and other is update. Try to ask the users/wrokstations.
    Another way out is try to run this query :
    select * from HEM5
    Rgds,
    JM
    http://groups.yahoo.com/group/SBO_Knowledge_Village
    [email protected]

  • Error with creating a new employee - PA40

    When creating a new employee record using PA40, the PERNR gets generated as soon as Infotype 0000 is updated. How do we capture the new PERNR, if a BDC recording of PA40 fails midway during the process
    I would appreciate and reward any valuable ideas!

    create a session for error messages....and u can go to sm35 and check what has ahppened.....if not use format_message and display what has happened as report output....in case of BDC fail......!!!!!
    it will be like....
    call transaction 'PA40' using it_bdctab
    mode 'N'
    update 'S'
    messages into it_bdcmsgcoll.
    if sy-subrc <> 0.
    *--store the pernr for which bdc failed......here!!!
    call function 'bdc_open_group'
    call function 'bdc_insert'
    call function format_message
    call function 'bdc_close_group'
    *---check error and try to rectify it.....
    Regards
    Vasu

  • Reg: Posting of payroll for new employee joined

    Dear Expert,
    We have hired a new employee, maintained all infotypes including 0009 also. We are facing problem once the payroll have run. his RT table have got updated, cluster result have been updated. but when we go for posting purpose, that employee doesn't gets selected for posting run also. the system is not at all selecting the employee for any document creation.
    with regards
    sumoy maity

    HI,
    Tcode - PC00_M99_CIPE
    Enter Employee Code
    Select the tick - display Log
    Do live run
    This will show you the run number if the employee data has already been selected for actual run.
    You can use this Run number for further processing.
    Hope this helps.
    Param.

  • E recruiting Data Transfer for New Employee

    Hi all,
              We are implementing E-recruitment 3.0, Ecc 6.0 and E recruitment system are in the same system, we processing internal recruitment currently, here i can receive the internal applications, we can able to view and process the applications in recruiter role. Here i can execute the sequence of activities for application process group for received applications, we not integrated any XI systems for e recruitment process.
             After processing the activity to be hired, the next activity is Data transfer for new employee, this is also executed successfully for data transfer of employee positions, job, org unit details etc.
           1.  whether transferred data of applicant is processed via transaction PA48(Hiring of transferred employees)for internal recruitment in R/3 HR system, after the data transfer activity in E recruitment portal screen ?
           2. is any other roles and application url available for Hiring internal candidate which could be done in portal E recruitment screen itself with out coming to R/3 HR transactions side ? with out going into PA48 for hiring.
          3. any specific roles we have assign for recruiter ?
          4. any process carried out in Managerial self service?(according to me MSS is different instance to process recruitment process for internal and external recruitment for Vacancy filling) please correct me my vision on MSS.
            your answers and suggestions will be highly appreciated!
    Thanks from,
    Venkatesh Mani.

    1. whether transferred data of applicant is processed via transaction PA48(Hiring of transferred employees)for internal recruitment in R/3 HR system, after the data transfer activity in E recruitment portal screen ?
    If you are selecting the internal candidate , you need not hire the employee again using PA48. You can trigger transfer / change in position workflow using PCR form.
    2. is any other roles and application url available for Hiring internal candidate which could be done in portal E recruitment screen itself with out coming to R/3 HR transactions side ? with out going into PA48 for hiring.
    I dont think we have any specific action from eRecruitment side to run the hiring action.This needs to be done from R/3 only.
    3. any specific roles we have assign for recruiter ? Not sure about this.
    4. any process carried out in Managerial self service?(according to me MSS is different instance to process recruitment process for internal and external recruitment for Vacancy filling) please correct me my vision on MSS.
    If its intergrated portal with the Requestor role attached in the manager profile , they will be able to carry out both internal and external candidates selection. I dont think you would require different instance.
    We can also wait for someother inputs from forum gurus.
    Thanks.
    Gautham.

  • 0HR_PT_1 Datasource doesnot extract New employees in Delta Load

    Hi Gurus,
    I did an initialization of delta based on Company code selection and calendar month range (01.2008 to 12.2009) in the month of Aug-09 around 60million records came into BI.The dataload was successfull (Info yellow but made into green). After that when the new employees created in ECC for these emplyoees there is no data being extracted through 0HR_PT_1 datasource.
    Gone through the following notes
    Note 670751 - Time management extractors and new employees
    This talks ablut selection range for Personnel Number which i have not given at the time of init. But now already data is there in BI and it will take hell out of time. Its not sure even though we did init selection with peronal Number ranges 10 years data is coming into BI.
    Note 353177 - Long-run. progr. at time data extrct. in delta mode
    This note talks about time frame which itself is a confict with the infotype 0439.
    Please suggest how to minimize the successfull initialization of delta with out missing the new employees workschedule data.

    If u click the 'Documentation' icon at the IMG node, u can see the following
    Define Time Frame for Transfer
    In this step, you define the time frame used to select time data for reports in the Business Warehouse. Only time data entered for a date or period within this time frame is transferred to BW.
    The time frame you specify is activated when you
    Request data for initializing the delta transfer
    Request the delta since the last request or repeat the delta request
    Transfer all requested data and do not restrict the required period in BW.
    Example
    1. You regularly use BW to gain an overview of the current calendar year.
    You enter January 1, 2001 as the earliest transfer date and December 31, 2001 as the latest transfer date. At the start of the next year, you set the dates forward one year.
    2. You want to have regular access to the current data. You also want to take account of time data that has changed in the last six months. You are also interested in absences that have been recorded for future periods.
    You therefore set the earliest transfer data to six months ago and the latest transfer date to six months in the future. Each month, you set the dates forward one month.
    Recommendation
    Make the time frame as small as possible to avoid unnecessarily long runtimes, and as large as necessary to transfer all relevant data.
    Activities
    1. Choose the Check Feature TIMMO activity.
    2. Check the modifiers specified. If you want to use special modifiers for BW, adjust the feature accordingly.
    3. Choose the Earliest Transfer Date activity and enter the date up to which
    a) Data is to be selected (when you request all data)
    b) All changes made after the last request are to be selected (for a delta request)
    4. Choose the Latest Transfer Date activity and enter the date up to which data entered for the future is to be selected.
    5. Note these activities (outside the SAP system) for your periodical activities so that you can update the time frame monthly or annually, for example.

  • Error while hiring an employee in pa40

    HI
    This occurs while hiring an employee in PA40.
    Runtime Errors         GETWA_NOT_ASSIGNED
    Short text
         Field symbol has not yet been assigned.
         Error in the ABAP Application Program
         The current ABAP program "SAPLHRWF" had to be terminated because it has
         come across a statement that unfortunately cannot be executed.
        You attempted to access an unassigned field symbol
        (data segment 32770).
        Thanks in advance

    Hi,
    first tell me exactly where the error is coming?
    is it coming as soon as you entered in PA40? or
    is it coming in a particular infotype? if so what is that infotype and what value you are inputing in that screen?
    please make sure the value you are giving in the screen is properly configured. also check the T588D & T529A with respect to UGR and IGMOD.
    Gayathri N

Maybe you are looking for

  • Help with PSE 7

    I have downloaded camera raw 5.2 update to my computer. I can not install it into PSE 7. Just a beginner and need help. Thank you, Jay

  • Problem in NWDS installation

    Hi All, DataModeller and NavigationModeller in My NWDS are not opening..,I copied  the plug-ins folder from other system ..even then it is not working for me.. what should I do? Thanks in advance.

  • Issues regarding Smart Card login inside domain and on SmartPhones

    Hi i am planning to implemnt at my domain login ONLY with smartcard i saw i have some option how to do it , one with GPO that covers all the computers (or some computers with defined groups) or i can check the "smart card is  required ...." this coul

  • Can I use a mountain lion time machine back up on new mavericks macs?

    My macbook retina was stolen at my school. I was wondering because I used time machine having mountain lion, does it affect anything when if i purchase a mavericks macbook pro? the just announced one. I have all my pictures (iphoto) in that last back

  • Podcasts - Do I have to download them or can I just stream?

    For some reason I thought that I would be able to stream podcasts that I subscribe to rather than download each one. I feel like I am missing as easy fix to just click to watch rather than fill up my hard drive and wait for the downloads. Any ideas?