HR_INFOTYPE_OPERATION insert infotype 0000

I am using HR_INFOTYPE_OPERATION to insert a new infotype 0000 record. However, if there's any future record exist, my program should not overwrite future record but delimit my current record. How can I achieve this? I tried to pass in HR_INFOTYPE_OPERATION with a new 0000 record with end date not 31.12.9999 but system return an error.

Hi Ajay,
When you use BDC or FM to update infotype, you can not call dynamic action as it wont be supported by SAP.
So if you wnat to meet your requirement you have to create one RFC FM inside which you can call from the user exit or after your code had executed the FM operation and got the success message you can call the same FM for updating other infotypes.
The best approach can be to create BDC sessions for updating each infotype after you have done with update of IT0000.
Hope this will help you in resolving your queries.
Regards,
guds

Similar Messages

  • Infotype 0000 - FM for Inserting records ?

    Hi ,
    Can anyone tell me which FM I can use to insert a
    record into IT0000 with a Z-action type without
    casing any data discrepancy ?
    Thanks a lot.
    Regards,
    Sandip.
    <removed_by_moderator>
    Edited by: Julius Bussche on Jan 20, 2009 11:29 AM

    Thank you for answering.
    I have tried using LSMW with Idoc messages and recordings but with no success.
    I also tried using HR_INFOTYPE_OPERATION to put a hiring action into infotype 0000 but i get an error message 'Personnel number not yet assigned'.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          infty         = '0000'
          number        = '310'  "New external personnel number
          record        = data_for_infoset_0000
          operation     = 'INS'
          validitybegin = '01011970'
          validityend   = '01019999'
        IMPORTING
          return        = p
          key           = t_p.
    Can i use HR_INFOTYPE_OPERATION to hire new employees, and how can i do it?
    Now I think my only hope is RPUSTD00, so i wan't to try it.

  • DELETE infotype 0000  using HR_MAINTAIN_MASTERDATA or HR_INFOTYPE_OPERATION

    Please kindly help ,
    how to delete infotype using HR_MAINTAIN_MASTERDATA or HR_INFOTYPE_OPERATION?
    i did try to use HR_INFOTYPE_OPERATION but return code shown as :
    "No data stored for 0003 in the selected period"
    but when i try using HR_MAINTAIN_MASTERDATA.
    Return code was zero, and infotype 0000 still exist.
    regards,
    Rudy.

    Here you go Rudy
    Loopt at the your internal table. Lock the user, post or delete the record, unlock the user.
    CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
          EXPORTING
            number       = t_file-pernr
          IMPORTING
            return       = t_return
            locking_user = w_uname.
        IF t_return-number IS NOT INITIAL.
          t_return-message_v1 = t_file-pernr.
          APPEND t_return.
          g_fail = g_fail + 1.
          g_flag = 'X'.
        ELSE.
          CLEAR: t_return, personaldatakey.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
              EXPORTING
                infty         = '2006'
                number        = t_file1-pernr
                subtype       = t_file1-subty
                validityend   = t_file1-endda
                validitybegin = t_file1-begda
                record        = p2006
                operation     = 'DEL'
                dialog_mode   = '1'
                nocommit      = ' '
              IMPORTING
                return        = t_return
                key           = personaldatakey.
          IF t_return-number IS NOT INITIAL.
            t_return-message_v1 = t_file-pernr.
            APPEND t_return.
            g_fail = g_fail + 1.
            g_flag = 'X'.
          ELSE.
            MOVE-CORRESPONDING t_file TO t_file1.
            APPEND t_file1.
            g_success = g_success + 1.
          ENDIF.
          "Unlock the employee
          CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
            EXPORTING
              number = t_file-pernr
            IMPORTING
              return = t_return.
    Please award points if useful.
    Thanks, Raj

  • Updating action type field in infotype 0000.

    Hi experts,
    I have to update the action type(MASSN)field and reason for action(MASSG)field in infotype 0000 for the existing record. I am trying to use function module HR_INFOTYPE_OPERATION to update it,but i am not able to update the action type field.Below is the code.Can anybody please give me a solution for this.
    DATA:ls_p0000 type p0000.
    DATA : RETURN like BAPIRETURN1.
    DATA : KEY like BAPIPAKEY.
    DATA : RETURNE like BAPIRETURN1 .
    DATA :NOCOMMIT like BAPI_STAND-NO_COMMIT.
    PARAMETERS:is_pernr type pernr.
    ls_P0000-SUBTY = 'IG'.
    ls_P0000-PERNR = IS_pernr.
    ls_P0000-BEGDA = '20100101'.
    ls_P0000-ENDDA = '99991231'.
    ls_P0000-MASSN = 'IG'.        "action type
    ls_P0000-MASSG = '01'  .      "reason for action
    CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = IS_PERNR
    IMPORTING
    RETURN = RETURNE.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0000'
    NUMBER = ls_P0000-PERNR
    SUBTYPE =   ls_P0000-SUBTY
    OBJECTID = ls_P0000-OBJPS
    LOCKINDICATOR = ls_P0000-SPRPS
    VALIDITYEND = ls_P0000-ENDDA
    VALIDITYBEGIN = ls_P0000-BEGDA
    RECORDNUMBER = ls_P0000-SEQNR
    RECORD = ls_P0000
    OPERATION = 'INS'
    TCLAS = 'A'
    DIALOG_MODE = '0'
    NOCOMMIT = NOCOMMIT
    IMPORTING
    RETURN = RETURN
    KEY = KEY.
    CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
    EXPORTING
    NUMBER = IS_PERNR
    Thanks in advance.

    operation "INS" is for insertion,check the FM documentation for value to be passed to operation parameter for change.
    I think its "MOD"
    Edited by: abapuser on Sep 15, 2010 2:02 PM

  • There's a way to add field to infotype 0000

    hi everyone !
    i would like to add field substitude position to infotype 0000.
    there's a way ?

    The "Common Tools" panel is not available by default. You're more likely to find it under Tools - Pages - Insert From File...

  • Duplicate entries in Infotype 0000 :- Delete problem

    Hi,
    There is a scenario where duplicate entries have been entered by mistake in infotype 0000 for a same action XE with same dates.
    If I am trying to delete one of them it's giving me an error "Action XE that changed the status was found . Data
    Inconsistency".
    Please let me know how can I delete one of them manually.
    I can do it through a program by direct table delete but don't want to do that.
    Thanks
    Umang

    don't know if this would work.. but you can give it a try.. ensure nobodyelse is in PA30.. change the time constraint for 0000.. delete the unwanted record & change the Time Constraint back..
    Regards,
    Suresh Datti

  • 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

  • Problem with Employment Status in Actions Infotype (0000)

    Hi All
    I am trying to upload the Pernr details for Actions (0000) Infotype in PA30.
    I am facing a strange issue, where even though i am passing '1' (INACTIVE) to the employment status (STAT2)field, it still takes the status as '3' (ACTIVE). Also, even though i am not passing anything to the Special Payment (STAT3) field, it still takes it as '1' (Standard Wage Type). What may be the reason for this?
    I am using the BAPI_HRMASTER_SAVE_REPL_MULT for HR Master Upload and here are the values i am passing to the BAPIHR0000 table:
      w_bapihr0000-obj_id = '00002400'.
      w_bapihr0000-infotype = '0000'.
      w_bapihr0000-to_date = '99991231'.
      w_bapihr0000-from_date = sy-datum.
      w_bapihr0000-changed_on = sy-datum.
      w_bapihr0000-changed_by = sy-uname.
      w_bapihr0000-action_type = '01'.
    w_bapihr0000-employment_status = '1'.
      APPEND w_bapihr0000 TO t_bapihr0000.
      CLEAR w_bapihr0000.
    And this itab t_bapihr0000 i am passing into the BAPI.
    please help asap.
    Regards
    Harsh

    Action Type 01 u r passing, please check the config ACtions Table, what is the Status Maintained for that Actin Type.
    Table: T529A
    Regards.
    ...SAdhu

  • EREC: An error occurred when you tried to insert infotype 1001 in IDOC

    Hello Experts,
    I have standalone e-Recruitment system and separate SAP HR system. I have ALE configuration done to talk both system.
    In the Initial Transfer, I ran PFAL in HR system in 5 steps.
    Step 1  Execute PFAL (RHALEINI)for Obj Type O, Infotype 1000 and Transfer mode as Update mode
    Step 2  Execute PFAL (RHALEINI)for Obj Type S, Infotype 1000 and Transfer mode  as Update mode
    Step 3  Execute PFAL (RHALEINI)for Obj Type O and Transfer mode as Insert
    Step 4:  Execute PFAL (RHALEINI)for Obj Type S and Transfer mode as Insert
    Step 5:  Execute PFAL (RHALEINI)for Obj Type P and Transfer mode as Insert
    All IDOC created in update mode (Step 1 & 2) are green in receiving e-recruitment system but IDOC getting create in Insert mode (Step 3 ,4 &5) are in status 51/52 I mean Red.
    Error messages are as below:
    1) An error occurred when you tried to insert infotype 1001 using RH_INSERT_INFTY (return code 3).
    2) You tried to create a relationship from object 01S 76037685 to object 01AGC:R3HCM:OM_DISPLAY_US. However, object 01AGC:R3HCM:OM_DISPLAY_US does not exist or is not active in the period from 20110101 to 99991231
    3) You tried to create a relationship from object 01O 10840305 to object 01O 10299323. However, object 01O 10299323 does not exist or is not active in the period from 20110101 to 99991231.
    @ 3rd message : Object 10299323 exist but I still don't understand why I get this message.
    Please provide valuable suggestion so that I can get rid of this error in IDOC
    Appreciate your help.
    Regards,
    Krishna Bidwai
    Losangeles USA.
    818 527 0204.
    Edited by: krishna bidwai on Aug 22, 2011 7:19 PM

    Dear Krishna,
    Hope you are doing good.
    I know its very late in getting into this conversation. Since I am also experiencing the same issue, i need some inputs from you.
    The error you posted on the top is same what i am getting when I am doing data transfers from SAP HR to E-Rec systems. Our iDoc is working file in Development server but not in Quality server. I am experiencing the same errors what you have mentioned above.
    When i checked the error, this error has occurred in subroutine read_namtb for structure  of infotype.
    Proceedure is to Check the entry for infotype  in table T777D (structure, IDoc segment,
    expanded structure) and the corresponding structures.
    As you have resolved this issue before, can you please suggest what needs to be maintained in the tables such as T777D, T777E, and T777Z.
    Appreciate your valuable inputs on this.
    Thank you.

  • P0000-STAT1 (Customer Specific Status) field on Infotype 0000

    Hi All,
    I have a requirement on Customer specific status field on infotype 0000,  Where I should be able to maintain that field through PA40.
    As this field is standardly delivered as output field only through SAP I am unable to force that field as input field in module pool.
    did any one used this field before as input field in IT0000? I couldn't find OSS note on this issue.
    Please let me know if any one has solution on this.
    Thanks,
    Sang

    Hello sangarshitha
    try using field symbol ,
    asssign field symbol to p0000-stat1
    like
    field-sybmbols : <fs> type p0000-stat1.
    ASSIGN ('(MP000000)PSPAR-STAT1') TO <fs>. "check table pspar in debug wether field stat1 is there else go for P0000-stat1
    <fs> = "assign what you want to here.
    write this in PBO of User Exit/Badi for IT-0000
    reward points if helpful

  • Infotype 0000 Creation using HCM Processes and forms in MSS

    Hi,
    I need to create an Action for Transfer an employee using HCM Processes and Forms. So, my form should update infotype 0000, 0001, 0008 etc.
    But when I provide create operation for infotype 0000, system is throwing short dump. When I change the operation to change nothing was creating in infotype 0000 for that respective employee. Is there any way to update infotype 0000 using HCM Processes and forms. Please help me here.
    Thanks & Regards,
    Nayani.

    Hi Chris,
    Thanks for your reply mate.
    I understand that for IT0000 update we don't have to configure it explicitly.We just assign values to MASSG and MASSN and IT0000 should update. I am doing exactly that.
    For the "condition" we do have multiple rules for that and I am familiar about the trickthat the rule fields must be part of the SAP_PA service which is actually making the update. That's all in place and that's working fine.
    Now coming to the problem -
    The "action" is "Return from Career Break" where the only PA infotype that has to be updated is IT0000. Besides that we are updating Absences,IT2001.
    I have tested the process thoroughly and it seems that the system does not allow an IT0000 update without any other PA data change. To test this, I added a PA infotype update in my config and at that time IT0000 got updated beautifully. But when I am trying to update only IT0000, it fails.
    To solve the issue, I had a discussion with my team and we have decided to copy IT0001 along with IT0000. So as of now, we have sorted out a workaround but the technical issue is something I would like to look into.
    If you figure out anything then please let me know.
    Appreciate your help.
    Thanks,
    Saikat

  • Enhance Infotype 0000 (Actions) of PA30

    Dear Experts,
    I have a requirement to use the "Reserved Field/Unused Field of Length 2" of PA0000 table to store my custom data in it.
    I don't know if we can make use of these fields or not?
    I have tried to enhance this info type using PM01 transaction, but it does not allow me to enhance the info type 0000-Actions.
    I simply want a field to be added in info type "Actions" which will be displayed in PA30 and that data gets saved in PA0000 table.
    Can you please guide me with this?
    Thanks,
    Praveen

    Hi,
    Well, as I told you, infotype 0000 cannot be enhanced...
    So no you cannot do that, or you will have to repair the infotype, which is not to be adviced...
    You can however update the "unused" fields on IT0000 from other infotype/custom program but you won't be able to display it on action tab without a standard repair...
    Kr,
    m.

  • User exit in infotype 0000

    Hello,
    How to identify whether infotype 0000 as a user exit?
    I am trying to see in the program MP000000 to see if there is anything "EXIT_MP0000000*'.But I couldn't find one.
    Please let me know how to identify it?

    Hi,
    As ravi suggested u can use PBAS0001 having user exit EXIT_SAPFP50M_001 and EXIT_SAPFP50M_002.
    or try for hrpad00infty ..
    methods : before_output
                    after_input
                  in_update

  • PPOME - infotype 0000 not update

    hello.
    is there any way when I change an employee from one position to another using the PPOME it generate a record in infotype 0000? He throws in infotype 0001. Thanks

    Hi Braulio,
    Unfortunately no, not in the standard system.  When a reassignment is made via PPOME, it is not an action so no IT0000 is created.  Since you have intergration between OM and PA, the IT0001 is created to reflect the move, but not an IT0000. 
    You may be able to create a program or Workflow to create the IT0000 when using PPOME, but there is nothing standard.
    Paul

  • Insert Infotype with Table Part

    Hi All,
    I am trying to insert Infotype nnnn including the information in the table part using a Function Module.
    I have found FM RH_INSERT_INFTY_EXP. This FM has a parameter called TNNN which is supposed to hold the table part information. However, I have tried to used this but the table part is not filled.
    I saw that PNNNN-ITXNR is relevant here.. However, incremeting this number for each entry I write seems unhandy..
    Can anybody help me here?
    Thanks, Johannes

    Hi Maricella,
    Use FM 'RH_INSERT_INFTY'.
    Pass values for below parameters while calling the FM.
      REPID               = SY-REPID
      FORM                = 'FILL_TASK_DATA'
    Create a subroutine with the same name as you have given above for 'FORM'
    and in this subroutine you can populate data for HRTNNNN.

