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

Similar Messages

  • ABAP QUERY: Selection text name change : seq. of column sequence in output

    hi friends,
    1)I need to change the text of the selection field in ABAP QUERY REPORT
    please help me. t code: SQ03 : User Group(zabc) and report name (zabc).
    Environment -> infosets.
    in the field group, double click field name to be changed. I tried to change it. The changed name is only reflecting in the list output, but not in the selection screen.
    I want the text to be changed even in selection screen.
    2)I want to change the position of the column ie end(last colum) to 8th column in the report output. Please help me.
    Environment -> Queries -. I tried with 'Output sequence' and given no as '8'. But is not reflected and the column is still displayed at last column.
    Please help me

    Go to Query and go to selection field and change the selection text.
    Hope this help.

  • 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

  • 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.

  • 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

  • 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.

  • 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.

  • Populating application item when updateable query report item is changed

    I have been looking at the help for cascading LOVs posted here. Unfortunately, I am not able to get it to work, and so am backing up with baby steps.
    I have a sql updateable report. It has a column (IN_STATE) that is a LOV sql query that pulls up a list of states. When a state is selected, I want the value to be placed in the application item, TEMPORARY ITEM. because I have copied the logic, it may actually be more complicated that needed at this point...happy to cut things out if need be.
    The updateabale report item, IN_STATE has the element attribute of:
    onchange="get_ajax_select_xml(this);"
    The region has an html header of:
    <script type="text/javascript">
    function appendToSelect(pSelect, pValue, pContent)
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    else {     
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    var g_area=new Object;
    var g_sub_area=new Object;
    function replace_select_list(pSelect,pXML)
    var l_Count = pXML.getElementsByTagName("option").length;
    pSelect.length = 0;
    for(var j=0;i<l_Count;j++){
    var l_Opt_Xml = pXML.getElementsByTagName("option")[j];
    appendToSelect(pSelect, l_Opt_Xml.getAttribute('value'),l_Opt_Xml.firstChild.nodeValue)
    function get_ajax_select_xml(pThis)
    var l_Return = null;
    var l_td=html_CascadeUpTill(pThis,'TD');
    var l_area=l_td.nextSibling.getElementsByTagName('select')[0];
    var l_sub_area=l_td.nextSibling.nextSibling.getElementsByTagName('select')[0];
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_area_code',html_GetElement('pFlowStepId').value);
    get.add('TEMPORARY_ITEM',pThis.value);
    gReturn = get.get('XML');
    </script>GET_AREA_CODE and GET_SUB_AREA_CODE are application processes.
    At this stage, I am just trying to polutate TEMPORARY_ITEM when IN_STATE is changed.
    Any hints are appreciated. thanks

    If you are working with APEX then you are posting on the wrong forum. This is the JDeveloper forum - try this instead:
    Oracle Application Express (APEX)

  • [Swing] JTable & Oracle DB: SQL Query for Column Names Change

    Hello,
    I apologise for the 'stupid' thread subject name.
    Now i have a JTable wich i fill with rows from an Oracle DB.
    The query is something like this: "SELECT location_id, location_name FROM locations*bold*", and in the table i will have the columns names LOCATION_ID & LOCATION_NAME.
    I want to change this query like: "SELECT location_id "Location ID", location_name "Location Name" FROM locations".
    The only problem is that i CAN NOT insert "" inside ""
    So if anyone know how to fix this 'problem' please share that with me.
    Thank you,
    B.

    found it.. \" \"
    :)

  • 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

  • Bam Report column Name changing ???

    Hi frds,
            i want to change column name in bam report. Actually i created Data object with long column names after creating and integrating with Bpel, i saw in report its showing some of the part Only its not showing total column name, can any one tell me how to edit column name in bam report ??
    Thanks,
    Ravi.

    Hi Leo,
    Use the following syntax: -
    INSERT INTO temp (C1) VALUES (:your_page_variable_name);
    Cheers,
    Mike

  • 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

  • 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.

  • Creating a cloum in ABAP QUERY

    I need modify an existing ABAP QUERY REPORT.
    I have user group and Report name.
    I am using SQ03 T-CODE.
    1) How can I add a colum for this report. this colum to be added between two existing columns.
    2)I need to add two fields in selection screen. How can I add them?
    3)How can I modify the existing query by adding more conditions with two fields included on the selection screen
    please help me.

    Dear do these steps.
    1. Open SQ01
    2, enter your query name.
    3. Press Quick Veiwer  button.
    4. in new opened , enter change.
    5. in the left side you have all tables joined , select new field from here to be added.
    6.go to tab list fld. selected
    select row where you want to insert your field and enter the same here
    7. go to selection field tab
    8. from possible selection fields insert new selection parameter.
    9. save and see the output.
    reward if useful.
    Amit Singla

  • ABAP Query Selection screen

    Hi,
    I have an existing ABAP Query, my req is to add new Radio buttions block after the current seelction paramertes.
    i created radiobuttons in SQ02 infoset query with radiobuttons but when i run the report, selections screen has radio buttons first and then  previous selection criteria fields displaying...
    my req is first previous selection fields then radio buttons.
    how to change the sequence of the fields in selection screen?
    and based on the radio buttons, i need to filter the output data...
    in which event i have to write the code?
    Thanks
    Giri

    Sudheer,
    it is ABAP Query report... from SQ02... i cant modify those in SE38...
    current selection parameters are from table fields selected in SQ01 Query.... and radio buttons are in SQ02 Infoset.
    Giri

Maybe you are looking for