Reading infotype 0041 in PCR

I need to read the date of joining in PCRs. i am maintaining date specification infotype 41. how to get this date from IT 41 in PCR. What operation i need to use.. Or is there any operation which can directly give hiring date of person without maintaining 41 infotype.
pls tell its urgent.
Thanks in Advance.

I sent you this information, words in bold I think would help you
Evaluating Date Specifications in Payroll
   Object
     Operations NUM, AMT and RTE evaluate date specifications for the
     calculation of deadlines. Retrieval takes place using the function
     DATES.
     Two dates are determined. These are interpreted as the start and end
     dates of a period. The evaluation of deadlines can return incorrect
     results if the second date lies before the first date. Therefore, for
     deadline calculation purposes, the first date should always be smaller
     than the second date.
     Date types with the following short names can be used for the
     evaluation. All date types other than 'X' are only taken into account if
     they are before the end of the current payroll period.
     In the operations NUM, RTE und AMT, specification of the date type
     follows the operand F directly.
     A, B  First entry from infotype 0000
     C    Last entry, or reentry
     D  Last change of individual working time from infotype 0041
         In table T530, if the field KUNBZ (indicator for irregular payments)
         is 05, then the start date of the work center is taken for D.
     E    Last change of capacity utilization level from infotype 0008
     F    Last change of weekly working hours from infotype 0007
         A comparison is carried out with date type C for the date types D, E
         and F. If the value determined for C is greater than the values
         determined for D, E or F (that is, a later date), the value of C is
         used for D, E or F. Any changes in the capacity utilization level or
         the like before the last reentry are not evaluated. The date of the
         last reentry is taken instead of this date.
     G    Birth date from infotype 0002
     W    Reentry
         The last reentry date is entered in this date specification. If no
         reentry data exists, the initial entry date is used. This date has
         the short name 'A' in the evaluation.
     X     Employee leaves after the end of the period in accordance
     with infotype 0000
         The system checks whether there is a record for infotype 0000
         (Actions) has a record where the Stat2 field has the value 0 (=
         left). The start date (BEGDA) of this record is the leaving date.
         This date type always has an entry. If an employee leaves after the
         end of the period in question, this date will be used. If no leaving
         date exists, the date December 12, 9999 is used.
     Z     Leaving before the end of the period in accordance with infotype
     0000
         The system checks whether there is a record for 0000 (Actions) where
         the Stat2 field has the value 0 (= left). The start date (BEGDA) of
         this record is the leaving date.
         This date type always has an entry. If an employee leaves before the
         period in question, this date is used. If no date is given, the date
         December 31, 9999 is used.
     nn    Date type 'nn' from the Date Specifications infotype (0041)
         Date types are taken from table T548Y.
   Syntax
     The operands are constructed as follows:
         Operation NUM= is taken as an example: Processing is identical for
         RTE and AMT:
      NUM=Faaesb
          F          Fixed indicator for deadline calculation
           aa           Date type: Start date of period to be
                        calculated; if the date type is not 'nn,'
                        the second position is left blank.
             e          Unit, in which the duration is calculated:
                        T = days
                        W = week
                        M = months
                        C = complete months
                        K = complete calendar months
                        N = complete calendar months (rounded up)
                        J = Years
                        Y = Complete years
                       The difference between the individual
                       units is explained in
     Calculation Examples
                       in more detail.
              s         End date of period to be calculated:
                        (blank)  End of current payroll period
                        J        End of current calendar year
                        A        Start of current calendar year
                        B        Start of WPBP period
                       No other specifications are possible.
               b        If the date type specified in parameter aa
                        does not exist for the person in question,
                        an alternative fixed identification is
                        selected. If 'SPACE' is entered, the
                        date 31.12.9999 is used. However, you can use
                       one of the date types listed above as
                       an alternative or enter 0
                       0 to set the alternative value to 0.
   Example
     NUM=FA_M_
           F         Identifier for deadline calculation
           A             Date type A, initial entry from infotype 0000
            _            Blank; placeholder for 2-character
                         date type from infotype 0041
             M           Deadline calculation is in months
              _          Blank; key date for deadline calculation
                         End of payroll period
               _         Blank; If no specification exists for date
                         type A, the date 31.12.9999 is used as an
                         alternative.
     NUM=F01M_A
         F                Identifier for calculation deadline
          01              Date type for technical entry date from
                          infotype 0041
            M             Deadline calculation in months
             _            blank, key date for calculating the
     deadline
                          End of payroll period
              A           Alternative date: if no specification exists
                          for date type 01, the first entry from
                          infotype 0000 is used.
     Under Calculation Examples for Evaluating Date Specifications you can
     find more information and case studies regarding how to calculate the
     period between a start and end date for the operations NUM, RTE and AMT.
