HR abap infotype 2

Hi
The program is creating a file. Code is shown below
get pernr.
rp-provide-from-last p0002 space pnpbegda pnpendda.
  IF pnp-sw-found = 1.
    MOVE  p0002-nachn   TO itab10-lname.
    MOVE  p0002-vorna   TO itab10-fname.
    MOVE  p0002-midnm   TO itab10-midinit.
   SPLIT P0002-VORNA AT ' ' INTO ITAB10-FNAME
                            ITAB10-MIDINIT.
    WRITE p0002-perid TO itab10-ssn RIGHT-JUSTIFIED.
    WRITE p0002-gbdat+4(2) TO itab10-bdate(2).
    WRITE p0002-gbdat6(2) TO itab10-bdate2(2).
    WRITE p0002-gbdat(4) TO itab10-bdate+4(4).
    SELECT SINGLE *  FROM t502t WHERE sprsl = sy-langu AND
     famst = p0002-famst.
    IF sy-subrc <> 0.
      MOVE 'Invalid' TO itab10-marstat.
    ELSE.
      MOVE t502t-ftext TO itab10-marstat.
    ENDIF.
    IF p0002-gesch = '1'.
      MOVE 'M' TO  itab10-gender.
    ELSE.
      MOVE 'F' TO  itab10-gender.
    ENDIF.
  ENDIF.
