ABAP HR infotype use and retrival

Hi,
I am new to abap hr.In hr module we are using provide statement for retriving data.
My doubt is
1. why we are using provide instead of select?
2. Why we are using structure instead of direct tr table?
3. Why we are using infotype in hr and what is the use?
4. why we are retriving data using infotype in report instead of using tr.table using select?
5. What we have to specify if i want to retrive data from infotype?
6. We have to declare table/structure/infotype for retriving data?
7. And why we are specifying mode in declaration what is it mean?
if anybody knows tell me/send me the materials please.
Thanks,
Regards,
Nandha..

Hi Nandha,
The statements PROVIDE and ENDPROVIDE define a loop through a statement block. In this loop, any number of internal tables itab1 itab2 ... are processed together. A single table can appear several times. For every table itab you must specify a FIELDS clause. After FIELDS you must specify the character * for all components or a list comp1 comp2 ... for specific components of the relevant table. The names of the components comp1 comp2 ... can only be specified directly.
To be able to process internal tables using PROVIDE, all tables itab1 itab2 ... must be fully typed index tables and contain two special columns that have the same data type (d, i, n, or t) for all relevant tables. For every table you must specify the names intliml1 intliml2 ... and intlimu1 intlimu2 ... of these columns using the addition BOUNDS.
Eg:
PROVIDE FIELDS {*|{comp1 comp2 ...}}
               FROM itab1 INTO wa1 VALID flag1
               BOUNDS intliml1 AND intlimu1
               [WHERE log_exp1]
        FIELDS {*|{comp1 comp2 ...}}
               FROM itab2 INTO wa2 VALID flag2
               BOUNDS intliml2 AND intlimu2
               [WHERE log_exp2]
        BETWEEN extliml AND extlimu
        [INCLUDING GAPS].
ENDPROVIDE.

