How to hire new employee (BAPI, BDC, IDoc/ALE...???)

Dear ladies and gentlemen,
I was asked to create an interface that would "hire employee" and I failed to find nice function module that would do that.
Could you, please, share your ideas/experience about how to solve this?
Best regards
Momkic
Message marked as a qustion in order to award the points.
Momkic

Hi
Transaction code <b>"PA40"</b> is OK to handle "Actions" about the personnel for isolated entries.
However if you want to use BDC for bulk data transfer, then use <b>"PA30"</b> to record your transaction and build your BDC data. That's because handling <b>"PA40"</b> screen is somehow less suitable since it depends on customizations and is out of screen if there are too much action types.
To trigger an action through <b>"PA30"</b> is achieved by entering "<b>0000"</b> to the infotype field and the <b>action type value ("massn")</b> for the subtype field and pressing  <b>"Create"</b> button. This will be better for BDC.
<b><u>About the BAPI:</u></b>
I didn't try before but you may use the Business Object <b>"HRMasterDataReplica"</b>. It has one class method as <b>"SaveReplicaMultiple"</b> which has an import parameter <b>"EmployeePersonnelAction"</b> for the infotype 0000, <b>"EmployeeOrgAssignment</b>" for the infotype 0001 and
<b>"EmployeePersonalData</b>" for the infotype 0002.
In addition to standard BAPI parameters, at least these three parameters must be filled to create an employee. To trigger other actions you can use the one for "0000".
I would like to learn whether you tried this and achieved. <i>However, it will be the most classical way to use BDC</i>.
*--Serdar

