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>

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

  • Best Practice: Usage of the ABAP Packages Concept?

    Hi SDN folks,
      I've just started on a new project - I have significant ABAP development experience (15 years+) - but one thing that I have never seen used correctly is the Package concept in ABAP - for any of the projects that I have worked on.
    I would like to define some best practices - about when we should create packages - and about how they should be structured.
    My understanding of the package concept is that they allow you to bundle all of the related objects of a piece of development work together. In previous projects - and almost every project I have ever worked on - we just have packages ZBASIS, ZMM, ZSD, ZFI and so on. But this to me is a very crude usage of packages, and really it seems that we have not moved on passed the 4.6 usage of the old development class concept - and it means that packages do not really add much value.
    I read in the SAP PRESS Next Generation ABAP book (Thomas Ljung, Rich Hellman) (I only have the 1st edition) - that we should use packages for defining separation of concern for an application. So it seems there they are recommending that for each and every application we write - we define at the least 3 packages - one for Model, one for Controller and one for view based objects. It occurs to me that following this approach will lead to a tremendous number of packages over the life cycle of an implementation, which could potentially lead to confusion - and so also add little value. Is this really the best practice approach? Has anyone tried this approach across a full blown implementation?
    As we are starting a new implementation - we will be running with 7 EHP2 and I would really like to get the most out of the functionality that is provided. I wonder what others have for experience in the definition of packages.
    One possible usage occurs to me that you could define the packages as a mirror image of the application business object class hierarchy (see below). But perhaps this is overcomplicating their usage - and would lead to issues later in terms of transportation conflicts etc.:
                                          ZSD
                                            |
                    ZSOrder    ZDelivery   ZBillingDoc
    Does anyone have any good recommendations for the usage of the ABAP Package concept - from real life project experience?
    All contributions are most welcome - although please refrain from sending links on how to create packages in SE80
    Kind Regards,
    Julian

    Hi Julian,
    I have struggled with the same questions you are addressing. On a previous project we tried to model based on packages, but during the course of the project we encountered some problems that grew overtime. The main problems were:
    1. It is hard to enforce rules on package assignments
    2. With multiple developers on the project and limited time we didn't have time to review package assignment
    3. Devopelers would click away warnings that an object was already part of another project and just continue
    4. After go-live the maintenance partner didn't care.
    So, my experience is is that it is a nice feature, but only from a high level design point of view. In real life it will get messy and above all, it doesn't add much value to the development. On my neew assignment we are just working with packages based on functional area and that works just fine.
    Roy

  • ABAP related concepts

    Hi All
    Could any body tell me wat all ABAP related concepts should a SD consultant know when working in support and implementation projects?

    hi,
    first and foremost is you should very comfortable in understanding the SD tables and how the data flows through them. Also you must be conversant with the important fields of these tables to start with.
    check this link for SD table flows :
    [sdtables|http://www.erpgenie.com/abap/tables_sd.htm]
    the others things would be
    1) to be able to prepare a good functional spec
    2) Decision making skill whether to do somehting in config or go for customization depending on the implications of a particular scenario after discussing with abapers.
    3) Understand output related developement work, in terms of driver program and screen layouts.
    4) To be able to locate userexits for your requirements and give a proper logic to work with. Generally the problem comes when you try to hard code something which is not so advisable and to eliminate this, a good logic based on the business requirement needs to derived which you again need to translate it to the abaper.
    regards
    sadhu kishore

  • ABAP webdynpro concepts

    If i want to work with ABAP webdynpro,
    what are all main areas or concepts to be covered in ABAP webdynpro?

    Hi,
    Go through the below links,
    Notes:   https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Wiki : https://wiki.sdn.sap.com/wiki/display/WDABAP
    https://wiki.sdn.sap.com/wiki/display/WDABAP/NewtoWebDynproABAP
    and also links,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/263c6874-0701-0010-3996-8266a631fead?prtmode=navigate
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Regards,
    Azaz Ali.

  • ABAP & Java Concepts required for SAP-NW XI/PI

    Hi Experts,
        As a fresher, I want to start a career in SAP ans SAP Netweaver- XI/PI. After going through some blogs, forum, sap stuff etc, I came to know the prerequisites for XI is both ABAP and Java...
    But I am not sure which concepts in ABAP and Java are required for an SAP XI consultant, as I see SAP itself is an Ocean. So Apart from XI concepts , what are all the concepts needed in ABAP and Java.
    As for XI concepts are concerned there is a lot of stuff in SDN itself. Only thing is, one shd have patience to search and proper guidance while learning.
    Regards,
    Guru

    >
    Guru Bhai wrote:
    > Where and when do we need ABAP and Java in XI
    something quite common a question but here is a small desc.
    ABAP -
    for scenarios involving, IDoc, RFC, ABAP proxies and ABAP mappings
    Java -
    Core java - UDFs in graphical mapping
    advanced - java mapping, adapter modules, java proxies etc

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

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

  • ABAP OOPs concept

    why u want Events and whts the use of it in ABAP OOPs concept

    Locked for the same reason the others are
    And please don't use textspeak.
    Rob

Maybe you are looking for