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

Similar Messages

  • SAP Query - Reporting on Simulation infotype 2501

    We defined reporting time types for the SAP delivered infotype 2501 to report from the ZL cluster.  However, when we report the data using SAP Query, for a few records, the following is observed:
    (1) Basic list output in Query report splits the record as only 50% (half) of the time is output when compared to the data in the cluster.
    (2) If you also use the same field in a Statistics output, it seems to report the full amount of time as recorded in the cluster.
    The discrepancy is noticed only in a very few records reported by SAP Query. We need to be absolutely sure as to why some records are not reported accurately by SAP query basic list output for the simulated infotype.
    I would appreciate your help
    Thanks
    Pascal

    Hi Pascal,
    Since the IT2501 is a "Simulated Time Infotype" you cannot look at the data in it, but you can confirm the data from the ZL cluster and the data from the employee.  Since it is only this employee or a few employees, it is probably not the configuration of the time buckets for the IT2501, but you may want to make sure all time times are captured as you want.  Then look at the time entries for this individual or individuals.  Did they enter a time type that was not expected or configured?  Is all their time approved and passed through Time Evaluation?  Finally check the Master Data for the employee - is the Planned Working Time (IT0007) infotype correct or has it been recently changed?  Is he in a special Cost Center (IT0027) or Project that is captured differently for time purposes? 
    Since it just one or a few individuals, I would suspect the Master Data and some inconsistant entry that affects the time cummulation for the IT2501.
    Paul

  • ABAP query processing in bgrnd and saving file to prsntn/application server

    Hello Gurus
    I have question regarding to ABAP query execution. Currently I try to find out if ABAP query can be executed in background and store the result into UNIX directory or in the presentation server(desktop). What I found is that the report need to be executed using option Private File and the data by default will be stored at directory /sap/outbound/.
    However what I found next is that the maximum fields should be 64 fields. If the query result has more than 64 fields, the error will occurs WRITE_TO_OFFSET_TOOLARGE.
    My question is:
    1. Can we set the directory in unix folder to someplace else than /sap/outbound/ ?
    2. Can we set in order to have the report stored without limitation 64 fields?
    Thanks in advance

    HI
    Yes you can set the directory in unix folder to someplace as you need to get confirmation for the path from your Functional Analyst.
    Thanks

  • Abap query (excluding specific kind and also copying queries)

    hi everyone,
    I need to do the following:
    1.from the list of available abap queries, I need to list only financial queries in the global work area.
    2.Then I need to copy only the financial queries from the standard area into the global work area
    3. Finally I need to find a list of all financial queries that do not have transaction codes assigned to them and assign t codes to them
    I have an idea of how to go about this using sq01. but what exactly may I need, as my background is more functional than abap related.
    I believe generally queries (infosets)? of a particular kind are under a particular user group. but I dont think in my case it is very clear. As certin user groups might have queries from all different functional areas (including finance and other areas like HR--the one I want to exclude).
    Any ideas?? I would really appreciate it!

    hi,
    i don' get it
    1) and 2) what is standard and global work area???
    3) find out report-name:
    AQCSUS01========ZQ1===========
    1-4 = AQCS
    5-12 = usergroup
    13-  = query-name
    -> go to se38 and do "where-used-list in transaction with
       your report-name
    -> you can assign tcodes with using report-name in trx. <b>SE93</b>
    A.
    pls reward point for useful answers!
    Message was edited by: Andreas Mann

  • ABAP Query: FI Tables - BSEG and BKPF

    Dear All,
    I have tried to use SAPQuery - SQ01 to join 2 SAP tables (BSEG and BKPF) by creating an Infoset (SQ01 >> Environment >> Infosets >> Create)
    However, there is always an error message for the table join when I generate the infoset. Tables BSEG and BKPF are joined together by conditions BSEG-BELNR & BKPF-BELNR; BKPF-BURKS & BKPF-BURKS; BSEG-GJAHR and BKPF-GJHAR.
    The error message prompted is, "You cannot use comparisons with column references in pool and cluster". Is the message trying to say that BELNR, NURKS and GJAHR are column references in pool and cluster, thats why we can't join the tables?
    The purpose of the infoset is to extract accounting documents. I will need to extract accounting doc data from DEV, QA and Prodcution Server.  If I use SAP QuickViewer, everytime I go to a differenct server I will need to create the QuickViewer in the system before I can use it. But if i use SAP Query, i will need to create once and transport the SAP Query to another server.
    Kindly advise if there is a way I can extract accountng document by using SAP Query?
    Million Thanks in Advance.

    Hi Mark,
    I appreciate your response.
    Im tyring to extract information for open GL items. Thus the relevant tables would be BSIS. But I find that  some fields such as Purchase Order Number; Purchase Order Line Item, Asset No.,Asset Sub-No which Im interested in do not exist in BSIS. But these fields can be found in Table BSEG?
    If I have to link BSEG and BKPF, how should i go about doing it?
    Kindly advise.
    Thanks in Advance!

  • Difference between Report painter and abap query .

    can anyone please tell me the difference between the report painter and the ordinary alv,clasical reporting and also the difference between Report painter and abap query. How the output format will be in Report painter. If anyone has any documents please send it to
    [email protected]
    Thanks,
    Joseph.

    hi,
    ABAP Query is an ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    link for abap query --
    https://forums.sdn.sap.com/click.jspa?searchID=221911&messageID=2790992
    whereas the Report Painter enables you to report on data from various applications. It uses a graphical report structure that forms the basis for the report definition. When defining the report, you work with a structure that corresponds to the final structure of the report when the report data is output.
    link for report painter --
    https://forums.sdn.sap.com/click.jspa?searchID=221874&messageID=1818114
    Regards,
    pankaj singh
    Message was edited by:
            Pankaj Singh
    Message was edited by:
            Pankaj Singh

  • What is the use of abap query?

    hi sap gurus,
    good morning to all,
    what is the actual relecance of abap query ?
    i know that we can generate simple reports
    but
    what kind of reports ?
    give some examples plz.
    regards,
    balaji.t
    09990019711

    Hi Balaji,
    Here is the details of ABAP Query
    ABAP Query
    An ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    ABAP Query offers the following types of reports:
    Basic lists
    Statistics
    Ranked lists
    I hope it will clear for you,
    Regards,
    Murali.

  • How to transfer ABAP query from one server to another server

    Hi all,
    I have a ABAP query in development server and i need to transport it to production server.
    I have attached a transaction to it using the program which got generated in the back ground
    from the abap query in the developemnt server.
    I have downloaded and uploaded  a ABAP query from one server to another server.
    But the program which got generated in the back ground in the production server is different from
    program which is generated in the development server.
    But my transaction is attached to the program in the development server.If i transport the transaction
    to production server,it is giving error since that program is not present in the production server.
    Am i going in the right way......? 
    Is there any problem in my upload/download procedure ?
    Is there any way to achieve my purpose ...............?
    Please kindly reply me at the earliest.

    You have different ways to call a query using a t.code. One way is to create a pgm with the following code and attach a t-code to it.
    data: gv_test type sy-repid.
    DATA: GV_USERGROUP TYPE AQADEF-BGNAME VALUE 'FI',
          GV_QUERY TYPE AQADEF-QUNAME VALUE 'ZCON_FI_QUERY',
          GV_RNAME TYPE AQADEF-PGNAME .
    CALL FUNCTION 'RSAQ_REPORT_NAME'
      EXPORTING
        WORKSPACE        = ''
        USERGROUP        = GV_USERGROUP
        QUERY            = GV_QUERY
    IMPORTING
       REPORTNAME       = GV_RNAME
    * For the dynamic excution of the called query assisgn GV_RNAME to <gv_test>.
    gv_test = GV_RNAME.
    SUBMIT (gv_test) via selection-screen and return.
    Alternate way is while creating T-Code you choose option Transaction with parameters.
    Transaction as START_REPORT and in default values table control at bottom give as follows
    D_SREPOVARI-REPORTTYPE = AQ
    D_SREPOVARI-REPORT = User group
    D_SREPOVARI-EXTDREPORT = Your Query name
    Regards
    Sathar

  • ABAP query transport issue

    Hi,
       I have copied an abap query ZGA to ZGA_IND1 and changed the title to INDIA.  I gave transport number and released and transported to Quality. A transaction has been assigned to this Query
      But when I execute this query from Quality machine using transaction, it says program AQZZZGA=========ZGA_IND1======   is missing.
       Transaction code is transported but not the ABAP query program.  I retransported and failed couple of times.
    Not sure why underlying program is not transpoorted to Quality.
    Any idea, what I am missing here.
    Cheers.
    Sudhaker

    hi,
    I guess the transaction code directly calls the generated ABAP program, which is the bad approach, because the generated ABAP program might have different names in different systems (like here). You have to create a transaction, which calls transaction START_REPORT with the following parameters/attributes filled :
    D_SREPOVARI-REPORTTYPE= AQ "parameter indicating Abap Query
    D_SREPOVARI-REPORT= '...' "Query User group
    D_SREPOVARI-EXTDREPORT= '...' "Query name
    Of course you have to replace the dots with real usergoup and query names. You create this transaction code in the development system and transport it to test and production. It will work everywhere (in case the query is transported as well).
    hope this helps
    ec

  • Abap query with constante value

    hello,
    I wish to create several abap query since tables MKPF and MSEG for the inventory mouvements. each query for a type of inventory turnover (101, 501,…), but I should not put the code movement in criteria of selection. it is necessary that the code movement should be fixed in the query. should-I declare the MSEG-BWART as a constante? where I can do it?
    thank you for your assistance.
    cordialy Said

    Hi,
    Variant is a good option. Here is one more stable option.
    Other option is to use following Code.
    RANGES : ran1  FOR MSEG-BWART.
    ran1-sign = 'I'.
      ran1-option = 'EQ'.
      ran1-low = 101.
      APPEND ran1.
    ran1-sign = 'I'.
      ran1-option = 'EQ'.
      ran1-low = 501.
      APPEND ran1.
    Then use ran1 similar to select option.
    Hope this will help you.
    Darshan

  • Report Painter/Writer/ Abap-query

    Hi all,
    Could you please answer the following questions.
    1. What is Report Painter ?
    2. What is Report Writer ?
    3. What is  Abap Query ?
    4. What is the  difference between all ?
    5. When Do we Go for each one ?
    send me if any Materials on above.
    Thanks & Regards
    krish..

    Hi
    Report painter:
      A tool for creating reports that meet specific business and reporting requirements.
    The Report Painter enables you to report on data from various applications. It uses a graphical report structure that forms the basis for the report definition. When defining the report, you work with a structure that corresponds to the final structure of the report when the report data is output.
    The SAP System is delivered with several row and column models that can be used as building blocks to help you create reports quickly and simply.
    Report Writer:
    A tool for creating reports that meet specific business and reporting requirements.
    Report Writer enables you to report on data from multiple applications. Using functions such as sets, variables, formulas, cells and key figures, you can create complex reports that meet specific reporting requirements.
    When working with Report Writer, you can use certain functions that are not supported by Report Painter. These functions include:
    Multidimensional column structures
    User-defined definition of inactive row and column combinations
    Enhanced functions for using cells in column formulas
    ABAP Query:
    An ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    ABAP Query offers the following types of reports:
    Basic lists
    Statistics
    Ranked lists
    Regards
    Su

  • Transport abap query from one client to another--v--urgent---v----urgent

    hi,
    i have an abap query in one client and want to copy to another client.can i do this if so what are the steps involved .i tried the options like in query go to environment and then to transport .i also tried to do by running the programe RSAQR3TR.but it was transporting in the same client .i want to transfer into another client.plz help me out asap .

    hi,
    Create a request related to that Table Definition and add data content in the request like
    R3TR-TABL-<table name>
    R3TR-TABU-<table name>
    R3TR-TABD-<table name>
    and release the request
    Take the DATA files and CO files related to that request in a Pen drive and put the same into the new server DATA and CO files and import using STMS.
    For new program, it gets transported along with the program.
    For changed program (which has already been transported once), you need to include texts in transport request - just go to Selection texts, save them in the transport request and you're all set.
    whenever you assign a request number to the program
    and also the selection texts willbe stored under that request number
    so when u release the program
    the selection texts will also go
    after releasing the request if you change only the seleciton texts
    only the changes done to selection texts will reach the target
    and the rest of the things remain same
    so when ever you release a request all the things under that request
    will go

  • What is the prupose abap query? configuaration process?

    what is the prupose abap query? configuaration process?

    Hi Balaji,
    Here is the details of ABAP Query
    ABAP Query
    An ABAP Workbench tool that enables users without knowledge of the ABAP programming language to define and execute their own reports.
    In ABAP Query, you enter texts and select fields and options to determine the structure of the reports. Fields are selected from functional areas and can be assigned a sequence by numbering.
    ABAP Query offers the following types of reports:
    Basic lists
    Statistics
    Ranked lists
    I hope it will clear for you,
    Regards,
    Murali.

  • Addition of checkbox and 2 fields in ABap query selection screen

    Hi
    I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

  • ABAP Query and SAP quary

    What is the diff between ABAP Query and SAP quary?

    Balu,
    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...

Maybe you are looking for

  • Opening the OAF page in New Window on the responsibility list page

    Hi Gurus, I have a requirement where in I need to open the page on a new window. I have created the page,and attached the function to the menu,and attached the menu to a responsibility. When a user clicks on the responsibility it shows a list of fuct

  • IP Profile - is it stuck/restricting my download s...

    After my recent extremely slow DL speed issues and intervention by the moderators, my BT Total Broadband now appears much better. However, my IP line profile appears now to be stuck at 2000, even though I am syncing at over 3000. Note: My previous IS

  • Network Drive Permission Problem on Single Computer

    I am setting up a user on a new computer. On our computers we have four mapped drives. One of these is a personal drive which only he has access to. He can open three of the four mapped drives without a problem, but he cannot open the personal mapped

  • Safari not working on computer

    when i go onto safari pop up comes up sorrybut safari browser version you are using does not support community tool bar

  • Yosemite/XCode 6.1 Freezes when every time I click in "images.xcassets"

    After updating my XCode to version 6.1 in my Yosemite , the IDE freezes every time I click in "images.xcassets". I've already closed my project, created a new one, and the result is the same when I click in "images.xcassets" on the left side.