Enter record in infotype 0001

Hi,
  How can I go about entering records in IT0001. I just want to enter test data 2 to 3 records for new person.
PA30 i need to create a new pernr i guess. how can i create a new pernr?
Thanks.
Oscar

You can create on in PO13.
I think HR config is missing, check this documne tfor that -
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/PAPA/PAPA.pdf
Regards,
Amit

Similar Messages

  • Error in PA40: missing secondary record for infotype 0001

    Hi Experts,
    while changing the job code of employee i am getting below error in the PA40 transaction for IT0001 .
    Error : missing secondary record for infotype 0001 Key
    could you please tell me why this message is coming.
    Advance thanks,
    Regards
    Ram

    Hi,
    Please check out whether any user exits are maintained.
    Check ZXPADU01/ZXPADU02 includes.
    Please also check out whether there are dynamic actions configured for IT0000 and IT0001 via V_T588Z.
    Regards,
    Dilek
    Edited by: Dilek Ersoz Adak on Dec 16, 2009 3:19 PM

  • Query on reading infotype 0001 using the macro rp-provide from last p0001

    Dear Friends,
            I have a question rgarding relating the infotype 0001 when we are using in the program the logical database PNP.
    iam using rp-provide-from-last p0001 space sydatum sydatum
            if pnp-sw-found eq 1.
            append p0001 into i_p0001.
            endif.
    iam getting a problem in production , in the selection screen iam passing for emloyee subgroup with multiple values option.
    i have passed E,H,S  -> where E means Executive , H means hourly and S means salaried employee...
    one particular scneario is iam having an employee whose
    employee subgroup is C (contactor) and on the selection screen if am passing this personnel no and on the selection screen iam only having in the multiple selection option only E,H,S but not C so this record should  should fail but it is getting success and appending to internal table i_p0001
    which is wrong
    , i mean to say the macro is getting success
    rp-provide-from-last p0001 space sydatum sydatum
    this employee .
    my question is will the macro will not check on the selection screen the employee gropu which we have passed and should i exclusively check
    if p0001-persk in pnppersk ?? or please let me knwo how to check this wrong employee not getting appended to my internal table.
    please let me know
    regards
    madhuri

    Hi Madhuri
      The macro rp-provide-from-last p0001 will not fetch data from the database, it simply extracts the last record from the available internal table P0001[]  for the time frame provided(as 3rd and 4th parameters). You can check the definition of the macro from the database table TRMAC, it simply uses the LOOP....ENDLOOP and IF conditions to arrive at the last record and populates the fields pnp-sw-found, pnp-sw-tabix.
        And coming to your problem, please check all the IT0001 records of the EE concerned, it can happen that the EE is attached to different employee subgroups in different time frames and hence the LDB is fetching all the available records of the EE (even if the employee subgroup is not among the one's selected in  the selection screen). If this is the case, I reckon, u've to perform manual check before appending to the internal table.
    Note:  The macro  rp-provide-from-last p0001 space sydatum sydatum will only fetch the valid IT0001record as on date - sy-datum

  • Using FM HR_INFOTYPE_OPERATION to update infotype 0001.

    We're using FM HR_INFOTYPE_OPERATION to update the infotype 0001 (Organisation). We basically have the Cost center field grayed out on the entry screen so can not update it via BDC, which the cirrent method that we use to create new employees, based on data passed in from a third party system. When then attempt to update the employee record (using Copy) and the FM mentioned.
    We first get the details of the infotype using FM HR_INFOTYPE_GETDETAIL, and this work perfectly, returning all the information required. We the update the structure returned by the RECORD parameter and then use the FM HR_INFOTYPE_OPERATION, like so:
        call function 'HR_INFOTYPE_OPERATION'      
          exporting                                
             infty         =  '0001'               
             number        =  gs_p0001-pernr  
             SUBTYPE       =                       
             OBJECTID      =                       
             lockindicator = 'X'                   
             validityend   = '99991231'            
             validitybegin = gs_p0001-einda   
             RECORDNUMBER  = '001'                 
             record        = gs_p0001             
             operation     = 'COP'   
             nocommit      = 'X'             
       importing                           
        return        = gt_bapireturn1   
        key           = gs_bapipakey     
    exceptions                          
        others        = 1.            
    However, we receiving an error in the gt_bapireturn1 itab basically giving the error PG 184. When I look up the error it basically says that to update this info type we need an exclusive lock, which I would have thought exists when using the LOCKINDICATOR parameter. The previous FM ( HR_INFOTYPE_GETDETAILS) returns blank against the SPRPS fileld (Lock indicator) when reading the infotype data, so it's not previously locked or anything.
    We're using version 4.0b, which I know is pretty old, but surely this update should work.
    Has anyone encountered this problem before, and, do you think I should be able to update this field even though it's grayed out on the screen ?.
    Jason
    Edited by: Jason Stratham on Mar 16, 2010 11:41 AM

    I read that I should be using the enqueue and dequeue FM's despite the LOCKINDICATOR parameter.
    This I have now done, but am now receiving an error PG 428 'A complex application error has occurred', but I'm none the wiser in knowing why this error has occurred. Has anyone encountered this error before?.
    I'm beginning to feel that despite being told that I can use the HT_INFOTYPE_OPERATION  function module it may well purely imitate the front screen processing, which does not allow us to change the cost center value. Is there any way that this might be done. We're on version 4.0b, and I'm sure that in later version there might be a BAPI that almost directly updates it. I guess there's no such method for 4.0b?.
    Jason
    Edited by: Jason Stratham on Mar 16, 2010 12:06 PM

  • Create New Field in infotype 0001

    Hi
    Can any body guide me how to create new field in Infotype 0001,
    i want to create  two new fields with six reasons in each new field
    Thanks

    Hi,
    his can be acheived through enhancement. Hope these link helps
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/4f/d526be575e11d189270000e8322f96/content.htm.
    General steps are
    Step 1
    Using transaction PM01 chose the 'Enhance Infotype tab' and press the create 'All' button.
    Step 2
    Enter the new fields you wish to add to the Infotype.
    Step 3
    Once saved and activated the new fields will appear in the Infotype screen and database table
    Edited by: Raghu C on Nov 4, 2009 6:15 AM

  • Changes in Infotype 0001

    Hi,
    Is it recommended to make all changes in Infotype 0001 like PSA, Administrators through action like "Organization Reassignment" or should be changed through PA30.
    What is a recommended practice especially when there is a need to change the admin?
    Regards
    Yashika

    Hi Yashika,
    When you open IT 01 in PA30 in change mode, some fields will be grayed out, these fields can not be changed without any personal actions.
    But the fields which are open for change, there we need to decide whether the employee was any time in that PSA or Administrator job.
    If he was there for some period of time then we need to create a new record in IT 01 by copying the old record and changing the specific field. If the data was maintained wrongly then we can simple change the existsing record.
    Br/Manas

  • Not able to update organizations units in an infotype 0001

    Iam unable to update organizational units, positions through lsmw in an infotype 0001 if i do manually it is updating in 1infotype.
    Iam trying to run reports rhinteoo still not able to figure it out
    experts share your experience on this

    Ran LSMW Record created successfully for position
    If I see in organizational Assignment Infotype The record is not displaying
    As per your email Iam trying reports to display organizational units for the positions
    RHINTE10
    Done Livrun
    Next step RHINTE20
    My position is not in the list that is 600450
    Executed RHINTE30 I wonder how do we come to know personnel number when we are recording positions and organizational units. Still i checked personnel number in organizational assignment infotype and executed but it is displaying No batch input folder created . Yes we didnt create any batch input for personnel  numbers we created batch input for positions and org units.
    I believe we need to run first two records
    After running above reports i checked in an organizational assignment Infotype . Still data is not updating what would be the cause please let me know

  • ALE Message type HRMD_A Infotype 0001 is incorrect using PROOF flag = X

    Hi
    We have an issue using HRMD_A for Infotype 0001 with the PROOF flag swithed on. Using the PROOF flag triggers a call of HR_MAINTAIN_MASTERDATA instead of a direct write to db tables. However sometimes the update of Infotype 1 is incomplete and records are lost. The data goes through a transformation in the inbound BAdi, here I have checked the sequence is still correct. But when the data is written to Infotype 1 it seems to overwrite the last entries.
    If anyone has any experience with this, I would be very interested for any input.
    Thanks in advance
    Sonny

    Hi Sandip
    Thx for your response. If I understand you correctly you suggest I use the HR_INFOTYPE_OPERATION. This could be an alternative, but I would prefer to understand the reason behind the error.
    HR_INFOTYPE_OPERATION actually calls HR_MAINTAIN_MASTERDATA, so this FM might not solve the issue, but it does give the option for updating one record at a time.
    Sonny

  • Orgunit defaults to 0 in Infotype 0001

    All,
    We have a peculiar problem here. Orgunit does not default from OM. When we do a New hire with the position we get the Job and cost center in infotype 0001 based on the relationship in the OM side,  but it does not pull the Orgunit. As a result P0001-ORGEH field is 0 always.
    The PLOGI-ORGA switch and PLOGI-PLOGI  are all active. Also i ran the RHINTE30 and RHINTE00 programs also but no resolution. RHINTE30 does not create a batch input sesstion.
    When i view the OM org structure  from Transaction PPOSE i could see the Position assignment to orgunint and person assignment to Position. But not sure why the orgunit does not gets populated in infotype 0001 ( P0001-ORGEH).
    Can you please let me know if any of you had such a situation and the possible resolution to it?.
    Thanks
    Ramesh

    Are you using the department flag functionality? (T77S0 switch PPABT PPABT)
    I came across the same issue as you and i found that when department flags were checked for organisational units the Organisational Unit numbers were displayed correctly.
    If any positions that report to Organisational units directly or hierarchically have no department flags ticked the Organisational unit number will be displayed as all zeros on the IT0001 record for employees assigned to these positions.
    Regards,
    Ash

  • Employee distribution R/3 to CRM Infotype 0001 missing

    Hi,
    I am trying to download HR employees from my R3 system into my CRM system. Although the IDOCS are transferred properly from R3 to CRM system but quite unexplicably the records are not written and I am not able to search my downloaded employees. Although the system shows green status in both TARGET and source systems and the idocs are properly created in R3 and application data written properly in CRM but some how I am not able to see the same in my BP screen in CRM in role employee and normal BP.
    Infotype 0001 is missing in IDoc Data records but infotype 0000,0002,and 0006 are ok
    I will appreciate any ASAP help on this
    Note:
    Employees have status "Active" and the following valid
    infotypes have been maintained for them in the source system:
    Infotype 0000,
    Infotype 0001,
    Infotype 0002,
    Infotype 0006
    Infotype 0105  (with subtype 001)
    Thanks

    Hi,
    thank you for you answer
    I put a permanent adress and a email but I still have the segment E1P0001 missing in my idoc
    The info are populated in the tab "organizational Assignment", but the infotype 0001 is not showing up in the IDOC
    any idea?
    Thanks in advance

  • Cost center (KOSTL) is not updating in HR master table for infotype 0001

    Hi ABAP gurus,
    We have one interface where we are posting the HR master data using the IDOC (IDOC_INPUT_HRMD) into SAP.
    While updating cost center, We have one issue regarding infotype 0001.
    It is working fine for all the fields except: KOSTL, ORGEH, STELL.  Surprisingly the created IDOC contains the value in these fields but it is not getting updated in master table PA0001. I have tryied inserting the value manually and it is working fine and tried with BDC Programming and no issues. Only we have this issue while we want to use the IDOC. This is mandatory in our interface.
    While debugging the IDOC function module I found that one condition is there for these three fields.
    CHECK NOT inte IS INITIAL. where inte value is being fetched from table t77s0 based on
    GRPID = PLOGI
    SEMID = ORGA
    In this condition I see no value for this combination and hence it is not getting further. I am not sure how this condition does exist for only these three fields and not for others.
    Can any please provide the reasona and solution for this.
    Appreciate the help in advance.
    Thanks,
    Jitender

    Dear Mohan,
    Try assigning your cost center to position it will default both your org unit and cost center.
    Cheers!

  • Problem while inserting a record to infotype 416

    Iam facing a problem while inserting a record to the infotype 416 for a personnel no using the FM 'HR_INFOTYPE_OPERATION'.I have created a FM to insert a record to the infotype 416.In that FM iam using the FM 'HR_INFOTYPE_OPERATION' to create a record for infotype 416.while executing  my FM the FM 'HR_INFOTYPE_OPERATION' is returning the return value 0.But when i check in PA30 for the infotype 416,there is no record created for that personnel no.Also in the table PA0416 the record is not get created.SO what might be the problem.can anyone please provide me help on this.
    I have attached the code of my FM for ur reference.
    FUNCTION Y_ESS_FL_ENCASH.
    DATA: G_COMPENSATION_AMOUNT LIKE PA0416-AMONT,
          G_RETURN TYPE BAPIRETURN1.
    DATA T_PA0416 LIKE P0416 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
           TCLAS                 = 'A'
           PERNR                 = '00000014'
           INFTY                 = '0416'
         BEGDA                 = sy-datum
         ENDDA                 =  sy-datum
           BYPASS_BUFFER         = 'X'
         LEGACY_MODE           = ' '
    IMPORTING
         SUBRC                 =
          TABLES
            INFTY_TAB             = T_PA0416
    EXCEPTIONS
      INFTY_NOT_FOUND       = 1
      OTHERS                = 2
        LOOP AT T_PA0416
        WHERE SUBTY = '1002'.
        ENDLOOP.
        IF SY-SUBRC <> 0.
          CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
            EXPORTING
               NUMBER = '00000014'
            IMPORTING
               RETURN = G_RETURN.
          IF SY-SUBRC <> 0.
             MESSAGE I016(RP) WITH ' RECORD IS ALREADY LOCKED'.
          ENDIF.
          T_PA0416-PERNR = '00000014'.
          T_PA0416-SUBTY = '1002'.
          T_PA0416-INFTY = '0416'.
          T_PA0416-OBJPS = ''.
          T_PA0416-SPRPS = ''.
          T_PA0416-SEQNR = ''.
          T_PA0416-AEDTM = SY-DATUM.
          T_PA0416-UNAME = SY-UNAME.
          T_PA0416-ENDDA = SY-DATUM.
          T_PA0416-BEGDA = SY-DATUM.
          T_PA0416-NUMBR = '10'.
          T_PA0416-WGTYP = '1530'.
          T_PA0416-AMONT = '15000'.
          T_PA0416-WAERS = 'INR'.
          T_PA0416-QUONR = '1'.
          APPEND T_PA0416.
          CALL FUNCTION 'HR_INFOTYPE_OPERATION'
            EXPORTING
              INFTY                  = '0416'
              NUMBER                 = '00000014'
              SUBTYPE                = '1002'
      OBJECTID               =
      LOCKINDICATOR          =
             VALIDITYEND            = '31129999'
             VALIDITYBEGIN          = SY-DATUM
            RECORDNUMBER           = ''
              RECORD                 = T_PA0416
              OPERATION              = 'INS'
              TCLAS                  = 'A'
      DIALOG_MODE            = '0'
            NOCOMMIT               = 'X'
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
            IMPORTING
              RETURN                 = G_RETURN.
      KEY                    =
          IF G_RETURN+0(1) EQ 'E'.
                  MESSAGE I086(ZHR) WITH 'Record is not inserted in IT416'.
          ELSE.
              COMMIT WORK.
          ENDIF.
          CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
            EXPORTING
              NUMBER = '00000014'
            IMPORTING
              RETURN = G_RETURN.
        ENDIF.
    ENDFUNCTION.

    Hi Murthy
    With a first glance, I think you have given a wrong parameter value to "validityend". It should be '99991231' not '31129999' .
    If your problem still persists, try inserting the data online from PA30. If your input causes no errors, then please state what the return parameter contains.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Additional field in Infotype 0001

    I manage to add an additional field in the infotype 0001 in Dev client. I have a bit concern when to apply it in the production client.
    Do you have any experience to share on this?

    hi
    test in development server later test in testing server later send it to production server
    nothing to worry
    all the best

  • [MRS] Conflict in Infotype 0001 between A and S object type

    Hi,
    We use SAP MRS on top of our HR box. (sorry, I am not a SAP MRS expert so bear with me please....)
    As we activated PA-PD integration, whenever a Work Center (otype A) is assigned to an employee (otype P), it updates the Infotype 0001 accordingly (PLANS and OTYPE field) while also inserting a new entry into T528B and T528T tables.
    This is consistent with what the RHINTE30 program does (look at the $plste [S] and Work Center [A]):
    But, the employee is also assigned to a position (otype S)! It makes much more sense to have Position filled in the Infotype 0001 rather than Work Center!!
    Thus, our first approach would be to deactivate PA-PD integration for Work Center (otype A) and only leave it active for Position (otype S).
    Thanks in advance for your help.
    Best regards,
    Guillaume

    Guillaume,
    Has your issue ever been solved?
    Kind regards,
    Lieselot

  • Most recently entered records

    Hi, I have table like below. I would like to return most recently entered records in the output.
    I am able to write the query for most recently entered records, but i want to include all the table columns in the output.
    can someone give me idea to write the query or view?
    Thanks for help.
    create table foo_a
              Key varchar2(10),
              Attr varchar2(100),
              Val varchar2(100),
              EntryDate date,
              EndDate date,
              EFDate date,
              ETDate date
    DATA IN THE TABLE:
    FS.1 || AAA || 200     || 31-DEC-2005 ||     31-DEC-2005 || 31-DEC-2005     || 31-DEC-2005
    FS.1 || AAA     || 250     || 30-DEC-2005 || 31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.2 || BBB     || 300     || 12-JAN-2005 || 31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.1 || AAA     || 350     || 01-JAN-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.3 || CCC     || 200     || 09-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.3 || XXX     || 100     || 09-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.3 || YYY     || 100     || 10-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.3 || XXX     || 120     || 10-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.4 || aaa     || 'H'     || 02-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    FS.4 || aaa     || 'H'     || 11-FEB-2006 ||     31-DEC-2005 || 31-DEC-2005     ||     31-DEC-2005
    QUERY:
    select
         Key,
         Attr,
         max(EntryDate)
    from
         foo_a
    group by
         Key,Attr
    OUTPUT FOR THE ABOVE QUERY:
    KEY     ATTR     MAX(EntryDate)
    FS.1 || AAA || 1/1/2006      
    FS.2 || BBB || 1/12/2006      
    FS.3 || CCC || 2/9/2006     
    FS.3 || XXX || 2/10/2006      
    FS.3 || YYY || 2/10/2006      
    FS.4 || aaa || 2/11/2006      
    OUTPUT I WANT IS:
    KEY     ATTR     MAX(EntryDate)          ENDDATE          EFDATE               ETDATE
    FS.1 || AAA || 1/1/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005
    FS.2 || BBB || 1/12/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005
    FS.3 || CCC || 2/9/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005
    FS.3 || XXX || 2/10/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005
    FS.3 || YYY || 2/10/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005
    FS.4 || aaa || 2/11/2006 || 31-DEC-2005 || 31-DEC-2005 || 31-DEC-2005

    See the following link for a great discussion of this topic:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:2165134263446

Maybe you are looking for