How to update infotype 0024 in HR

Hi all,
I have a requirement to update the qualifications of an employee. That is, i need to modify the Proficiency value of a qualification (qualification tab) in IT 0024 and create new qualification record IT 0024.
Can someone help me what is the function module used to modify proficiency and create new qualification record in IT 0024.
Also, how to query IT 0024 data? Bcoz i have to read the qualification data first in order to modify the existing proficiency value? If we update IT 0024, then will this be reflected in OM (P to Q relation in HRP1001 table)?

Hi,
IT 0024 is different from other infotypes. You need to use special FMs to read and write this infotype also delete it. Which are:
RHPP_Q_PROFILE_DELETE
RHPP_Q_PROFILE_READ
RHPP_Q_PROFILE_WRITE
RHPP_Q_PROFILE_WRITE_N_DIF
İ'm also adding some infos and code sample for you.
"declaration
DATA : profile LIKE hrpe_relaq OCCURS 0 WITH HEADER LINE.
"fill it
*&      Form  fill_profile
FORM fill_profile .
  IF r_tpos = 'X'.
    profile-tbjid = 50000041.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000042.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000043.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
  ELSE.
    profile-tbjid = 50000044.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000045.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
    profile-tbjid = 50000046.
    profile-profcy  = 0003.
    APPEND profile. CLEAR profile.
  ENDIF.
ENDFORM.                    " fill_profile
"usafe of fM
DATA lv_objid LIKE  p1001-sobid.
  lv_objid = gs_24-pernr.
  CALL FUNCTION 'RHPP_Q_PROFILE_WRITE'
    EXPORTING
      plvar                       = '01'
      otype                       = 'P'
      objid                       = lv_objid
*     VTASK                       = 'D'
    TABLES
      profile                     = profile.
  CLEAR lv_objid.
Çağatay

