Employee hire via HR_MAINTAIN_MASTERDATA

Hi,
I am trying to create employee via FM using HR_MAINTAIN_MASTERDATA, unfortunately I am facing some issues when I am creating IT0001(Organizational Assignment) , I get an error stating that IT0003 is not creating for the given ID. What i would like to know is if there is a way to create IT0003 via a FM, since it does not seem to work with HR_MAINTAIN_MASTERDATA.
Regards,
Leandro Fonseca

HI,
Refer to the link.
How to hire new employee (BAPI, BDC, IDoc/ALE...???)
This might help.
Regards
Sumit Agarwal

Similar Messages

  • Hire using HR_MAINTAIN_MASTERDATA

    Hi All,
    I wrote a program for hiring employees using FM HR_MAINTAIN_MASTERDATA from a Z table ( this will be populated through an IDOC). I have only Infotype 0,1,2 data, so that my requirement is i need to stop the FM after those infotypes data pushed. In my program FM is trying to get data from next infotype ( IT 6) which is configured for infogroup for HIRE action and trigerring an error as "Fill mandatory fields" and not creating the employee no.
    My objective is hire an employee with minimum data and return back in an alv output with personnel no.
    Note : Mandatory to get back the personnel generated. FM HR_MAINTAIN_MASTERDATA returns the personnel no. only entries data pushed for HIRE action.
    Can anybody to help to resolve / achieve this task ?
    Regards,
    Ranjith

    Hi,
    you can use Lsmw for that. After saving it0002 press save button and then press back button. Hope this will solve ur problem. If not, please let me know more detail about the prog which u wrote. How u r calling the fm and in which mode. LSMW is best option in that case.
    Sandip

  • Hiring action with reference Pernr via HR_MAINTAIN_MASTERDATA

    Ciao,
    I need some help to solve the following problem:
    I get all needed data for an hiring action via external interface and need to perform the hiring action with HR_MAINTAIN_MASTERDATA by passing a reference personel number to the function.
    my problem: theres no chance to pass the parameter RFPNR to HR_MAINTAIN_MASTERDATA and so the function does not link the new PERNR to the CP of the RFPNR
    therefore, the function creates a new employee with a new central person (CP) instead of linking the new employee to the central person of the passed RFPNR and copying the relevant infotypes
    my question: does somebody know how to make HR_MAINTAIN_MASTERDATA work with the reference Pernr (RFPNR) ?!
    alternatively I could delete the link between the new employee and it's (new) central person, insert a new link between the central person of the referenced employee and the new employee and delete the crfeated central person of the new employee.
    as result I would have correct links to the CP BUT I'm facing the problem, that the infotypedata of the CP was not taken over to the new linked employee ...
    is there any function or report, that copys relevant data (infotypes) from a central person to it's linked employees (PERNRs) ?!
    would be nice if anyboday could help me or give me a small hint
    thanks,
    Markus

    I found the solution by myself ....
    Problem: hr_maintain_masterdata crashes with shortdump while writing an hiring action.
    Cause: we implemented infotype enhancements via userexit where parameter VIEKN is queried. The parameter VIEKN is saved in infotype 3.  In LUW-mode 3 theres no existent IT0003 when hiring a person (because nothing is written to database) that causes the shortdump ...
    solution (workaround): First I have to call maintain_masterdate just with infotype 0000 (without reference pernr!) ... that triggers the creation of it0003 by the system itself ... then I have to call a second maintain_masterdata with all the other infotypes of the action and everything works fine! Now the new person is in the system and while creating the person, the system also created a new central person and a link between the new CP and the new person.
    after doing this (and did'nt get any failure!) I have to determine the central person (CP) of the referenced person, making a new link between the new person and the referenced persons CP, deleting the link between the new person an d the new CP, deleting the new cp and every thing works fine!!!! the reason for this is: infotype 31 just shows the "links" that are defined in OM
    if anybody is interested in more details, just contact me
    Edited by: Raabiat on Apr 4, 2011 11:35 AM

  • How to covert the contractor to employee(Hire a contractor)

    Hi All,
    I have entered a contractor(contingent workes) in belgium business group via maintain contracts.Please let me know the steps(navigation) to hire this contract so make him employee.I tried using the manage contracts but this contractor is not appearing there.
    Thanks,
    MP.

    As Brajesh Sinha mentioned, you cannot convert a Contingent Worker to an Employee without first entering the Contingent Worker's placement. You need to do this:
    1) *HRMS Manager > People > Enter & Maintain > Others > End Placement.  Enter an end-date and terminate the placement.
    2) *HRMS Manager > People > Enter & Maintain. Date-track forward to the day after the end-date entered in 1. Query the person.  Their person type should be 'Ex-Contingent Worker.
    3) Select the 'Create Employment' action.
    4) Enter any required fields and save.
    5) The person's Person Type should be Employee.Ex-Contingent Worker.
    Does that work? If not, please provide details of where this process fell over, ie, any errors you encountered. Thanks.

  • How to correct employee hire,Effective dt from People and Asg date as well

    Dear
    I have some problem while termination of employee,at the time of migration some of cases date was not corrected,so my client has rectified of tht cases & now i need to correct hired date,effective date from per_all_peopel_f & as well as to change assignemnt effective date,
    can you please guide me ,is it possiable and which api need to use.
    Thanks

    if your purpose is to change the start date (hire date) of an employee, the API you are looking for is 'HR_CHANGE_START_DATE_API' .
    Just go through the procedures in this API and you can easily figure out how to call it to change the hire date of an existing employee.
    Please note that changing the hire date in per_all_people_f change all child dates (ie assignment start dates etc).
    Let us know how did it work out.

  • Change employee group via user exit ?

    Hello,
    I would like to know if it is possible to change the field
    PSPAR-PERSG in infotype "action" -0000
    via user exit ZXPADU01/2 ?
    When I get p0000-MASSN = 10 ,i need to move 0 to
    PSPAR-PERSG but via the user exits it is not possible.
    Only when I debug and put in PSPAR-PERSG  the value 0 it works.
    Please let me know if there is away ...
    Thank you,
    Boaz

    Hi,
    Customizing 0184 could not met our requirements.
    We need to keep the original settings (ELN...), and we'd like to change the inbounde delivery item category according to specific purchase order informaiton, so MV50AFZ1 is required.
    Kindly please advise again.
    With regards.

  • PA - OM Integration not happening via BDC

    Hi,
    In the HR system PA and OM are linked. So any position filled via Hire / re-hire is reflected in the org structure.
    In our system, when we do a manual quick hire via PA40 of a person then the Org assignment is also done.
    However we have implemented a BDC program to perform quick hire. 
    When we are using BDC the record is created in PA infotypes correctly (in 0000 and 0001 the position is occupied by the person ), however in Org structure the position still appears to be Empty and not occupied by this personnel.
    Any reasons or solution ?  Why is there a difference between BDC and a manual hire?
    If we run RHINTE00 after running the BDC rogram the PA-OM integration is happening fine. 
    But RHINTE00 is supposed to be run initially and not everytime we hire an employee right?
    Also the integrations flags are: PLOGI PLOGI = 01
                           PLOGI ORGA  = X
                             PLOGI PRELU = 0
    Regards,
    Sai

    Dear Sai
    I hope there is a problem in BDC, take the help of ABAB and check the recording once again.  This is will solve your problem. 
    Regards
    Narahari

  • Can we view HR DMS data via PA20/PA30

    Dear SAP HR GuruS!
    We had a requirement wherein we stored HR Data scanned and stored on
    DMS server, we wish to link Employee DMS data to Employee master data
    i.e supervisor should be able to view Employee data via PA30/PA20. what
    is the way to view employee record ( Stored in DMS Server) ,
    I am looking by any mean can be link it to PA20/pa30 to any infotype,
    in one of the Tab of employee master data...

    Hey,
    There is no standard solution, but yoju can use this (see below) to create a object link between HR object and DMS
    //Håkan
    Adding Other Objects
    Purpose
    You can also link documents with SAP objects for which no linking is supported in the standard
    SAP System.
    Prerequisites
    In Customizing for the Do
    cument Management ,SAP objects that you want to link to document info records, by choosing Control Data ® Maintain key fields.
    Process
    Program two screens for the following module pools for the SAP object that is to be linked additionally:
    u2013 SAPLCV00
    u2013 SAPLCVIN
    The process logic must be according to that of screen 0204 in program SAPLCV00 and must not be changed.
    Create the function moduleOBJECT_CHECK_XXXX (XXXX = name of the SAP object).
    If this object can be classified, this function module already exists in the standard system. Otherwise, copy the existing function module OBJECT_CHECK_EQUI (linking of equipment) and change it to suit the new object.
    Result
    After you have completed the above, documents can be linked with the SAP object that you have added. You define the settings for this in Customizing for the Document Management System (see:
    Object Links).

  • Change infotypes end date when delete leaving action for employee

    Hello,
    I created new infotype and when employee leaves its end date is changed for leaving date.
    When leaving action is deleted ther is some least of infotypes that user can sign so the end date of selected infotypes will be changed to 31.12.9999. How can i add my infotipe to this list?
    Thank you,
    Paulina

    Hi,
    Maintain IT 0041 where in that table maintain employee start date of hiring and leaving date of employee bze in IT 0000 the dates will change as per action lets say if employee hire that date will be in IT 0000 action and if employee gets promotion date or leaving date that will store in IT 0000 by delimiting other actions
    So maintain IT 0041 where you can pull dates from there if you maintain
    End date will always be 31.12.9999 so check action start date you will get in sequence
    Thanks
    Edited by: Vibinsap on Mar 9, 2012 7:12 AM

  • How to determine employee type (management vs nonmanagement) in WebDynpro

    Hi,
    I am running SP14.
    In my WebDynpro application, I need to hide/show a link based on if the employee is management or nonmanagement.
    What is the easiest way to determine the type of employee in a WebDynpro?  Is the management/non-management attribute already exposed and available to the WebDynpro?  Or do I need to invoke a BAPI/RFC to retrieve that information from SAP (eg Employee Group or Personnel Area)?
    Thanks for any help you can provide.
    Kevin

    You only need to call this RFC once and share the results with other views via context binding!
    In my applications I follow the Floorplan manager architecture and have one web dynpro component for all the frontend logic e.g. FcAddress
    In the component controller of FcAddress I setup model nodes for the RFC e.g.
    Address_Input (mapped to input RFC model class with all the import parameters of the RFC)
    Address_Output (mapped to either the output RFC model class with all the export parameters of the RFC or it includes another model node for Address_Records which is mapped to the export table parameter.)
    Address_Messages (mapped to the return parameter of the RFC (BAPIRET2).
    All other views with their component controllers are mapped to those model nodes to allow access to the RFC data.
    You can pass the userid to the RFC and then the RFC will get the related employee number via IT105/ST10. You just need to have the userid defined as an import parameter in the RFC.

  • HR_MAINTAIN_MASTERDATA - Missing Action Reason (MASSG)

    Hi Developers,
    I have a bit of an issue. I'm trying to create a new employee using FM HR_MAINTAIN_MASTERDATA. Unfortunately, when I call the FM and enter the below listed imports, I receive the following error
    IMPORTS:
    PERNR                     ==>        00000000
    MASSN                    ==>         Z1
    ACTIO                      ==>         INS
    TCLAS                     ==>      A
    BEGDA                     ==>         13.06.2008
    ENDDA                      ==>        31.12.9999
    OBJPS                        ==>      Z8
    SEQNR                    ==>          000
    SPRPS
    SUBTY
    WERKS                 ==>             0001
    PERSG                ==>              1
    PERSK                ==>              HH
    PLANS                 ==>             99999999
    DIALOG_MODE         ==>               0
    LUW_MODE              ==>             1
    NO_EXISTENCE_CHECK
    NO_ENQUEUE
    Export parameters               Value
    ERROR
    RETURN                             EPG316Invalid combination of action type Z1/action reason
    RETURN1                            EPG                  316Invalid combination of action type Z1/action reason
    HR_RETURN                          00000000A0000Z1  INS                 00PG                  E316Z1
    I'm confused by this because there is no where in the function module where it asks you to enter the Action Reason. When I switch dialog_mode on I am brought to the create actions screen where all of my data has been read in. The only blank field is Action Reason. When I put it in, it creates the Employee and the Number is provided. We need this number to utilize the FM HR_INFOTYPE_OPERATION to continue the process of creating a new Employee (in this case, Contractor).
    Question 1: Can/does HR_MAINTAIN_MASTERDATA pass the MASSG paramater?
    Question 2: If not, how hard would it be to create a custom HR_MAINTAIN_MASTERDATA to pass the value of MASSG?
    Will reward points accordingly. Thanks in advance for your help.

    Hi Suresh,
    Thank you for your fast response. I actually figured that out after doing some more research. It turns out that when i had initially tried to use it before I wasn't referencing the screen field value with the prefix (i.e P000-MASSG). It works fine now, and I will reward points accordingly as I said.
    My new dilemma is, now that the FM is working, how do we enable the function Module in a Web Dynpro for ABAP application. I'm not sure how to pass the fields into the Node and Attributes that are generated from the service call to the function modules. In other words, how do we specificy all of the infotypes, fnames, fvalues and seq nos so that the pernr number is returned. We need this number in order to utilize the FM HR_INFOTYPE_OPERATION.

  • Employee photo is not updated in ESS Who's who service

    hi colleagues,
    i am facing an error when i am trying to update the employee photos in the who's who service of ESS.
    when new photos are added against an employee number via tcode OAAD in the ECC system, they are updated against the record and can be seen in tcode PA20. however, the new photos are not getting updated in the who's who screen. we have tried clearing the cache (figuring there might be a problem with the browser.... we are using IE 7.0) but were still unsuccessful.
    any advice will be greatly appreciated.
    thanx,
    Amer

    hello deb,
    already did.... not working there as well. except for the first time during logon, it does not ask for any user id or password while viewing the photo in the portal. the photo gets updated in PA20, PA30 but does not get refreshed in the portal. the portal shows the same old photo.
    any comments or advice would be helpful.
    thanx...

  • How to transfer service number from candidate to employee

    Hi experts,
    I have a situation here that I really need suggestions. We created a process in here where when a candidate is hired via PA48 the information of medical exams created in EHSAMBTAET is transfered from the candidate to the employee via an user exit.
    My problem is that the final user didn't follow the process and creates more than 2000 employee records via PA40 instead of PA48. So I have more than 2000 medical exams for candidates that were not transfered to the employee. Now the customer is asking to transfer these records.
    In oder to do that I've thought about a program to load the records, but it would generate two problems:
    a) I would have two different service numbers for the same exam, because I would create a new service.
    b) I would have data in both employee and candidate records and all information woud be duplicated.
    Does anybody have a situation like this and could give me any insights?
    Thanks in advance!
    Thais

    Hello Thais,
    I have a similar situation.
    How did you solve this?
    Thanks in advance.
    Kind Regards,
    MAJ

  • BUS1065 - SAP HCM - Employee changes in infotype 0000 + infotype 0001

    Dear all,
    I have a problem with the customizing in order to recognize the changes in infotype 0000 + infotype 0001 for employees.
    What do I want?
    If there is a new hire, a rehire, a retire or a company-left action, I want to start ONE workflow in order to dispatch the employee data to several satellite systems considering the new validity dates.
    What happens currently?
    I maintain a rehire action through transaction PA40 and the system raises several events so that the workflow start multiply, meaning raises event hired, rehired, companyleft, ...
    My customizing:
    TCode: SWETYPV
    BO BOR-Objekttyp     BUS1065     COMPANYLEFT     WS91000007     0
    BO BOR-Objekttyp     BUS1065     HIRED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     POSITIONCHANGED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     REHIRED     WS91000007     0
    BO BOR-Objekttyp     BUS1065     RETIRED     WS91000007     0
    TCode: SWEHR1
    P     Person     0000                                                                      BUS1065
    P     Person     0001                                                                      BUS1065
    TCode: SWEHR2
    P     Person     0000     Maßnahmen                                        APP          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        DEL          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        INS          0     BUS1065                                          HR_EVENT_RULES_PA0000
    P     Person     0000     Maßnahmen                                        INS          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0000     Maßnahmen                                        UPD          0     BUS1065                                          HR_EVENT_RULES_PA0000
    P     Person     0000     Maßnahmen                                        UPD          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        APP          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        DEL          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        INS          0     BUS1065                                          HR_EVENT_RULES_PA0001
    P     Person     0001     Organisatorische Zuordnun                                        INS          100     BUS1065                                          CACS_LOG_HRINFTY
    P     Person     0001     Organisatorische Zuordnun                                        UPD          0     BUS1065                                          HR_EVENT_RULES_PA0001
    P     Person     0001     Organisatorische Zuordnun                                        UPD          100     BUS1065                                          CACS_LOG_HRINFTY
    TCode: SWEHR3 (For testing purpose only one entry)
    P     Person     0000                                                                      INS          1     BUS1065     HIRED
    Can anybody tell me how I can customize our system so that the system raises only event hired for a new employee hire and e.g. companyleft event for a termination action?
    Thx you all in advance for your support!!!
    In case you need more information, don't hesitate to contact me!
    Kind regards,
    André

    Hi
    TCode: SWETYPV
    BO BOR-Objekttyp BUS1065 COMPANYLEFT WS91000007 0
    BO BOR-Objekttyp BUS1065 HIRED WS91000007 0
    BO BOR-Objekttyp BUS1065 POSITIONCHANGED WS91000007 0
    BO BOR-Objekttyp BUS1065 REHIRED WS91000007 0
    BO BOR-Objekttyp BUS1065 RETIRED WS91000007 0
    Iam not sure about what you have done in the customizing but, the above settings represents that the same workflow is set as receiver for different events.
    Now As per my understanding what ever you have posted, I feel like you want to restrict the workflow intiiation only for some of the events. and for the remaining events you do not want to start the workflow.
       If this is the case then I would suggest that to over come any kind of issues, I suggest you take a copy of the workflow WS9100000070 and assign the new workflow template to each different event, in this way you can differentiate which workflow is acting as a receiver for the event.
    and accordingly you activate the Event Linkages in SWE2 txn too.
    Regards
    Pavan

  • Error when sending infotype 2 via ALE - start date

    Hi all,
    we are facing the following error when using the standard method for HR distribution: changes in infotype 2 cannot be processed in the receiving system; each change results in a 51 error in the iDoc, with message "PA0002 could not be updatedu201D (msg number 5-108).
    For some background: we're using message type HRMD_A06 and the standard configuration as described in the "ALE Quickstart" document. We've sent the full set of employee data via report RHALEINI, and use RBMDIDOC and change pointers to send changes on a daily basis. All infotypes are updated correctly except 2.
    From our tests, it seems that the problem is the following:
    - the initial send via RHALEINI created infotype 2 records with start date 01.01.1900. The sent iDocs had at the level E1P1TYP for infotype 2, start date 01.01.1800
    - the daily report RBMDIDOC is sending the infotype 2 records with their real start date (i.e. birthdate of the employee). Since this is later than 01.01.1900, the replacement of one infotype by another in the receiving system fails. By manually changing the start date of infotype 2 in the receiving system, the next update is successful --but we do not want to manually update all records in the receiving system.
    Has anyone else faced this or a similar issue with RHALEINI and infotype start dates?
    Thanks in advance,
    Mariana
    Edited by: Mariana Lasprilla on Feb 5, 2009 10:35 AM

    The mystery has been solved: customer system had a conversion rule for message type HRMD_A in order to send a fixed value of BEGDA for all infotype 2 records.
    ALE conversion rules are set via table TBD30.

Maybe you are looking for

  • E75 messaging application not working

    Hi, I have recently purchased an E75 and at first glance it looks to be very nice. However, now i have run into the problem that messaging is not working properly. The message indicator is telling me that I have 6 new messages. When I try to go menu>

  • Strange issue when synching information from phone...

    Hi! Perhaps this has been asked before, sorry for this. A customer of ours uses our exchange 2010 services and uses Nokia E7 phones. The version of Symbian is Belle FP2. Setting up an account is easy and everything seems to work and to synch correctl

  • Can't create an ePrint account

    i can't create an eprint account with my Laserjet Pro 200 m251nw.  When I go to create an account, it showsthat both the email and passworddo not match.  I am operating Windows 7 Home Premium.   I have tried both my personal e-mail and the printer e-

  • Grouping tree nodes

    Hi, Here is a tricky one that I have got. Not sure if I am being over creative here or asking too much from apex!! Let say I have a contracts table which stores parent child relationship between various contracts. the structure is contract_id, contra

  • Is there a way to find history that has been cleared?

    pertinant history has been cleared from mozilla and i want to know if there is a way to recover some or all of the history that has been cleared.