Similar Messages

  • How to hire 24 employees really fast?

    HI experts,
    We have to do some testing in QA and I have been asked to hire 24 employees with different PAs, employee group and stuff. since many infotypes can be be same for one set of employee e.g. IT 7,8,41,167,168,169,171 378 etc. so what is the quickest way to do it.
    its gonna be like this
    8 union
    8 non-union
    8 salaried
    Thanks,
    Rashmi

    If Rashmi only has this on paper, then it has to be entered into the file anyway.
    Might as well use PA20 for 24 employees. I don't see the scalability yet for invoking a migration procedure?
    Regarding "rude earlier", I think this HCM forum needs stricter moderation and you just happened to catch me at the top of the stack after reading some of the other "link-farms" and "ponits-hunting" advice.
    No offense intended, but when people are discouraged from searching themselves and then asking more specific (and better) questions, then they become lazy.
    Some discipline is required:
    -> Read the question carefully.
    --> Dont rush in to answer because of points.
    ---> Encourage high quality questions...
    > Benefit from higher quality discussions about the aspects of the question.
    If link-farms are the answer to a question, then that is not the intention of these professional forums.
    Thank you for responding. Please also take a look at the little yellow triangle in the menu bar. If you notice posts which are not usefull for improving the quality of contributions to the forum, them please use it and add a comment about why you are reporting it (preferably with a link to the thread ID).
    The moderators will then reject the link-farms, mail-chains, interview-questions, etc.
    We also comb the forums anyway, but HCM seems to be lagging behind as far as "expert forums" are concerned.
    Please help the moderators by useing the "Abuse Report" button to catch quality problems quickly.
    Many thanks for your help,
    Julius

  • 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

  • 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

  • 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.

  • BAPI's , BADI ,BDC & IDOC's configuration in sap

    Hi Experts,
    can any one explain how to configure BAPI's , BADI ,BDC & IDOC's in SAP step by step, right answer will get reward points. if u have any noted pls forward to my email id pls....................................
    amar
    [email protected]

    Hi,
    how to configure?
    BAPI are remote functions that can be called by another system or same system...you can use standard BAPI or create your own BAPI. (transaction BAPI and SE37)
    BADI are methods that you can re-define in order to change SAP standard logic for some functionalities...(transaction SE18 and SE19)
    IDOC are structured files in a SAP format that can be customized and used to send or receive data instead of xml or txt or ....files. IDOC can be monitored and checked with a set of transactions.
    Regards.

  • BAPI's , BADI ,BDC & IDOC's

    Hi Experts,
    can any one explain how to configure BAPI's , BADI ,BDC & IDOC's in SAP step by step, right answer will get reward points. if u have any noted pls forward to my email id pls....................................
    amar
    [email protected]

    Hi,
    Please find the documents in the Below URL
    https://www.sdn.sap.com/irj/sdn
    http://www.sap-press.com/product.cfm?account=&product=H967
    http://www.easymarketplace.de/
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/34/62463423538610e10000009b38f83b/frameset.htm
    http://help.sap.com/saphelp_40b/helpdata/en/34/62463423538610e10000009b38f83b/frameset.htm
    http://www.sap-img.com/index.htm
    http://www.sapdevelopment.co.uk/
    http://www.sap-press.de/
    http://www.thespot4sap.com/Articles/SAP_WAS_BSP_Apps.asp
    http://www.sapteched.com/india/
    http://searchsap.techtarget.com/regPage1/1,296503,sid21,00.html
    http://www.sap.com/usa/index.epx
    http://www.erpgenie.com/abap/
    Hope this helpss you
    Regards
    Pavan

  • BAPI for create new employee

    Hi,
    There is any BAPI for create a new employee (transaction pa40)?
    Basically a bapi that create employee number and assign personnel area, EE group,...
    I suppose that BAPI_PARTNEREMPLOYEE_CREATE is for external customer users... not the bapi that we are looking for...
    Regards.Thanks.

    Hi Garcia,
    The FM calls the transaction PA30/PA20 based on your activity whether to create/display.
    If you do not have the FM HR_MAINTAIN_MASTERDATA
    You can use even BDC to create the employee data.
    Fill all the required data for an employee and call the transaction PA30 for each infotype.
    Also HR_INFOTYPE_OPERATION implicitely calls the HR_MAINTAIN_MASTERDATA .
    search for the same ..and also look for the include LHRMMU03.
    Check for Function group HRMM which has these FM's

  • How to create a new employee?

    Hi Guru,
    I have a problem with create new employee how do we do?Could you pls send me details path and T-CODE.
    Thanks
    Manju

    I will add to Joe's comments.
    Goto TCode PA40, select the line with action "Hire" and execute, it will take you through some screens like a wizard and you will enter information regarding the employee. If you do not know the position then for testing you can enter 9999999 as position. Keep saving you entries for each screen and keep going, at the end you will end up with a new employee. You can note down that pernr and change anything through PA30.

  • Hi All how to add new payscale  for an employee in sap hr-abap,its urgent

    Hi All ,
    how to add new payscale for an employee  in sap hr-abap,its urgent.
    Message was edited by:
            bharat kumar
    Message was edited by:
            bharat kumar

    Hi
    If that field which you wants to add is available in one of the structures like EKKO,EKPO then you can add that field just beside the other fields
    If that field is not there in the any of the structures then you can define a variable using define command
    /: DEFINE  &VAR&
    / &VAR&  = <some value>
    or you can write subroutines to fetch the data from outside tables and can use those fields data in the script
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • Po Status IN PROCESS how to re assign it to new employee ??

    Employee submit  Po to unused employee . now oracle wait this employee to approve the PO and PO Status is "IN PROCESS "
    ...  how to reassign this PO  to new employee to complete the document approval process  ??

    You may navigate to Manage Document window in the PO Superuser resp to redirect.
    OR
    Please use the workflow administrator resp to reassign.
    Sent from my iPhone

  • 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 add new xml item(BAPI requset)?

    Hello
    i want to create bom to ERP from mii
    how to add new xml item(BAPI requset)?
    i use bapi CAD_CREATE_BOM_WITH_SUB_ITEMS
    this bapi's format is
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    i want to add <item>
    like this
    <table>
    <item>
        <col1>1111</col1>
        <col2>bbbb</col2>
    </item>
    <item>
        <col1>22222</col1>
        <col2>bbbb</col2>
    </item>
    </table>
    how to set trx?
    i tryed
    SAP_JCo_Interface_0.Request{/CAD_CREATE_BOM_WITH_SUB_ITEMS/TABLES/BOM_ITEM/item[2]/SORTF}
    when error occured
    use MII12.0
    Edited by: Atsushi Iwasaki on May 18, 2010 6:22 AM

    Hi,
    You can try this alternative
    Step 1) Create XML Document with required structure which you want to pass it to BAPI request.
    Step 2) Populate the XML Row with required contents and map it to above created XML document
    Step 3) Map above created XML Document to BAPI request (use assign XML option dfrom link editor rather tha assign value)
    This will help to map dynamic contents to your BAPI request.
    Regards,
    Shalaka

  • How to include a new segment in FIDCCP02 idoc (OUTBOUND)

    Hi,
    I would like to know in which EXIT or BADI I should append my new segment to the idoc data.  I have created the new segment to add new Z fields that I added before on the BSEG, and I have created the enhancement of the idoc and put the new segment in the correct place.
    Best Regards

    Adrian,
    Isn't the BADI IDOC_DATA_INSERT the correct answer?
    Regards,
    Ashvin

Maybe you are looking for