HR infotype programming

Hi,
Here are some scenarios i am facing and wondering if somebody knows the FM for the same.
1. For an employee know the core and functional competency.
2. Relationship of proficiency to qualification to employee.
thanks
amit

Sundar,
If you are working with a standard SAP infotype, fields and Screens, this change is considered a modification.
The other thing that you should check is if your field is tied to something defined in the data dictionary, then upper/lowercase is also attached to the domain of your field definition.  Changing it only on the screen may not necessarily populate the field with upper/lowercase.
If you click on the "definition" tab of the domain definition you will see a checkbox called upper/lower case.
Best Regards,
Chris H.

Similar Messages

  • How to create the sub type field in hr abap infotype

    hi ,
        how to create the sub type field in hr abap infotype.
    regards,
    venkat.

    Try like this also
    creating of infotype please follow these steps ...
    Step 1: Create Infotypes
    i. Goto Transaction PM01 – To create Infotypes:
    ii. Enter the Infotype Number and say create all.
    iii. The following message would display:
    i. PSnnnn Does not exist. How do you want to proceed?
    iv. Click
    v. A maintain Structure screen appears.
    Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
    vi. Once the PS Structure is created, save and activate the structure.
    vii. In the initial screen of PM01, now click on .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
    Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    *General Attributes :
    Time constraint = 1
    Check Subtype Obligatory
    Display and Selection:
    Select w/ start = 3 “Valid record for entered data
    Select w/ end = 5 “Records with valid dates within the period entered
    Select w/o date = 6 “Read all records
    Screen header = 02 “Header ID
    Create w/o end = 1 “Default value is 31.12.9999
    Technical Data:
    Single screen = 2000
    List screen = 3000; List Entry Checked.
    viii. In the initial screen of PM01, now click on .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn “Infotype Name
    Subtype field = SUBTY
    Subtype table = T591A
    Subty.text tab. = T591S
    Time cnstr.tab. = T591A
    Prim. /Sec. = I Infotype
    Period/key date = I Interval
    and .
    ix. Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click . Flow Logic will be displayed. There string coding of your own logic.
    Regards
    Pavan

  • Making a field as display only in custom Infotype.

    Hi,
    I have to a requirement to make a field as display only in a custom infotype. This field should be greyed out while entering data via PA30 for any employee such that it wont allow to eneter data manually but it gets updated by a program. And also this field should have a default value , say, NO.
    Please help me as this is too urgent.
    Regards,
    Binay.

    Hi Binay
    Please go to Screen Painter SE51 for your custom infotype program MP9XXX00
    9XXX - infotype number.
    Go to Layout editor for your Single screen (Screen Number 2000)
    Double click on the field you want to make display only
    In the screen attributes DISPLAY OPTIONS for that field choose "Output Only"
    Activate Layout.
    If you want to code something to be populated for the field code in PAI or PBO modules in the Module pool program
    Its very easy.

  • Creating an infotype

    I want to create a zinfotype. Can anyone tell me the steps involved along with the relevant transactions?
    Thanks in advance.

    hi this is MohanVamsiKrishna.A,
    I hv created a personal administration infotype by the following steps.
    creating of infotype please follow these steps ...
    Step 1: Create Infotypes
    i.     Goto Transaction PM01 – To create Infotypes:
    ii.     Enter the Infotype Number and say create all.
    iii.     The following message would display:
    i.     PSnnnn Does not exist. How do you want to proceed?                          
    iv.     Click 
    v.     A maintain Structure screen appears.
       Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you required.
    vi.     Once the PS Structure is created, save and activate the structure.
    vii.     In the initial screen of PM01, now click on  .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
              Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    *General Attributes :
      Time constraint = 1    
      Check Subtype Obligatory
    Display and Selection:      
                Select w/ start   = 3     “Valid record for entered data
                Select w/ end    = 5     “Records with valid dates within the period entered
      Select w/o date = 6     “Read all records                  
                                Screen header   = 02   “Header ID
      Create w/o end = 1     “Default value is 31.12.9999
    Technical Data:                    
      Single screen = 2000
            List screen = 3000; List Entry Checked.
    viii.     In the initial screen of PM01, now click on  .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In    tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn      “Infotype Name                   
    Subtype field         = SUBTY                           
    Subtype table         = T591A                           
    Subty.text tab.        = T591S                           
    Time cnstr.tab.       = T591A                           
    Prim. /Sec.             = I Infotype                      
    Period/key date      = I Interval                                                                               
    and  .                      
    ix.     Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click  . Flow Logic will be displayed. There string coding of your own logic.
    Have you got it, how to create IT.
    good luck.

  • Infotype creation process

    hello,
    i have got a requirement to create an infotype.. i don't have any idea on that.. can i get a detailed step by step process on how to create an infotype..
    thanks in advance

    Step 1: Create Infotypes
    i.     Goto Transaction PM01 – To create Infotypes:
    ii.     Enter the Infotype Number and say create all.
    iii.     The following message would display:
    i.     PSnnnn Does not exist. How do you want to proceed?                          
    iv.     Click 
    v.     A maintain Structure screen appears.
       Fill in the short text description and the PS structure of the Infotype.
    Since the fields Personnel No, Employee Begin Date, End Date, Sequential Number,
    Date of Last Change, Name of user who changed the object are available in the PAKEY and PSHD1 structure, define the PSnnnn structure with only the fields you needed.
    vi.     Once the PS Structure is created, save and activate the structure.
    vii.     In the initial screen of PM01, now click on  .
    Create a new entry for the infotype.
    Fill in the values as mentioned below and save.
              Infotype Characteristics:
    Infotype Name of the infotype_ Short Text: __Short Description________
    General Attributes :
      Time constraint = 1      “Record must have no gaps, no overlapping
      Check Subtype Obligatory “layout of an infotype screen depends on the subtype
    Display and Selection:      
                Select w/ start   = 3     “Valid record for entered data
                Select w/ end    = 5     “Records with valid dates within the period entered
      Select w/o date = 6     “Read all records                  
                                Screen header   = 02   “Header ID
      Create w/o end = 1     “Default value is 31.12.9999
    Technical Data:                    
      Single screen = 2000
            List screen = 3000; List Entry Checked.
    viii.     In the initial screen of PM01, now click on  .
    Choose the infotype entry in the list.
    Fill in the values as mentioned below and save.
    Technical Attributes:
    In    tab section,
    The following attribute values are given:
    Applicant DB Tab = PAnnnn      “Infotype Name                   
    Subtype field         = SUBTY                           
    Subtype table         = T591A                           
    Subty.text tab.        = T591S                           
    Time cnstr.tab.       = T591A                           
    Prim. /Sec.             = I Infotype                      
    Period/key date      = I Interval                                                                               
    and  .                      
    ix.     Infotype Screen Modification:
    Edit Screen 2000 from PM01 for the Infotype.
    ABAP Editor for the Infotype Program MPnnnn00 will be displayed.
    Click  . Flow Logic will be displayed.
    Create two modules: wity your logic to implemented
    Message was edited by: MohanVamsi Krishna

  • ABAP HR: Exit ZXPADU02 and Method cl_hr_pnnnn_type_cast= pnnnn_to_prelp

    Hi ABAP HR Gurus,
    Good day.
    In Transaction PA20 Infotype 2, there's a field Sexual Orientation (P3346-SEXORIENT) from IT3346.  In change mode, when a value is chosen in the dropdown list for Sexual Orientation and enter is pressed, the chosen Sexual Orientation is cleared.
    I have debugged this and the issue seems to be coming from Exit EXIT_SAPFP50M_002 / ZXPADU02.  In this exit, cl_hr_pnnnn_type_cast=>prelp_to_pnnnn and cl_hr_pnnnn_type_cast=>pnnnn_to_prelp are being used.    Below is the related code:
    WHEN '0002'.
    *    MOVE innnn TO i0002.
         CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
           EXPORTING
             prelp = innnn
           IMPORTING
             pnnnn = i0002.
         IF i0002-rufnm IS INITIAL.
           i0002-rufnm = i0002-vorna.
         ENDIF.
    *   Check suffix of NI number
         IF NOT i0002-perid IS INITIAL.
           IF i0002-perid+8(1) = ' '.
             MESSAGE e513(zhr).
           ENDIF.
         ENDIF.
    *    MOVE i0002 TO innnn.
         CALL METHOD cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
           EXPORTING
             pnnnn = i0002
           IMPORTING
             prelp = innnn.
    I noticed that Call cl_hr_pnnnn_type_cast=>pnnnn_to_prelp deletes the data of Sexual Orientation found in INNNN+990(1) in the exit.
    With this, when using cl_hr_pnnnn_type_cast=>pnnnn_to_prelp, can you kindly confirm if there's a way to not lose the value in INNNN+990(1) which corresponds to value of Sexual Orientation (P3346-SEXORIENT) in our Infotype 02 Screen?  If there's none, can you kindly provide the appropriate solution to the issue.
    Additional Note: I'm thinking that maybe I should get the value of INNNN+990(1) and then put it back again to INNNN+990(1)  after calling cl_hr_pnnnn_type_cast=>pnnnn_to_prelp but this might not be the appropriate solution to the issue. 
    Thank you.
    Best regards,
    Brando

    Program ZXPADTOP
    data:   i0002 like p0002.      "Personal data infotype
    Program ZXPADU02
    * Decision on infotype being processed
    case innnn-infty.
    * Default 'known as' field to employee first name is the user has left the
    * field blank
       when '0002'.
    *    MOVE innnn TO i0002.
         call method cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
           exporting
             prelp = innnn
           importing
             pnnnn = i0002.
         if i0002-rufnm is initial.
           i0002-rufnm = i0002-vorna.
         endif.
    *   Check suffix of NI number
         if not i0002-perid is initial.
           if i0002-perid+8(1) = ' '.
             message e513(zhr).
           endif.
         endif.
    *    MOVE i0002 TO innnn.
         call method cl_hr_pnnnn_type_cast=>pnnnn_to_prelp
           exporting
             pnnnn = i0002
           importing
             prelp = innnn.
    endcase.
    Additional Note: innnn is declated under Import Parameters of EXIT_SAPFP50M_002:
    INNNN
    LIKE
    PRELP
    Current Infotype Record

  • IT0302

    Hi Friends,
    Need your inputs for Running two actions on the same day...
    Well, I had maintained all the nodes which is required to activate IT0302 like in T529A - U0302, Integration switch T77S0: ADMIN-EVSUP,
    But still the system is overwriting the previous action.
    When I had investigated I came to know there is no priority maintained for the Personnel actions, and due to cleaning up of the data the standard Sap Personnel actions also removed from the table V_529A_B. And there is no new entries tab to maintain our Personnel Actions.
    I guess if we maintain the priorities then system accepts to run two actions.
    Can you guys help me, and let me know if there's any OSS note to be applied??? as from config perspective nothing I could able to find out.
    Appreciate your inputs.
    Thanks & Regards
    Pavani G

    Hi Pavani,
    If the actions change the status - then you cannot have two on the same date.  If one or none of them change the status, then you can have two or more, but the ones that do not change the status may be stored in IT0302 even if you do not see them when looking directly at IT0000-Actions.  That is if you have set-up T529A properly.  Best bet is to check the box for U0000 and U0302 for those actions which change status - Hiring, LOA, Term, etc.  Those that do not change status - Transfer, Pay Adjustment, should only have a check in U0302.  Also, make sure you have activated the Additional Actions Infotype - program RPUEVSUP. 
    Paul

  • PA0002-PERID (Personnel ID Number) eg.SSN Validation

    Hi folks
    I have a requirement to validate the field PA0002-PERID in my custom Module Pool Program.
    It should validate like the standard infotype program.
    I got the standard validation subroutine, which validates when the field is SSN for US.
    But for other countries I did not find any solution. Any suggestions?
    Regards.
    vim.

    >
    d sappanese wrote:
    > Thanks Rob
    >
    > Actually I ws specifically looking for Netherlands and UK
    Please check the FM 'TAX_NUMBER_CHECK', I believe this can be used for both NL and U.S and for GB you can check the subroutine 'GB_NINUM_Validation' in the include program MP00024G.
    -Rajesh.

  • Is it possible to make a call to an Infotype from an ABAP program?

    Dear friends,
    I created a new infotype 9*** using transaction pm01 and it works fine. What i need to do is to make a call to this infotype from an abap program without going through transaction pa30. Is it possible to do that? Thank you in advance.
    Sincerely,
    hajar

    Hi,
    The HR_MASTERDATA_DIALOG might need some tweaking.. we use a custom Program on the lines of SAP's
    'perform rp_infotyp(sapfp50g)'  that is more user friendly.. let me know if u need more info..
    Good Luck,
    Suresh Datti

  • Calling infotypes in module pool programming

    Hi experts,
    I want to guide end user to infotype 2003 using pa30 in dialog programming. I am able to take it to pa30 by 'call transaction' but i want it to directly go to 2003 in pa30 for the same employee.
    Need you help please.

    Hello Rekha
    you can use :
       set parameter  'PER'   <employee number>
       set parameter  'ITP'   '2003'
      set parameter  'SUB'   <Subtype>
    call transaction 'PA30' skip first screen.
    Reward points if helpful

  • HR programming : mass deletion of PA Infotypes

    Hello !
    Does anyone know a standard way (a program , bapi ,
    function) for deletion of PA infotypes ?
    We need to do a mass deletion of PA infotypes - We need
    to delete infotypes for a lot of PERNRS
    at the same time. (So PU00 is not good enough for us).
    Thanks in advance ,
      Nitzan S.

    Hi Nitzan,
    1. HR_INFOTYPE_OPERATION
    2. This must be used.
       with this we can delete, add, edit .
    regards,
    amit m.

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

  • Standard programs to upload / 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

    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 Rohan ,
         you can update you infotype using 'HR_INFOTYPE_OPERATION' function module .
    1)   transfer all your excel data  into internal table .
    2)   loop at internal table
    3)  fill all the required field of that infotype .
    4) lock table
    5) call that functuion module .
    6) unlock table
    for this fallow the below code...
    DATA: it_p0169 TYPE STANDARD TABLE OF pa0169 WITH HEADER LINE.  (make internal table according to your requirment)
    DATA: wa_p0169  TYPE p0169.
    LOOP AT it_file
          v_eeamt = it_file-pct_gross.
    *Pre-Tax Contribution Percentage
          v_eepct = v_eeamt / 10.
          v_begda = it_file-datchngd .
    *Appending into header (these all are the required filed in my case )
         it_p0169-eeamt =  v_eeamt.
          it_p0169-begda =  v_begda.
          it_p0169-eepct =  v_eepct.
          it_p0169-bplan =  v_bplan .
          CLEAR wa_p0169.
          MOVE-CORRESPONDING it_p0169 TO wa_p0169.
          wa_p0169-INFTY = '0169'.    (not forget to pass infotype no in the header )
    CONSTANTS: c_action_ins  TYPE pspar-actio VALUE 'MOD',   (it can be also COP for Copy , DEL for Delete , DIS for Display , MOD to Change , LIS9 to  Delimit , INS to Create )
               c_infty_0169  TYPE prelp-infty VALUE '0169'.
    DATA: it_return  TYPE bapireturn1. (as it is )
    DATA: it_return  TYPE bapireturn1.
      CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE enqueue_FAILED.
      ENDIF.
      CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  = c_infty_0169
        number                 = p_wa_0169-pernr
        SUBTYPE                = '401K'
        OBJECTID               =
        LOCKINDICATOR          =
        validityend            = p_wa_0169-endda
        validitybegin          = v_begda1
        RECORDNUMBER           =
        record                 = p_wa_0169
        operation              = c_action_ins
        TCLAS                  = 'A'
        DIALOG_MODE            = '0'
        NOCOMMIT               =
        VIEW_IDENTIFIER        =
        SECONDARY_RECORD       =
      IMPORTING
        return                 = it_return.
       if it_return-MESSAGE is not initial .
         delete it_file .
       endif.
    commit work .
      CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
        EXPORTING
          number = p_pernr
        EXCEPTIONS
          OTHERS = 1.
      IF sy-subrc <> 0.
         RAISE DEQUEUE_FAILED.
      ENDIF.
    Enjoy
    Priyank

  • Infotype Creation - Writing logic in MPP program.

    Hello Guru's,
                         I dont know much about Module pool programming. I created a infotype with subtypes. And now I have to check various conditions and Validations ( Field level and Screen level). And list screen is also there.
    i.  Age, Service calculation.
    ii. Getting some wage types from infotype 0008 and adding it.
    iii. Field level validations like checking the entered amount r date in the screen, just after entering the value in the screen field.
    like different things. Please tell me in detail, incense which logic we have to write and where we have to write ( which program (MP999100, MP999110,20, 30) screen and which event like PBO, PAI) in detail please.
    Thanks in advance.

    To handle all the validations:
    In the PAI event.
    Chain.
    create a module for your validations and handle all ur validations in that module.
    endchain.
    Regards,
    Kiran

  • BADI's being used in MP000100 (module pool program for Infotype 1)

    Hi,
    In module pool program MP000100( for Infotype 1 i.e. HR related), what are the BADI's being used in PBO module of screen no- 2000 ?
    I need to add some codes, if there is no BADI then where i can add codes as i need to default organizational field according to position ID field ?
    Thanking you in anticipation.

    >
    Vaibhav Kumar wrote:
    > I need to add some codes, if there is no BADI then where i can add codes as i need to default organizational field according to position ID field ?
    > Thanking you in anticipation.
    Why do you need a BAdI for that? Your Business/Functional Analyst should be able to handle it using a feature via the Tcode PE03.
    BTW, HRPAD00INFTY is one that can be useful.
    ~Suresh

Maybe you are looking for