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

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

  • SAP Query - scheduled and emailed?

    SAP Query - is there anything on the SAP ECC side similar to BW that allows you to schedule a query and have it broadcast to an email or ftp sight for it to be displayed?
    Thank you,
    Lynda

    Hi,
    as described above you can schedule a query. To distribute the result to various receivers use SBWP t-code and create a distribution list containing the receivers (e-mail adresses,...).
    Assign this distribution list to the job scheduled in SM37 (button "spool list recipients").
    best regards, Christian

  • Transaction ME80FN, SAP Query ME80FN, and logical database MEPOLDB

    I am looking at transaction ME80FN. Is that from the global query /SAPQUERY/ME, ME80FN? I was told that ME80FN was from SAP Query... but doubts are creeping in.
       SE93 shows trans. ME80FN as Program RM06EAAW and no logical database. RM06EAAW has different headings and an additional toolbar in the results screen.
      Did RM06EAAW get generated from SQ01 ME80FN?
       I have to modify the ME80FN transaction output by adding a field to the PO History display, which is selected from the bottom toolbar, rightmost button. I guess I have to go with RM06EAAW as the starting point(?).
       We are on 4.6B Any suggestions are welcome.
      Thanks

    These are what I am dealing with:
      Transaction ME80FN
      /SAPQUERY/ME, ME80FN query.
      Another way to word the question is: How can I make a copy of the global query /SAPQUERY/ME, ME80FN to have that nifty bottom toolbar that transaction ME80FN has?
      At first glance, they are the same entity... But the toolbar in the transaction and display options via the last button on the toolbar differentiate the two.
       Thanks....

  • Query, infoset and Logical database tuning?

    Hi, All:
    I created infoset z_infoset based on logical database DDF.
    then based on infoset z_query based on infoset z_infoset.
    then run the z_query, the performance is too bad.
    take long time.
    How to tuning logical database, infoset and query.
    Thanks,

    These are what I am dealing with:
      Transaction ME80FN
      /SAPQUERY/ME, ME80FN query.
      Another way to word the question is: How can I make a copy of the global query /SAPQUERY/ME, ME80FN to have that nifty bottom toolbar that transaction ME80FN has?
      At first glance, they are the same entity... But the toolbar in the transaction and display options via the last button on the toolbar differentiate the two.
       Thanks....

  • SAP Query Use and Transport Strategy

    Anyone wish to share their experience in the use of SAP Query?  We generally have an understanding that we don't want to be giving out this tool to end-users in Production.  We would like to create queries, and when we wish to give them out we'll attach t-codes to them and roll them out.
    However in practice, this is becoming difficult.  An example is where in our gold client we create queries and then we would typically transport to our unit test client.  But whenever we do an export, it generates a transport request.  Before we are done testing we may end up with 10's of transports for a single query?
    Anyone have some ideas on a transport strategy for SAP Query?  How about it's use in Production?  Our landscape for changes are typically DEV Gold -> DEV Test -> QAS -> PRD.  We would ideally like our transport strategy for queries to match what we do for everything else.

    HI,
    Query objects are transported in different ways according to the query area in which they were created.
    In order to know which transport options are available, you must first understand how query objects are created.
    <b>Standard Area</b>
    Query objects are stored in the client-specific table AQLDB. They are not connected to the Change and Transport Organizer.
    <b>Global Area</b>
    Query objects are stored in the cross-client table AQGDB. They are connected to the Change and Transport Organizer.
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb467f455611d189710000e8322d00/content.htm
    Global area objects can be transported into other systems. Standard area query objects can not only be transported to other clients within their own system, but into all clients of other systems as well. In addition, query objects can be transported from the global query area to the standard query area and back within the same system.Transports are normally performed by the system administrator, not by end-users. For this reason, you need the appropriate authorizations
    Check the below links for detailed explanation
    <b>Transporting Global Area Objects</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/ec/052786a30411d1950a0000e82de14a/content.htm
    <b>Transporting Standard Area Objects</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/ec/052789a30411d1950a0000e82de14a/content.htm
    <b>General Transport Description</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb4699455611d189710000e8322d00/content.htm
    <b>Generating Transporting Datasets</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb46a6455611d189710000e8322d00/content.htm
    <b>Reading Transport Datasets</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb46e7455611d189710000e8322d00/content.htm
    <b>Managing Transport Datasets</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/d2/cb46f4455611d189710000e8322d00/content.htm
    <b>Transporting Objects between Query Areas</b>
    http://help.sap.com/saphelp_47x200/helpdata/en/ec/05278ca30411d1950a0000e82de14a/content.htm
    I hope this solves your purpose.
    Regards,
    Vara
    Message was edited by:
            varaprasad bhagavatula

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

Maybe you are looking for