Similar Messages

  • Best Practice for Use of ABAP in Customizing SRM and/or CRM

    I was wondering if there is a document that defines best practices for the use of ABAP with the installation and customization of SRM and/or CRM.   Such as amount of ABAP coding typically required, and best practices around the use of ABAP for customization and configuration.
    Thanks.

    Hi, Johnson
    Sorry, Please don't mind, you are not at right place to ask the Question like this
    Please read "The Forum Rules of Engagement" before posting!  HOT NEWS!!
    Thanks and Regards,
    Faisal

  • HR ABAP Query - Simulated infotypes 2501 and 2502

    Dear all,
    I am developing a report based on Simulated infotypes 2502 (Quota Statuses) and 2501 (Employee Time and Labor).
    Since my report provides an overview of all the reporting quota types and reporting time type to the end-user, I need to extract data from both the infotypes ( 2501 & 2502 ) simultaneously.
    I created a report with (Logical Data Base) LDB PNP and the HR report category is also set as required. In other words the attributes is set as same as in standard report (RPTBAL00).
    In the declaration part of the program I mentioned the source code as.
    INFOTYPES:
    *-----Infotypen
    INFOTYPES:
    0001,     "Org. Zuordnung
    2001,     "Absence type.
    2002,     "Attendance
    2500,     "Personal Work Schedule (Simulated Infotype 2500)
    2501,     "Employee Time and Labor (Simulated Infotype 2501)
    2502.     "Quota Statuses (Simulated Infotype 2502)
    In the START-OF-SELECTION.
                          GET PERNR                                      *
    GET pernr. (break point set at statement)
    Here my problem is when I execute the report for multiple employees data from simulated Infotype 2501 is deriving wrongly. The data for the first employee will always correct. From the second employee onwards date fields BEGDA and ENDDA will be 00000000. After a detailed debugging (setting break point at GET PERNR statement) I found that the problem is occurring only with Infotype 2501 values and not with Infotype data 2502.
    I also note that  this will happen only when I use both 2501 and 2502 at same time in the declaration part
    INFOTYPES:
    2501,     "Employee Time and Labor (Simulated Infotype 2501),
    2502.     "Quota Statuses (Simulated Infotype 2502)
    Question is How to correct this date field values obtained through GET PERNR for Infotype 2501 when using both infotypes 2501 and 2502 simultaneously.
    Per requests for testing this is:
    I.     Your system should be configured for reporting time types.
    II.     Time evaluation should be run for at least one time to transfer data to simulated infotypes.
    III.     Persons with less understanding of SAP HCM may have to take help of a functional consultant.
    Please help me in with your valuable suggestions:

    Thanks a lot for all your suggestions,
    I have tested with this still the same problem persists.
    From the second employee onwards the value of P2501-begda and P2501-endda is 00000000.
    Step 1: create a new program  zhr_test.
    Step 2: Assign PNP as the logical data base in the report attributes.
    Step 3: Use XXXX2001 as report category.
    Code for TEST 1: normal test case
    REPORT  zhr_test.
    TABLES :pernr.
    INFOTYPES:
        2501, "Employee Time and Labor (Simulated Infotype 2501),
        2502. "Quota Statuses (Simulated Infotype 2502)
    START-OF-SELECTION.
    GET pernr.
    BREAK-POINT.
    Code for TEST 2: suggeated by Venkat.O
    REPORT  zhr_test.
    TABLES :pernr.
    INFOTYPES:
        2501 MODE n, "Employee Time and Labor (Simulated Infotype 2501),
        2502 MODE n. "Quota Statuses (Simulated Infotype 2502)
    START-OF-SELECTION.
    GET pernr.
      rp_read_all_time_ity pn-begda pn-endda.
      BREAK-POINT.
    In Both the cases, infotype 2501 records  begda and endda values will be 00000000 from second employee.
    You can test only if you have simulated infotypes configured in your system, atleast one time the time evaluation would have been run.
    Thanks
    Cibin

  • ABAP-HR Name of the BADI which updates merit salary in infotype 759 and 15.

    Hi Friends,
        I want the name of BADI which updates merit lump sum in infotype 15 .
    Example 1.
       Employee’s base pay = 34,000
       Merit increase amount = 1,500
       Employee’s Salary Range =  25,000 – 35,000.(This is taken from T710)
      IT0759 STXX Pick-up subtypes related to the following plans  (MSST, ,MSWH,  MSPA, MSAN) = 1,000
      IT0015 ST  E408 Merit Lump Sum = 500.
    In the above example out of 15000(Merit increase amount). 1000 will get updated
    in infotype 759. and 500 wll be updated in Infotype 0015.
    Question. Which enhancement does this operation. there is BADI called HRPAD00INFTY but this can update only one infotype at one point of time
    because new_innnn-infty is a structure which holds only one Infotype at run time.
    I would be greateful for this information.

    Hi,
            Try HRECM00_GDEGP
    other way
    Implement this BAdI HRECM00_CONSISTENCY in SE19 & put your validations in the method CHECK_CONSISTENCY .. You will have to use the function module HR_ECM_ADD_MESSAGE to fill your messages & show it on the front end
    <b>Reward points</b>
    Regards

  • Want to store and retrived  images  in the BFILE format using inter media

    I want to store and retrived images in the BFILE format using inter media.I found a article in the oracle site that Oracle interMedia image supports BFILEs.But this article is not demonstrating the use of BFILEs.Please help me to findout the solution.
    Thanks in advance.
    null

    The advantage to using BFILE storage for your is that it's an easy way for Oracle
    Multimedia to access your images without importing them into the database.
    The disadvantages are that the images are read-only. If you want to scale an image or
    convert to a different format, you will need to create a destination image to hold the result. This
    will necessarily be a BLOB based image.
    Adding images is difficult to do from within an application program. Generally you would add new images to a file system that is accessible to the Oracle Database, then insert new rows in your table with appropriate BFILE pointers to the new images.
    BFILE images require separate backup from the database. Also there is not way to transactionally coordinate your BFILE data with your relational data.
    If you are using Oracle 11g, you can use the SecureFile option for BLOB storage. This is much faster then the previous BLOB storage (now called BasicFile) and much faster then BFILE also.
    That said, below is a code snippet that shows how to insert a BFILE based image, set it's properties, show it's properties and select the BFILE locator to access the content. You would need to use the DBMS_LOB package (in PL/SQL) to read the content. From other APIs, (e.g., Java) you would need to use the proper interfaces to access the BFILE.
    Note that you need change the USER, PASSWORD fields in the code. Also you should change the directory location and image name for your use.
    -- create a directory object indicating where the images are stored;
    create or replace directory imgdir as '/tmp';
    -- and grant permission to read to a user;
    grant read on directory imgdir to <USER>;
    conn <USER>/<PASSWORD>;
    -- create the images table
    create table images(id integer primary key, image ordsys.ordimage);
    set serveroutput on
    declare
    obj ordsys.ordimage;
    begin
    -- use the init('FILE', <SRC_LOCATION>, <SRC_FILE>) function
    -- to create an ORDIMAGE object with a BFILE source
    insert into images(id, image)
    values(1, ordimage.init('FILE', 'IMGDIR', 'wizard.jpg'))
    returning image into obj;
    -- lets see if the image source is local or not
    if(obj.isLocal()) then
    dbms_output.put_line('image source is local');
    else
    dbms_output.put_line('image source is NOT local');
    end if;
    -- set the properties of the image object
    obj.setProperties();
    -- and update the row
    update images set image=obj where id=1;
    commit;
    end;
    column height format 99999
    column width format 99999
    column mimetype format a30
    column length format 999999
    -- let's see what we have
    select t.image.getHeight() as "height"
    , t.image.getWidth() as "width"
    , t.image.getMimetype() as "mimetype"
    , t.image.getContentLength() as "length"
    from images t
    -- fetch a BFILE handle to the content
    declare
    bf BFILE;
    length number;
    begin
    select t.image.getBfile() into bf
    from images t
    where t.id=1;
    -- use the DBMS_LOB interface to find out size of image
    length := dbms_lob.getLength(bf);
    dbms_output.put_line('length of BFILE is ' || length);
    end;
    ---What we get when we run the code
    Connected.
    Directory created.
    Connected.
    Table created.
    image source is NOT local
    PL/SQL procedure successfully completed.
    height     width mimetype               length
    399     485 image/jpeg          92552
    length of BFILE is 92552
    PL/SQL procedure successfully completed.
    SQL>

  • 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

  • Creation of New fast entry infotype using PA70

    Hi all,
    I am new to HR ABAP.I have got a requirement that i need to create new fast entry infotype using PA70.Please gide for the development.
    Thanks and regards,
    venkat

    Hi Venkat,
    I have  a same problem with the PA70.
    Can you please tell me how to maintin it. I tried to maintain both the tables T588Q and T588R but its stilll not working.
    Can you plz guide me abt the same.
    thank you
    Manjiri

  • I want to store an image in R3 table and retrive it

    Hi,
    i want to store an image in R3 table and retrive it from my function module.
    Can any one tell me what is the step by step procedure to do that.
    I am new to ABAP.
    Regards,
    H.V.Swathi

    Dear Swethi,
    You can move images to SAP using SE78. then u can use them where ever u you require them.
    SE78->GRAPHICS->BMAP here give ur image name and click on save
    Rgds,
    Kiran
    Edited by: Kiran on Jun 11, 2009 7:15 AM

  • ABAP-HR:Infotype

    Hi,
    I am working with ABAP-HR.
    In Personal Administration, while defining Infotypes , they say 'each infotype requirs at least 2 structures and atleast 1 internal table'.
    Will any body please help me to get the idea.
    Thanks in advance.
    Anirban Bhattacharjee

    hi
    Each infotype has two structures and One associated table.
    PSnnnn - this structure contains all of the infotype data fields.
    Pnnnn - this structure contains infotype key fields and all the data fields from the structure PSnnnn.
    Here nnnn is the infotype number.
    PAnnnn PBnnnn etc are actual database tables hoilding the data.
    In ABAP-HR Infotype are grouped in INfoGroups. They have Screens associated with it. And a user has to fill those screens and it is possible that user might chane a value many times before actually saving it.
    So these structures acts as a temporary storage for thise values.
    Hope this wil help.
    Reward if useful.
    Sumit Agarwal

  • Problem with storing and retriving a different langauge font in mysql

    hi,
    i have problem with storing and retriving a different character set in
    mysql database ( for example storing kannada font text in database)
    it simply store what ever typed in JTextField in database in the
    formate ??????????? and it showing ???????? .
    please what can i do this problem.
    thanks
    daya

    MySQL does not know about what type of Font you use or store. that is applicatioon specific. All it knows is the character set that you are storing and the data type and data. THere are something you should know when working with database and Java:
    1. make sure you know what character set is used for the database table.
    2. make sure you know what character set is used by Java (default to UTF-8 ..
    sort off - there are few character that it cannot save). You can enforce the
    character set being sent to the database by the String's getBytes(String charsetName) method.
    3. make sure the application you use to view the table use the correct character set
    if it use a different character set, then any character that it does not recogized
    will be replaced with a quetion mark '?'....eventhough the data is correct.

  • Custom Infotype - Using Table control in the screen.  IN OM

    Hi,
    I am having a requriement where in I need to create a custom infotype using table control in the screen. I have to create this in OM and I am using PPCI transaction to create the info type. I am able to create the infotype with fields but not table control. Please let me know if any one of you came across and help me with the process I need to follow.
    Thanks in advance.
    Venkat.

    Hello,
    After you create the info type throug PPCi, you can directly go to the Sceen module program created automatically while creating Info type and edit the screen.
    activate it after your changes.
    Regards,
    Srujan.

  • Error while updating infotype using HINUINFO_UPDATE

    Hi All,
    While executing the program 'HINUINFO_UPDATE'
    i am getting an error 'No object identification permitted for infotype 0582, subtype LTA'.
    After the approval for LTA claim is done in ESS i have executed the program 'HINUINFO_UPDATE' to update he infotypes 15 and 582. Infotype 15 is getting created but while creating the infotype 582 system gives the above error message.
    In the detailed error log system gives the following message.
    "You attempted to access a data record with the object identification 1. However, according to the Customizing settings, object identifications cannot be used for subtype LTA of infotype 0582".
    Helpful answers will be rewarded .

    Solved by SAP

  • 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

  • ABAP proxy code using internal table

    Hi XI guru's,
    Good Afternoon,
    My Scenario is ABAP Proxy to file using ztable.
    i am getting data from Sap R/3 data base as Ztable. using this Ztable i have to write ABAP Proxy code. I generated ABAP Proxy and mentioned all below.Please send me ABAP Proxy code using this details. This is very urgent. Please help me.
    ABAP proxy class:   zco_mioa_tata
    structure              :   zmt_tata
    structure                :   zdt_tata
    structure                :   zdt_tata_employee
    Table                :   zdt_tata_employee_tab
    Ztable                :   zcnu_proxy_table
    outbound structure:
    mt_tata
        employee
    thanks and regards
    sai

    Sai,
    I guess this will help you.
    1. Proxies can be a server proxy or client proxy. In our scenarios we require proxies to send or upload the data from/into SAP system.
    2. One more thing proxies can be used if your WAS &#8805; 6.2.
    3. Use Tcode SPROXY into R/3 system for proxy use.
    4. To send the data from R/3 system we use OUTBOUND PROXY. In Outbound proxy you will simply write an abap code to fetch the data from R/3 tables and then send it to XI. Below is the sample code to send the data from R/3 to XI.
    REPORT zblog_abap_proxy.
    DATA prxy TYPE REF TO zblogco_proxy_interface_ob.
    CREATE OBJECT prxy.
    DATA it TYPE zblogemp_profile_msg.
    TRY.
    it-emp_profile_msg-emp_name = 'Sarvesh'.
    it-emp_profile_msg-empno = '01212'.
    it-emp_profile_msg-DEPARTMENT_NAME = 'NetWeaver'.
    CALL METHOD prxy->execute_asynchronous
    EXPORTING
    output = it.
    commit work.
    CATCH cx_ai_system_fault .
    DATA fault TYPE REF TO cx_ai_system_fault .
    CREATE OBJECT fault.
    WRITE :/ fault->errortext.
    ENDTRY.
    Receiver adapter configurations should be done in the integration directory and the necessary sender/receiver binding should be appropriately configured. We need not do any sender adapter configurations as we are using proxies.
    5. To receive data into R/3 system we use INBOUND PROXY. In this case data is picked up by XI and send it to R/3 system via XI adapter into proxy class. Inside the inbound proxy we careate an internal table to take the data from XI and then simply by using the ABAP code we update the data inot R/3 table. BAPI can also be used inside the proxy to update the data into r/3.
    I hope this will clear few doubts in proxy.
    Just go through these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/555f3c482a7331e10000000a114084/frameset.htm
    ABAP Server Proxies By Siva Maranani
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies
    /people/sravya.talanki2/blog/2006/07/28/smarter-approach-for-coding-abap-proxies
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy
    File to R/3 via ABAP Proxy with good example
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy
    http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
    Generating java proxies..
    /people/prasad.ulagappan2/blog/2005/06/27/asynchronous-inbound-java-proxy
    /people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
    Synchronous Proxies:
    Outbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2boutbound%2bprogram%2b-%2bpurchase%2border%2bsend
    Inbound Synchronous Proxy
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/abap%2bproxy%2binbound%2bprogram%2b-%2bsales%2border%2bcreation
    Regards,
    Sarvesh

  • ABAP Proxy Set up and Load balancing

    Hi All,
    We have a SAP ECC 5.0 PRD server in our landscape. I need to set up ABAP Proxy in the server.
    They have implemented Load balancing in the ECC 5.0 PRD server. They have two servers (One Central Server and another APP Server) and one of the servers will be used at any point in time based on load conditions.
    Now where exactly i have to perform the ABAP Proxy set up and how does it work at runtime.
    Thanks in advance.
    Regards,
    Sudharshan N A

    Hey,
        refer to this.
    R3 side
    SLDCHECK
      Use this transaction to access the SLD of XI.
    SLDAPICUST
      Create an entry for respective XI server
      requires hostname, port username and ip.
      Can have multiple enteries for different servers.
      But you can check only one entry.
      based on the entry that is checked, respective SLD API will be triggered from
      SLDCHECK.
    SM59 (T type connections).
      To connect to the SLD you need 2 types of TCP/IP connections.
      1)LCRSAPRFC:-
          In this you require the gateway host(ip address) and gatewayservice(sapgw[system no.])
          YOu also need to give Program ID.
          Entry of corresponding Program ID must be maintained in SMGW.
          IN SMGW Click GoTo->logged on Clients.
          If entry is not there for corresponding XI.
          Create a communication channel in XI, pointing to R3 and give a Program ID
          in the channel. Once the channel is activated, corresponding Program ID wil
          appear in SMGW.
      2)SAPSLDAPI:-
         In this case follow the same porcedure as for LCRSAPRFC.
       As far as the Program ID is concerned te procedure mentioned above is for
       Customized RFC's
       The RFC destinations mentioned here are both standard RFC's
       Hence for these two RFC's no need to Create Program ID's. you just need to
       change the System ID of the Program ID.
       Both these RFC's are maintained in the J2ee server of XI.
    SPROXY.
       In this transcation you can check the Proxies.
       If the proxies are not activated (i.e. if the message interfaces are not active)
       this step is optional
       then you need to maintain one G type RFC destination pointing the resepctive XI server.
       In the G tpye RFC destination give the Ip adress of the XI server in the target
       host and set the path prefix as /rep.
       Goto SPROXY->Goto->connection test-> click on the table SPROXSET.
       In this table maintain enteries for ADDRESS_ONLY_FROM_SPROXSET and IFR_HTTP_DEST
       The values corresponding to these enteries will be the G tpye RFC destination.
    In order to connect R3 to the Integaration server you need to maintain H type
    The default RFC is XI_INTEGRATIONSERVER. In you need to give the Target host entry as the
    Ip address and Path Prefic as.../sap/XI/engine/?type=entry (this you can get from SXMB_ADM of XI)
    You can also create the H type RFc of your own.
    goto SXMB_ADM(r3) and open Integration engine configuration.
    regards,
        Milan

Maybe you are looking for

  • Extraction of data from ECC to BI

    Hi Experts, I am trying to follow a task assigned to load attribute data from a source sap system for a cost center. I have followed the following steps: 1: Create a global transfer routine. 2: Created a generic datasource for attributes 2.1: In the

  • Convert MySQL timestamp field to a Unix timestamp

    I have a process where I want to compare the current date with an expiration date that is so many months after a registration date. The registration date is stored in a MySQL timestamp format. I want to convert this to a Unix timestame so I can do th

  • My screen on hp4680 printer says "skeniranje" It wont print and I do not know what that means

    The little screen keeps blinking with the skeniranje and the printer will not print after reinstalling to try and correct the problem it will not print

  • How do I create a wish list in iTunes on my ipad

    How do I create a wish list in iTunes on my iPad?

  • REP-0069 error

    Hi, I am receiving the following error when i am trying to run the report from report builder. I am working on reports 10g. REP-0069: Internal Error java.lang.illegalArgumentException: Not a directory! Can anybody suggest me how to resolve this issue