Appearing Duplicate column in  ABAP QUERY  output list.

Hi ,
         I have created a report using SAP QUERY having issue on output display  showing duplicate columns  name Weight Unit (LIKP-GEWEI ) and rest          of  field area  coming fine .
              Kindly help to solve the issue .
         Thanks .

Hi,
The currency and quantity units get automatically displayed based on the currency and quantity fields on the output list. However you can restrict it by selecting those fields and choose No currency fields before or after and apply.
How to do?
1. Goto SQ01, provide your query name and select "Infoset Query".
2. Now choose the currency/quantity fields on the lower bottom of window.
3. Right click on the field and traverse to Unit->Do not Output.
Hope this helps!
Br,
Maju

Similar Messages

  • Duplicate Records in ABAP Query

    I have prepared ABAP query with tables KNA1, KNB1, BSID. I have mapped only BUKRS and KUNNR from BSID . as I don't have any condition to map the fields. I want only one record for considering  KUNNR and BUKRS in report . But in report It is displaying all entries from BSID considering BUKRS and KUNNR means for documents all line items.Kindly suggest as soon. How to avoid such duplicate records

    Hi,
    Duplicate Records in ABAP Query
    Regarding on your problem,
    Use these link, It will helps to your post
    ABAP Querry Duplicate entries
    Regards,
    Sekhar

  • ABAP query output

    hi all
    Is it possible to give a page break in ABAP query output. I want my new order number to be printed on a new page.
    Any pointers will be appreciated.
    Thanks.

    Hi,
    U can use AT NEW event.
    Ex:
    AT NEW orderno.
    NEW PAGE.
    endat.
    Regards,
    S.Nehru.

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • ABAP Query - output entries repeating

    Hi Friends,
    I have created an ABAP query but the output entries are repeating. I tried different joins but dint work. I found out the internal table in the query report in SE38 and used the following command in the Infoset code (SQ02):
    DELETE ADJACENT DUPLICATES FROM %G00.
    I am not able to generate the infoset without declaring the internal table %G00. Hence I declared it in the DATA section of the infoset code. After this when I go to the query (SQ01) and run it, the system is throwing an ABAP dump which says %G00 has been declared twice.
    Can someone plese help me out in getting this resolved. I've been stuck with this for almost a week now.
    Thanks in advance,
    Dikshitha

    Hello Dikshitha,
    In the data section of the infoset:
    Deletion of duplicates lines
    constants : wk_table(6) VALUE '%G00[]'.
    FIELD-SYMBOLS : <t1> TYPE table.
    In the END OF SELECTION (AFTER LIST):
    the other code lines.
    I checked my infoset, I never declare %G00[] as it is automatically generated. Perhaps you forgot to remove some of your previous code lines? Have you check everywhere (code related to additional fields, code tab, data read prog tab?).
    After the modification, try to create a new query from scratch related to this infoset. Perhaps it's a "refresh" problem.
    Olivier

  • Hide/Delete lines from ABAP Query output when Quantity is 0

    Hi all,
    I'm changing an existing abap query. My requirement is to delete the rows from the report output where qantity = 0.
    I tried the following ways.
    1. In SQ01, select the quantity field and check the checkbox for "Display only field <> 0", but this didnt worked as it will 
         supress the zero from display.
    2. I tried to write code in the Infoset SQ02->Edit->Code. I wrote the following code "CHECK vbep-wmeng IS NOT INITIAL".
        Here  the problem is, the code is not executing in the test client. When I open the Infoset in test(i mean development test) 
        client the code is there, but when i execute the program its not working. I tried using "BREAK-POINT", program executions
        does not stop at the break point. There is existing code in the event "START-OF-SELECTION", this code I'm able to see in the
        query program opened through SE38. I edited the existing code and kept a break point in between, and now checked in the
        program in SE38, but the changes are not reflected. I'm able to see old code only(even after save n generate).
    3. Gave search in SCN, google etc.
    Please note.
    1. I'm not using any Logical Database in the Infoset. Its a simple join of 4 tables.
    2. Query is created in the Global Area (cross client) not client specific.
    Can anybody tell me what could be the problem and how can Over the above issues and achive the requirement.
    Thanks in advance.
    Edited by: Mr A on Feb 25, 2010 1:39 AM

    Dear Mr A,
    Can i know how did u solve the issue even i'm facing the same problem.
    Regards,
    Karan Bhasin

  • ABAP Query output to XML file using Business connector

    Hi All,
    I would request your help on to know, how can I read the output of ABAP query executed in SAP system via Business connector and then generate a XML file.
    Also the existing business connector system, generates the XML file in encoding iso-8859-1. Where as customer wants the output XML file in encoding windows-1252.
    Please help with your valuable ideas.
    Thanks,

    Hello,
    possible solution:
    1. create a remote function module (FM) in SAP which returns your needed data
    2. create outbound map in BC for this FM
    3. call this FM from BC in a flow
    3. extract the result to XML (e.g. with service recordToDocument)
    CSY

  • ABAP query output not showing all output fields

    I added a new field group in an existing query and marked them to display in the output list. When I test the output from SQ01 -> InfoSer Query, the output is what I expect. However, if I execute the query itself, it does not show the additional fields I just created.
    I notice that in the Basic List layout design, the new fields are on a new line and not appended to the same line as the output fields before I did the modifications. I already tried to manipulate the output length and positions, but it didn't help. I turned on the ruler to drag the fields in the desired positions, sometimes it works but not for all the fields. Can someone help me please?

    I figured it out already. The maximum width for the report output is 255 only. Switching from graphical query painter, I got the error that some fields were overlapping. Then I recalculated the starting positions of the fields and adjusted their lengths. 

  • Displaying dynamic columns in the query output.

    Hello,
    Depending on current quarter output of the query would vary.
    If current quarter is 'Q1'
    O/p : InvQ1  Del  BackQ1  BackQ2  BackQ3  BackQ4
    If current quarter is 'Q2'
    O/p : InvQ1  InvQ2  Del  BackQ2  BackQ3  BackQ4
    If current quarter is 'Q3'
    O/p : InvQ1  InvQ2  InvQ3  Del  BackQ3  BackQ4
    If current quarter is 'Q4'
    O/p : InvQ1  InvQ2  InvQ3  InvQ4  Del  BackQ4
    So, out of 9 columns, 6 columns would display at any given time depending on the current quarter.
    Invoice of 4 quarters, Deliquency and Backlog of 4 quarters.
    I am not getting any way how to display dynamic columns or hide unwanted/blank columns.
    For the time being I have added all 9 columns in the query, and in the output unwanted columns shows blank.
    Can anybody please suggest me how to display only 6 columns in the output depending on current quarter.
    Thanks and Regards
    Shilpa

    Hello,
    This shouldn't be too difficult. Assuming you have a variable with the selected quarter, you may choose to display Inv (whatever that is) for quarters 1 through variable, Del, and Back for quarters variable through 4. You also need a drilldown on quarter in the columns (after the key figure structure). You would probably need to restrict 'Del' on the variable as well if you haven't already done it.
    Best regards,
    Christoffer

  • ABAP Query, To list both, the PO created and PO modified for a given period

    Hi
    I want to create a query that list the purchasing orders created or modified during a given period. however, the creation date and the modification date are two different fields stored in differents tables.
    if I have these two fields in the selection creteria screen, the relationship between them will be the operator AND. so this will not enable me to have the information targeted.
    My quetion, is there a possibility to have the Operator OR in the first selection creteria screen , between these 2 fields.?
    the tables are:
    for the creation EKKO
    for the change :
    MECDGRID
    CDHDR Change document header
    CDPOS Change document items
    thanks

    Hello,
    Fetch data from EKKO and do a for all entries on the table CDHDR on the field OBJECTID and EBELN and t-code = ME21N OR ME21 ETC.
    Similarly between CDHDR and CDPOS tables based on objectid`s.
    Hope this helps you in solving your problem!
    Regards,
    Reetesh

  • Query output list - SQ01

    Hi Friends,
    When i execute a query by tcode SQ01 & save the result in local file (unconverted) as text format, then it gives many unescessay fields, like header text, description date cloumn headers etc.
    I want only the result (ASCII characters) that are seperated by space or either "tab" only.
    Can it be done through "Encoding" ? or do we need to change the query itself ?
    Please help.
    regards,
    Rohit

    Yeah it is clear visible that, the same combination might have available in different plants.
    So to avoid the duplicate entries, always select all the primary key fields available in all the tables in the output.
    If not atleast try restricting based on plant in the selection screen or any possible duplicate entreis.
    So add the key fields at Infoset level in SQ02

  • Force a column in the query output  for FYPD  when no data exists

    Hi ,
    I have a requirement, data available in the cube
    <b>FYPD-----Costcenter---- Emp#----StartPD---EndPd--
    Amt</b>
    2007001-----123456 789---2007004-2008012--
    $10
    In the variable input screen FYPD range is entered ex: 2007001 - 200704
    expected report output;
    <b>costcenter--Emp# -StartPD---EndPdAmt- 2007001-- 2007002  -
    2007003----
    2007004 (Columns KF's)</b>
    23456--78920070042008012$10000--
    1.
    The 0 and 1s are calculated based on Start& End Pd. If  STARTPD <= FYPD<= ENDPD
    Then output = 1 else 0.
    Problems:
    1. How to force columns for 2007002 to 200704 when there is no data in the cube for those periods?
    2.If somehow we are able to force the columns how to use the column header in the formula to calculate 1 or 0?
    Any idea?????

    If you add some kind of calculation behind your KF that is based on a field that exists for all records it should be fine.  This can be a formula variable based on an characteristic attribute like (mat weight/mat weight). 
    If you're saying you want a 0 to show up when there are no records in the cube for the characteristics in question then it may be more difficult.
    Please clarify

  • How to get sum in new row (not in a new column) in the query output ?

    There are values in a table like this:
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    How to achieve this output :
    A B C D
    DEsc1 ID1 15 45
    DEsc2 ID1 10 67
    --- ID1 25 112 <--- Sum of two rows corresponding to C and D whose B column is same
    DEsc3 ID2 12 34
    Desc4 ID2 19 32
    Desc5 ID2 10 12
    ----- ID2 41 78 <---- Sum of three rows corresponding to C and D whose B column is same

    SQL>WITH t AS
      2       (SELECT 'DEsc1' AS a, 'ID1' AS b, 15 AS c, 45 AS d FROM DUAL
      3        UNION ALL
      4        SELECT 'DEsc2', 'ID1', 10, 67 FROM DUAL
      5        UNION ALL
      6        SELECT 'DEsc3', 'ID2', 12, 34 FROM DUAL
      7        UNION ALL
      8        SELECT 'Desc4', 'ID2', 19, 32 FROM DUAL)
      9  SELECT   DECODE(GROUPING(a || ' ' || c || ' ' || d), 0, TO_CHAR(MAX(a)), '-----') AS a,
    10           MAX(b) AS b, SUM(c) AS c, SUM(d) AS d
    11      FROM t
    12  GROUP BY b, ROLLUP(a || ' ' || c || ' ' || d);
    A     B            C          D
    DEsc1 ID1         15         45
    DEsc2 ID1         10         67
    ----- ID1         25        112
    DEsc3 ID2         12         34
    Desc4 ID2         19         32
    ----- ID2         31         66Urs

  • 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

  • Issue in ABAP query

    Hi
      I have a doubt regarding ABAP queries . I need to pass the output of an ABAP query to another program . For this i want to know if the output of an ABAP query is stored in some kind of internal table or some other logic is used in that .
    Is it possible to send the ABAP query output to a memory structure.
    Helpful answers will be suitably rewarded.
    Thanks.

    Hi,
    program 1:
    from select query get the output to internal table
    so that with export and import u can attain this
    EXPORT t_sflight1 TO MEMORY ID 'SFLI'.
    SUBMIT pgm2 AND RETURN.
    program2:
    IMPORT t_sflight1 FROM MEMORY ID 'SFLI'.
    LOOP AT t_sflight1 INTO fs_string1.
    where in use the same internal table in both reports
    Reward Points If helpful.
    Regards,
    priya.

Maybe you are looking for

  • ABAP Dataflow using FTP data transfer method

    Hi, I am facing this error while executing the ABAP dataflow, the datastore configuration has FTP as data transfer method. I wanted to know if the ABAP program is generated succesfully and the error is while executing the ABAP program or there is an

  • Not receiving MQ custom header (PutDateTime) in OSB Proxy service using MQ

    Hi, I am using OSB 11g and Websphere MQ version 7.0. I am trying to get PutDateTime header of message which is being polled from MQ through OSB proxy service using MQ transport. While logging inbound variable i found out that except this put date tim

  • How to make ipad mail open urls

    When I receive e-mails in my ipad mail app with web links to urls how do I open them in safari?

  • Match string and retrieve part of string from match

    Hi, I'm trying to parse a html-page to retrieve a certain value. The string should match some pattern. Then I want to retrieve a part of the string from the match. In my example case: XXX. String string2Match = "    <input type=\"text\" name=\"match\

  • 2 Mail apps. One for my wife and one for myself

    Im trying to create two seperate mail account apps under one "family" username on my powerbook. One for my wife and one for myself. I don't want to have to create a seperate user for her to login to. My goal is to keep our multiple email accounts (gm