Using Infotype 2050

Hi All,
        I have a requirement to use infotype 2050 in a program. Now when I checked in the database there are no assosciated table. Some one suggested PA2050, but that table is not present. I could get only one structure named P2050.
I have also tried to use FM HR_READ_INFOTYPE but the same error comes.
Is there any config settings etc need to be done.
My requirement is the Employee Leave records - which is infotype 2050. Is there any other way in which I can fetch the relevant info for this.
Please reply ASAP.
Thanks
Baradakanta.

or u can use this function module which perfoms operationson infotype:
p0002-begda = p_date.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0002'
        NUMBER                 = pernr-pernr
  SUBTYPE                =
       OBJECTID               = p0002-objps
       LOCKINDICATOR          = p0002-sprps
       VALIDITYEND            = p0002-begda
       VALIDITYBEGIN          = p0002-endda
       RECORDNUMBER           = p0002-seqnr
        RECORD                 = p0002
        OPERATION              = 'INS'
       TCLAS                  = 'A'
       DIALOG_MODE            = '0'
  NOCOMMIT               =
  VIEW_IDENTIFIER        =
  SECONDARY_RECORD       =
     IMPORTING
       RETURN                 = return
  KEY                    =
try giving ur infotype numbet inthe infty argument and fill the required parameters in the func module.......
any help furhter ask, i ll try tosolve but cant guarantee as am also not wel versed inHR

