SAP Query: InfoSet Filter

Hey experts,
I have an Infoset that contains the JEST table (status of object) and TJ02T (text of the status).
In my query result I only want records in 1 language.
I know I can make a selection criteria on language with a default value.
But now I want to hide the field in the selection criteria.
How can I do this?
I don't find an option to hide selection criteria. And I don't want to make an additional variant.
Is it possible to delete the records in the infoset with some coding?
Thanks
Steven

I found the solution in post Re: SAP Query: How to filter records from SAP Query output before display

Similar Messages

  • SAP Query Infoset

    Dear All,
    I have created a SAP Query Infoset with ldp pnp, i have a customer infotype added to that infoset.
    One of my field in the customer infotype consist of value and text(meaning values are stored in the infotype, which also has some text attached to it which is the check table).
    Now how can i link those two in the infoset, so that user can choose between them?
    Thanks.
    Moderator message: please choose more descriptive subject lines for your posts.
    Edited by: Thomas Zloch on May 26, 2011 10:12 AM
    Edited by: Satish R on May 26, 2011 10:55 AM
    Edited by: Satish R on May 26, 2011 10:59 AM
    Edited by: Satish R on May 26, 2011 11:00 AM

    Hello Satish,
    In SQ01 when you create your output list, you can right-click the column and select "Value and text",  I am on version ECC 6.0.
    Kind Regards,
    Rae Ellen Woytowiez

  • Extracting SAP Query,Infoset  Data from VB Application

    Hi,
    I need to get all SAP Queries,Infosets and SAP Query Group data from a VB application.
    I have found a Remote Enabled Function called    IQAPI_READ_QUERY_CATALOG.
    But when I call the Function from a VB application ,the call is not successful and even I am not getting any exception.
    The call is getting false with null exception .
    Can anyone please guide me.
    Or is there any other function module /procedure / table to extract SAP Query ,Infoset,SAP Query Group data??
    Thanks in Advance.

    http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query

  • SAP QUERY/INFOSET with OUTER JOIN

    Hi,
    I have created an infoset (SQ02) using two tables for SAP query.
    Table: AGR_TEXTS. Fields: AGR_NAME, SPRAS, LINE, TEXT.
    TABLE: AGR_FLAGS. Fields: AGR_NAME, FLAG_TYPE, FLAG_VALUE.
    Joined these two tables using outer join.  Defined the join condition as AGR_NAME = AGR_NAME.  Saved and Generated the infoset.
    Created SAP Query (SQ01) using the above created infoset.
    In the basic list,
    Marked AGR_NAME (AGR_TEXTS), TEXT, FLAG_VALUE as listed fields.
    Marked AGR_NAME (AGR_TEXTS), SPRAS, LINE, FLAG_TYPE as selection fields.
    Save the query.  When execute the query provided the inputs for all the selection fields in the selection screen as given below:
    AGR_NAME=Z*
    SPRAS=E
    LINE=00000
    FLAG_TYPE=LICENSE_01
    Executed the Query. 
    Got the results only the matched records as per the selection field FLAG_TYPE.
    But I want all the records from table AGR_TEXTS and matched records from table AGR_FLAGS.
    I want the report (output) as below,
    _AGR_NAME                                               TEXT                                                                                  FLAG_VALUE_
    ZCA_BASIC_ACCESS_GLOBAL     Non-critical basic access for all users.                                       53
    ZCA_BASIC_ENDUSER_ACCESS     UK:CA Basic Enduser Access     
    ZCA_BASIC_ENDUSER_ACCESS_UK     UK:CA Basic Enduser Access UK                                        52
    ZCA_BASIC_ENDUSER_SU52_UK     UK:CA Basic Enduser Access to change Parameter ID's     
    But I got the report (output) as below, 
    _AGR_NAME                                                TEXT                                               FLAG_VALUE_
    ZCA_BASIC_ACCESS_GLOBAL     Non-critical basic access for all users.     53
    ZCA_BASIC_ENDUSER_ACCESS_UK     UK:CA Basic Enduser Access UK     52
    Apprecited your help. Thanks.
    Code Formatted by: Alvaro Tejada Galindo on Dec 30, 2009 2:20 PM

    Identify a KF for which there are non-zero values for all accounts in the cube.
    Create the query with Account (from MP coming from both IO and cube) and this KF. KF will have 0 values for accounts not existing in the cube. Create a condition to show only the 0 value for the KF. This should show you all the accounts in the IO which are not in the cube.

  • At line-selection in SAP Query ( Infoset ) code

    Hi all ,
    Here is one for you :  can I put somehow the following code in a Sap Query ( at infoset level of course ) :
       at line-selection.
      set parameter id 'BUK' field XXX-bukrs.
      set parameter id 'BLN' field XXX-belnr.
      set parameter id 'GJR' field XXX-gjahr.
      call transaction 'FB03' and skip first screen.
    (In other words I would like to see the documents behind a line in the list)
    Some explains : my query's output would be ABAP list , the bukrs, belnr, gjahr fields are on the lines of my resulting list, and my problem is with those XXX 's - I don't know where are stored the lines of my ABAP list.
    I'm pretty new at ABAP so any idea and explains about the generated SAP Query code
    is appreciated . I looked at the final code but seemed very complex for my level.
    Please guide me in this area ( I know the basic things like writing pretty simple reports )
    Thanks !
    Best of all
    Zoli

    Hi,
    You need to add extra piece of code as below:
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                I_callback_user_command = 'USER_COMMAND'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    *       FORM USER_COMMAND                                          *
    *       --> R_UCOMM                                                *
    *       --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    * Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
    *   Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
    *     Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
    *     Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
    *     Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    "For further information please refer the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_ucomm.htm
    Thanks,
    Sriram Ponna.

  • How to add new codes into SAP Query/Infoset

    Hi Experts,
    First time working with SAP Query.
    I need to enhance an existing Query to add a new field into a report.  I have added new tables into this Infoset and joined my new  tables with existing tables and able to extract the new fields out on the report.  But here are my problems:
    Example of original output:
    X88888 500000
    X99999 400000
    Example of new output after adding my 2 new tables to get 1 new field to output:
    X88888 50000  01/08/2009
    X88888 50000  01/25/2009      <--- for X88888 customer, I want only this record w/ latest date to be output
    X88888 50000  01/22/2009   
    X99999 40000  03/09/2009
    X99999 40000  04/18/2009
    X99999 40000  04/19/2009      < -- for X99999, I want only this record w/ latest date to be output
    Where/How i can add the code to control this logic so that only 1 record per customer with the highest date can be output.  I looked at the query program and it looks very confusing and hard to understand.
    Please advise,
    Thanks,
    Sam

    Hi Sam,
    Instead on adding new table/tables , better way to use Direct Read from your single table.
    Please read the below steps to suffice your requirement.
    Assumption: Let your original table be A and second table is B.
                            Tables A and B are having field X1 and X respectively, using these fields, they can be joined.
                             You want field date1 of table B.
    Infoset Changes:
    1. Go to SQ02 (Enter Infoset name, click on Change button)
    2. Create an extra field E_date of type date (Sy-datum), by clicking on 'Extras' (F5) button.
    3. Select that field in one of the field group of your Infoset.
    4. Click on Code Icon (Shift+F8) displayed on application bar, you will be getting lists events in 'Code section'.
    5. In Data Section , declare an internal table like below code (here pseudo code)
    data: begin of itab_date occurs 0,
                       date1  like B-date1,
                       end of itab_date.
    6. In Recod processing Event write the following code.
    CLEAR itab_date.
    CLEAR E_date.
    SELECT date1 FROM B into table itab_date                           " Retrieving date field from table B
    WHERE X = A-X1.
    Sort itab_date by itab_date-date1  DESCENDING.                 "Sort internal table B in decendind order on date1
    READ TABLE itab_date index 1.                                            "Read first record of interanal table
    E_date  = itab_date-date1                                                      "Assigning top most date of internal table into field E_date.
    7. Generate the Infoset
    Query changes
    1.Go To SQ01 (in a new session),
    2.Give your Query name, click on change button, and select that field group in which you have added extra field.
    3.Select extra field.
    4.Go to basic list to select that field in your O/p list.
    5.Click on Test button, and see if you are getting desired result.
    Please let me know if you need further details.
    Regards,
    Dinesh

  • SAP Query - Infoset Anlegen fu00FCr PNP IT0035 Text fu00FCr Belehrungen

    Hallo,
    ich möchte in einer SAP Query die Texte (RP50M-Text1, RP50M-Text2 und RP50M-Text3) vom IT0035 (Belehrungen) ausgeben. In einem Infoset basierend auf die log. Datenbank PNP stehen diese Felder nicht zur Verfügung. Ich möchte sie als Zusätze definieren, weiss aber nicht wie. Alle meine Versuch sind bisher fehlgeschlagen. Kann mir hier jemand bitte helfen?
    Vielen Dank
    B. Eichhorn
    Moderator message: English only, please...bitte schreiben Sie hier nur auf Englisch, danke.
    Edited by: Thomas Zloch on Dec 1, 2010 5:53 PM

    Hallo, Britta.
    Soweit ich es gesehen habe, es ist nicht möglich, die Texte direkt aus einer transparent Tabelle hearuszufinden, weil diese Texte in einem Cluster PCL1/PCL3 gespeichert sind.
    Eine alternative solution könnte sein: programmieren deine eigene Routine, um diese Texte aus dem cluster zu lesen. Seh bitte das form INIT_TEXT aus Include FP50ME02.
    Ich hoffe, es hilft dir. Grüßen,
    Alvaro
    PS: vielleicht könntest du mehr Antworten bekommen, wenn du deine Fragen auf Englisch in diesem Forum schreiben würdest

  • SAP Query (InfoSet) - table %DTAB

    We have just upgraded to ERP2004 (from 4.6C) and, in addition to direct ABAP coding, I use the Query tool a lot.
    From the code generated by the query application generator, it appears that the output table is now %DTAB.
    I could be extremely usefull to be able to modify the content of this table before output (ex. at END-OF-SELECTION).
    However, reference to this table (ex. in a LOOP) causes a syntax error, as the declaration of %DTAB is not "visible".
    Do anyone know how to overcome this problem?

    http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query

  • Add color to an Additional Field inside a SAP Query (Infoset) in ALV

    I made an Infoset (transaction SQ02) out of table MARC. I created an Additional Field called "STATUS" which I coded to get a value of 1 or 2 depending on the value of another field in MARC.
    How can I make this cell in the resulting Query to appear in different colors depending on the value? I found the command "FORMAT" but that doesn't work on SAP List Viewer (ALV) mode.
    This is what I coded in the additional field called STATUS::
    clear: STATUS.
    if MARC-DISPO = 001.
      format intensified color = 6.
      move '1' to STATUS.
    else.
      format intensified color = 7.
      move '2' to STATUS.
    endif.
    The coloring didn't work. What ABAP command should I add to this additional field to make the coloring of the STATUS cell work under ALV mode?

    field catalog and layout are saved into database aqrdb
    just before displaying the results into ALV table, they are retrieved by function RSAQRT_ALV_DISPLAY which does
    concatenate rtmode-act_report sy-langu into l_srtfd_pattern.
      import fieldcat = fieldcatalog
             layout   = layout
             sort     = sort
             from database aqrdb(lv) id l_srtfd_pattern.
    so in order to display some cells with a different color, you have to
    - add an additional field that will contain the color codes of cells
    - set values in this field at record level (field is a table of type LVC_T_SCOL)
    but also adapt the layout in order to set the field as containing the colors
    - put the name of this field into layout (CTAB_FNAME)
    - export layout to corresponding entry of aqrdb
    this part I don't see exactly where to put it, I guess there is some place where it is possible to manage the layout - if not then you have to do it "manually" i.e. with a small report

  • SAP Query infoset help

    I have made infoset with just one table, BSIS, and i add additional fields my_material & my_menge (BSEG-MATNR & BSEG-MENGE), and when i generate infoset i get the message
    "Unit field BSEG-MEINS will not be filled"
    Affected quantity fields
    my_menge
    When a made query next to the bseg-menge (quantity field) comes (automatically) the filed meins witch is measurement unit filed.
    What code in infoset i should write to fill bseg-meins field.
    Thanks in advance

    I am not sure that I understand you. (what is "extract")
    You mean to add another additional field bseg-meins.
    Problem is that that field comes automatically with field menge, and is empty,
    If I add another add. Field it will be 2 meins fields, one empty and one additional that it would be filled but it not looks good on the screen.

  • Sap query infoset and fieldgroup

    hi
    cn we have more than one fieldgroup in a single infoset
    thanks

    Hi
    Hope this will helps you
    For an InfoSet with a data retrieval program, a field group is created with all fields of the data structure.
    Creating a New Field Group
    To create a field group, proceed as follows:
    Choose the symbol Create from the function toolbar (or Edit ® Field Group ® Create Field Group). A window appears where you can define single or multiple new field groups.
    Enter an abbreviation and a long text for each field group.
    The abbreviation for a field group can consist of any character that you want. The abbreviation only serves a technical purpose within an InfoSet when fields are being assigned to field groups.
    Choose Continue.
    Regards
    Chandrasekar

  • Fastest way to run the SAP query Infoset

    I get runtime error with below code, can anyone suggest fastest output. Same logic as below: Thanks in advanced!
    TABLES: LIPS.
    SELECT SINGLE *
      FROM LIPS
      WHERE VGBEL = EKPO-EBELN
      AND   VGPOS = EKPO-EBELP
      AND   MATNR = EKPO-MATNR.
    IF SY-SUBRC = 0.
      DELIVERY = LIPS-VBELN.
      STORLOC  = LIPS-LGORT.
      CREATED_BY_DELIV = LIPS-ERNAM.
      CREATED_DAY_DELIV = LIPS-ERDAT.
    ELSE.
      DELIVERY = ' '.
      STORLOC  = ' '.
      CREATED_BY_DELIV = ' '.
      CREATED_DAY_DELIV = ' '.
    ENDIF.

    Hi Jay
    I have also got the same problem as above , i have also used the same technique which you mentioned ie connecting EKKO TO EKES and then to LIPS .
    But EKES is not having some PO No( EBELN ) but where as LIPS should select fields for that EBELN .
    IF GT_EKPO IS NOT INITIAL.
    SELECT *
                 FROM ekes INTO TABLE gt_ekes1 FOR ALL ENTRIES IN gt_ekpo
                             WHERE ebeln = gt_ekpo-ebeln AND
                                         ebelp = gt_ekpo-ebelp .
    IF NOT GT_EKES IS INITIAL.
    SELECT *
               FROM lips  INTO TABLE gt_lips FOR ALL ENTRIES IN
                                 gt_ekes1 WHERE vbeln = gt_ekes1-vbeln
                                                    and   posnr = gt_ekes1-vbelp .
    ENDIF.
    ENDIF.
    Please help me if you have any solution.
    Code Formatted by: Alvaro Tejada Galindo on Jan 4, 2010 5:51 PM

  • SAP Query (SQ01) - create and save queryies

    Hi Expert;
    We wanted to implement SAP query reporting (SQ01) tool, and already developed custom HR infoset and user groups and transported to QAS.  We experienced the problem that we can not directly "save" any queries in SQ01. We pretty much have the client opened up and set at "Changes without automatic recording".  But keep getting a "transport object create" dialog upon "save" query.  But in Adhoc (PQAH), we don't encounter same problem.    We wanted our users be able to create and save any queries directly without creating any local objects. Is there another setting that needs to be set? 
    Thanks for any information that you can provide.  Points will be awarded.
    Helen

    Hello Helen,
    in SQ01 you can save queries like in HR Ad Hoc Query (or Infoset query as it is called outside HR).
    However this is only possible in the "Standard Area" not in the "Global Area". However as Ad Hoc Query is based on the SQ0x basics it only hides this effect.
    If you are doing HR specifics you should consider the documetnation on the special HR switches:
    http://service.sap.com/~form/sapnet?_SHORTKEY=01200252310000076208&
    In general if you are new to the topic you should consider the courses BC407 for Query Basics and HR580 for reporting in HR.
    Also to get a feeling for the different types of reporting with the InfoSet Query you can look at the following documentation:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/a8/2e7237a323427ee10000009b38f8cf/frameset.htm
    HR Reporting Tools -> Sap Query -> InfoSet Query -> Calling InfoSet Query.
    Or you can book a special training if you need a contact let me know your email adress
    Best regards,
    Michael

  • Additional fields in SAP Query

    Hi ,
    We have a requirement in HR reporting wherein we are providing the late attendance records of the employees. That is the person is scheduled to come at a respective time but he comes in late and this record is created in attendence infotype . Now we need to see the variance in his planned and actual arrival . Majorly all the fields are availabe in the Infosets but the one with the variance is not there . So do we need to create a custom report for the same or it can be handled in the SAP query adding one field for calculation. If it can be handled , how can that be possible .
    Thanks & Regards

    Please check this link:
    Re: query report
    I guess, it can help for your case too...
    Even this:
    Re: sap query infoset and fieldgroup
    Re: Additional field in SAP Query
    Kind Regards
    Eswar

  • SAP Query: Caseless search for case-senstive dictionary field

    Hi
    I have a question regarding the select options in a sap query. here is the scenario:
    I have a SAP query + infoset. in the selection sreen I have a field from the type MAKTX. this field is a character field that allows upper and lower case. I have the problem that my users provide an input only in lower case e.g. "bottle" and only find the results where bottle is only in lower case. Results with the word "Bottle" they cannot find.
    I am pretty familiar with abap and programing the code to achiev this is not the problem. I just don't know how I can bring my coding and the sap query together. I had 2 ideas:
    a) I make a z-search help and attach it to my select-option in the selection screen. but I don't know if this is possible and where I do that
    b) I put my code into the code-enhancement section in the infoset. but again I am not sure where I have to put it and if there are any restrictions that I have to know....
    c) any other solution will be good as well... maybe somebody has an idea.
    I hope I could make my problem clear. please let me know if you have any idea how I can do that. I don't want to modify the data dictionary object!!.
    thanks in advance - <offer removed by moderator>.
    thanks a lot
    Alex
    Edited by: Thomas Zloch on Oct 6, 2011 8:57 PM

    Use MAKTG instead, in the selection screen. It's has the same value as MAKTX but it's not case sensitive.

