Adhoc Query iview for IT0006 and IT0021

Hi All
SAP has given page in MSS for IT0006 and IT0021 - 'Generic iview Test Page'. This page has 3 iViews : one for employee search , second for IT0006 and third for IT0021. This page is working ok and retrieving data from back end.
But If I replace IT0006 or IT00021 query with my own query then the error on Page is 'System cannot retrieve data'
SAP standard query given in iview property is MSS_IT0006, If I replace this query with my query ZMSS_IT0006 then I get above error.
I have created query ZMSS_IT0006 in  work area:- global , usergroup:- /SAPQUERY/MS
Is there any aditional config need if we replace standard SAP query by our own query?
Amit.

in the adhoc query we can select the periods based on the frequency but the dates will not get default
As in the Pay roll driver the dates get defaulted based on the settings made in Control Record Status
so i dont think this is possible thru Standrad
let wait for expert views

Similar Messages

  • SAP Adhoc Query by payroll area and respective periods

    Hello,
    I would get an idea of how to make SAP query by having a selection screen for Payroll area and its respectve periods (respective control record).  I was able to get the selection screen where I can input payroll area. But the date range for the report is a manual feed. I want something like when we select the payroll area, then I want the periods to be shown (payroll period - current period or other period). I'm new to making this SAP query. Any inupt is appreciated. Thanks.
    Raj.

    in the adhoc query we can select the periods based on the frequency but the dates will not get default
    As in the Pay roll driver the dates get defaulted based on the settings made in Control Record Status
    so i dont think this is possible thru Standrad
    let wait for expert views

  • How to use different iViews for variables and queries?

    Hi all!
    I need to use separtate iViews for storing variables and extracting queries.
    For example, I have one variable "Currency" for two different queries,  and I need that all of these queries (in separate iViews) would use the value of currency was put by user in the first iView with only one input.
    How can I do this task? Is it possible at all?
    Thanks for replies.

    Hello Alex,
    You have to use EP client framework (EPCF) in your development.
    I hope this idea will help you.
    Kind regards, Pino.

  • Not able to get ESS iviews for 80 and 80C

    Dear All,
    We have implemented ESS MSS BP (ERP 2005 EHP3) and have standard iviews working on the portal.
    But when i preview the iview for section 80 and 80 C, i get the following error.
    " com.sapportals.portal.prt.runtime.PortalRuntimeException: Failed in WD JNDI lookup. javax.naming.NameNotFoundException: No child found in WebDynproContext with name essinsec80 "
    Also, am not able to find the application in the Webdynpro Administrator.
    Can somebody throw their experiences regarding why this is occuring and how this can be resolved.
    Thanks
    Regards
    Piyush Bhurangi

    Hi Piyush,
    ESS MSS BP (ERP 2005 EHP3)
    as you said earlier that you have applied EHP3 .
    But the pacth you have applied is EHP4 and not EHP3
    BP_ERP5ESS 1.41 SP3 (1000.1.41.3.0.20090430054002)
    And this is a cause of the problem which you are facing .
    You are applying the BP which is relase EHP4 and you SAP_ESS is on relase 600 as well as your backend patch is also not equivalent for BP -ESS EHP4.
    So the solution is ;-
    If you have to use BP-ESS with EHP4 , then you have to upgrade you backend SAP_HR with EHP4 and SAP_ESS patch with 603.
    Thanks
    Anil

  • SAP Query error for VBAK and KONV tables

    Dear Experts,
    Want to create SAP Query for below requirement but faced some error
    Step1) Extract the data from VBAK table w.r.t.  order type ,  Sale org and date range
    and collected the Sales order numbers and doc. condition record (KNUMV)
    Step 2)In table KONV (Transactional condition record data) in this table provided input as doc. condition record (KNUMV) with respect to condition type ABCD
    Manually i extracted data, there is no problem .
    But customer want to generate SAP Query for above requirement
    I tried to create but in t.code  SQ02 when i tried to join the table VBAK and KONV i faced the below error
    Table KONV cannot be used in a join.
    How  can I create SAP query for above requirement ???
    if its not possible then create Z report is the only solution ??????
    Thanks in advance

    Hello
    You can not create Query report with joining KONV. But there is one solution for your problem. You can create Query report by using Database VAV. In this logical database you will find all SD tables and also KONV. Use only those tables and fields which you want in your query report. I have checked this and its working
    Please try this and update the forum accordingly.
    Edited by: moazzamjii on Jun 30, 2011 12:13 PM

  • SQ01 Query Help for (MKPF and MSEG)

    Is their anyway to have the field MSEG-ERFMG show up on the query results as postive or negative color or use a "-" or "+".  Need to try and show whether is was a negative or postive movement.

    F1 help for MSEG-SHKZG
    Debit/credit indicator in revaluation
    This indicator is used for internal program control.
    Please do not change the entry in this field.
    Any changes made could lead to program errors or terminations.
    I guess the "sign" is defined trough this field ("S" - sollen (debit), "H" - haben (credit)). If my assumption is true, you won't be able to see + / - in MSEG-ERFMG simply because this field contains no information on the sign.
    Using ABAP code you can solve it (or in SQ01 you can use calculated field in your query...I'm not sure you can define that calculated field to cover your requirement...).
    Regards,
    Csaba
    Edited by: Csaba Szommer on May 12, 2009 11:20 PM

  • Query on for all and delete

    Hi all,
    I have developed a procedure. It is deleing records from a table.
    Create or Replace PROCEDURE sidoc_delete(period date)
       IS
          /*CURSOR c5 IS
          SELECT *
            FROM ibsoifc.ibs_s_i_doc_receipt a
           WHERE EXISTS (
                    SELECT 1
                      FROM ibsoifc.ibs_x_t_bill b
                     WHERE a.app_to_doc_no = b.doc_no
                       AND b.bill_month <= period
                       --AND b.bpref_no = :cons
                       AND b.balance_ser_amt = 0
                       AND b.balance_tax_amt = 0)
             --AND a.bpref_no = :cons
             AND a.app_to_doc_date <= period;*/
             Cursor C5 is
                SELECT a.rowid,a.*
                  FROM ibsoifc.ibs_s_i_doc_receipt a,
                       ibsoifc.ibs_x_t_bill b
                 WHERE a.app_to_doc_no = b.doc_no
                   AND b.bill_month <= period
                   AND b.balance_ser_amt = 0
                   AND b.balance_tax_amt = 0
                   AND a.app_to_doc_date <= period;
          TYPE tsch IS TABLE OF c5%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c5;
             LOOP
                FETCH c5
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
                FORALL i IN vtsch.first .. vtsch.last SAVE EXCEPTIONS
                   Delete from ibsoifc.ibs_s_i_doc_receipt where app_to_doc_date <= Period;
                commit;
                EXIT WHEN c5%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, rcount);
             CLOSE c5;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                Begin
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).biz_part_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).apply_date;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_S_I_DOC_RECEIPTS', 'biz_part_code',
                                   val1, 'bpref_no', val2, 'apply_date', val3, 'service_code', val4,'DELETE');
                      etime := DBMS_UTILITY.get_time ();
                      DURATION := ((etime - stime) / 100) / 60;
                      rcount := (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
                      INSERT INTO process_stage_log VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, rcount);
                   END LOOP;
                END IF;
                Exception
                  When others then
                       etime := DBMS_UTILITY.get_time ();
                       DURATION := ((etime - stime) / 100) / 60;
                       INSERT INTO process_stage_log
                       VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, 0);
                End;
          END;
       END sidoc_delete;The table IBS_S_I_DOC_RECEIPTS is having 50 million records.
    The table IBS_X_T_BILL is having is having 39 million records.
    The procedure is open a cursor
    Cursor C5 is
                SELECT a.rowid,a.*
                  FROM ibsoifc.ibs_s_i_doc_receipt a,
                       ibsoifc.ibs_x_t_bill b
                 WHERE a.app_to_doc_no = b.doc_no
                   AND b.bill_month <= period
                   AND b.balance_ser_amt = 0
                   AND b.balance_tax_amt = 0
                   AND a.app_to_doc_date <= period;and deleting by the following command
    FORALL i IN vtsch.first .. vtsch.last SAVE EXCEPTIONS
                   Delete from ibsoifc.ibs_s_i_doc_receipt where app_to_doc_date <= Period;question
    1.The above delete, will delete all the record which below to date or from cursor active set record which below to the date?.
    I run the above procedure for 5 years
    and my procedure is running sill now and it is started wednesday morning. so for just 15 laks only deleted.
    How to improve the procedure performance.
    please guide me
    kanish

    This is my actual coding which running now
    Create or Replace PROCEDURE sidoc_delete(period date)
       IS
          /*CURSOR c5 IS
          SELECT *
            FROM ibsoifc.ibs_s_i_doc_receipt a
           WHERE EXISTS (
                    SELECT 1
                      FROM ibsoifc.ibs_x_t_bill b
                     WHERE a.app_to_doc_no = b.doc_no
                       AND b.bill_month <= period
                       --AND b.bpref_no = :cons
                       AND b.balance_ser_amt = 0
                       AND b.balance_tax_amt = 0)
             --AND a.bpref_no = :cons
             AND a.app_to_doc_date <= period;*/
             Cursor C5 is
                SELECT a.rowid,a.*
                  FROM ibsoifc.ibs_s_i_doc_receipt a,
                       ibsoifc.ibs_x_t_bill b
                 WHERE a.app_to_doc_no = b.doc_no
                   AND b.bill_month <= period
                   AND b.balance_ser_amt = 0
                   AND b.balance_tax_amt = 0
                   AND a.app_to_doc_date <= period;
          TYPE tsch IS TABLE OF c5%ROWTYPE;
          vtsch      tsch;
          cnt        NUMBER := 0;
          stime      NUMBER;
          etime      NUMBER;
          DURATION   NUMBER;
          rcount     NUMBER;
          errorsd   PLS_INTEGER;
          ecode     NUMBER;
          val1   VARCHAR2 (100);
          val2   VARCHAR2 (100);
          val3   VARCHAR2 (100);
          val4   VARCHAR2 (100);
       BEGIN
          BEGIN
             stime := DBMS_UTILITY.get_time ();
             OPEN c5;
             LOOP
                FETCH c5
                BULK COLLECT INTO vtsch LIMIT 1000;
                IF vtsch.COUNT = 1000
                THEN
                   cnt := cnt + 1;
                END IF;
                FORALL i IN vtsch.first .. vtsch.last SAVE EXCEPTIONS
                   Delete from ibsoifc.ibs_s_i_doc_receipt where rowid= vtsch(i).rowid;
                   --app_to_doc_no = vtsch(i).app_to_doc_no;
                commit;
                EXIT WHEN c5%NOTFOUND;
             END LOOP;
             etime := DBMS_UTILITY.get_time ();
             DURATION := ((etime - stime) / 100) / 60;
             rcount :=
                 (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
             INSERT INTO process_stage_log
                  VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, rcount);
             CLOSE c5;
             COMMIT;
          EXCEPTION
             WHEN OTHERS
             THEN
                Begin
                errorsd := SQL%BULK_EXCEPTIONS.COUNT;
                IF errorsd > 0
                THEN
                   FOR j IN 1 .. errorsd
                   LOOP
                      ecode := SQL%BULK_EXCEPTIONS (j).ERROR_CODE;
                      val1 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).biz_part_code;
                      val2 :=
                           vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).bpref_no;
                      val3 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).apply_date;
                      val4 :=
                         vtsch (SQL%BULK_EXCEPTIONS (j).ERROR_INDEX).service_code;
                      INSERT INTO process_error_log
                           VALUES (SYSDATE, ecode, 'IBS_S_I_DOC_RECEIPTS', 'biz_part_code',
                                   val1, 'bpref_no', val2, 'apply_date', val3, 'service_code', val4,'DELETE');
                      etime := DBMS_UTILITY.get_time ();
                      DURATION := ((etime - stime) / 100) / 60;
                      rcount := (cnt * 1000) + vtsch.COUNT - NVL (SQL%BULK_EXCEPTIONS.COUNT, 0);
                      INSERT INTO process_stage_log VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, rcount);
                   END LOOP;
                END IF;
                Exception
                  When others then
                       etime := DBMS_UTILITY.get_time ();
                       DURATION := ((etime - stime) / 100) / 60;
                       INSERT INTO process_stage_log
                       VALUES (SYSDATE, 'IBS_S_I_DOC_RECEIPTS-D', DURATION, 0);
                End;
          END;
       END sidoc_delete;kanish

  • Query Folding for MySQL and PostgreSQL

    Hi there!
    I use simple M code (see below) but PQ load all rows instead of doing Query Folding.
    What's wrong?
    let
        Source = MySQL.Database("10.8.0.10", "leb"),
        leb_x_sale_orders = Source{[Schema="leb",Item="x_sale_orders"]}[Data],
        #"Removed Other Columns" = Table.SelectColumns(leb_x_sale_orders,{"ID", "CANCELED", "PRICE", "USER_ID", "DATE_INSERT"}),
        #"Filtered Rows" = Table.SelectRows(#"Removed Other Columns", each Date.IsInPreviousDay([DATE_INSERT]))
    in
        #"Filtered Rows"

    Thank you for the feedback. From a quick look, perhaps the Date functions are not folding. Here is a relevant
    post.
    You may consider to use text functions as a workaround, or wait till we check this out.

  • Problem in adhoc query

    Hi All,
    This is regarding a problem in the adhoc query.
    For one adhoc query in the selection field only personnel number is there. The adhoc query selects from 0022-infotype.In this case if the reporting period is ALL, all infotype records belonging to 0022 infotype are selected. Even if the end date of the infotype record is less than the initial date of Org.assignment.
    For the second adhoc query in the selction field only
    personnel area is there. In this case the adhoc query doesnot select infotype record belonging to 0022 infotype
    if the end date of the infotype record is less than the Org.assignment.
    Can anyone explain me this strange behaviour.
    Points will be rewarded.
    Regards,
    Aravind

    Some more additional info about the problem.
    Suppose in the selection screen there are 4 fields
    Company code, Personnel area, Personnel sub area and Personnel number.
    If you fill both Personnel subarea and personnel number,
    data record belonging to education infotype but whose end date is greater than the start date of Org.assignment
    infotype is not selected.
    But if you fill only personnel number the same data record belonging to education infotype is shown with blank values for Org.assignment.
    I tried debugging and found out that in the first case
    since there is no Org. assignment record for the time period of the education infotype nothing is shown.
    In the second case, it is allowed to be shown with blank values for Org.assignment.
    Any explanation for this behaviour?

  • Standard iviews for Customer Master, Vendor Master etc. ??

    Hi all,
    Do we have standard SAP providecd iviews for creation and change of Customer master, Vendor master, Asset Master, GL Account, Cost Center, Cost Element etc. in R/3 from the portal??
    We are using mySAP ERP 2005. Please let me know if there is any such possibility. If yes, if some one can give me some links to access the same, that would be great.
    Regards,
    Narahari

    Hi,
    You can get details in table KNA1 in transaction SE11 or SE16
    Else get field value "ADRNR" from table "KNA1" and pass it to table "ADRC" and get details.

  • Create iview for db

    Hello,
    Im very new in EP, I need to create iviews for accesing and retrieving data from an oracle and MS SQL Server database. Im using EP version 7.0, maybe you could guide me with this topic or give me some ideas about how to implement that. If you have some documentation about this topic would be welcome as well.
    Thanks in advanced!
    Luis

    Hi Luis,
    If you're into java you can use Web Dynpro (jdbc).
    If you are used to ASP, try PDK.NET
    Each of them has its own forum and you can look for
    examples.
    Omri

  • Text (T) symbol  for field kostl not found  in adhoc query selection

    Dear Freinds,
                  We have developed a custom infotype , as per our requirement one of the field i have added is the Kostl field ( this i have created exactly the same way in infotype 0001).
    I have to devlop a report using ADHOC Query based on this custom infotype , so i have developed a adhoc report ( selecting the logical database PNPCE option as it is not allowing for PNP), when i selecting  the required feilds from the Custom infotype i can see for the field KOSTL field doesnt have the symbol(T)  against the field . However for another ADHOC report when i am selecting from the infotype 0001 i can see the T symbol for the KOSTL . So i went and check in the custom type structur and transparent table as well , the search help etc is exactly same as that of the which are there for this field in the standard infotype 0001(Kostl). Because i have to display the description of the cost centre along with the kostl field , howeve iam able to get for Pernr descirption , for pernr iam able to see the T symbol against the field Pernr.
    Please could any one guide why this field doesnt have the   symbol  T.
    regards
    divya.

    Why don't you the same data element of the KOSTL.
    Eventhough you created your own infotype you can still use the stanadard data element.
    If you use the standard datatype you will get those feature avalable
    Warm Regards

  • Adhoc query for OM infotypes

    Hi Experts,
    We have an adhoc query based on PNP logical database. But client wants to access OM infotypes data using that query. Can you guide me how we can do that?
    Thanks and Regards,
    Ashish.

    If you are looking to add few fields, you can create custom fields in function group and write code for them . You can create the custom fields by following steps.
    Go to t-code SQ02
    Give your infoset name go to change ->
    Click on "EXTRAS"
    Click "Paper u201CCreate " Pop-up will appear
    -Choose "Additional field" name as Zamnt1
    Give long text & header
    Like reference as u201Cpa0008-BET02u201D
    Code in screen u201Csave it"
    Go back to fields group and assign additional fields to your Fields group.
    Donu2019t forget to generate. You can create as many as fields this way.
    FYI https://forums.sdn.sap.com/click.jspa?searchID=14569976&messageID=5750674
          http://jelajahsap.files.wordpress.com/2008/01/abap-query.pdf
    Thanks,
    Khan

  • Adhoc query for HR.

    Good Morning
    I am creating a adhoc query for HR.
    I create an Infoset in the T.Code SQ02, I am using the database PNP , add code abap for get data of other table in the field additional ZKTEXT in the the code section record processing.
    In the moment of Generate the infoset, the system display the following message of warning
    Additional Fields
    **No code exists for additional field ZKTEXT,
    However the adhoc query work fine and get the data of the field ZKTEXT.
    1. The question is, There is some form in where the system no display this message of warning in the moment of generate the infoset?
    2. In this moment the field ZKTEXT is as a field of output in the Adhoc Query , But There is some form in where el field ZKTEXT. is as field of selection. ?
    Regards.
    sanew2

    *$HR$ [COMMON].
    *$HR$ PERSON_ONLY_ONCE = 'X'
    Regards

  • Adhoc query for Training & Event mgmt

    Hi,
    Can anybody guide me for design the adhoc query for training & event management. I needto extract data upto attende level from a particular infoset.
    Thanks
    Dadarao.

    Hi,
    I have got a query in AD-HOC query.
    After creating the Adhoc query using the join table functionality the resulting adhoc query does not results any out put.
    What I have done is :
    1.Created a user group through SQ03
    2.Attched user to My user group
    3.Created an infoset using join table functionality(SQ02).
    4.Saved and generated the infoset
    5.Added the user group to the infoset and than run the ADHOC query.
    The table I have used to join is all PA table (For test pupose)
    Though the purpose of the custom infoset is to join PA,OM and E rec infotypes, for testing purpose I have joined only PA infotypes.
    Result:The adhoc query does not gives any out put instead it says no data could be read.
    Could you please tell what else I need to do so that the custom infosets gives an out put.
    Will greatly appreciate your help.
    Thanks and best regards
    Rajeev

