Abap 00 and HR SAP classes

Hi,
I am developer and beginner in HR
I found many classes for HR in the repository. I think, the most interesting class for me is
CL_HRBAS_PLAIN_INFOTYPE_ACCESS
because I need to read single infotypes and not all records. The problem is: I found no examples for this class.
Can someone help me further?
Thank you!
Have a nice time!
Patrizia

Hi Patrizia,
I know this is a bit late but hopefully it still helps.
In short you would be better to use one of the available function modules (e.g. HR_READ_INFOTYPE, HR_INFOTYPE_OPERATION) or to use the PNP logical database statements (GET PERNR, RP_PROVIDE) as Jamie alluded to.
For detailed info on how the HR Infotypes have been implemented using ABAP Objects  you can refer to this SAP Library content which explains the decoupled infotype framework
<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/a503b963161bbfe10000000a1553f7/frameset.htm">Decoupling Infotypes</a>
For understanding why the HR Infotypes were decoupled you can refer to this SAP Library content introducing concurrent employment:
<a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/16/08c73c52aacf5be10000000a114084/frameset.htm">Infotype Framework for Concurrent Employment</a>
If you still really want to use ABAP Objects to perform this action then please ignore class CL_HRBAS_PLAIN_INFOTYPE_ACCESS since that is used for PD infotypes only. You can refer to the example code I'm pasting below for reading a PA infotype:
*& Report  zptest0002
*& Test program to use the ITF to read infotype 0002 for a person
REPORT  zptest0002.
* data declarations
DATA: prelp_tab       TYPE hrpad_prelp_tab.
DATA: a_read_infotype TYPE REF TO if_hrpa_read_infotype.
DATA: data_exists     TYPE boole_d.
DATA: i_pa0002      TYPE TABLE OF p0002,
      wa_pa0002 LIKE p0002.
DATA t_pernr TYPE pernr-pernr.
* supply existing pernr for testing or implement a parameter
t_pernr = 2.
* initiate the infotype framework
CALL METHOD cl_hrpa_masterdata_factory=>get_read_infotype
  IMPORTING
    read_infotype = a_read_infotype.
CLEAR i_pa0002.
REFRESH i_pa0002.
* perform the read operation
CALL METHOD a_read_infotype->read
  EXPORTING
    tclas         = 'A'
    pernr         = t_pernr
    infty         = '0002'
    subty         = space
    objps         = space
    sprps         = if_hrpa_read_infotype=>unlocked
    begda         = if_hrpa_read_infotype=>low_date
    endda         = if_hrpa_read_infotype=>high_date
    no_auth_check = 'X'
  IMPORTING
    infotype_tab  = prelp_tab
    data_exists   = data_exists.
* cast prelp return value into infotype structure
CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn_tab
  EXPORTING
    prelp_tab = prelp_tab
  IMPORTING
    pnnnn_tab = i_pa0002.
* loop to process or get first record
CLEAR wa_pa0002.
READ TABLE i_pa0002 INDEX 1 INTO wa_pa0002.
* write to the screen or perform other operations
WRITE: / 'First name: ', wa_pa0002-vorna.
WRITE: / 'Last name: ' , wa_pa0002-nachn.
Please reward points if you found this helped. ***
regards,
Paul