Regards. Manuel Campos

Similar Messages

  • HR-ABAP-regarding infotype 0041-dates specifications

    Hi All,
                   Can any body help in this problem that.
    I am retrieving one particular date from infotype 0041 by passing the date type U9.
    I want to know from which dardt(date type field in PA0041) i.e., dar01 or dar02 or dar03- - - - dar12, the date is coming .
    Pls let me know urgently this.
    Andvance thanks for all of your efforts.
    Thanks&Regards,
    Jeevakala.

    Hello,
    The option i have implememted for a similar scenario is as follows
    data: v_darxx like p0041-dar01,
             v_datxx like p0041-dat01.
    select single * from pa0041 into int_pa0041 after passing key fields
    do 12 times
    varying v_darxx from i_it41-dar01 next i_it41-dar02
    varying v_datxx from i_it41-dat01 next i_it41-dat02.
    if v_darxx = 'U9' and v_datxx gt v_dat.
    "You have your required date
    endif.
    enddo
    the same has been discussed in the following link,
    Reading dates from infotype 41
    Hope the suggestions gave you some idea
    Reward if helpful
    Regards
    Byju

  • How to know if a date was modified in the infotype 0041

    Hi everyone,
    I have to validate if there was a modification in a date in the infotype 0041. The problem is when you change the value, I can't see in the table the way to know if it was modified.
    Thanks in advance!

    AEDTM (Last changed date) will change if any if any field of the Infotype changes.
    If you need to check it fieldwise then you can go for RPUAUD00 report which read data from PCL4 cluster.
    to get the data out of Below tables RPUAUD00 has to be configured
    1. V_T585A
    2.V_T585B.
    3.V_T585C
    Some [additional|http://www.hrexpertonline.com/article.cfm?id=1825] info.
    Regards
    Shital

  • Maintain Text in Infotype 0041 via LSMW

    Hi,
    Has anyone had success loading text into Infotype 0041 via lsmw?
    I am trying to create an lsmw to maintain text in infotpye 0041. I follow the route PA30, then when in IT0041 I go to edit and maintain text.
    The problem is that I get a syntax error because the field I am trying to update is RSTXP-TDLINE which is a length 0 and format type string. LSMW won't accept string fields so in the generated program for the lsmw the line reads: "tdline_01(000000) type c,". This obviously doesn't pass the syntax check.  
    Any help greatly appreciated.
    Regards,
    Warren.

    Hi
    I just tried to create a LSMW in my DEV environment. I didnt get any error when recording. I entered the text in IT41 without any issue. What I am getting in the source code is:
    RSTXP-TDLINE(01)               Abcde                TDLINE_01            ABAP Source Line
    Am I missing what you are seeing?
    Cheers
    Pramod

  • Updating infotype 0041 using HR_INFOTYPE_OPERATION?

    Hi All:
    How do we update the dates in infotype 0041 using HR_INFOTYPE_OPERATION? lets say we have 6 dates populated in 41  and we another employee has 9 dates populated. We are reading these records and need to update the dates for all the employee records.
    Thanks
    Venkata

    Hi Venkata,
    What you can do is use the HR_INFOTYPE_OPERATION in Change or MOD(Modify) mode i.e.
    pass 'MOD' in operation parameter.
    Your recordnumber parameter should have the sequence number from infotype record you are updating (field SEQNR). All other parameters should be as it is had been for INS or insert operation.
    Regards.

  • Issue with Dynamic Actions - Infotype 0041 Updation

    Hi All,
    Requirement :
    I have to update the Date type-13 ( Resignation Date - DAR11 ) without Date ( DAT11 as Blank value - User will fill through Infogroup ) while performing the Termination action through PA40.
    Added below code in V_T588z (0000):
    I have added 186,188 Lines.Other lines are standard thing.
                  04     180     P     PSPAR-MASSN='10'/X  **Termination
                  04     181     P     PSPAR-MASSN='ZB'/X **Termination
                  04     182     P     PSPAR-MASSN='14'/X  **Termination
                  04     185     I     COP,41,,,(PSPAR-BEGDA),(PSPAR-ENDDA)/D
                  04     186     W     P0041-DAR11='13' **BEGIN & END OF CRA01670 CODE ***
                  04     188     W     P0041-DAR11='' **BEGIN & END OF CRA01670 CODE ***
    Issue :
    1. The above logic is not working for Finland ,other countries. For only India it is working.
    2. Some times Date type-13 is coming twice while through the Infogroup-0041 screen twice,which is incorrect. The infotype-0041 should call only once.I have checked the User parameters,MOLGA,USR. But it is not working.
    2. The standard configuration Date type -09-Last day of work - is working fine . But i could not be able to find ,from where it is coming.I have checked the Dynamic actions,but no use.
    Need your inputs to solve the issue.
    Thanks,
    N.L.Narayana

    P     P0000-MASSN='01'    Action type
    P                   P0000-MASSG="01"   Action Reaosn
    P     T001P-MOLGA='40'
    F                   here u will keep the Call Routine
    I     INS,2001,,,(P0000-BEGDA),(P0000-ENDDA)/D  (here u have pass the date of Call routine )
    W     P2001-IAWRT='01'
    But here Infotype 2001 we will give Absence type this IT is used for Booking Absence Types i did not get the Wage type 8001
    thru which IT are u processing it
    for more info Checjk Tabvke V_T588Z  here iam pasteing the sample call routine which i got from earlier thread
    Create a Program (Subroutine) using SE38. Save and activate it.
    ZZSY_DYA_TEST2
    REPORT ZZSY_DYA_TEST2.
    tables : p0000,p0001,rp50d.
    FORM getdate.
    rp50d-date1 = p0000-begda + 90.
    ENDFORM.
    FORM get_date.
    rp50d-date2 = p0000-begda + 180.
    ENDFORM.

  • Relieving date from infotype 0041.

    Hi Friends,
                    I have to retrive date for a relieving letter(smartform), from IT 0041. But there exists more dates like for hiring
                   and so on.... But we don't know where reliving date will come(order). For that when I am retrieving date             from       0041-DAT01 . How can we know that where it is (relieving date).  If different employee have different reliving dates in different order. Can u please suggest me from where I have to retrieve and how?
                             Thanks in advance.
    shafi.

    Hi ,
    In Infotype 0041, the date can be stored in any order. So u should use a DO statement to get the appropriate date type(DARXX) and the corresponding date(DATXX).
    DO 12 TIMES VARYING datetype FROM p0041-dar01 NEXT p0041-dar02
                VARYING date FROM p0041-dat01 NEXT p0041-dat02.
       CASE datetype.
           WHEN '  '.
       ENDCASE.
    ENDDO.
    Ranganathan.

  • DAte not available in infotype 0041(date specification)

    Hai All,
    In our place we are using 4 type of "date type"
    Z1 Hired date.
    Z2 Seperation Date
    Z3 Leave quota start
    Z4 Service entry date
    for all employees date specification maintain by dynamic action.
    for some employees date specification is not maintain by the system.they are having only Z1 Hiring date only. others not available.
    how can i rectify this problem?
    Kind regards.
    Dinesh.

    Hi
    You have to check your Dynamic action.
    While querying dynamic ation how did you quaried, on which grouping you quried ?
    The employee who dont get the details are members in that group are not?
    if you give it in feature you must have all 4 dates to all the employees, otherwise you will be in trobuble
    becuase SAP wont allow you fill the type only without date in infotype 0041
    Regards
    Adi

  • RP-READ-INFOTYPE

    Hi ,
      i need to delete all the records  with subty X1 for infotype  p0019 . I should n't use the logical database instead i am using  macro RP-READ-INFOTYPE to retrieve the valid data  but  here in case of P0019 the begda and endda of a record will be same and i need to delete the records even if they are in past . But the macro RP-READ-INFOTYPE  is not going to work in this case as it checks against dates and the records are in past so it will not retrieve any data . So any thoughts on how to get the data for P0019  with subty X1 without using the logical database PNP. 
    Thanks,
    Latha.

    Use HR_READ_INFOTYPE FM to retreive the desired result.........
    Pass begda 01/01/1800 endda = '12/31/9999' and subtype you want.......
    Not your infotype table will fill with all the data now you manipulate as you desired
    Let me know if you need any further help!!!
    Sas

  • HR Programming for Infotype  0041.

    Hello,
    The data come from infotype 0041.
    The Date is stored in the field DATxx when DARxx is equal to ‘05’. [xx can have the values from 01 to 12].
    Can anyone suggest that how to to the retrieval for this.
    Best Regards,
    Pramod Upadhyay

    Hi
    Retrive the data from this infotype similar to 008 infotype data in which similar type of fields are there
    see the sample code
    Report Zabc.
    tables:pernr.
    infotypes:0008.
    data: begin of wagetypes,
            lga like pa0008-lga01,
            bet like pa0008-bet01,
            anz like pa0008-anz01,
          end of wagetypes.
    get pernr.
    rp_provide_from_last p0008 space pn-begda pn-endda.
    do 20 times varying wagetypes
      from p0008-lga01 next p0008-lga02.
    if not wagetypes-lga is initial.
       write:/ wagetypes-lga, wagetypes-bet, wagetypes-anz.
    endif.
    enddo.
    Regards
    Anji

  • Read infotype using HR_READ_INFOTYPE

    Hi all,
    I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
    Im using Web Dynpro ABAP Interactive form.
    I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
    Data's are Inserting.
    The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
    in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
    I used BAPI_TRANSACTION_COMMIT also but i no success.
    Please Give some solution for this problem, its very urgent.
    Thanks & Regards,
    Hemachandran.R
    Edited by: hemachandran R on Oct 22, 2008 8:54 AM
    Edited by: hemachandran R on Oct 22, 2008 8:54 AM

    Hi hemachandran R ,
    When all your conditions are satisfied, You can get the updated values from the contexts which you are using to update in the contexts by which you are displaying it on the screen.
    You need not to fetch the data from the back end.
    Regards,
    Rohit

  • Reading Infotype using HR_READ_INFOTYPE

    Hi all,
    I Try to read infotype (pa0021) using HR_READ_INFOTYPE. Its getting fine.
    Im using Web Dynpro ABAP Interactive form.
    I want to insert some value in infotype pa0021, so i used HR_INFOTYPE_OPERATION.
    Data's are Inserting.
    The problem is if i press the Save button, Inserting values are not getting, when i use HR_READ_INFOTYPE in the same session. The new values are updated in the Backend but its not getting
    in the same session. because if i press the save button means, i want to save the data and again i want to show the saved data back .But if i close the session and open once again means its reflection the new values.
    I used BAPI_TRANSACTION_COMMIT also but i no success.
    Please Give some solution for this problem, its very urgent.
    Thanks & Regards,
    Hemachandran.R
    Edited by: hemachandran R on Oct 22, 2008 9:02 AM

    Hi Hema,
    Make a new context attribute 'ca_temp'
    and then
    set single attribute
            lo_el_context->set_attribute(
              EXPORTING
                name =  `CA_TEMP`
                value = <new_value> ).
    And use this CA_TEMP where ever you want. for more than one value make node in place of attribute.
    Hope it works.
    Regards,
    Rohit

  • Infotype 0041 - Issue regarding entry date, leave date and retire date

    Hi experts out there,
    I'm trying to achieve information concerning:
    1. Entry date
    2. Leave date (employee has resigned or will resign) -> Last day of work
    3. Retire date
    4. Last day of pay
    Can I get this information from infotype 0041?
    Another problem I have is if I do a <i>Pre-Hire Action</i> (Tcode: <b>PA40</b>) and enter a future date for a new hired employee then I cannot find the corresponding record in PA0041. Do I do something wrong?
    Any advise would be very appreciated.
    Many thanks in advance.
    /hw

    Hadi,
       You can get that information from Infotype 0041, but it depends if the user that executed the action entered the <b>date type</b> and corresponding <b>date</b> when reached infotype 0041, if he/she didnt so, it just wont be there. It is not entered automatically.
    "<i>It's actually not the answer of my questions because I've been wondering why I cannot find the corresponding record of a Pre-Hire Action (TCODE: PA40) in PA0041 (regardless of if I use SE16 or function modules)"</i>
    You will find the records of the actions that were excuted for the employee in infotype 0000 (table PA0000). Infotype 0041 is used to store special dates for the employees (such as date of hiring, next promotion and the like), but it is up to the user if they are stored or not.
    Hope that helps

  • Infotype 0041  - Date type field in display mode always

    Hi All,
    Please help in find out solution for the below enhancement
    In infotype 0041 we have date type and date field. We need to make the date type field to be display mode always.
    Thanks for your help in advance.
    Thanks,
    Karthikeyan

    Hi Karthikeyan ,
    Please find the resolution as below :
    Userexit - EXIT_SAPFP50M_001 . In Include ZXPADU01. Write the below code .
    DATA: w_P0041 TYPE P0041.
    IF  ipsyst-massn <> space AND
      ( ipsyst-ioper = 'INS'  OR
        ipsyst-ioper = 'INSS' OR
        ipsyst-ioper = 'COP'  OR
        ipsyst-ioper = 'MOD').
    CASE innnn-infty.
    WHEN '0041'.
    *convert prelp to pnnnn structure
    CALL METHOD CL_HR_PNNNN_TYPE_CAST=>PRELP_TO_PNNNN
    EXPORTING
    PRELP = INNNN
    IMPORTING
    PNNNN = w_P0041 .
    *Here you can have more conditions like for which Action Types you want the
    IT0041 to default .
    w_P0041-dar01 = 'Z1'.
    w_P0041-dar02 = 'Z2'.
    w_P0041-dar03 = 'Z3'.
    *convert pnnnn to prelp structure
    CALL METHOD CL_HR_PNNNN_TYPE_CAST=>pnnnn_to_prelp
    EXPORTING
    PNNNN = w_P0041
    IMPORTING
    PRELP = INNNN.
    *Display mode
    LOOP AT SCREEN.
              IF screen-name = 'P0041-DAR01' OR
                 screen-name = 'P0041-DAR02'  OR
                 screen-name = 'P0041-DAR03'  .
                CLEAR screen-group2.
                screen-input = 0.
                MODIFY SCREEN.
              ENDIF.
            ENDLOOP.
    WHEN OTHERS.
      ENDCASE.
    ENDIF.
    Thanks ,
    Sucharita Das

  • How to create a day type in Infotype 0041 (Want to maintain EE Retirement date)

    Dear Consultants,
    Can any buddy tell how to create a day type (Retirement date) in Infotype 41,
    My client want to maintain employees retirement date in Infotype 0041, please share your Ideas.
    Thanks & Regards,
    Navesh

    Hi Sridevi,
    Thanks for quick reply.
    Regards,
    Navesh

Maybe you are looking for

  • How do I view a PDF?

    I have an applet that serializes a transport bean to a servlet on tomcat, the servlet makes a PDF that I want to display on the browser. I had thought that if I simply set the MIME type and return the binary data, the browser would know what to do. B

  • Can not open a drive in PC.

    when I connect my phone to PC, it is detected by iTunes. But I am unable to open as a drive in my PC to copy the photos from iPhone to PC. I have checked the drivers in my PC. There is no drive available for iPhone. iPho

  • Custom contact ringtone not working correctly

    Hi all! I have an iPhone 4 through Sprint. Yesterday I purchased a ringtone through iTunes on the phone, and assigned it to 1 contact. It shows as being assigned to that contact, however, when I get a call from that person, the default ringtone plays

  • ODI agent creation issue

    Hi, I am trying to create ODI agent in Windows. I have followed the steps in ODI set up document. It has launched the server. Now I am trying to create that as a windows service. But I am getting following error message. I ran the followiing the comm

  • Unwanted extra spaces during Copy/Paste in documment recognized by Acrobat OCR

    I have Acrobat 9 (EN) I created documment from images (JPG) then I applied OCR idexing in right language (Czech). Now, if I Copy/Paste text than it add unwanted spaces (e.g. in the middle of words. I tried to find answer. http://www.google.com/search