Delete duplication in infoset query sq02 sq01

i use a join which give many entrites same i want to remove all duplicates.

Please check out this link and let me know if it is helpful..
http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb449c455611d189710000e8322d00/frameset.htm
When outputting using the SAP List Viewer, the code at TOP-OF-PAGE has no significance

Similar Messages

  • Conditions in infoset query (SQ02)

    Hi, I´m working with BW 3.5 And I´m using infoset query(SQ02) for link two tables.
    The second table is linked with left other join, and I need more one condition in this table, I just want the data with max(date) in table two.
    For Example:
    Table 1:
    FIELD1  | FIELD2 | NET_PRICE
    800001  | 0010   | 100.00
    800002  | 0010   | 1520.30
    800003  | 0010   | 48.54
    Table 2:
    FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    900000 | 800001 | 20080101 |10
    900001 | 800001 | 20080210 |15
    900002 | 800003 | 20080101 |10
    Result of InfoSet query (Table1-FIELD1 link Table2-FIELD1 with left other join) :
    FIELD1  | FIELD2 | NET_PRICE | FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    800001  | 0010   | 100.00    | 900000 | 800001 | 20080101 |10
    800001  | 0010   | 100.00    | 900001 | 800001 | 20080210 |15
    800002  | 0010   | 152.30    | 000000 | 000000 | 00000000 |0 
    800003  | 0010   | 148.54    | 900002 | 800003 | 20080101 |10
    But the result should be:
    FIELD1  | FIELD2 | NET_PRICE | FIELD3 | FIELD1 |  FIELD4  |BILL_QTY
    800001  | 0010   | 100.00    | 900001 | 800001 | 20080210 |15
    800002  | 0010   | 152.30    | 000000 | 000000 | 00000000 |0 
    800003  | 0010   | 148.54    | 900002 | 800003 | 20080101 |10
    Is possible appear only the max(field4) for de left table 2 using infoset query (SQ02)?
    Thank´s!!

    Please check out this link and let me know if it is helpful..
    http://help.sap.com/erp2005_ehp_02/helpdata/en/d2/cb449c455611d189710000e8322d00/frameset.htm
    When outputting using the SAP List Viewer, the code at TOP-OF-PAGE has no significance

  • Interactive report using Infoset quiereis with SQ01,SQ02,SQ03.

    Hi,
             I have to create a report by using the infoset query with SQ01,SQ02 and  SQ03 Tcodes. But problem my requerment is that I have to create one interactive report with these quereis.
    Can any body tell me how to create this interactive report using infoset quereis OR are there any standard quereis which are having interactive nature.
    Pleas send me the solution and thanks in advance.
    regards,
    J.

    Yes, but I am not able to figure exactly how to implement it? I mean I can do this same code in SE38 where I know names of the internal tables. But when in SQ02 we can't modify/read system tables (I found name of the system tables using report generated by SQ01). So how you will access them, then how you will reflect our changes in output ALV grid?
    Example:
    Data:
    Rate Cat.      Installation     Date
    71     60000984     20/10/2009
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    so in this case I want output:
    Rate Cat.      Installation     Date
    71     60000984     20/12/2009
    71     60001101     10/09/2009
    78     60000310     10/09/2009
    78     60000315     10/09/2009
    83     60000297     10/09/2009
    You will see 71     60000984     20/10/2009 is not the latest one, therefore I don't want that row. I can do the ABAP logic for this, but exactly what and how to implement in SQ02?

  • Infoset query SQ01 preview output display truncated

    Hello Experts,
    When we are creating an infoset query from SQ01, the preview of output just below the screen is truncated.
    Example when I select personnel area as output with value and text, the value is only displayed as 1 character and the text 8 characters. But when I click start ouput their original output size is displayed.
    I already checked the output length of the fields and they are correct. The lengths are correct when start output is clicked.
    Any ideas on what should I check?
    Thanks in advance!

    Hi Jitesh,
    Please follow the below stepas . (here pseudo code)
    In Data Section
    DATA: str1 TYPE string,
               str2 TYPE string,
               str3 TYPE string.
    str1 = 'MC*'.
    str2 = 'EQP*'.
    str3 = 'WE*'.
    If you have more strings to compare ..declare those like that.
    In 'Record processing Event' you need to use CHECK statement with CP operatoar of String
    CHECK table_name-transaction_field CP str1 OR  table_name-transaction_field CP str2 OR table_name-transaction_field CP str3.
    CHECK SY-SUBRC EQ 0.
    Genrtae the Infoset "Important step
    Go to SQ01(in a new session) , and see if your getting required result.
    Regards,
    Dinesh
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:17 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 7:18 AM
    Edited by: Dinesh Tiwari on Oct 1, 2009 8:07 AM

  • InfoSet Query modification error

    Hi,
    I am trying to modify a InfoSet Query in SQ01 developed by a SD consultant last time. I already assigned my user ID in the User Group (in SQ03) which is referred by this Query. At the same time, I also assigned the Change Authorization to my ID.
    After that, I modified this InfoSet in the SQ02 to add on 1 table and the Save is successful. Then I try to modify the display layout of the Query in SQ01. When I save it, it give me a message "The query is locked for changes by SDUSER". The ID SDUSER is used by the SD consultant last time. Then the modification is not saved.
    I already checked in AL08 and also SM04, and found that this user is not log in at that time.
    I already done whatever I know to try to solve this problem but I still can't settle it. Can anyone please help me on this? Why can this happen? How can I unlock it?
    Thank you.

    Hi,
    the lock was made by SDUSER when he created the querie. It's an option in the first screen "Title, Format" (specials attributes). When this option is select, only the specific user can change the query (sometimes some modifications are allowed by other user's in specific conditions).
    The only way of resolving the problem, is the SDUSER to disable that option from there. After that you will be able to change it.
    If that user doesn't exists, you must call the Basis team to create the user again, log on, and change the option.
    Regards,

  • Crystal report from SAP infoset query

    Hi All,
    I am facing a problem in a crystal report which is based on Infoset query. When I run the report after passing the parameters it gives me an error "Database error occured" "Parameter field value does not exists" "RFC Closed"
    But if I run the same Infoset query from SQ01 I am able to run it with same paramenter and it returns many records.
    To be very precise I am running the best practice crystal report "Cost Analysis - Planned vs. Actual Order Costs" which is based on infoset query CO_OM_CA_20_Q1.
    It throws me error that "Controlling Area does not exists".
    Did anyone faced similar problem?
    Best Regards,
    Chetan

    Hi,
    log into your SAP ERP system using the SAP GUI and choose in the SAP Menu the following path:
    SAP Menu -> Accounting -> Controlling -> Cost Cetner Controlling ->Environment->Set Controlling Area.
    Set the desired controlling area for your user there (DO NOT FORGET TO CLICK ON THE DISKETTE ICON) and try again.
    Regards,
    Stratos

  • InfoSet Query: Syntax Error while generating the program.

    Dear All,
    I have a Query in CRM system which contains an Infoset based on LDB.
    The InfoSet Query throws up a Syntax error while generating the program.
    So, we are not able to change the Infoset using the Infoset Query through SQ01.
    The error is as follows:-
    Syntax error in program "AQZZ==/SAPQUERY/CRM_ACTMON1 ".
    Error in the ABAP Application Program
    The current ABAP program "CL_QUERY_OUTPUT_DEFINITION====CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    The following syntax error occurred in program "AQZZ==/SAPQUERY/CRM_ACTMON1 "
    in include "AQZZ==/SAPQUERY/CRM_ACTMON1 " in
    line 28:
    ""CRMT_REPORT_LOCATORLIST" must be a flat structure. You cannot use int"
    "ernal tables, strings, references, or structures as components. -"
    Please help me arrive at an solution, so that we are able to change the Infoset through the InfoSet Query.
    Awaiting your reply as soon as possible.
    Thanks and Regards,
    Pankaj.

    There is an error in your query, specifically in the definition of CRMT_REPORT_LOCATORLIST. In the short dump (transaction ST22) you will see more details and the exact location of an error if you just scroll down.
    I can't tell more because this problem is specific to your system, to which I have no access. Read the whole dump and look at all the objects mentioned there.

  • Question about infoset query with code

    Hi experts.
    I always appreciate your help. Today, I have some problem. I made infoset query using SQ01 and got some data. Those data include WBS no but some of them didn't. So I tried to put some code into the infoset query that any data has not WBS has some value, for example 'X', in WBS no field.
    I needed to know what field or table I should control to display value 'X' in WBS no field in case that WBS field has no value.
    I tried to put code at "END-OF-SELECTION(before display)" and control %dtab. But I met error message there is no such table %dtab. So, I define %dtab then during runtime, I also met error message %dtab has already been defiend.
    How can I do? Is it impossible thing?? I'm wating for your answer.
    regards.

    Hi, if you just want to fill the field if it is blank, you can do this in the Record Processing Section.
    I'm not familar with the WBS number, so for this example, I will fill the BISMT in MARA during the "Recording Processing" Section.
    if mara-bismt is initial.
    mara-bismt = 'X'.
    endif.
    Regards,
    Rich Heilman

  • How to delete Infoset Query in R/3

    Hi  Gurus,
    I created a Infoset using SQ02 in R/3 and generated the query. Now I need to delete that Infoset query. Please advice me how to delete infoset query from the functional group in R/3.
    Thanks
    Liza

    Hi,
    In SQ01 ,press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
    and try to delete , I think, it should work.
    Regards
    CSM Reddy

  • SQ02 Infoset Query

    Hi
    When I'm trying to create an infoset query by using the trasaction SQ02 , while generating it's throwing the error
    " Error in Parameter PYPARAID
        Statement concluding with "---Type" ended unexpectedly".
    Can anyone pl help me in creating a query using sq02, sq03 and sq01.
    rewared points will be given..
    Thanks
    Nanditha

    Check these links, they are very useful...
    http://www.insightcp.com/res_15.htm
    http://www.ams.utoronto.ca/Assets/output/assets/adhoc_2990830.pdf.pdf
    If you still have any queries, let us know...
    SKR

  • Add field in sq01, infoset query.

    i am trying to create a virtual field in sq01. i am creating a infoset query where i want to add two fields and need to displayed in the report. how can i do that without enhancing the infotype? i just need to add two fields and need to be displyed in third field. i want to add some logic of addition to those two fields and the result need to be stored and displayed.
    Message was edited by:
            shahid mohammed syed

    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

  • Regarding Deletion of a table from infoset query.

    Dear Sappers,
    I have created a query using two tables KNA1 and BSIS.....
    for showing Customer Code (KNA1_....)  and the Document currency(BSIS_WRBTR)
    I have two questions....
    1. How to delete one table either of KNA1 or BSIS from the query sq02
    2. Which table to use in respect with KNA1 to show the document currency or the sales revenue....
    please help me out

    Hi,
    1. I dont think a table can be deleted from the created query u need to create one   
        new query
    2. Better use VBRK for document currency.
        I dont think one can suggest u to use one particular table
        First u c what r the field values that r required to u. then press F1 and go for   
        technical information to get the name of the table and field.
    Cheers,
    Anil.

  • How to change infoset for a query in SQ01?

    hi,
    I have created a Infoset which I have assigned to the user group.  Now  for creating the query using this infoset, how can i
    proceed?? Its not giving me the option to change  the infoset
    and whenever I clicks on 'Create' it shows me the field group
    of some other infoset. how can i change it to my infoset which I have created.

    Hi,
    In SQ01 first you press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
    and do the further processing.
    i hope this information will help you.
    regards
    saurabh

  • SQ01 Infoset Query - making a selection mandatory

    Hello,
    Is it possible to make a selection mandatory on an Infoset Query? If so, how do you do this?
    I have a report that I created using infoset query, but need to make a selection option mandatory to prevent the scenario of the report being run with no selections.
    many thanks,
    Allan

    When you display infoset go into the infoset>Goto>selections  or click on the app tool bar button for selections,
    it will open up a table will all the screen fields. Adjacent to these, there are 3 check boxes for Standard selection, required entry and default. Check the required entry field.

  • Infoset Query Selection Screen Issue

    Dearf Experts,
    I am a SAP-PM functional area. (Do know very little about technical sideof SAP)
    I am working on SQ03/SQ02/SQ01 for the first time to create an Infoset query.
    The output screen is incontrol and showing all the fields as per my specifications.
    My problem is the Selection Screen. This is displaying to many things not desired by me.
    1. Two tabs (I do not expect any tabs)
    2. Many Screen areas, repeating the fields (1000,0100,0101,0102,0103) 
    The screen area of my specified fields in at the bottom.
    My expectations about the selection screen is - just like simple one as in the case of SQVI.
    Please help me in getting through this problem.
    Regards
    Jogeswara Rao

    Gungor Ozcelebi,
    Thank you very much for responding,
    Exactly as you said, I am using Notifications logical database.
    (I was suspecting this reason)
    Infact I found about 8 fields (Perhaps related to Date fields, checkboxes etc) are automatically selected from the LDB.
    My trials to delete them were invain. They reappear while saving.
    I would be very thankful, if you help me in this case.
    Regards...

Maybe you are looking for

  • SAP Business One on Ipad

    Dear All, I installed SAP Business One 8.81 PL04 (on Server) and SQL server 2005. My questions are 1) i install B1 integration component, when i am opening the integration framework i am getting a windows security dialog box in which it is mentioned

  • Set maximum Number of post in News Feed WebPart

    Is it possible to configure maximum number of Posts in News Feed webpart under following and EveryOne. Also would like to know more about Newsfeed webpart internal functioning. Any link woud be really helpful. Ashish Baranwal To know what you know an

  • Delaying a text message

    Hi guys, Is there an app which will allow you to compose a text message but send it at a later time and date.

  • Error in UBB Service Contract

    Hi All, I'm Configuring UBB - Usage Based Billing scenario. Once I enter Service Product & reference product in UBB Service contract, I see the following messages. 1. Error when reading billing plan date with GUID 00000000000000000000000000000000 2.

  • I have to reset I pod every time it hooks up to computer

    My other ipods work fine on this computer but my second generation mini has to be reset every time to be found PLEASE HELP