Table deletion in ABAP Query Report

Hi ,
     Is it possible to delete a Table from a infoset after generating it ?? i.e
i have used five vendor tables and generated a infoset. now i feel that i can get the expected report with 4 tables itself , so fi i wanna delete the 5th table what should i do ??
I tired by just deleting the Link between the 5th table with the other tables and generate it again.. but it throws an error
Thanks in advance !!

Hi
select lipsvbeln lipslfimg likp~wadat
        into corresponding fields of table ltab_orders
        from lips join likp on ( lipsvbeln = likpvbeln )
        join vbfa on ( lipsvbeln = vbfavbelv )       
        where lips~matnr = matnr
        and   lips~vbeln in vbeln
        and   likp~vbeln in vbeln         
        and   vbfa~vbelv in vbeln
        and   lips~werks in werks
        and   likp~wadat in datum
        and   vbfa~vbtyp_n = 'Q'            
        and   vbfa~vbtyp_v = 'J'. 
Thanks,
Neelima.

Similar Messages

  • ABAP QUERY REPORTS

    Hello Gurus'
    If any ABAP Query reports other then standard reports in MM pls give  like that reports.
    if any body come a cross developed reports thru abap query some thing is not possible thru standard reports in mm.
    Ian doing the project so i need like that reports pls help me boss.
    Regards
    Laxman

    Hi,
    If it is Indian Scenarios try to develop the reports like
    The Output of the Report should be like this.
    1) PRPOVendorMatrl Doc-Mvt typeSubcontracting challen Qty sendQty recievedQty pending
    2) PRPOQty- Price-GR-QtyIRQtyInvoice Amt
    3) Pending PRs,Pending POs, Pending GRs, Pending IRs
    4) J1ID table details in ALV GRID format
    Material excise details, output & input material number, Assessable value,
    rgds
    Chidanand

  • ABAP QUERY Report : column number change

    Hi friends,
    I need to modify the existing ABAP QUERY REPORT.
    I have added a new field in the selection screen.
    When I execute the query, it(our new filed) is displaying at the end of the columns.
    But I want it to be at 8th columns. please help me.
    When I try to change the out position to "8"at "Basic list" -> select check box of our field and double clict it, I am getting the following error.
    Warning: Overlapping fields
    Those fields overlapped by other fields will not be displayed in their entirety.
    So I could not display the new field at 8 th column.
    Guys. Please help me.

    Hi
    You have to change the position of each field after 8th column
    suppose you added your new field at the 8th column position
    then all the subsequent fields positions you have to adjust as per their length
    You have to do like this to adjust the columns
    see the doc on query
    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.
    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
    use either SQ02 ans SQ01
    or SQVI tr code
    for more information please go thru this url:
    http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Create_The_Query.asp
    http://goldenink.com/abap/sap_query.html
    Please check this PDF document (starting page 352) perhaps it will help u.
    http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCSRVQUE/BCSRVQUE.pdf
    check the below link will be helpful for u
    Tutorial on SQVI
    once you create query system generates a report starting with AQZZ/SAPQUERY/ABAGENCY2======= assing this report to tr code for the same
    Regards
    Anji

  • Pooled table supported by ABAP Query .................

    Hi,
    I have an requirment to create a abap query report .For that one i have to use a pooled table as join with another table?
    Is that possible or not?
    Reagrd
    Ricky

    Hi,
    You can use the tables in ABAP query but not in the direct join format.
    For e.g.
    Select "data" from BSEG into correspoding fields of table itab.
    select "data" from <tablename>
    into correspoding fields of table itab1
    for all entries of itab
    where <conditions>.
    Thanks & Regards

  • Including MANDT field in ABAP Query Report as output field

    Hi All,
    I need to display the client(MANDT) field in the ABAP Query Report as an output field.
    But in SQ01 where we select the fields to be displayed as output in query , this field is not visible.
    I later checked in the Infoset. Even in the infoset the field MANDT is greyed out and all other fields are active.
    Can someone tell me how to include the field MANDT in the output of the ABAP Query Report.

    self resolved

  • Add field dynamically in ABAP Query Report.

    Hi All,
    Can we add fields dynamically in the ABAP Query Report?
    There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
    Thanks in Advance!!!

    hi rohini,
    we can add fields dynamically in the ABAP Query Report,in this way we can to,
    first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
    in this way we can solve.
    search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.

  • Need to delete a table join in ABAP query

    Hi
      I have created an ABAP query with a join over AUFK, AFIH, AFKO, AFVV, AFVC and AFRU.
      I need to delete the table AFRU from the join. I tried to delete the table in the edit option in the Join table option. I deleted the links between the table AFVC and AFRU and clicked on delete table option. I get the message Table AFRU not used. Please let me know if there is any method to delete the table.
    Thanks and Regards,
    Ajith

    u have to break the link between this table and other tables...U need to delete where conditions and then delete the join...

  • Table Join in ABAP Query

    Hi,
    I'm new to ABAP Query. I want to include a table and join with an existing table in abap query. how to do this?

    Hi
    select lipsvbeln lipslfimg likp~wadat
            into corresponding fields of table ltab_orders
            from lips join likp on ( lipsvbeln = likpvbeln )
            join vbfa on ( lipsvbeln = vbfavbelv )       
            where lips~matnr = matnr
            and   lips~vbeln in vbeln
            and   likp~vbeln in vbeln         
            and   vbfa~vbelv in vbeln
            and   lips~werks in werks
            and   likp~wadat in datum
            and   vbfa~vbtyp_n = 'Q'            
            and   vbfa~vbtyp_v = 'J'. 
    Thanks,
    Neelima.

  • ABAP Query- Report Assignment functionality

    Dear Collages,
    I am using SQ01 for reporting materials data information.
    Also I am using the Report Assignment functionality to call transaction MM02
    In the drill down mode expecting to change materials according to the ALV list after selecting double click on one material out from list.
    The problem is that the material I am getting after moving to transaction MM02 is the last in Memory Id not the one I want to get fro ALV list.
    Is this functionality I am expecting is available in ABAP Query??
    If so how!
    Many Thanks in advance
    Oren

    You need to clear the parameter id MAT , Try to use some events or using free coding clear the MAT
    SET PARAMETER ID: 'MAT' FIELD space.

  • ABAP QUERY REPORT : please help me ASAP.

    hi friends,
    I need to change the existing custom abap query.
    1) I need to add two more fields on selection screen. I have added using INFOSET and checked the input and output check boxes.
    But the text of the one field should be different from standard tetx.
    "Reference date" to be changed to "Dairy date".
    I have changed in Infosets. updated text is displaying as "Dairy date" in the out put LIST, but standard text (Reference date) is appearing on the selection screen.
    I need it to be displaed as "Dairy date"
    2)The column "Dairy" date is adding as the last column in the list after executing the query. But I need it to be displayed at 8th column.
    Please help me ASAP.

    hi Eric,
    Could you please explain in detail.
    1)I HAVE CHANGED THE NAME IN iNFOSET, FIELD GROUP.
    IT IS NOT REFLECTING IN SELECTION SCREEN. ONLY REFLECTING IN THE OUT  PUT.
    2) I have tried by changing the sort sequence number. but still it is displaying at the end of the columns.
    please explain in detail.

  • Filtering records with deletion flag in Query report

    Dear Friends,
    We are using ECC6.00 (EHP4) for one of our QM requirement, i have created a query in SQ01 with the tables QMEL,AUFK,AFKO,QMFE etc., to get the details of production order and notification.
    The report will list out the production scheduler wise, order wise, defect wise quantity with the notification number also in the display.
    For notifications which are created wrongly, the users set deletion flag. The same i.e., notifications with deletion flag should not appear in the report and hence i have called the field and filtered the value in the output (i.e., field value not equal to X where X is for deletion flag set records).
    Everything works fine upto this, but when users (to carry out analysis) send the data to the spread sheet, the filter values are removed and all records are populated in the excel sheet (even records with deletion flag).
    To select and display only records without deletion flag, i want to introduce coding in the query. Kindly tell me whether this is possible, if so where and what code should be written to meet my requirement.
    The records with the deletion flag (notifications) should be eliminated from the selection and display.
    Experts help required.
    Regards,
    M.M

    Dear Raymond Giuseppi,
    Thank you for your reply. The code syntax had been corrected based on your information. Unfortunately the code doesn't filter the records. On further investigation , it was observed that the field KZLOESCH doesn't get updated and hence a field had been created in the infoset wherein the following  coding is written
    clear : w_dlfl.
    data : w_inact type char1.
    select single inact into w_inact from jest
    where objnr = qmel-objnr
       and stat = 'I0076'
       and inact ne 'X'.
    if sy-subrc = 0 .
      w_dlfl = 'X'.
    else.
      w_dlfl = ''.
    endif.
    The field name is W_dlfl.
    In the above condition how and where should i include the code given by you. Since the field KZLOESCH is not updated how should we get the data from the field w_dlfl be exempted from selection?
    Kindly provide solution.
    Regards,
    M.M

  • ABAP Query Report

    Hi all,
             Am running a querry report (SQ01) for generating a stock list for all materials in a Plant. I have combined the MARD, MSEG & MKPF tables. My input would be the Plant and Storage loc name. And the Output would contain the material no and the stock details (unrestricted, blocked and quality inspection stocks)..
            The issue is my Material No (even though i have selected the MATNR field) is not getting diplayed when i get the output instead it shows the material description. similar is the case for Storage location.
    Expecting yours help at the earliest !
    Thanks in advance !!

    Hi,
    In Query when you select a field MATNR of MARA table or LGORT
    You can display both the Number and TEXT of that field
    You might have selected only the TEXT for display
    double click on that field and
    select both the number and Text
    Reward points if useful
    Regards
    Anji

  • ABAP QUERY REPORT on Sales Revenue.

    Dear SAP Experts!
    Can anyone tell me the step by step procedure to create the new additional feilds in Sq02 extras , The Feilds and the Code for the following report.
    I am working on the Total Sales Revenue.
    Tables Used :BSID BSAD
    I want to Show a the difference of the Credit-debit amount (BSID-WRBTR) in a user defined feild.
    Please tell me the step by step proceudre for entering the new feilds from extras in SQ02 and what code to be written.
    regards,
    A  S

    Dear GSL,
    I have Done as Stated.
    In the extras I have taken BSID-WBRTR as the name of the New Feild as BAL.
    Now I have Defined in the code as follows:
    bal= bsid-wrbtr - bsad-wrbtr.
    The error is as follows.
    Field "BAL" is unknown. It is neither in one of the specified tables
    nor defined by a "DATA" statement . . . . . . . . . .
    Please suggest what is to be done.
    How to get the following
    BSID-wbrtr (Credit entries) - BSID-wbrtr (Debit entries).
    regards,
    A S

  • DEFAULT a value for a filed from a table used in ABAP query

    I have used a field makt-spras in my infoset query and used it in my selection screen. Whenever I go into the transaction for the query and see the selection screen it always has 'EN' in the language key. Is there a way I can clear that . I dont want the selection screen to have anything wyhen I enter the transaction so that teh user can enter his or her own language and instead remove the work of removing the EN always . I would like to default it to blank space initially . In the query where can I do that as I dont see nay option to default it to space in the query for this field that is directly used form the table .
    Thanks

    Hi There,
    In the transaction SQ02 (for Infoset), click on the button Extras on the top and then in the Tabstrip that appears, you will have Code, click on that. After that from the drop down selection box, select Initialization even and write the code CLEAR makt-spras field.
    This should work.
    S.Dakshna Nagaratnam.
    Edited by: Dakshna Nagaratnam on May 22, 2009 7:25 PM

  • Performance tuning for ABAP Query (created from t-cd SQ01)

    Hello all,
    We created ABAP Query report from transaction SQ01.
    But the generated report has an appropriate SQL statement which causes performance problem.
    To solve this issue, I guess the easiest way is;
    0. Give up to use it.
    1. Copy it to another object in the customer namespace.
    2. Ajust SQL statement.
    But I'm wondering if there're appropriate ways to adjust SQL statement of Query.
    Could anybody give me any better idea?
    Thank you
    Yuko

    You can try this: Create 2 ranges, for objnr and cdtcode and fill like:
    ra_objnr-sign = 'I'.
    ra_objnr-option = 'CP'.
    ra_objnr-low = 'OR*'.
    append ra_objnr.
    ra_code-sign = 'I'.
    ra_code-option = 'CP'.
    ra_code-low = 'CO*'.
    append ra_code.
    SELECT objnr udate utime
    FROM jcds
    INTO TABLE it_jcds
    WHERE objnr IN ra_objnr
    AND stat = l_tj02t
    AND cdtcode IN ra_code
    AND inact = space
    Regards,
    John.

Maybe you are looking for