Maybe you are looking for

  • Can we resize swf file created with AIR API in AIR application?

    Hi, I created a .swf file with AIR API. I want to open and resize it in AIR application. This .swf file taking dimensions as default in which it opens. I want to change its width and height. Is there any way to change its dimensions? Please suggest m

  • File to IDOC scenario : Error with mapping due to Context handling

    Hi Experts. I have a file to IDOC scenario which need your advice. Source File structure as follows: Control_Header     <1:1> Invoice_Header     <1:unbounded) Invoice_Line          <1:unbounded) Trailer                    <1:1> Payload as follows cap

  • What is better for college? An iPad air or an iPad mini with retina display?

    I'm currently a junior in high school and I'll be graduating in the summer of 2015. My parents, well mostly dad, are planning on buying me the iPad air with 128 GB of memory. I got curious and went to look at the price and compare models and I saw th

  • Updating external address number and phone ID

    I want to update external address number and phone ID when i edit a BP. I found FM BUA_BUPA_BUT020_GET to read address data from buffer.. using this i can update external address number field. but i am not able to see phone related fields in buffer.

  • AUTHORISATION REQUIRED FOR REPORT LEVEL POP UP WINDOW

    RESPECTED ALL I HAVE CREATED ONE REPORT AND CREATED ONE CHARACTERISTIC AND DUE TO WHICH WHEN I AM EXECUTING, IT FIRST ASK THE SELECTION CRITERIA WINDOW LIKE POSTING DATE AND MATERIAL SELECTION. BUT WHEN  I AM DOING THE SAME THING THROUGH THE DIFFEREN