Employee no in HR system

i am working on an HR system and i want to give each new employee a unique number ,i know that the best way is to use sequence number ,but i want the numbers to be without gaps ,so i use
select max(empno)+1 from employess for update;
is this an efficient way,specically that the lock will not make the system slow since each day the maximume number of new employess will be 5 to 10, and they will be registered from distributed application so i am not taking about thousant of people accessing the system at the same time ,so is this an effient solution????

but the sequence number might give you gaps if after selecting the sequence you want to delete the rowNormally, the sequence would invoked in a database BEFORE INSERT trigger, so the user will have already committed. Do not put this functionality in the front-end. If you need to you can use the RETURNING clause to inform the user of the new EMPNO.
Mind you the SEQUENCE may give you gaps any way; that's the sequince caching works. It still preferable to the MAX(empno)+1 approach for these reasons:
(1) Better performance, especially if you have a lot of employees
(2) Works properly in a multi-user environment (without serialization through locking).
(3) Uniqueness is guarenteed.
Cheers, APC

Similar Messages

  • Employee Attendance log in system

    Hello all,
    1. how to design employee attendance log in system using oracle forms and have to create reports for the same.?
    2. how to create tables for employee attendance log in system ?

    1. how to design employee attendance log in system using oracle forms and have to create reports for the same.?use any editor you know how to use,
    2. how to create tables for employee attendance log in system ?CREATE TABLE .....

  • SAP E Recruiting - Manage future leaving employees in standalone EREC system.

    Program HRALXSYNC
    We are using E Recruiting system as a separate server and employee master data comes via ALE IDOCS
    Is report HRALXSYNC need to run in case of separate server also?
    It is creating user ids which we do want as our system administrator creates user ids and user ids comes from central CUA system with Info Type IT105.
    Can we stop this background job as it is creating unwanted user ids in our SAP E- recruiting system, as mentioned in our case both the server are different and ALE being used for master data flow.
    Processing of Future leaving / terminating employees
    If we stop this Background job then how the suture leaving / terminating employees will be processed in our SAP E-Recruiting system.
    In our case both the business function HCM_ERC_CI_3 is active and as per OSS note 1779471 (ERE: Information for processing future) Leavings it is mentioned to run program HRALXSYNC.
    1.      Considering this behavior do we need to start periodic service PROCESS_CAND_STATUS_CHANGE.
    2.      Is there any way program HRALXSYNC do not create user id ?

    Hi Nicole
    Thanks a lot for your reply.
    As you said job HRALXSYNC is must require also in case if E Recruiting system running on separate instance also along with ALE master data distribution.
    - Every one will not have user id assgned then this job should not create random users. Generation of multiple users may impact licences. 
    How we can stop randon users creation by this job?
    - Also we have multiple companies rollout implemented in E recruiting system. And one company internal candidate should not apply job to other company.  In this case if this job creates a random internal candidate user then they got assigned RCF_CAND_INT reference user and with this they are able to apply to any company. Whic is a wrong business process for us and a big issue.
    - For future leaving employee - they are not getting convert to external in our system. Meaning this job do not assign RCF_CAND_EXT to future leavinf employees.
    Please can you help us, Highly appreciated your inputs in this direction.
    Thanks and regards
    Sandeep

  • Employee Photo Upload Fail - "System error when archiving"

    Hi all,
       When i am trying upload a photo of an employee in our ESS development portal its working fine. But the issue here is when i am trying to upload the same in testing ESS portal its displaying an error message as "System error when archiving a photo" and i tried to upload the photo in back end also at that time its displaying an error as "HTTP error :401 unauthorized".
    Kindly help me to resolve this problem ASAP.
    URGENT!!!!!!!
    Thanks in advance..!!!

    Hi Van,
      Thank you for your reply. Finally we found the solution for this. The Issue was that the user CONT_SERVER in SICF(tcode) -> Content Server was locked. We unlocked it , now the photos are uploading successfully...

  • Employee termination in HR system deletes BP role-BUP003 in CRM.

    Hi all,
    HR system is integrated with CRM.
    When Employee is terminated in HR system it deletes BP role-BUP003 in CRM.Is this a standard behaviour? Is ther anyway we can stop this?
    Thanks
    S

    Hello,
    the existing process of deleting the role BUP003 for inactive employees
    is standard design and will not be changed. If the role will be kept
    for a terminated employee contract this definitely is an inconsistency
    between the HR data and the CRM data (business partner).
    There is one exception: if you have activated the time-dependance of the role
    the time-frame would be limited.
    Regards, Gerhard

  • Migrating Employee data from Legacy system to CRM

    Hallo all,
    I need to map the employee data of the legacy system to an Idoc(For migrating data with XI). I functionally mapped the fields in the legacy system to the fields in CRM BP master data(Most of them). I have selected the BP complex Idoc(CRM_XIF_PARTNER_SAVE) and mapped most of the fields(name, address, Phone Numbers, Position etc ).
    the following fields are yet to be mapped
    Employee No
    User Name
    Contact Role
    Executive role
    Corporate tile
    Affiliate subsidary
    Is there any other standard Idoc in CRM to map the employee details (or) am I supposed to enhance the complex Idoc.
    Please let me know ur suggestions
    regards,
    MAX

    Hello Max,
    i couldn't answer your question, but this blog
    /people/vikash.krishna/blog/2006/10/15/replicating-hr-master-data-part-1
    describes a direct communcation with idocs between HR and CRM, and there they use the same message type.
    Hope this helps.
    Regards
    Bernd

  • Migrating Employee data from Legacy system - CRM

    Hallo all,
    I need to map the employee data of the legacy system to an Idoc(For migrating data with XI). I functionally mapped the fields in the legacy system to the fields in CRM BP master data(Most of them). I have selected the BP complex Idoc(CRM_XIF_PARTNER_SAVE) and mapped most of the fields(name, address, Phone Numbers, Position etc ).
    the following fields are yet to be mapped
    Employee No
    User Name
    Contact Role
    Executive role
    Corporate tile
    Affiliate subsidary
    Is there any other standard Idoc in CRM to map the employee details (or) am I supposed to enhance the complex Idoc.
    Please let me know ur suggestions
    regards,
    MAX
    [moved by moderator]

    Well i guess,u can get the TRM by ordering, the number is 1-800-252-0303.
    If you have the online documentation CD for Oracle Apps, there are interface tables GL,AP and i guess there are interface tables for other modules also. These tables are described in the documentation and it also describes which fields are required, which are optionally required etc and many other details. So u can get more details in this documentation, about the interface tables for migration of legacy data.
    Hope that helps.
    -nitin

  • Asking ECC System Credentials while Displaying Employee Photo in CODService

    Hello All,
    Currently we are having requirement like , need to display the employee Photo from Portal.
    Already all the Employee Photos are Uplaoded in the backend, i can able to see employee photos on Hearder in PA30.
    While Displaying the Employee Photo from the Portal using COD Service, it asking the ECC System Credentails.
    What Configuration steps need to follow to display the Employee Photo in CHange Own Data Service from the Portal with out asking the backend system Credentails..
    Plz Share some inputs to fix the issue..
    Thanks in Advance
    Adapag

    Hi Pramod,
    Thanks for the reply, we stored all our employee photos on  ECC System Only...
    If i enter the Personal No: in PA30, i am able to see the EMployee Photos on the Header..
    But While accessing the COD Service from the Portal, asking ECC system credentials to display the photo.. If i am providing the Credenials Employee Photo is displaying .. other wise Blank Image Displaying...
    Siddarth suggested its due to SSO problem, if its sso issue, how come i login into portal without any errors currently we are using ABAP UME both Portal and ECC Login details r same...
    Please Suggest me how to fix the issue...
    Thanks in Advance
    Adapag

  • Integrate the Org structure and employees SAP HR system to CRM via ALE

    Hi All,
    We want to integrate the organization structure and employees from mySAP HR system to mySAP CRM system. We are also aware that the same can be achieved through ALE Interface between both these systems.
    In addition to the HR Organization Structure from HR system, can we also bring over the Sales Organization Structure from R/3 using transaction CRMC_R3_ORG_GENERATE?
    1) Can someone , please let us the possible challenges which might occur when we download HR Org structure from SAP HR to SAP CRM.?
    2) What is the implication of maintaining an HR org structure and CRM Sales Org structure within the SAP CRM 52 system?
    3) Any _precautions) should we take before doing the download via ALE??
    Please get back, suitable points will be awarded.
    Regards
    Ritvij

    Hi Ritvij,
    Couple of things that spring to mind are:
    1) When you do the initial data load (PFAL) try to ensure that no one is amending the Org structure as Objects can be locked and therefore not transferred. (on one of our test loads the top level was locked and therfore all subsequent levels were just transfered and we didn't have a top level)
    2) Keep the 'forms of address' in CRM the same as the R/3 ones
    3) Keep the same Employee and Org Unit IDs but prefix with (for exmaple) EM and OU in CRM. (Through the HR integration config in CRM). This may also (apparantley) aid you if set up something like an Employee interaction centre in the future.
    I will update when other stuff springs to mind.
    Cheers
    Gaz

  • How to delete the list of employee on SAP system?

    Dear all,
    I want to delete the list of employee on my SAp system but I don't know how to do this, What's the transaction code that use to delete mutil employee on SAp system?
    Please help me to do this.
    Thanks and Best Regards,
    Huyen Nguyen

    PU00 is the tocde for Single PERNR
    and check RPUDELPN  report for mass deletion of PERNR
    but dont do in production system
    Edited by: Sikindar on Aug 14, 2009 8:18 AM

  • Remove Company Code with all the Employees in it from r/3?

    Hi i have a bit unusual requirement.
    i want to know how can i Remove a Company Code with all its assigned Employees completely from a system(r/3) ?
    can this be possible at all? if yes then please also mentions what can be the side effects of this action.

    Jack,
    You will have to follow reverse engineering....
    As Sikandar Guru Mentioned.....identify all the PERNRs for mass deletion....
    Secondly I believe, that you want to Delete the Company Code.....check with Finance Folks.......If they have no issues, you can delete the co. code with TCODE EC01... but this will not delete the Relationships to Personnel area...etc.
    There may be custom Features, Reports or programs functioning based on Co. Code.......
    So, in a way....its not feasible..neither wise to attempt deletion of Co. Code....
    S_PHO_48000106 is the TCode for Mass Deletion.
    Good Luck !!!
    Kumarpal Jain.
    Edited by: Kumarpal Jain on Oct 26, 2009 3:20 PM

  • Appraisal system

    we are working on Appraisal system.
    the requirement is, every person have his own criteria or ojective, no specific catalogue we can make
    so client demanding to have option to type the criteria of employees manually while creating the appraisal rather than have it in appraisal cataloge.
    how can we handle this in old appraisal system?
    thanks if any one can help

    im already using old appraisal system...no integration required.
    client demanding open entery option on criteria and weighting column.
    while creating appraisal of employee they can type, system is allowing..but weighting column is in display mode, so user can't entr any value in it......our client demanding it a open enterable column.
    remember im using old appraisal system.
    how to enable that weghting column so that user can enter value in that also?
    thanks if any one can help.

  • How to call RFC from external System to get HR Data

    According to the requirement the "HR" Workflow has to be able to view the employee details from external system Using the standard Microsoft connectors.
    So, my job is to create an RFC where i need to fetch the HR data from the infotypes P0001 and P0002. And they will call this RFC by requesting employees surname, ID number and/or Employee number.
    Do i need to simply write OPEN SQL statements in RFC or
    do i need to call any BAPI's?
    Setting up RFC's(Creation of Destinations) is not our job.
    Someone Please help me in this regard with some valuable input. Thanks in Advance.
    Ram.

    Hi Ram,
    to get the information from HR sytem you could call the BAPI
    BAPI_EMPLOYEE_GETDATA
    Regards
    Bernd

  • Check on repetition of employee names during hiring

    Hi All,
    Could anyone please guide me on how to keep a check on repetition of employee names during the hiring process? i.e whenever the administrator enters a person's name during personal data maintenance, it should throw an error if the same name already exists in the employee database. and the system should prompt a number to be prefixed after the name to make it unique.
    I suppose this is to be done with an ABAP development... but could anybody guide me as to what tables etc to refer to atleast??

    Hi,
      You can achieve this by using the user exits -EXIT_SAPFP50M_001 and EXIT_SAPFP50M_002.
    In this exit,you can compare with the table(pa0002) name .If exits,throw an information message and pass prefered name to the screen. 
    Reward points if Helpful.
    Regards,
    Manoj.

  • Employee Vendor Address Issue

    Hello Guys,
    We have issue with Employee vendor. We send employees as vendor to some non-HCM systems. When we are sending one of the employee vendor from HCM system to non HCM system. It sends vendor data and throws iDoc error which is from Function module ADDR_POSTAL_CODE_CHECK.
    It is creating address with one extra entry in POST_CODE2 field. So IDoc is getting failed. Can someone help here? Not sure from where it is creating that extra entry?
    Thanks!

    Hi Sieg,
    Thanks for your reply.
    Company has given Forex advance to employee via third party vendor
    So, We need to debit the amount into Employee Vendor and Credit into Third Party Vendor
    For Ex: Third Party Vendor is Thomas Cook (Forex Provider)
    Please guide me how to post the above entry in Standard.
    Regards
    Shaik

