Regarding ABAP query layout changes

In 46C system, we have addon transaction ZXX created thru ABAP query displaying in ALV report
layout fields in order A,B,C,D. But after upgrade to ECC5.0 we found the layout is changed to fields D,B,C,A.
why its changed? Is it Patch problem or its SAP problem.
However after upgrade we could manualy drag and drop the fields as per the 46C existing report layout
it works fine.
But we would like to know the reason why its happenning.?
Could somebody give me suggestion.
Regards
Ambichan

Hi Ambikumar,
The ALV output layout is dependent on user settings.
THe order of layout fields is changed bcz user has saved the new layout.
In the output, check the ALV toolbar for CHANGE LAYOUT button. Click on it & check if anyone has saved any new layout. Delete the layout & you would alwyz get the fields in the same order as specified in the query.
No need to modify the query using SQ01/SQ02.
Simply execute the query & click button CHANGE LAYOUT.
Best regards,
Prashant

Similar Messages

  • Regarding ABAP Query authorization group

    Hi Team,
    This is regarding ABAP Query!
    I have created one authorization group, for testing i have assigned my id in authorization group.
    After creation of ABAP query,standard program got generated. Now i have created one transaction code at the last for the ABAP Query.
    Now the isse is even though i have deleted my id from the authorization group. I am able to execute the query from SQ01 and with the Transaction code .
    It should not happen...i want who soever id is mapped to the transaction code ...that member should only be able to run that query, otherwise there is no use of authorization group.
    Please help me out in this case.
    Thanks & Regards,
    Anil Kumar Sahni

    Are you sure that you don't have access to that authorisation group? Execute report RSUSR002. In the 'Authorization Object 1' block inform  S_TABU_DIS in 'Auth.Object' and accept. Then inform Activity=03 and Auth.Gruop= your group.
    You will get a list of all the users which, theoretically, will be able to execute the query. If you press 'Roles' or 'Profiles' in the toolbar of the listing you will get to know why you have authorisation. May be you have the SAP_ALL profile.
    Also, one more thing to take into account: how have you created your transaction? Is it referring directly to the generated report? Then it is an error, you should execute program SAP_QUERY_CALL. Read this post: [Relate transaction to query;

  • ABAP Query layout issue

    Hi,
    I need to add a new column in a ABAP-Query, while adding this column and executing the same. The layout has changed from custom to standard one.
    Is there any way to retain the custom layout in the "Basic List" while changing the Infoset Query.
    Thanks in advance.
    Best Regards,
    Gopi

    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 Layout

    I am asked to change existing abap query. I need to add some more fields in output display layout. How can i select fields for display.

    check this
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/abap/abap%20query%20-%20a%20quick%20glance.pdf
    aRs

  • ABAP Query Layout not proper

    Hi experts,
    I am facing a problem regarding the output display of ABAP Query that I have created using SAP List Viewer.
    I have used logical database VFV in the query and some selection fields and some additional fields also.
    The output is shown to me as a list output rather than an ALV output.
    Please suggest a solution so that I can display the output in ALV format and not List format.
    Regards,
    Garima.

    Hi,
    I have got the error removed by ensuring that fields from one table are a part of one line ( taking help of ruler) only. But the underlying problem remains, the output is not ALV but List output.
    I do not think having additional fields in the query is reason for this.
    Is it bcoz iI am adjusting the output length of columns to ensure no hierarchical error ?
    Can we not have a query using LDB which is shown as SAP List?
    Regards,
    Garima.

  • Regarding ABAP Query,

    How can we insert the Z Function module into Standard ABAP Query.
    Plz help me in this issue in step by stpe process.

    Hi Ambichan,
    Try this link.
    http://www.sappoint.com/abap/ab4query.pdf

  • Regarding ABAP query when using the LDB

    Hi Experts,
    Iam preparing one ABAP query by using LDB.
    And i added two more table VBPA and KNA1.
    When i add the VBPA table the system will automatically generate
    the sql query and we need to pass the where condition to thet query.
    system generated like this..
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                =
       AND POSNR                  =
       AND PARVW                 =
    but in the above query i need to pass the values to PARVW as 'AG' or 'SP'.
    how can i pass the two values to that query?
    rgds,
    Sruthi.

    HI,
    It is system generated....just we need to pass the values to where condition.
    in normal ABAP we can do like this...
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                  = EKPO-ZZPOSNR
       AND PARVW                in  ( 'AG' , 'SP').
    or
    SELECT SINGLE * FROM VBPA
    WHERE VBELN                = EKPO-ZZVBELN
       AND POSNR                = EKPO-ZZPOSNR
       AND                             ( PARVW  =  'AG' or  PARVW  =  'SP' ).
    Rgds,
    Sruthi.

  • Regarding ABAP Query related

    Hi,
      Can any body tell me how to keep query related data in
    internal table?
    Regards,
    Suresh Kumar.

    Do you mean that you are running a SQ01 query and you want to get the data from it into your report program?
    If this is the case, the normal way that we pass internal tables and stuff from program to program, is thru IMPORT/EXPORT statements.  But since you are talking about a query this may be a problem in adding the EXPORT statement to it.
    Regards,
    RIch Heilman

  • Issues regarding Abap Query

    We have created a query " AQYZSYSTQV000001WBSLIST======= "
    and then query program was copied to ZFI_WBSLIST
    On execution of  ZFI_WBSLIST,got the below error.
    A RAISE statement in the program "SAPLAQGF" raised the exception
    condition "NO_QUERY_REPORT".
    "RAISE_EXCEPTION" " "
    "SAPLAQGF" or "LAQGFU02"
    "RSAQ_DECODE_REPORT_NAME"
    Kindly help us in resolving the above problem.
    Regards,
    Rachel

    Hi,
      First check the server(developement,quality or production) where you have created the query.
    Try to create the query in quality server and then copy the program in development.This kind of problem I  faced once in that I had create the query in development so I was facing prolem but after create the query in quality it generate some different code.
    That quality code in copied in development and then tried to execute it was working fine.
    Check in program whether at some place they are passing program name as value.If it like that then replace it with your program name.
    Hope it will help you.
    Regards,
    Rajesh Akarte

  • SQ01 query layouts has been changed after upgrade from 4.6c to ECC

    Hi All,
    If any one come across the following situation please provide the solution as soon as posssible.
    When you execute the query the results are not displayed as fields are not copied under display column,not sorted,not filtered becos of this the query results are not displayed. Is there any solution are setting that need to be done so that the layouts fields are copied,sorted and filtered as they were before upgrade. I have checked all the query variants and they are imported correctly to ECC from 4.6c,there is problem only with the display.
    Is the query layout changes due to upgrade?
    Regards,
    JB

    Please Post the Note Number.
    late but Sure it will help others in future.

  • ABAP query vs ABAP report

    Hi Experts,
       I have a question regarding ABAP query  and report.
      what is the difference between ABAP query and ABAP report  ?
      will the query be more efficient than abap report ?
      Is there a standard SAP report that could replace a query?
    Thanks in advance,
    Manoj

    Hi,
    A report is a piece of logic that you write in (this case) in a programming language (ABAP). It uses the syntax of the normal commands of the PL.
    ABAP Query is a higher level tool, that reduces or eliminates the need to "program" in the PL, and rather uses more intuitive, graphic tools, to basically get the same results.
    Generally speaking, if the reporting needs are simple and standard, it is easy and feasible to use the query. The more complex the logic gets, the more you'll probably need to use programming.
    Regards,
    Mario

  • Regarding layout of abap query

    hi all,
    i have an issue in the output of abap query. in output i have many columns with values, nw i have to insert two additional  colums in between of the existing output.how to do that???

    Thanks everyone,
    i have found out  how to add checkbox on selection screen of abap query.
    These are the steps:
    1.goto tcode sq02 (infoset)
    2.put it in change mode.
    3.Then click on 'extras' button on application toolbar.
    4.Then select 'code' tab and write your code there.

  • ABAP Query: add field on layout based on Company code

    Hello Experts,
    I currently working on ABAP Query report  for asset master issues and would like one more field added to layout for Company code XXXX . Is it possible to add fields to this layout based on company code .
    Thanks in Advance
    Nupur

    Hello Andreas,
    I'm asking is that possible to change ABAP Query report layout based on Company code.
    For Instance:
    Company code :1111
    Layout should : A B C D E F
    other than 1111.
    layout should : A X Y Z F
    My scenario is :
    ABAP Query is working fine but users from UK wants some more fields on the layout but rest of the country users other than UK, they don't want such changes.
    Regards,
    nupur

  • 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

  • How to revert the changes done  in  an  ABAP query

    hi experts,
    how to revert the changes done  in  an  ABAP query.
    I renamed a field in ABAP Query in development system, but the output list now has overlapping fields.
    the renamed field is getting overlaped with other fields, also one more field has overlapped.
    now the problem is how to get back to the previous version of the query so that the overlapping fields can be corrected.
    renaming one field has led to the problem of overlapping fields in the output.
    the sequence of the fields has also been affected.
    Please help

    Hi,
    Goto Utilities-> versions-> version management.
    It will show you list of previous TR's. Just click on the version which you want to retrieve and click on Retrieve button on the top.
    Your program will be retrieved to your previous version before change.
    Hope this will help.
    Regards,
    Aravind.

Maybe you are looking for