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.

Similar Messages

  • Download data from infotypes

    Hi,
    My client wants me to download all the data in infotypes(std and custom) from production client. Then they will migrate this data to their new system. What would be the approach for downloading?
    1. Through SE16N (we are not authorized to use SE11/SE16)? But couldnt save the data to local file when we use se16n.
        even i get se11 authorization -> we can download only 64,000 records in excel. Do i need to split? or any other way?
    2. Write custom progms to download data from infotypes.
    3. Any data migration tools ?
    4. Basis can do client copy?
    Thanks!

    Hi,
    U can write a report to donwload data, but my preferde way is to use the hr toolbox (Transaction PU12), it's very simple to use .
    Here is a link to know how ti use it :
    http://shafiq.us/sap/index.php?option=com_content&view=article&id=47:hr-interface-toolbox-pu12&catid=36:pu12tutorial&Itemid=14
    i Hope it helps u.

  • Fetching data from infotype

    Hi Experts,
    I have to fetch all data from infotype 0581,can you suggest me how to do this
    in sap abap-hr.
    I am not using LDB in my report.
    Thanks&Regards
    Priyaranjan

    You can use Function module "HR_READ_INFOTYPE"

  • Reading dates from infotype 41

    I need to obtaint a subtype of date from infotype 41 but the problem is that infotype 41 has many fields like
    dar01 - dat01, dar02 - dat02, darN - datN the subtype that I need is the '01' but I don't know how to get it becuase sometimes is in the dar01, or in the dar02, or darN, is there any function module that can help me?
    Thanx in advance

    Hi ,
    This exactly what you are trying to do
    *--Decleare internal table
    TYPES : BEGIN OF ty_pa0041,
               pernr TYPE pa0041-pernr,
               dar01 TYPE pa0041-dar01,
               dat01 TYPE pa0041-dat01,
               dar02 TYPE pa0041-dar02,
               dat02 TYPE pa0041-dat02,
               dar03 TYPE pa0041-dar03,
               dat03 TYPE pa0041-dat03,
               dar04 TYPE pa0041-dar04,
               dat04 TYPE pa0041-dat04,
              END OF ty_pa0041.
    DATA : lt_pa0041 TYPE STANDARD TABLE OF ty_pa0041,
                ls_pa0041 TYPE ty_pa0041.
    *--Read Secondment end date ( For my case it's RG)
    SELECT pernr
            dar01 dat01 dar02 dat02 dar03 dat03 dar04 dat04
       INTO TABLE lt_pa0041
       FROM pa0041
       WHERE pernr = gs_final-pernr AND
                    endda = '99991231'.
    *--Find out corrosponding date according to 'RG'
    LOOP AT lt_pa0041 INTO ls_pa0041.
       IF ls_pa0041-dar01 = 'RG'.
         lv_date1 = ls_pa0041-dat01.
       ELSEIF ls_pa0041-dar02 = 'RG'.
         lv_date1 = ls_pa0041-dat02.
       ELSEIF ls_pa0041-dar03 = 'RG'.
         lv_date1 = ls_pa0041-dat03.
       ELSEIF ls_pa0041-dar04 = 'RG'.
         lv_date1 = ls_pa0041-dat04.
        ENDIF.
    ENDLOOP.
    I hope it fits your requirement

  • Picking up data from infotype 0025

    hi all,
    I want to read some data from infotype in my abap program. In infotype 0025, in the tab 'Appraisals where Appraisee' ,  when I click on the first link, say 'Supervisor appraisal', I get a screen where there is a table . I want to select the value of 'HAP_S_DYNP_3100_TB-COL_01_VALUE_TXT', but HAP_S_DYNP_3100_TB is a structure and COL_01_VALUE_TXT' is a field of a table control, so how to pick up this kind of data in my program???? Please suggest some sample code for that.
    Thanks
    Ribhu

    hi all,
    I want to read some data from infotype in my abap program. In infotype 0025, in the tab 'Appraisals where Appraisee' ,  when I click on the first link, say 'Supervisor appraisal', I get a screen where there is a table . I want to select the value of 'HAP_S_DYNP_3100_TB-COL_01_VALUE_TXT', but HAP_S_DYNP_3100_TB is a structure and COL_01_VALUE_TXT' is a field of a table control, so how to pick up this kind of data in my program???? Please suggest some sample code for that.
    Thanks
    Ribhu

  • How to retrive data from infotype 0008 &0021 and dispaly as alv output

    hi all,
    i have to read data from infotype 0008 and infotype 0021 and display as alv grid..
    can any one help me..
    <removed by moderator>
    regards,
    viswanath
    Moderator message: please search for information and try yourself before posting here.
    Edited by: Thomas Zloch on Jan 12, 2012

    Hello Sourabh,
    If I am not wrong, there are two parts two your query...
    a) Data or Content Retrieval
    b) Displaying Retrieved content
    Here is my feedback
    a) The Content can be Retrieved using the FM ARCHIV_GET_TABLE.
    Pass the Archive Object, SAP Object and the SAP Object ID and based on the Connection table entries (TOA*), the underlying Content Repository (T-code OAC0) is determined and a request for synchronous retrieval is made to the Content Server.
    b) Display of Retrieved content is normally done through dedicated viewers (Ex: Livelink Viewer) or front-end applications (Excel, Word) based on the Protocol (OAA3/OAA4) specified in the Content Reository Configuration. Hence, to my knowledge, you cannot display the content directly in the Smartform.
    With Regards
    Vijay Gajavalli

  • How to retrieve time data from infotypes 2001 and 2002 when we use PNPCE

    Hello Everyone,
       I am new in using PNPCE ldb.In the requirement i have to retrieve time data from infotypes 2001 and 2002 between the begda and endda.I tried using the macro RP-READ-ALL-TIME-ITY to retrieve data.But its not supporting.Can some body help me in doing this.
    THanks in Advance..
    Regards,
    Chinni.

    Hi
       Try the following code:
    REPORT  ZHRTM41.
    nodes peras.
    Tables: PERNR.
    Infotypes: 2001.
    start-of-selection.
    get peras.
    rp_read_all_time_ity pn-begda pn-endda.
    end-of-selection.
    loop at p2001.
    write:/ p2001-abwtg,p2001-stdaz.
    endloop.
        It worked for me when using PNPCE. let me know if you have any problem
    Thanks,
    V.Nagaraju

  • Function module for access OM Data from infotype 1001

    We had a function module for accessing OM data viz. Infotype 1001. Could you let me know.
    Advanced thanks,
    Dasaradh kosana

    Hi Dasaradh,
          Do you want the fm which fetches the data from HRP1001 , if this is the case you can use this FM RH_READ_INFTY_1001.
    Reward Points if it is helpful
    Regards,
    Kiran I

  • Getting data from infotype

    Hello Experts!
    I am a beginner in ABAP programming and I have problem with one of my task.
    I would like to get all users first and last names from infotype p0002. I've created a class, and method but only thing I've found in the Internet was something like this:
      DATA: lt_data     TYPE REF TO data,
             return      LIKE sy-subrc.
       FIELD-SYMBOLS: <table>  TYPE STANDARD TABLE.
       CREATE DATA lt_data TYPE STANDARD TABLE OF PA0002.
       ASSIGN lt_data->* TO <table>.
       CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
         pernr       = '3'
         infty       = '0002'
         begda       = '18000101'
         endda       = '99991231'
       IMPORTING
         subrc       = return
       TABLES
         infty_tab   = <table>
       EXCEPTIONS
         infty_not_found = 1
         OTHERS          = 2.
       IF sy-subrc <> 0.
         MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
       ELSE.
         me_it = <table>.
       ENDIF.
    any suggestions how I can use it for all users and how to get data from the result? or is it useless for this task? help please

    Hi Andrew,
    There is absolutely no problem with the query i.e. everyone have a beginning and it is upon us how we take it to final stage.
    Leave things apart, the answer to your query is suggested below.
    Structure:
    TYPES: Begin of typ_pa0002,
                    pernr type pernr_d,               "Personnel No.
                    begda type begda,                "Begin Date
                    endda type endda,                "End Date
                    nachn type PAD_NACHN,    "Last Name
                    vorna type PAD_VORNA,     "First Name
                    namzu type namzu,               "Salutation
                 end of typ_pa0002,
    typ_t_pa0002 type standard table of typ_pa0002 initial size 0. "Table Type Definition
    Data:  l_it_pa0002 type typ_t_pa0002,     "IT for PA0002     " Internal Table Definiton
              lv_pernr type pernr,
              lv_begda type sy-datum,
              lv_endda type sy-datum.
    "Data Declaration
    lv_pernr = '3'.
    lv_begda =.'18000101'.
    lv_endda = '99991231'.
    "Data Retieval from PA0002 DB Table
    select pernr
              begda
              endda
              nachn
              vorna
              namzu
              from pa0002
              into table it_pa0002
              where   pernr = lv_pernr
                   and endda GE lv_endda 
                   and begda LE  lv_begda.
    Please validate the same at your end and let me know in case you require any further inputs from my end.
    BR/Thanks
    Pranav Agrawal    

  • PCR to fetch data from Infotype 0015

    Hi Folks,
    I would require help to write the PCR for the following scenario
    The PCR has to  check whether there is entry in the wagetype  1LPK in Infotype 0015 and if the value is greater than Zero, then it will make the value in the Technical Wagetype /3I1 as blank.(which is passed thru the function INS88)
    Eg: In IT0015 - 1LPK = 2000 then make /3I1 as blank if not don't disturb it.
    Kindly provide inputs.
    Thanks & Regards,
    Sekar

    It will be helpfull, if i can get sample Rule , as mentioned below
    ZG11 Additional payments
            TABLEP0015 Read table fields
            VARGBINDBW Tab.field VVVVV v.ky
                NUM= ANZHL Set
                NUM?0      Comparison
                    RTE= BETRG Set
                    MULTI NRA  Multipl.amt/no/rate
                    GCY GP47   With exact w.types
                  =
                    AMT= BETRG Set
                    GCY GP47   With exact w.types

  • 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

  • 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

  • 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

  • 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

  • How to retrieve data from virtual infotype?

    Hi.
    I'm trying to write an ABAP program that's retrieving data from infotype 2501.
    If i'm looking at this table PA2501 from SE16, i can see that it's empty, but...
    I have an HR program that's using the PNP and i can see in debbuging mode allot of data over there.
    So, my question is: how can i get this data with a simple SELECT command? where is the data?
    Thanks!
    Barak.

    There may be no data physically stored in table PA2501, it may reside in other tables but programatically pulled by the infotype into internal tables. Surender has given a good example, there are many more examples like some fields are stored in another table. Like for infotype 105, some fields are stored in PA0105 and some are stored in PA0106 which are pulled and displayed on one infotype screen i.e. 105 and hence we do not have a screen for 106. It may be same situation.
    If you have to have a SELECT access, then only way is to debug the code and see how it is pulling the data, which tables etc.

Maybe you are looking for

  • Multiple iTunes accessing the same songs on local network??

    Hello all, I have imported all of our CD's into itunes on my computer. I would like for my wife and children to be able to access these songs and create their own playlists on their own computers from these songs. The kids have Windows Vista, and my

  • Itunes wont load,install or unistall cant update or sync

    I plugged my iphone4 in the other day to sync an itunes came on then it disapearred and wont come back on at all, ive tried everything from unistalling an reinstalling deleting all temp files and everything else ive read and nothing is helps, it wont

  • Terrible customer service.

    I'm writing in for my parents, they are in their 80s and technology is difficult at times.Thursday afternoon a tech was installing voice in the unit below my parents. In the process, he knocked out service. I called and was told service would be rest

  • Do we require 2 FIM Licence if installing FIM portal on 2 servers for HA

    Hi, We are installing FIM portal on 2 windows servers for achieving HA. Please help by sharing will it cost us two FIM Licence to do that. Thanks, Varun

  • N500 notebook disk read error ocured

    Lenovo 3000 N500 note book,windows vista.After many lenovo rescue and recovery system failed attempts to fix some problem,i followed the lenovo rescue and recovery procedure to factory defaults.When system restarted,a disk read error occurred message