Similar Messages

  • Reading infotype 2050 ( No database table )

    Hi to all experts,
    I have a requirement to display the details exactly as in infotype 2050. When you check 2050 how it is displayed the annual calender i need to display exactly as it is .I tried using LDB, Macro, FM but the database table for 2050 doesnt exist.The p2050 is there but there is no pa2050. There is no underlying database table for that infotype 2050 (annual calender display). 
    I check some related fm
    like  module      HR_PERSONAL_WORK_SCHEDULE
    any information regarding this will be greatly appreciated.
    THanks

    Actually this information is retrieved based on the data of Planned Working Time, Infotype (0007) and Absences, Attendances and Substitutions (2001, 2002, 2003), there's no specific Infotype DB Table.
    You were using the Correct FM to read the Employee's work schedule (Relevant data is retrieved in PERWS parameter)
        CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'               "XOQK064687
             EXPORTING                                          "XOQK064687
                  PERNR             = PSPAR-PERNR               "XOQK064687
                  BEGDA             = FIA_BEGDA                 "XOQK064687
                  ENDDA             = FIA_ENDDA                 "XOQK064687
                  SWITCH_ACTIV      = 1                         "XOQK064687
                  READ_CLUSTER      = READ_CLUSTER            "YMMAHRK037395
             TABLES                                             "XOQK064687
                  I0000             = M0000                     "XOQK064687
                  I0001             = M0001                     "XOQK064687
                  I0002             = M0002                     "XOQK064687
                  I0007             = M0007                     "XOQK064687
                  I2001             = M2001                     "XOQK064687
                  I2002             = M2002                     "XOQK064687
                  I2003             = M2003                     "XOQK064687
                  PERWS             = PSP2050                   "XOQK064687
             EXCEPTIONS                                         "XOQK064687
                  ERROR_OCCURED     = 1                         "XOQK064687
                  ABORT_OCCURED     = 2                         "XOQK064687
                  OTHERS            = 3.                        "XOQK064687
    If you need to do something similar you'll have to check the IT2050 code

  • Change Field desription in report using Infotype

    Hi,
    I create a HR Report, using infotype's. When we execute the report, it fields description comes in unknown format...means user can't understand that.
    Please let me know From where we can change the field description of any column.
    Plz. help...

    U are Welcome!!
    If u are using alv then manually fill the field catalog and give the field names as u desire as i have done in below code...
    * Column 1 in ALV
      ls_fcat-no_out = '' .
      ls_fcat-col_pos = 1.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 1'.
      Is_fcat-outputlen = '10'.
      ls_fcat-edit(1) = ''.
      ls_fcat-no_sum = 'X'.              "Only Output, if input then 'X'
      ls_fcat-key = 'X'.
      append ls_fcat to fieldcat.
    * Column 2 in ALV
      clear : ls_fcat.
      ls_fcat-col_pos = 2.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 2'.
      ls_fcat-edit(1) = ''.
      ls_fcat-do_sum = 'X'.
      ls_fcat-key = ''.
      append ls_fcat to fieldcat.
    * Column 3 in ALV
    clear : ls_fcat.
    ls_fcat-col_pos = 3.
      ls_fcat-tabname = 'oitab'.
      ls_fcat-fieldname = 'Field 3'.
      ls_fcat-edit(1) = ''.
      ls_fcat-do_sum = 'X'.
      append ls_fcat to fieldcat.

  • Cost assignement using infotype 2003

    Hello,
    How can I change cost assignement using Infotype 2003.
    I have created the infotype 2003 with the ney cost center, and table  C1 is generated in the time evaluation, but in payroll the cost center is still the master cost center of IT0001.
    How can I change the cost center using infotype 2003 and transfered to the payroll?
    thx.
    Enrique

    Thanks Santhosh for the answer.
    So I can understand that the cost center will not be changed from IT2003 for the payroll, it only be changed if change in IT0001 or IT0027. true?
    Why IT2003 have the option to change cost assignment?
    I was doing some tests and could see that if a time wage type (for example an attendance) is generated in the same period of the IT2003 these wage type is transfered to the payroll with the new cost assignment . Is it the standard behavoir of the IT2003?
    The only way to change the cost assignment for all the payroll (instead of IT0001) for a period is using IT0001 or IT0027?
    thanks,
    Enrique

  • ABAP program using infotypes and FM

    Hi all,
    I have to work on  abap -HR module,  which is using infotypes, BDC, FM, internal tables.. As  I am new in this  and no more idea. So can you please share some document  and some  simple program, so that I can understand the HR modules with respective to ABAP and can work.
    Your help  will be appreciated.
    Thanks

    hi ram,
    check these links...
    http://www.sap-basis-abap.com/saphr.htm
    http://www.sap-basis-abap.com/books.htm
    http://www.sapbrain.com/TUTORIALS/FUNCTIONAL/HR_tutorial.html
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://planetsap.com/index.htm
    http://www.atomhr.com/library_full.htm
    http://www.sap-basis-abap.com/saphr.htm
    http://help.sap.com/saphelp_erp2005/helpdata/en/60/d8d8c7576311d189270000e8322f96/frameset.htm
    http://www.sapfriends.com/sapstuff.html
    http://www.sap-basis-abap.com/saphr.htm
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/4f/d5275f575e11d189270000e8322f96/content.htm
    http://www.saptips.com/Previews/SAPtipsAugust-September2004TableOfContents.pdf
    http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci1030179,00.html?track=NL-142&ad=500911#Transactions
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d528be575e11d189270000e8322f96/frameset.htm.
    http://www.sap-basis-abap.com/saphr.htm.
    http://www.sapgenie.com/faq/hr.htm
    http://www.sapgenie.com/workflow/scenarios.htm
    http://www.sap-img.com/human/hr-faq.htm
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    http://www.sapgenie.com/mysap/mysap_hr.htm
    Re: remunaration statement

  • Limitation using infotype 0302

    hi experts,
    I have one question. I want to change current report instead of using infotype 0000 to use infotype 0302. This is because infotype 0000 not store 2 action in same days. my question is, if I change to infotype 0302, what impact wil happened. Is it same infotype except it allow  multiple action in same days or there is limitation in infotype 0302
    Thanks in advance

    Hi MJ,
    I believe you have a custom report which right now fetches from PA 0000 and now you want to fetch from PA 0302.
    The basic differences is as told by other experts in their comments but I would like to highlight some specific points.
    1. IT 0302 will only have action type and action reason for a key date i.e. start date of action
    2. It doesn't have employment status fields.
    So, in case your reports needs data related to various statuses then you will have to read both IT 0000 and IT 0302 in the date range.
    cheers
    Ajay

  • When to use Infotype 0014 & 0015? what is the differences between them?

    When to use Infotype 0014 & 0015? what is the differences between them?

    Hello
    Infotype 14 is used for recuring payment and deductions
    The wagetype to be used for IT0014 is maintained in VV_52D7_B_0014_AL0 ,against the country grouping.
    IT0014 is always entered with a start date and end date along with the wagetype and amount /unit relevent for payment/deduction
    Say you want to make a special allowance payment to some employee for a period of 6 months only.
    So in IT0014,you will enter the wagetype that is maintained for special allowance  with a start date of say 01.10.2011 to 31.03.2012 with amont as Rs.1000.
    So when you run payroll for the period october 2011 until march 2012,this amount of Rs.1000 will be paid to the employee
    Infotype 15 is used for one time payment or deductions.
    The wagetype to be used for IT0015 is maintained in VV_52D7_B_0015_AL0,against the country grouping
    IT0015 is always entered with an effective date along with the wagetype and amount/unit relevent for payment deduction.
    You want to make performance award pay to employees in the month of march 2012.
    You will enter the amount in IT0015 with the effective date as 31.03.2012 for the wagetype as maintained for performance award ,amount say rs.50000.This amount will be caluclated and paid to the employee as a one time payment in march 2012 payroll
    Thanks and Kind Regards
    Ramana

  • Sending alerts or mails to SBWP using infotype 0019

    Sending alerts or mails to SBWP using infotype 0019

    These threads might be useful.
    [Reminder Message;
    [Re: How to configur Infotype 0019 (monitoring of task);

  • Why use infotypes instead of tables in ABAP HR?

    Dear forumers,
    I'm a newbie in SAP ABAP and I'm currently learning HR ABAP.
    One newbie question here: Why are infotypes used in HR ABAP, instead of the normal tables that we regularly use in SAP?
    Please help me out with my question here and my apologies if the question is way too simple. :P
    THANKS!

    Hi,
    Welcome to SDN.
    Info type is information type where the data stored of a particular person/employee is stored in information. suppose if you want to store the personnel data and address, family details, education and previous employee of you only these are all the information stores in the info types you can see this info types in pa30 transaction you will customize this information in img-pm-pa-customizing procedures-info types-create info types.
    Two special reasons - Security and History.
    Security - Some of the HR data can be seen and changed by the employee - address, tax information, etc - and some cannot - pay, evaluations, etc. Thus, employee information has to be separated out into various groupings that can have individual security settings applied for who can see what data and who can change that data.
    History - HR data is time specific. You have a certain pay rate, but as of the first of next month you get a pay raise. Or you move to a new address as of July 1st. The data about your pay must be retained so Payroll knows what to pay you today and then must know what to pay you next month. And that history must be maintained for reporting - What was Your's pay rate since hire date? So each info type, or group of information, has a specific start date and end date during which it is valid.
    Hope this would help you.
    Good luck
    Narin

  • Using infotypes in RFC

    Hi, i need to create a rfc to get data from the infotypes 0001, 0050 and 9005, how do i use the PNP in the RFC? or i'll have to use some FM's to get the data from the infotypes??
    Sergio.

    Hello Sergio,
    Create your own RFC FM on tcode SE37, and iside use a FM for readin Infotypes.
    Use this FM ...
    RP_01C_HR_READ_INFOTYPE
    Hope this helps
    Gabriel P.

  • Why we are using infotypes in HR?

    Hr data is processed only with infotypes only. why don't process hr data with internal tables????????

    > They acquired
    > a HR solutions Company & integrated it into SAP..that
    > is the story of the INfotypes concept in SAP -HR.
    Sorry Suresh, that's simply nonsense.
    HR was already part of R/2 and under the development of SAPs Founder Klaus Tschira (some of his code might still be out there in the system).
    INFOTYPES is a simple and elegant way to get rid of the burden to do the follwoing thigs correct:
    1. Authority check
    2. Time logic
    That's why there is a Logical Database that does just this for you. These two things take several thousand lines to get it correct. Using the LDB reduces the effort for each developer dramatically. And this is the real reason.
    Regards,
    Michael

  • Average Headcount for Cost Center using Infotype 0027

    Hi everybody,
    has any of you experience  calculating an average headcount for cost center using the information of infotype 0027.
    As far as I know the infosources por PA-PA does take into account the infotype 0027 and the employee is just count for the master cost center.
    I can not find the way to split the employee in different cost centers.
    Any help will be very useful.
    Thanks a lot.
    Cristóbal.

    Remi,,, hi many thanks!! It worked out well!!!
    Many thanks as always,,,,

  • Problem in  Creating a view using infotypes PA0001,PA0002,...

    Hi,
    Can anybody please help me how to create a Maintainence view using PA0001,PA0002,PA0003,PA0006,PA0032.
    I tried to create it using se54.
    when i use PA0003 as check table, i am not able to create relations with PA0001,PA0002,PA0032,PA0006.
    Thanks in Advance.
    Vinay.BR

    You can create a view using SE11 as mentioned in the previous answer. Once you created, you can use SE16 to display the content of the view table. However, this does not serve much because you can also see the original table using SE16. Unless you want to generate screen dialog so that the view table can be used in SM30. This method can be done while editing the table in SE11. Click on Utilities->Table maintenance generator. However, this will be considered as a repair (modification to SAP standard) and you need repair key.

  • Use of "infotypes" statement

    Hi,
    What is the use of infotypes statement.
    I saw a code block in sdn. here they have used a infotype statement as below.
    infotypes: 0041.
    tables: pernr.
    data: record type standard table of p0041,
    lfs_rec like line of record.
    parameters: p_pernr type persno.
    start-of-selection.
    call function 'HRAR_READ_INFOTYPE'
    exporting
    personnel_number = p_pernr
    infotype = '0041'
    IMPORTING
    RC = RC
    tables
    infotype_table = record
    exceptions
    exception_infotype = 1.
    loop at record into lfs_rec.
    write:/10 lfs_rec-pernr,
    30 lfs_rec-begda,
    42 lfs_rec-endda,
    54 lfs_rec-dar01,
    60 lfs_rec-dat01.
    endloop.
    In the above code they have used
    infotypes: 0041.
    But 0041 is not used anywhere in the program.
    I have read that infotypes statement is used to create a internal table. But here i have no clue they have craeted internal table separately.
    Please help
    Thanks in advance,
    Bala.

    hi Bala,
    You are right,  infotypes statement is used to create a internal table. Infotype can be used as reference to the standard table. eg if we consider the case of standard table PA0001, then is infotype is 0001.
    in case of this code:
    call function 'HRAR_READ_INFOTYPE'
    exporting
    personnel_number = p_pernr
    infotype = '0041'
    IMPORTING
    RC = RC
    tables
    infotype_table = record
    exceptions
    exception_infotype = 1.
    we are passing infotype as '0041', so it will read from standard table PA0041 and it will fetch data from that table according to p_pernr and the data will be fetched into the internal table 'record'. That is why infotypes are used.
    I hope this explaination is sufficient.
    regards
    arjun.

  • ABAP HR infotype use and retrival

    Hi,
    I am new to abap hr.In hr module we are using provide statement for retriving data.
    My doubt is
    1. why we are using provide instead of select?
    2. Why we are using structure instead of direct tr table?
    3. Why we are using infotype in hr and what is the use?
    4. why we are retriving data using infotype in report instead of using tr.table using select?
    5. What we have to specify if i want to retrive data from infotype?
    6. We have to declare table/structure/infotype for retriving data?
    7. And why we are specifying mode in declaration what is it mean?
    if anybody knows tell me/send me the materials please.
    Thanks,
    Regards,
    Nandha..

    Hi Nandha,
    The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.
    To be able to process internal tables using PROVIDE, all tables itab1 itab2 ... must be fully typed index tables and contain two special columns that have the same data type (d, i, n, or t) for all relevant tables. For every table you must specify the names intliml1 intliml2 ... and intlimu1 intlimu2 ... of these columns using the addition BOUNDS.
    Eg:
    PROVIDE FIELDS {*|{comp1 comp2 ...}}
                   FROM itab1 INTO wa1 VALID flag1
                   BOUNDS intliml1 AND intlimu1
                   [WHERE log_exp1]
            FIELDS {*|{comp1 comp2 ...}}
                   FROM itab2 INTO wa2 VALID flag2
                   BOUNDS intliml2 AND intlimu2
                   [WHERE log_exp2]
            BETWEEN extliml AND extlimu
            [INCLUDING GAPS].
    ENDPROVIDE.

Maybe you are looking for