Maybe you are looking for

  • How to remove duplicate photos with Elements and Revel?

    While on vacation this year, I uploaded pictures from my camera to my iPad to Revel.  When I got home, I copied all of the pictures from my camera to my harddrive on my laptop and imported them into Elements 12.  On my laptop I store photos in subdir

  • 8.0.5.2.3 to 8.1.7 Migration

    Hello, I am doing 8.0.5.2.3 to 8i migration manually. As indicated in the document, when I try to start the dB in RESTRICT mode I am getting an error message indicating that the dB is already started. When I checked the error, it appears that when th

  • Facing problems with network due which the phone goes into hangs status

    Facing problems with network due which the phone goes into hangs status.  some one help me with switching between 2g and 3G network

  • Function is obsolete (successor: SAP_WAPI_DECISION_COMPLETE)

    Hi All, I'm getting the above when i'm trying to make my decision through UWL for travel request. The workitem status goes into reserved. Can anyone share the solution if anyone has already faced similar issue? Thanks & Regards, - Raj

  • Some album art won't show in iPad 1

    I have an iPad 1.  It's updated to iOS 5.1.  My problem has to do with my music.  Much has been acquired via iTunes, and some via loading and syncing to my iPad via PC.  Anyway the problem is that when I view them on iPad the album artwork isn't show