but as time constraint of infotype 2 is 1, so can it be possible that rp-provide-from-last fails ie there is no record in IT0002
for a particular employee(pernr) for date range specified on selection screen (dates are there on sel screen, and for few employees it is gettng failed, server is production, so can't debug and no of employees for which the program is running is around 16000)
please help
Regards
Manu

looks like an authorization issue.
Infotype 0002 usually is created from birthday of the employee to high date (99991231) so there must be a record.
Try to find out a PERNR missing and run and debug the report for this single PERNR.

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

  • HR-ABAP-Infotypes concept

    Hi Masters,
                           Can you please let me know the perfect reason for infotypes concept in HR-ABAP.
    1 Why we are using infotypes and exactly what is purpose?
    2.Why we are using LDB's why cannot we extract data directly from database tables?
    3.Can you please give me clear explanations about these infotypes.

    Hi
    Infotype(s) are used in the Personnel Management (PA) module primarily. This is where personnel master data is stored. Data is grouped according to subject matter. The Human Resources component aims to enable the user to process employee data in an effective structure in accordance with business requirements. The data structure of infotypes mirrors a logical set of data records. Infotypes can be identified by their four-digit keys, for example, the Addresses infotype (0006). To facilitate reporting on past employee data, infotypes can be saved for specific periods.
    Some people use the term HR ABAP to describe the method of managing the infotype data. Typically HR logical databases are used which offers more secure methods of accessing the infotype data. Once the infotypes are declared, you can use standard macros to access the data. Table TRMAC holds the macro name and the code behind it. This makes developing HR programs much quicker and easy to turn around.
    HR uses INFOTYPES instead of tables.
    There are different sub modules exist in HR.
    For Personal Admn the Infotypes start with PA0000 to PA1999
    Time Related Infotypes start with PA2000 to PA2999.
    Orgn related Infotypes start with HRP1000 to HRP1999.
    All custom developed infotypes stsrat with PA9000 onwards.
    In payroll processing we use Clusters like PCL1,2,3 and 4.
    Instead of Select query we use PROVIDE and ENDPROVIDE..
    You have to assign a Logical Database in the attributes PNP.
    Go through the SAp doc for HR programming and start doing.
    http://www.sapdevelopment.co.uk/hr/hrhome.htm
    See:
    http://help.sap.com/saphelp_46c/helpdata/en/4f/d5268a575e11d189270000e8322f96/content.htm
    http://help.sap.com/saphelp_47x200/helpdata/en/bb/bdb041575911d189240000e8323d3a/frameset.htm
    see this link you would get information about types of infotypes
    Logical databases are special ABAP programs that retrieve data and make it available toapplication programs. The most common use of logical databases is still to read data fromdatabase tables by linkin them to executable ABAP programs.
    Logical databases contain Open SQL statements that read data from the database.You do not therefore need to use SQL in your own programs. The logical database reads theprogram, stores them in the program if necessary, and then passes them line by line to theapplication program or the function module LDB_PROCESS using an interface work area .
    For further info
    check link http://help.sap.com/saphelp_nw70/helpdata/en/9f/db9b5e35c111d1829f0000e829fbfe/frameset.htm
    1. A logical database is in fact
    a program only.
    2. This LDB provides two main things :
    a) a pre-defined selection screen
    which handles all user inputs and validations
    b) pre defined set of data
    based upon the user selection.
    3. So we dont have to worry about from
    which tables to fetch data.
    4. Moreover, this LDB Program,
    handles all user-authorisations
    and is efficient in all respects.
    5. tcode is SLDB.
    /people/srivijaya.gutala/blog/2007/03/05/why-not-logical-databases
    <b>REward fi suefull</b>

  • HR-ABAP Infotype Authorization issue!

    Hello Experts,
    Need your quick suggestions and inputs, which we're currently facing in our project.
    We're using the PNPCE Logical Database for processing/retrieving the records from infotypes and ALV reports are generated.
    Currently, we have an authorization control which will restrict the user roles in accessing certain infotypes. Thus, the user role is assigned with necessary infotype access in PFCG.
    Now the issue is if a particular user role donot have the authorization to infotye XXXX, which is defined in the Global Declaration (Top Include) in the INFOTYPES statement. Eg: INFOTYPES: XXXX.
    Thus, when the report is executed, the following XXXX infotype authorization is checked as it is defined in INFOTYPES statement, but since the user role is not given the XXXX infotype authorization in PFCG the report execution fails when it checks the infotype authorization when it enters GET PERAS. Thus, a blank screen is thrown with standard SAP error... "No authorization for XXXX infotype".
    Is there any way this error message which blocks the execution of the report be by-passed? If yes, please help to suggest the necessary steps to do so. Thus, the report execution should not be blocked and the ALV report should be displayed with blank values for those XXXX infotypes which donot have authorization even though defined in INFOTYPES statement in Top Include.
    Hope am much clear in describing the major issue that we're currently facing.
    Any inputs to get this issue resolved will be highly appreciated.
    Thanks in anticipation.
    Regards,
    Sundar

    Have you explored the option of using the BAdI HRPAD00AUTH_CHECK?
    ~Suresh

  • HR ABAP -- infotype 0024 enhancement

    u201CNew joiner u201Cis an action in our client system in which 8 infotypes are configured. When I execute this action in PA40 transaction, the 8th infotype that appears will be 0024.When this infotype screen appears as a part of u201DNew joiner u201Caction, the user should be presented with the defaulted qualification and proficiency based on nationality of the individual.
    I decided to look for a user exit. The user exit PBAS0001 gets triggered for the PBO and PAI of every infotype in PA .But infotype 0024 u2013 (Qualifications) belongs to Personal Development (It belongs to package PPPE).There is no exit associated with this package. Also I searched for the string u201Ccustomer u201Cin the function group RHP6 (0024 infotype screen belongs to this function group) but couldnu2019t get any solution.
    Also I did not get any result for searching u201CBADIu201D in the above function group. I am using ECC 5.0 system.
    The user needs the values to be defaulted in the 0024 infotype screen .
    Can you please suggest any other approach to achieve the above objective?

    that is an Function group problem tell to your Functional people, they will resolve

  • HR ABAP: Infotype 25 updation

    In my server table PA0025 is empty.....even i entered data (annual aprrisal ) for infotype 25 and save then also the table PA0025 is not updated.....!!
    Can anybody explain me why its behave like this??? and also
    <b>How to update the table PA0025 table?????</b>
    Waiting for ur rply...
    Thanks,
    Biswajit

    Hi Biswajit..
    Go to HRP1001 and enter the following:
    OTYPE = P
    OBJID = < The Personnel Number u have created the appraisal for>
    PLVAR = current plan (01)
    SOBID =  Thsi field will have a unique number that determines the appraisal u have created.
    The same SOBID can be seen in PA30 appraisal screen under the following menu options:
    View --> Key On
    Cheers
    Shakir

  • HR-ABAP--infotype for the event

    Hello Gurus,
    I have the event type as FMLA .I have got the infotype for this event as P0672.
    Can you please tell me the infotype for this event type OFLA .
    Thanks,

    I don't understand the question, could you provide us with the transactions you use.
    If I hear HR, infotype and event, I'm thinking transaction SWEHR3 and business objects BUS1065, EMPLOYEET and FAMILY
    Regards, Rob.

  • HR ABAP infotype 0008

    Hi All,
    Please see my below requirement.
    i got  2 periods in infotype 0008(in the datailed view)
    1.03/31/2009-12/31/9999  and amount is 1500(Present period)
    2.01/01/2007-03/30/2009  and amount  1000.(Previous Period)
    I want to get the amount from the previous period.that is 1000.
    Can you please let me know how to achive this and how to capture previous period.
    Regards,
    Phani.

    Hi Phani,
    i got 2 periods in infotype 0008(in the datailed view)
    1.03/31/2009-12/31/9999 and amount is 1500(Present period)
    2.01/01/2007-03/30/2009 and amount 1000.(Previous Period)
    I want to get the amount from the previous period.that is 1000.
    You can code something like below:
    Select * from PA0008 INTO TABLE l_t_it0008 WHERE Pernr EQ l_pernr.
    SORT l_t_pernr DESCENDING BY ENDDA.
    READ TABLE l_t_it0008 sy-tabix EQ 2 INTO l_wa_it0008.
    Regards
    Shital

  • Hr-abap infotype 0070(courtorder -GB)

    Hi all,
         I have problem for pa0070 infotype table .pa0070-crtty this is my field name.
        in this field have valves like this (CSD,CSDN,CSL,EWC,EWF,EWN,EWP,
        EWT,ISDN,NIN,NIP,SCA1,SCA2,SCA3,SCA4,SCEA,SCMA,SDAS,SEA)
         so here i got problem i wanna to disply what ever is in last char i will display
        ex: CSD means we display D,
             CSDN means we display N,
            like this we display.
    in o/p i want to display last char.
    in CRTTY field have CHAR 4 (Data length).
      in this field have min 3 char or 4 char .
    so i wann to display last character.
    Reg,
    Kris.

    try code,
    like
    data:c(4).
    data d(4).
    c = 'abdc'.
    d = c+3(1).
    write:/ d.
    it will displaying last character..
    dont forget to reward point if helpful.
    Regard,
    Imran

  • HR-ABAP Infotype short dump

    Hi
    I have created a custom infotype and I had added some additional logic in the module pool in PM01. Nw whn try to open the module by double clickin on it , it is goin for dump.
    I'm gettin the followin error..
    TSV_TNEW_PAGE_ALLOC_FAILED
    No more storage space available for extending an internal table.
    I jus want to know whether it is the problem of my object or shd I take the help of basis for this....

    Hi Prabhu,
    But I never got this error before...I had worked on 3 to 4 custom infotypes...For all infotypes im gettin the same thing...even for those for which I had not inserted any logic...
    This z my code which I had written in PBO of module pool, that to to disable the field.
    *&      Module  DIS_DTYP  OUTPUT
          text
    MODULE DIS_DTYP OUTPUT.
      loop at screen.
        check screen-group1 = 'SHW'.
        screen-input = '0'.
        modify screen.
      endloop.
    ENDMODULE.

  • HR ABAP : Read Infotype.

    Hi,
    I have small query regarding HR abap infotype.
    Take example of infotye PA0001. From this infotype I require to retrieve all PERNR which are effective on today (say 22nd Nov 2006).
    Is there any standard Function Module or micro available?
    Thanks,
    Sunil Bhavsar

    hmmm sunil but functions also use select statements somewhere deep down to get the data you want. only difference is that there are more checks involved which are not when you do select straight away (like authorisation for infotype 0001 can already be included in the function)
    It is only from a programming point of view always advisable to use functions or bapis to retrieve or alter information if the are around so you are certain that when you upgrade that the functions keep on working while you're own code might not because of changes in the system
    I don't see a faster way to make the select
    select pernr from pa0001 into corresponding fields of table i_pernr
    where... (see above example).
    it always help to look in se11 at pa0001 to see which fields are indexed. if you can you can optimize you're code by adding keyfields to you're where statement to minimize you're selection.
    i'm not behind sap now but if the company is for instance a keyfield you can do
    select pernr from pa0001 into corresponding fields of table i_pernr
    where company = 'companycode'
    Message was edited by:
            A. de Smidt

  • Differnece between Infotypes n Tables !!

    Hi All,
    1. Why SAP introduced Infotypes.
    2. why SAP HR module using infotypes mostly.
    3. Any drawbacks using transparent tables
    4. Ht diff. bw Infotypes n transparent tables
    Thanks,
    Senthil

    Hi,
    Infotype is like a structure.It has no contents.For each infotype,there should be a table.It should have the contents for that infotype.
    For ex...for p0001 infotype structure,pa0001 is the database table.
    An infotype represents a group of related data fields, provide information structure, facilitates data entry, and allows time dependent storage.  In other words we can say infotypes are information units used to enter the time dependent data of the employee.
    Master data in HR is stored in infotypes. Each infotype pertains to a specific type of data.
    Each infotype has a database table associated with it.
    For example, these are the frequently used infotypes.
          -Actions: Infotype 0000 stores all actions for an employee.
          -Org Assignment: 0001 stores all information on employee’s Organization
           Specific status
          -Personnel Data: 0002 stores all information on name, birth date, *** etc.
          -Basic Pay: 0008 stores all information on pay for employee.
    For each employee, there can be many records stored in each infotype,
    each with a start and end date.
    All infotypes to be processed in the report are listed in the ABAP
      INFOTYPES keyword.
    The database usually contains several records with different validity  
       periods and not just one record for each infotype and personnel
       number. Infotypes are time-dependent since their data changes over
       time. For this reason, one structure or work are would not suffice for
       the provision of infotype data in the main memory.
    Therefore the INFOTYPES statement is used to create an internal table
      for each of the listed infotypes. The structure of this table corresponds
      to that of the relevant infotype.
    Check this link for some info. on infotypes.
    http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/infotype.htm
    Kindly reward points if it helps you.

  • Adding a newfield in IT0006 is dumping?

    Hi Experts,
    I have requirement to add a new filed called ZRELSHIP in IT0006  SUBTY 4 (Emgerncy Address) so followed the the steps  specified in the  link
    "www. saptechnical .com /Tutorials /ABAP /Infotype /Enhancement.htm"
    After I have implemented all the steps ,New field is added in P0006,PA0006 and in CI_P0006.
    I have also done the screenpainter modification as mentioned in the above link.
    But When I try to create a record in IT0006 it is throwing a short dump called :
    The following syntax error occurred in program "MP000600 " in
         " include MP000640 in Line 85:
        "Field "IHELP_FIELDS" is unknown. It is neither in one of the
        " tables nor defined by a "DATA" statement. ."
    any ideas?
    Thanks in Advance,
    Dharani

    Hi Dilek,
    Thanks for your response.
    I don't see  INCLUDE p0006tw1 anywhere.
    the error as I said seems to be in Include MP000640 . at line no :85 IHELP_FIELDS this field is unknown.
    I can see the BEGIN OF IHELP_FIELDS....
                           END OF IHELP_FIELDS....declaration  inside include LEHSE1D01 ?
    When I searched the include LEHSE1D01 in MAIN PROGRAM MP000600 and in below incudes
    include mp000610.                      " Data Definitions
    include mppdat00.                      " Global Data     - Do not change
    include fp50ppsb.                      " Buffer          - Do not change
    include mppers00.                      " Standard Modules- Do not change
    include mp000620.                      " Output Modules
    include mp000630.                      " Input Modules
    include mp000640.                      " Subroutines
    include mp000650.
    I didn't see such include LEHSE1D01 ?
    Confused ? Please Clarify?
    Thanks in Advance,
    Dharani

  • Hr abap custom infotype  updatation

    hiii frnds,
        i creatred custom inotype 9910 and i enterded some data for  this infotype in pa30 when i click on the save it is noty saving in the pa9910 table...... can any one send sample code to save the data into table

    Did you read [Developing an Infotype in Personnel Administration|http://help.sap.com/printdocu/core/print46c/en/data/pdf/PAXX/PYINT_INFOTYP.pdf] (or more recent documentation) and a guide like [Steps to Customize infotypes|http://wiki.sdn.sap.com/wiki/display/ABAP/StepstoCustomize+infotypes]
    Regards,
    Raymond

  • HR ABAP:  table/infotype relationships

    Hi.
    I'm experienced in doing ABAP programming for all the rest of the modules, but with ABAP HR, I am new and doing one for the first time.  I need your help regarding how to find tables/infotypes and relationships to each other.
    Specific work example/scenario: 
    From selection criteria of requisition information, I am supposed to have an output report with application and candidacy information.
    1.) How can I relate Infotype 5125 with info type 5132 and 5102? 
    I am more comfortable with select statements hence I prefer explanation using the transparent tables HRP5125, HRP5132, etc.
    2.) How can I make use of the table HRP1001 to establish relationships between different tables/infotypes of HR?
    Also, kindly send any links and documents that can give an at-a-glance summary of what I can use when doing ABAP for HR for the first time. 
    Thanks for your help and expertise and may God bless us all!
    Celeste

    More exactly look at tables
    - [HRP1000 |https://www.sdn.sap.com/irj/sdn/advancedsearch?query=hrp1000+&cat=sdn_all]: org. units, positions, etc.
    - [HRP1001|https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_all&query=hrp1001&adv=false&sortby=cm_rnd_rankvalue] : links between org. units, positions, etc.
    Look at this thread Tables for ORG model  and FM [RH_STRUC_GET|https://www.sdn.sap.com/irj/sdn/advancedsearch?query=rh_struc_get&cat=sdn_all]
    Regards

Maybe you are looking for