Similar Messages

  • How to update infotype 0006

    Hello,
    I want to update infotype 0006.
    I tried the things in following way using 'HR_INFOTYPE_OPERATION' function.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
        EXPORTING
          INFTY                       = '0006'
          NUMBER                   =  PERNR
          SUBTYPE                  =  '1'
          VALIDITYEND           = IT_PA0006-ENDDA
          VALIDITYBEGIN        = IT_PA0006-BEGDA
          RECORD                   = ls_p0006
          OPERATION              = 'CHANGE'
         TCLAS                      = 'A'
          nocommit      = ''
          dialog_mode   = '0'
        IMPORTING
          RETURN                   = RETURN.
    Function was executed successfully but there was no updation in the record.
    Thanks in advance.

    ****Data declaration
    Return Table for ENQUEUE - DEQUEUE messages
    DATA: zreturn TYPE bapireturn1,
          user TYPE sy-uname.
    DATA: wa_0001 TYPE p0001.
    ****Lock the pernr for editing
              CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
                EXPORTING
                  number       = pernr
                IMPORTING
                  return       = zreturn
                  locking_user = user.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
                  EXPORTING
                    infty                  = '9009'
                    number                 = wa_0001-pernr
                   validityend            = wa_0001-endda
                   validitybegin          = wa_0001-begda
                    record                 = wa_0001
                    operation              = 'MOD'                  "It can be 'INS' for insert or 'DEL' for delete
                 IMPORTING
                   return                 = zreturn
    *******Unlock the Pernr
                CALL FUNCTION 'HR_EMPLOYEE_DEQUEUE'
                  EXPORTING
                    number = pernr
                  IMPORTING
                    return = zreturn.
    Hope this will help you.
    Regards,
    Aniruddha

  • How to update infotype 0712 in the background

    I amd working on a web dynpro applicaiton for PA action request and process action in the background. We have manu concurrent employees. When the main assignemnt is terminated, I need to switch the main pernr to another pernr. I sue HR_INFOTYPE_OPERATION to update other infotypes with no problem, but it does not work with info type 0712. I step through in debugger, see HR_INFOTYPE_OPERATION run though without erro, but IT0712 does not show the update.
    What other tool can I used to update infotype 0712 and 0171?
    Anna

    Hi Anna,
                  Have you tested the IT0712 by manually updating?
    if so try with bdc recording and run in foreground mode.
    if the same hits in IT0712 or 0171.
    use the same with no screen mode.
    don't use the HR_infotype_operation FM
    it will help you.
    cheers...,
    By,
    Vijay.

  • Update Infotype 1005 (Planned Compensation)

    Hi,
    Can anyone let me know...how to update infotype 1005 (Planned Compensation.
    Transaction to create 1005 (Planned Compensation).
    Thanks in advance....
    Sandeep.

    Hi,
    You can goto tcode pp01 or pp02(Expert mode) to create the planned compensation for the job or position.
    Rgds,
    Balaji.

  • Updating Infotype 0077 for the New Race and Ethnicity Codes

    Hi,
    I would like to ask for a help or any ideas on below case:
    There are new race and ethnicity codes required by the US EEO Law. I've already maintained them in table T505R. My problem now is on how infotype 0077 records of the employees will be updated showing the new race and ethnicity codes. Program RPURACU0 is use to update the records in infotype 0077. In this program, I first map the old ethnic origin to the new race and ethnicity codes. But after I've run and execute the program, infotype 0077 records of the employees still shows the old ethnic origin codes. It does not show the new race and ethnicity codes which should be based on the mapping I've done.
    Another problem is that in infotype 0077 in the field "Ethnic Origin", upon clicking on the drop down list, it shows all of the entries I've entered in table T505R. I think that ethnicity and race categories should be two different fields and thus, there should be another field for the race categories. May I know on how to add such field?
    To summarized, I need help in the following:
    -how to update infotype 0077 showing the new race and ethnicity codes
    - how to create field "Race" in infotype 0077 to display the new race categories
    Thanks in advance for your help!

    Mary,
    We have applied the relevant note, updated MP007700 (as below) and executed program RPURACU0 with the required mapping.  However, the Race field check boxes are not visible on IT0077 because as you can see the relevant field is not listed below.
    Module Pool          MP007700            Variable key    10
    Standard screen      2000                Feature
    Alternative screen   2010
    Next screen          2010
    001     P0077-RACKY     Ethnic origin
    002     P0077-MILSA     Military status
    003     P0077-ETHEN     Ethnicity
    004     P0077-SURVY     Survey answered
    005     P0077-DISAB     Disability
    006     FRAME_2     Veteran Status
    007     P0077-MEDIC     Benefit Indicator for Medicare
    008     P0077-DISDT     Date of Determination of Disabil
    009     P0077-DISLE     Date Employer Learned of Disabil
    011     P0077-EEOEX     EEO Exempt Indicator
    012     Q0077-VETS2     Veteran status
    013     Q0077-VETS3     Veteran status
    014     Q0077-VETS4     Veteran status
    015     Q0077-VETS5     Veteran status
    016     Q0077-VETS6     Veteran status
    017     Q0077-VETS7     Veteran status
    018     IT_ITAB-MARK                                    
    019     Q0077-VETS1     Veteran status
    021     FRAME_1     Additional Personal Data
    023     FRAME_3     Disability
    Thanks!
    Edited by: Victoria Nate on Sep 23, 2008 6:35 PM

  • About HR infotype 0024, How to use the function moudle:RHPP_Q_PROFILE_WRITE

    Hi:
    About HR infotype 0024,As qualification data goes to the OM Infotypes, How to use the function moudle:RHPP_Q_PROFILE_WRITE?
    thank you.

    thank you and the 'BAPI_QUALIPROF_CHANGE' can wok.
    DATA:it_profile_add TYPE bapiqualific_tab OCCURS 0 WITH HEADER LINE,
         it_profile_delete TYPE bapiqualific_tab OCCURS 0 WITH HEADER LINE,
         it_return TYPE bapireturn1 OCCURS 0 WITH HEADER LINE.
    it_profile_add-obj_id = '20000116'.  "Q ID
    it_profile_add-rating = '0001'.      "精通程度
    APPEND it_profile_add.
    CALL FUNCTION 'BAPI_QUALIPROF_CHANGE'
      EXPORTING
        plvar                = '01'
        otype                = 'AP'  "申请者
        sobid                = '00000170' "PERNR NUMBER
    IMPORTING
       return               = it_return
      TABLES
        profile_add          = it_profile_add
        profile_delete      = it_profile_delete
      ERR_PROFILE          =
      CHANGE_PROFILE       =
    READ TABLE it_return WITH KEY type = 'E'.
    IF sy-subrc = 0.
      MESSAGE 'FAILED' TYPE 'I'.
    ELSE.
      MESSAGE 'SUCCESS' TYPE 'I'.
    ENDIF.

  • BAPI infotype 0024

    Hello all,
    please could anyone help me on massive updating of Personal Development dates saved in the infotype 0024. I need to update not only links between objects P<->B and P<->VA but also create notes. Call transaction PPDPIM fails and according to SAP Note one should use a BAPI to do it.
    So the question is: Which BAPI could I use instead of calling transaction PPDPIM? and in case there is no such a BAPI created, how should I proceed?
    Thank you in advance!

    Thanks
    The problem is that the FM allows me to edit only the table PA0024 and what I want is to for example update massively comments saved in the Notes that you can link to the Individual Development Plan or to any of its Items, etc. Call transaction PPDPIM fails, how to do it? Any idea?

  • Uploading data in infotype 0024

    Hi all,
    I want to upload datain infotype 0024 - qualifications tab. Now the issue here is that this infotype contains a table control in which the data is not getting stored in infotype 0024 but some place else instead.
    Please suggest how to tackel the situation using bdc.
    Thanks
    Ribhu

    Ofcourse i need more information - please read this:
    Well please go to  pa30 and try to create a record in Infotype 0024.
    There in the qualifications tab, you cant enter anything - u have to click on the create button below the table control to choose languages - various check boxes for languages.
    Now when I do recording - this step of choosing the languages do not comes up . moreover the fields in the tabstrip for qualification - they are not in the pa0024 table and are stored somewhere else. So even if i use hr_infotype_operation, it do not shows up the fields for qualifiactions tab - like language, profecincey level and dates for various languages.
    Please suggest if you know something.
    Infotype no 0045 is also a similar infotype where the data gets stored at some other place ..... I mean by any chance if u know how to upload data in IT0045, it would be a great help.
    thanks
    Ribhu

  • Need a help to Update Infotype.....

    Hi Experts,
    *am developing HR-ABAP Report inthat, i have data in 2 internal tables, through these (itabs) i want to*
    *insert the data into 2 Ztables(Respective tables) and then i want to Update one Custom Infotype.*
    how can i procedure for this? is there any FM to update Infotype....
    Thanks in Advance,
    sudeer.

    The best way is to use HR_INFOTYPE_OPERATION function module in your program.
    Sample code:
          call function 'HR_INFOTYPE_OPERATION'
            exporting
              infty         = p0082-infty
              number        = p0082-pernr
              subtype       = p0082-subty
              validityend   = p0082-endda
              validitybegin = p0082-begda
              record        = p0082
              operation     = 'INS'
              tclas         = 'A'
              dialog_mode   = '0'
            importing
              return        = return
              key           = key.
         capture error messages
          if return-type = 'E'.
            concatenate 'Sub Type:' p0082-infty into messtab-tcode.
            move return-message to messtab-param.
            append messtab. clear messtab.
          endif.
    You can use it for modifying the record also.

  • HRMD_A07 Idoc to update InfoType 0014 does not delimit existing PA0014 rec

    In ECC 6.0, we are using HRMD_A07 Idoc to update infotype 0014 using update data received from a third party application. In XI, I am creating the Idoc with Update Code "U" with E1PLOGI, E1PITYP and E1P0014 segments. E1P0014 holds the data for the latest record.
    If I directly pass the Idoc thru ALE layer, It creates records for the new date range on E1P0014 segment, but does not delimit the previous record by changing its end date. This results in two records in PA0014 with end date of 12/31/9999 - which is wrong.
    I also tried using a wrapper FM to create additional segments in the Idoc representing the existing record in PA0014, with the end date being delimited to incoming record's beg. date minus 1.
    This also results in just creating two additional records in PA0014 corresponding to the two segments in Idoc while existing record in PA0014 stays intact resulting in two records with end date 12/31/9999.
    I also experimented with setting the lock indicator (PA0014-SPRPS) but that also does not result in delimiting the existing record.
    Am I missing something? Is there a piece of config that controls this?
    Regards,
    The time constraint on 0014 is "2"

    Hi Jon and Ashish,
    I too am facing the same issue that the new IDOC is not delimiting the previous record.
    Can you explain how did u get over you issue.
    I'm maintaining the same dates in E1PITYP and in E1P0014.
    Thanks,
    Jilly

  • Update infotype from user exit

    Hi,
    My requirement is to update a infotype from a user exit. I have a internal table with some records created in the user exit pbas0001. Now i need to update these records in the infotype 2001(absences). I tried using HR
    INFOTYPEOPERATIONS directly from the user exit and it didn't work. If i create a include program and create a subroutine within the include program and call it in the user exit still i am getting a error message. How can update the infotype from the user exit.
    Can someone send the example code for how to export the internal table from the user exit and import it in another program and update the infotype from that prgm.

    Put the entire code in another Report & SUBMIT that report from the User exit.. this will isolate the two work processes & the Z table should get updated..
    ~Suresh

  • Standard report to update infotypes

    Hi, is there any standard report or program that updates the following any of the infotypes below;
    1. 0000
    2. 0001
    3. 0008
    4. 0041
    I like to copy the ways how SAP update these infotypes and error handling.

    You can use HR_MAINTAIN_MASTERDATA to update all the infotypes in one go.. Also, these function modules mimic a BDC ie all the screen field checks are taken care of.. But you should be aware that both the function odules cannot handle large volumes of data..
    ~Suresh

  • Copy Qualifications of HR personel (Infotype 0024)

    Hi all,
    How can i copy qualifications of HR personel(Infotype 0024) from one to another?
    Best regards,
    Munur

    Hello,
    Are you planning to do this as a batch (a lot of copies) or do you want a single one of them?
    With Pa30 I am afraid it's not possible, only for the same pernr.
    Regards,
    Bentow.

  • Standard programs to update infotypes

    Please provide updates for this question:
    What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
    I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
    before going ahead with BDC .
    Thanks
    Rohan

    Hi,
    I checked out the program you stating.......
    In that program itself if you check the documentation its given how to add in fields.......
    You can use report RPUSTD00 to transfer master data from your old HR system.
    The dataset to be transferred must be stored in a sequential file. The file is stored under the name specified in the "logical file name" field (for more information on logical file names, read the IMG section entitled Additional client-dependent file name maintenance).
    The report reads this dataset and creates a batch input session for transaction PA30.
    The data description of your old record is defined according to the structure HRDATASET. If this structure does not meet your requirements, create the structure CI_HRDATAS in the ABAP Dictionary. In this structure, you can store the infotype fields to which data should be transferred. Make the necessary changes in RPUSTD00.
    Example
    If the include CI_HRADATAS contains the field F1 which is to be assigned to the infotype nnnn, add the following ABAP statements to FORM Dnnnn:
      CLEAR BDCDATA.
      BDCDATA-FNAM = 'Pnnnn-F1'.
      BDCDATA-FVAL =   SATZ-F1.
      APPEND BDCDATA.
    If the FORM Dnnnn does not exist for your infotype nnnn, copy FORM D0008 to FORM Dnnnn. Replace the 0008 by your infotype number:
    FORM Dnnnn.
      CLEAR BDCDATA.
      BDCDATA-PROGRAM  = 'MPnnnn00'.
      BDCDATA-DYNPRO   = '2000'.
      BDCDATA-DYNBEGIN = 'X'.
      APPEND BDCDATA.
      CLEAR BDCDATA.
      BDCDATA-FNAM = 'Pnnnn-F1'
      BDCDATA-FVAL = SATZ-F1
      APPEND BDCDATA.
      CLEAR BDCDATA.
      BDCDATA-FNAM = 'BDC_OKCODE'.
      BDCDATA-FVAL = '=UPD'.
      APPEND BDCDATA.
    ENDFORM.
    The FORM Dnnnn is called directly after FORM D0008; see the ABAP statement indicated as "<------ INSERT in the following (starting at line 1730 in the standard system):
      LOOP AT INFTAB.
        CASE INFTAB.
    Include all infotypes in your action *
         WHEN '0002'. PERFORM D0002.
         WHEN '0001'. PERFORM D0001.
         WHEN '0006'. PERFORM D0006.
         WHEN '0007'. PERFORM D0007.
         WHEN '0008'. PERFORM D0008.
         WHEN 'nnnn'. PERFORM Dnnnn.         "<------ INSERT
         WHEN OTHERS. WRITE: / 'Infotype not included:' (008), INFTAB.
                       STOP.
       ENDCASE.
    ENDLOOP.
    Parameter DSLOGNAM
    Logical file name
    Parameter MAPNAME
    Session name
    Definition
    Enter any name for the session to be created.

  • [Qualif.] Difference between object type 'Q' and infotype 0024

    Hi,
    For the xRPM 4.0 solution, we need to maintain skills for resources. There is a HCM integration functionality to import skills from a HR system to Business Partners (which - basically - represent users that can be staffed on a project in the xRPM solution).
    Today, there is no skill management in our HR system.
    There are 2 notions that look very similar to me :
    - <b>Infotype 0024</b> [Transaction PA20/PA30] : contains Qualifications of a user in PA (Personal Adminsitration) with the standard table T574A holding the possible values
    - <b>Organizational Structure</b> (HRP1000/HRP1001) [transaction BP / PP* ?]: with the objects Qualifications 'Q' and Qualifications Group 'QK'
    It seems taht the integration operates on the Organizational Structure. But we would like to assess both solutions.
    <b>What is the difference (pros&cons) between the 2 of them ?</b>
    Thanks in advance.
    Best regards,
    Guillaume
    Message was edited by:
            Guillaume GARCIA

    To be precise, the way Infotype 24 behaves depends on whether integration between PA and PD is active.  This is controlled by setting PLOGI QUALI in table T77S0.  There are also other settings in this table that affect how quals work in an integrated scenario, you will find these in the QUALI XXXX section.
    If integration is active, the qualifications are maintained in a catalogue via transaction OOQA.  What you see in IT0024 are the object Q <--> P relationships as mentioned above once a qualification object has been assigned to the employee.  This option has the advantages of being able to use the integrated objects in othe modules e.g. as prerequisites or imparted quals in the training module, skills/requirements matchup etc.  The down side is that being PD objects, these are more difficult to report with SAP Query or Adhoc Query tools, but there are ways of doing it.
    If integration is not active, the data is simple stored in PA table PA0024 and the quals themselves are set up via the IMG.  The data really can't be used in any other module, but the reporting aspects are much easier with the standard query tools.
    Regards,
    John

Maybe you are looking for

  • Real Instruments play beyond end of repeated loop

    I've tried every google-fu trick I could think of to see if anyone else has had this problem. I record a real instrument (say an electric guitar riff). I drag/repeat/loop it 3 or 4 times. It plays properly. Then at some point I select it, and move it

  • I want to download the 'TRIAL' version of Acrobat 'Standard' not the 'Pro' version

    I want to buy the Acrobat Standard version for my company's laptop, but I need to make sure that Acrobat Standard is enough for my work or not. However, I can download only the Pro version of Acrobat which I don't need to. How can I have a trial vers

  • How Commit works?

    Hello all, A question: We are having some problem running a JOB. The job is taking too much time to finish. However at end the Commit occurs. Let´s suppose: We are running a Program (in BACKEND) that updates a table The Backend process has not finish

  • Can you assign field values as the file name

    When filling fillable pdf forms I would like to assign the name of the file (automate a Save As) to field values. 

  • Image sizing using Safari

    I post photos on the message board of a site that does not let you post HTML code (if it matters, the site says powered by pluck). To post a photo on the message board you have to either copy/paste or drag/drop from your photo hosting site to the mes