Maybe you are looking for

  • Is hotspot functionality a service upgrade?

    When trying to activate hot spot on Galaxy s iii, we are directed to call about our plan. Is hotspot functionality seperate from data plan? If so, what is required to access the hotspot function? Thanks,

  • Error when logging into forum

    Past few days get error when trying to login to forum. An error occurred during a connection to pingsso.lithium.com. SSL received a weak ephemeral Diffie-Hellman key in Server Key Exchange handshake message. (Error code: ssl_error_weak_server_ephemer

  • Sender Content Conversion with ; endSeparator

    Hi I'm trying to read the following flat structure using a File Sender communication channel using Content Convesion.   11,99;22,99;33,99 This should be translated into: <Employees>   <employee>     <employeeNumber>11</employeeNumber>     <employeeTy

  • Java in Browser on Motorola Droid one

    Can someone tell me how and if I can get Java and Java Scripting added onto my Droid Browser?? Is there a soution to this?? I need and want to use www.gotomypc.com to access my home PC but I get the error essage that I am not using a java enabled bro

  • My ipod 6th generation froze and now won't turn on. HELP!

    My car stereo will only support my ipod 6th generation if it has the right software updates. It was not playing my music today so I plugged my ipod into my computer and updated it to version 1.1. I added a few songs and unplugged it and put it into m