Maybe you are looking for

  • TS1717 itunes wont open, says its missing msvcr80.dll. I cannot find out how to get this fixed...

    i cannot get computer to open itunes, it keeps saying needs msvcr80.dll i cannot figure out how to fix this.

  • How to create a sequence of stills from a video clip?

    Hi, I am doing a video project for college and I want to create a stop motion style scene. I took a continuous video of myself drawing bit by bit a picture on a chalkboard and stepping out of the shot after each piece was drawn, now i want to edit ou

  • Syntax Error in XL Report

    Dear All, When i am generating the XL Report it's give me the like An error while executing report! Description: Definition Parsing Failed. Details: Syntax Error Near : ItemType_0 at row $11:$16 Syntax Error Near : TotForwarding_0 at row $14:$14 Plea

  • Problem with PCSuite 6

    I use program PC Suite v.5.009 At updating on v.6.009 there is here such message Input point in procedure? GetUIColor @@ YGKPBD@Z it is not found in library DLL NewUI.dll What does it mean and what to me to do? Attachments: 2010-12-20_010216.jpg ‏29

  • LR3 does not show source from CF card reader

    I am new to LR3 and this is driving me crazy. I do not see the source for pics to import into LR3 from a CF card reader. CF card was formatted in camera prior to exposure. Does it matter if card reader is first plugged into Mac (OS X Lion) before tur