Similar Messages

  • DB-API in ABAP and J2EE

    Hello!
    I have two questions regarding the communication mechanisms between ABAP- and J2EE-Stack.
    1)Is Jco the only one solution to communicate between ABAP- and J2EE, or exist other possibilities (if Yes, is there some comparison papers: performance, advantages/disadvantages).
    2) Which similarities/differences are in the DB-communication in both Server? (e.g. each Workprocess in ABAP/Serverprocess in J2EE<--> DB-Process)
    Which DB-API is used in both stacks?
    Thank You!
    Regards

    Hi, Peter!
    For both languages - ABAP and Java - SAP offers a Dictionary (for definition of database objects) and Open SQL (for database independency), you may also in both languages embed static SQL scripts into you code (via SQL/J in Java).
    For Java there' s the Persistence-Framework offering three support levels, Vendor-JDBC, Native and Open SQL the last one guaranteeing the maximum support. You may in Java access data - via JDBC and SQLJ - in a relational or - via EJB/CMP or JDO - in a object-relational way.
    Performance-Features like Table-Buffering exist also in both stacks.
    Please have a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/frameset.htm">Developing Java Persistence</a> for more information regarding the Java-Part.
    Regards,
    Thomas

  • DB-Communication  in ABAP and J2EE

    Hello!
    I would like to know the similarities and differences in ABAP and J2EE regarding their DB-Connectivity.
    Which <b>DB-API</b> is used in <b>ABAP-</b> and <b>J2EE</b>?
    What is about the management of the resources and processes, performance in both parts?
    Thank You!
    P. Henke

    Hi, Peter!
    For both languages - ABAP and Java - SAP offers a Dictionary (for definition of database objects) and Open SQL (for database independency), you may also in both languages embed static SQL scripts into you code (via SQL/J in Java).
    For Java there' s the Persistence-Framework offering three support levels, Vendor-JDBC, Native and Open SQL the last one guaranteeing the maximum support. You may in Java access data - via JDBC and SQLJ - in a relational or - via EJB/CMP or JDO - in a object-relational way.
    Performance-Features like Table-Buffering exist also in both stacks.
    Please have a look at <a href="http://help.sap.com/saphelp_nw2004s/helpdata/de/61/fdbc3d16f39e33e10000000a11405a/frameset.htm">Developing Java Persistence</a> for more information regarding the Java-Part.
    Regards,
    Thomas

  • Where do i find daily posted question on sap abap and sap webdynpro abap

    Hi
    where do we find Daily posted questions on sap abap and sap webdynpro abap in scn sap  so that i can go through the questions and answer them .

    Hi,
    Go to the Content tab of any space and click on discussions. Then you can sort them by date created or any other
    For ex: This link for WDA discussions: - Web Dynpro ABAP
    You can also click on Receive email notifications for any space to get updates on that space.
    hope this helps,
    Regards,
    Kiran

  • How to find SAP  java realted roles for ABAP and Basis

    Hi Gurus,
    I am new in SAP Security First week, I got the assignment to find the SAP Roles and Trans for ABAP and Basis in all Systems like Ecc, BI, ......
    I use SE16 ->AGR_TCODES then SAP* in Table Name it give me all SAP Roles and Trans.
    Pls help me to get only SAP Java and Basis roles and Trans Seperately
    Thanks

    Hi,
    Are you speaking about the standrad SAP roles? If yes, you can have a look at BC and ABAP roles. However, if your question is about the created roles, you should see the convention that was followed in your organization to identify the roles.
    Rgds,
    Raghu Boddu

  • ABAP differences of SAP R/3 4.6 and ECC 6.0

    What are the ABAP differences of SAP R/3 4.6 and ECC 6.0?

    Hi
    Difference between version on functionalities you can find on the following link.
    Give the source version (i.e. 4.6 C) and select the target version (i.e. ECC 6.0)
    http://solutionbrowser.erp.sap.fmpmedia.com/
    Please check this Release notes :
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/43/6880cbb88f297ee10000000a422035/content.htm
    Check if this is helpfull
    Short Difference between R/3 4.7, ECC5 & ECC6 !!!!!
    1. SAP NetWeaver is SAP's technology platform. It has all of SAP's
    technology in it. It is used to build and run SAP Applications and customer
    applications (Application server, data warehouse, portal, coding, messaging,
    etc). You can find more information on the SAP NetWeaver page on the SAP
    Service Marketplace (http://service.sap.com/netweaver). Of course they is
    also in on the SAP NetWeaver page in SDN.
    2. ABAP is part of SAP NetWeaver. BW is part of SAP NetWeaver (as of
    the 3.5release).
    3. Prior to SAP NetWeaver, BW was a seperate product. It is shipped as part
    of SAP NetWeaver since the SAP NetWeaver '04 release (SAP NetWeaver BI 3.5).
    4. SAP ECC is part of the SAP ERP application (actually it is the minimal
    installation of SAP ERP). SAP ERP runs on SAP NetWeaver. So when you get SAP
    ERP you get SAP NetWeaver.
    - SAP ECC 5.0 is part of SAP ERP 2004 [which runs on SAP NetWeaver '04]
    - SAP ECC 6.0 is part of SAP ERP 6.0 (2005) [which runs on SAP
    NetWeaver 7.0(2004s)]
    5. SAP NetWeaver is delivered with SAP ERP so ABAP and the functional
    modules are include in SAP ERP.
    6. With SAP ERP (SAP ECC) you have a choice of activating BI within the SAP
    ERP system or deploying in a seperate system. This is information is in the
    SAP ERP master guides which can be found at
    http://service.sap.com/instguides.
    For SAP ERP 6.0 (ECC 6.0) it will the SAP NetWeaver 7.0 version of BI.
    Also check
    /thread/170347 [original link is broken]
    The only difference between ECC5 and ECC6 is that additional components like mySAPCRM, mySAPPLM, mySAPSCM, mySAPSRM are added in ECC6.0. HR was already a part of ECC5.0.
    http://abdurohman.wordpress.com/2007/06/29/whats-new-in-ecc5-and-ecc6-ecc7/
    Reward if usefull

  • About integration between SAP and non-SAP applications via javaidoc classes

    Hi,All
    Now we are implementing a SAP-Retail project,we encounter a problem of integration between SAP and non-SAP applications(POS),we want to set Inbound/Outbound between SAP and POS applications realtimely,POS can connect to the SAP system via VPN,weather it can be implemented?
    I conceive to implement it with SAP Java Connector IDoc Class,I don't know weather it is the best solution?If not,please give some other proposal.
    I have download the classes from SAP website and try it with the samples provided by SAP(JCoIDocSample1.java/JCoIDocSample3.java),In my testing,Inbound is succeed,but,in SAP-Retail IS,standard Outbound message type is defined via file port,some one told me that SAP Java Connector IDoc Class can only receive idocs from tRFC port?is it true?If not,please tell me how to deploy in SAP so java program can receive idocs from file port?

    We too are interested in finding information on integration between SAP and Intergraph.  Were you able to obtain information and I was wondering if could share this with us.
    Thanks,
    Sue
    City of Edmonton

  • I have 3 +years of experience in SAP ABAP and BRFplus , want to move to australia from India.

    Hello Experts,
    I have around 3.5 years of experience in SAP -ABAP and SAP-BRFplus . I am based out of india and want to move to Australia.I am trained in ABAP OOPs And Webdynpro. Have worked for around 3 years in Infosys Limited and currently working as Senior Business consultant in SAP ABAP in Ntt Data North America.
    I am activly looking for moving to Australia.
    So kindly let me know how to go for that.
    Regards,
    Khushbu

    Hi Khushbu
    If you want to work in Australia you will need to research the different VISA laws etc. Trying to come "onsite" is a challenge. SAP job demand goes through cycles and sometimes it is difficult to find a position. You might want to look at the large consultancies and see if there is an opportunity for onsite work as part of the project (more than likely make sponsorship easier).
    The difficult challenge - most times development work is sent offshore (not all places of course). The work kept in Australia is either they cannot outsource it (federal government and so you need to be an Australian citizen) or it will be more senior staff (10+ years experience). It doesn't mean the work isn't available but you might be competing with other established professionals.
    Regards
    Colleen

  • ABAP and J2EE-Stacks in SAP WEB AS

    Hi,
    I have two questions about the technical architecture of SAP WebAS, particularly about the ABAP- and J2EE-Server.
    Can someone recommend detailed papers/guides (besides help.sap.com)describing:
    1) the management of processes and resources in two parts (ABAP and Java)
    and
    2) The communication mechanisms between J2EE- and ABAP-server.
    What are the problems with JCo?
    Is there other possibilities to communicate between  2EE- and ABAP-server.(besides JCO), what is the performance in this case compares with JCO?
    Thank you!
    Peter Hneke

    Hi
    please have a look in to this Pdf Doc .   might be of soem help to you .
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b52456bd-0a01-0010-6d9b-f153bf15a82f
    Apart from JCO communication between JAVA and ABAP can also be handled using ESA services .
    please have a llok at these blogs
    /people/scott.campbell/blog/2005/05/16/the-esa-is-coming-the-esa-is-coming
    /people/kevin.liu/blog/2005/10/17/esa-soa-es
    /people/harsh.chauhan/blog/2005/08/27/building-esa-and-delivering-it-through-caf
    /people/sap.user72/blog/2005/10/28/the-fundamental-problem-solved-by-esa
    Hope this helps . pelase do not forget to reward points , if helpful
    regards
    rajeshkr

  • New Server for Preview SAP WAS ABAP and Java

    Hi
    I wish to purchase a new PC or server to specifically house my ABAP and Java preview installations rather than have them running on an old PC and laptop.
    Anyone out there got some recommended configurations?  Max spend will be £1500.
    Cheers
    Ian

    Ian,
    Personally I wouldn't be happy running a server 24/7 at home but would want to just switch it on and the server start so would be looking to have some sort of script to run the relevant WAS instances automatically on startup.
    160Gb hard drives would be ample. Could consider increasing the storage and then the system could double up as a backup device as well as a SAP server.
    I've built systems in the past and that's the approach I'd take for this too. I don't mind buying pre-built systems but I
    detest all the rubbish software they bundle with them. If you build it yourself you can install just Windows and it'll run like a dream. 
    This bundle looks interesting:
    http://www.overclockers.co.uk/showproduct.php?prodid=BU-039-OK
    The motherboard takes four memory modules so the 2Gb would consume two of these allowing for upgrades in the future if deemed necessary. Add in a couple of HD's, a DVD-RW, a cheap gfx card and a case and you'd easily get change from £800. Could spend a bit more to get more silent components too.
    Now I've had a look around and priced them up I'm even more tempted!!!
    Cheers,
    JB

  • ABAP and SAP R3 documentation

    Hi all,
       I am looking for ABAP documentation from SAP and also SAP R3 documentation from SAP. I just want to learn enough for XI purposes. Also is there any docuemtnation on SAP R3. I have documentation on RFC,Idoc etc.
    Thanks in advance

    Hey
    have a look at the following for R/3
    http://help.sap.com/saphelp_470/helpdata/en/e1/8e51341a06084de10000009b38f83b/frameset.htm
    and
    http://help.sap.com/saphelp_nw2004s/helpdata/en/22/042578488911d189490000e829fbbd/frameset.htm - RFC/ALE/IDOC/BAPI
    for ALE/BAPI etc
    for XI if u finish the second link,u would be through,u dont even need first link
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • SAP-EP in ABAP and JAVA ?????

    Hi all,
    When i started studying about for implementing each and every thing in EP/EP-related things it can be done in ABAP and JAVA as well.
    I am really worried about this i am already an ABAP consultant and though i have knowledge of J2EE i prefer to  follow ABAP version of EP i.e. Dynpro in ABAP and Adobe forms in ABAP..
    But i heard that market is good only Java version of implementing the EP.
    and SAP it self is suggesting to go for JAVA version.. in that case why has it created ABAP dynpro,ADOBE forms etc etc.
    why there are 2 ways (JAVA and ABAP) is it to confuse?? please help .. even if i learn ABAP version of everything will that be useful or not?? As u r already into EP,you guys can tell me is there market for ABAP version of implementing EP related things!!
    Please reply.
    Thanks in advance.
    ==============
    Srini...

    hi srinivas....
    this is what i feel abt the question......
    to answer ur question, one has to think in the perspective of SAP Labs.
    there are two ways of doing what u have mentioned and its not to confuse.....
    ABAP is the proprietary language of SAP and therefore u dont find as many developers or intellectual manpower in ABAP as u can find for JAVA.....
    SAP is trying to focus and capture the medium and small scale markets and industries for which it requires lot of manpower.....
    so JAVA is its choice.....
    there can be a lot more reasons behind it.....but this is what i feel.....
    Regards,
    Sudheer

  • Diff. bet ABAP  and SAP Query

    HI
    Anybody can explain in detail about ABAP  and SAP Query.....
    And tell me what is the main diff. bet ABAP  and SAP Query...
    Regards
    S.Baskaran

    SAP Query
    Purpose
    The SAP Query application is used to create lists not already contained in the SAP standard system. It has been designed for users with little or no knowledge of the SAP programming language ABAP. SAP Query offers users a broad range of ways to define reporting programs and create different types of reports such as basic lists, statistics, and ranked lists.
    Features
    SAP Query's range of functions corresponds to the classical reporting functions available in the system. Requirements in this area such as list, statistic, or ranked list creation can be met using queries.
    All the data required by users for their lists can be selected from any SAP table created by the customer.
    To define a report, you first have to enter individual texts, such as titles, and select the fields and options which determine the report layout. Then you can edit list display in WYSIWYG mode whenever you want using drag and drop and the other toolbox functions available.
    ABAP Query, as far as I Believe, is the use of select statements in the ABAP Programming. This needs a knowledge of Open SQL commands like Select,UPdtae, Modify etc. This has to be done only by someone who has a little bit of ABAP experience.
    To sum up, SAP queries are readymade programs given by SAP, which the user can use making slight modification like the slection texts, the tables from which the data is to be retrieved and the format in which the data is to be displayed.ABAP queries become imperative when there is no such SAP query existing and also when there is a lot of customizing involved to use a SAP Query directly.
    Check out these links.
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b413afab52b9e10000009b38f974/content.htm
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp
    Step-by-step guide for creating ABAP query
    http://www.sappoint.com/abap/ab4query.pdf
    ABAP query is mostly used by functional consultants.
    Kindly reward points by clicking the star on the left of reply,if it helps.Kindly close your previous threads if your problem is solved and reward points for helpful answers.
    Don't forget to reward if useful...

  • Online license procedure for NW ABAP Sneak Preview and Mini SAP works again

    The online license procedure for the NetWeaver ABAP Sneak Preview and Mini SAP systems at www.sap.com/minisap
    works again.
    Sorry for the inconvenience.
    Dirk

    I finally resolved my problem yesterday. That is the answer. I did exactly what you mention now: to try and try. I don't know what happened, but when I insisted it worked !
    Anyway, Thanks a lot to all
    Investiga

  • NW ABAP Sneak Preview and Mini SAP online license works again

    The online license procedure for the NetWeaver ABAP Sneak Preview and Mini SAP systems at www.sap.com/minisap
    works again.
    Sorry for the inconvenience.
    Dirk

    I finally resolved my problem yesterday. That is the answer. I did exactly what you mention now: to try and try. I don't know what happened, but when I insisted it worked !
    Anyway, Thanks a lot to all
    Investiga

Maybe you are looking for

  • Need some help with backing up external hard drive using Time Machine

    Hi all, I'm trying to work out the best way to back up multiple iPhoto libraries using Time Machine. At the moment I have got an iMac and Macbook Pro, both of which have an iPhoto library (with different content).  Currently these are not backed up a

  • Presenter Help | Publishing and viewing presentations

    This question was posted in response to the following article: http://helpx.adobe.com/presenter/using/publishing-viewing-presentations.html

  • Problem Adding iCal Events Received via Email (used to work fine)

    My wife and I share iCal calendar events between our Mac's via email. A month or so ago I started getting this error when clicking on the link that comes with the iCal event email: "This calendar file is empty. No new events have been added to your i

  • Could really use some help! :(

    Hey Java Community. I'm one of those annoying ppl who are new to Java and can't figure out the easiest stuff ;) Anyway. Here's my problem: I wanna create a small applet that should be able to perform a simple regression, here's the code public class

  • Ccount online in order to download???

    Hi, One of my colleagues is recieving this message. The message from Kim Ross <[email protected]> concerning "<Unknown subject>" has not been downloaded from the server. You need to take this account online in order to download it. This is happening