Field selection in SAP query

Hello Team,
I have a query on SAP query. I have the field MSEG-KZEAR and RESB_KZEAR. Now the MSEG field is visible in sq01 and is selected as output but the table has no entries for this field. Also the entries are maintained in RESB field. But RESB table is not visible for selection in sq01; however I can see the table in sq02 but unable to select the said field as output.
I want to select the RESB-KZEAR field for output but i am unable to do so in SQ01.
SQ01
SQ02
Please help to do so.
Thanks again for your time,
Beryl

Hi Beryl,
Please move your RESB-KZEAR field into Group fields using drag and drop in SQ02.
and activate your SAP Infoset aafter that you can use  infoset in Query.
Then value will be moving from RESB table.
Regards,
Prasenjit Mishra

Similar Messages

  • Change the description of a field in a SAP QUERY

    Can i change the description of a field in a SAP QUERY report in the output of the report.or only the standard descriptions can be displayed.
    Edited by: mysap query on May 12, 2009 7:23 AM

    HI,
    in query maintenance (sq01) you can change the text of the field at the selection screen (change the selection text in the screen where you choose the selection fields) and the header text in the output list (basiclist maintennace , go to "basic list header", double-click each header field to maintain the text). This change is only for the particular query. No ABAP-er required to do so.
    BR Christian

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

  • Issue with dynamic selection in SAP Query

    Hi,
    I have a doubt in SAP QUERY
    i used that for creating Customer Master Report
    2 fields i have added in dynamic selection from knvv table. if i try to excute based on the value in that 2 fields
    i'm not getting  output records based on that
    pls help me with the logic from where i can get the variables for that dynamic fileds.
    thanks in advancde.

    Hi Suhas,
    Actually in my report user will enter program name & variant name, based on this I need to find out the value for that variant & print that report. so for normal selection I can get the detail using FM: "RS_VARIANT_CONTENTS" but for dynamic selection (Free selection), I am not getting the detail using this FM.
    So I need any FM or Table Name which gives me the value for dynamic selection based on the report & variant.
    Thanks & Regards,
    Lalit Soni

  • How to control field length in SAP query's report output

    HI everybody,
    I have one scenario in SAP query in which there are two fields in the report output:
    Milestone descrition and milestone description Long Text.
    In CJ02 (WBS element overview), these two fields are populated with some text.
    If description is exactly same as LOng text, long text is NOT getting displayed in output.
    If long text is having more characters than description then only long text gets displayed in the output.
    Do we need to change infoset or query settings? I haven't handled SAP query programming before.
    PLease give some suggestions how to achieve this or I have to write custom report.
    Any inputs on this will be highly appreciated.
    Regards
    Kaushal

    Hi,
    Refer to this link..Additional field in SAP Query
    [Creating Additional Fields |http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]
    [Code|http://help.sap.com/saphelp_nw04/helpdata/en/d9/9958e0c50a11d396f80000e82de14a/frameset.htm]

  • 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

  • User Field Selections with SAP Asset Report RAGITT_ALV01

    Hi,
    We are running RAGITT_ALV01 (Asset History Sheet) report and wish to utilize some user fields (ANLU) in data selection. How might this be done? I find when using "List Assets" under "Settings" tab the asset number , sub asset numbers and associated user fields remain. However when using "Main Numbers Only" or "Group Totals Only" under this same tab, sub asset number and associated fields are not to be found and accumulations already include all assets with a given asset number with no opportunity to apply user field data selection criterion which would eliminate some assets included .
    Thank you  for your time, harold

    Hi,
    Sorry to have taken so long to reply, and thank you for suggestion.  We already have our "Z" copy of this program and have been processing from this for some period of time. The problem occurs when trying to apply user fields (ANLU) to data selection criterion for reporting options "Main Numbers Only" and "Group Totals Only". Asset numbers (main and sub) disappear during R3 data base processing never to be seen intact again. Have traced this through and may have solution for "Main Numbers Only" option. Testing is occurring on this "work around". However the third option "Group Totals Only" solution still evades capture. If you have any more ideas please pass along to me. Again thank you for your time and effort. harold

  • Sap Query custom field assigned to wrong field group (in extract)

    Hello,
    I want to add an extra field to InfoSet /SAPQUERY/MEBANF at EBAN level. I added a field in a normal way:
    I fill it with a constant value. I adapted Sap Query:
    In result, I got the value in new column but only for certain rows:
    The value is there only for EBAN rows which have EBKN entries related.
    I checked the program, and my new field is added to field group %fg07 with some other fields from table EBKN (not EBAN):
    Fields from field group %fg07 are inserted to extract only in event get EBKN, so if there is no entries in EBKN, my field will not be inserted into extract:
    I tried a lot of things (assigning my field to new field group in InfoSource, adding a field on EBKN level). I can say that every extra field created by me was assigned to field group &fg07.
    Am I doing something wrong?
    The target is to add new field in the document overview panel in ME2xN transaction. I know that there is user-exit EXIT_SAPLMEQUERY_002 where I can specify a Z* query. But this solution requires a copy of InfoSet and query to Z*. Adding a new field to standard Sap query is the fastest way.
    Message was edited by: Rafal Matuszewski
    Now I tried to append EBAN table with my Z* field. I regenerated InfoSet and query but the result is still wrong:
    insert EBAN-GSFRG into %fg06.
    insert EBAN-ZUGBA into %fg06.
    insert EBKN-VBELN into %fg07.
    insert EBKN-AUFNR into %fg07.
    insert EBKN-KOSTL into %fg07.
    insert EBAN-ZZDELIV_DATE_MRP into %fg07.   <-- here again the Z* field is assigned to field group related to EBKN table

    Thanks Sandra

  • SAP Query Custom Field with ABAP Code

    Hi All,
    I have a custom field in my SAP query which has some ABAP code under it. The code finally writes some value to a variable. My question is do i need to explicitly link the variable in the ABAP code to the custom field OR it's done automatically. For some reason i don't see any value for this custom field. Thanks.

    Thanks Sandra

  • Adding extra Field to a Infoset Query

    Hi Experts,
      I need to add an extra field to a SAP Query(infoset). SInce the code uses a dynamic program call, how do I add my code . Can I have some example code used to add extra field to a SAP Query

    Hi Mithun and gurus,
    My code is working now for these 3 new additional fields. The thing is it works if these fields were selected solo. but if all of these 3 or 2 of it simultaneously, an error occurs.
    Error when generating the report (see long text)
    Message no. AQ_AD_HOC221
    Diagnosis
    The report cannot be generated because the internal description is invalid or incomplete, or because the selection screen is too large.
    Regenerate the assigned InfoSet, and read the log. If the InfoSet is OK, make sure that at least one field is given as output.
    If you used the 'Refresh' icon to start the query, use the 'Output' menu option to execute the query. This gives you a full screen display of the data.
    If an output was generated, the query cannot work with actual data in the construction view. In this case, always use the 'Output' function to execute the query.
    Procedure
    If the selection screen is too large, you need to reduce the number of your selections.
    Make sure that the assigned InfoSet is correct. The name of the assigned InfoSet is stored in the menu option 'Extras -> Template Information'.
    Output at least one field. Otherwise you will not be able to save or generate reports.
    If you do not have this problem, execute the query using the 'Output' function.
    Otherwise, there is an error in the InfoSet Query.
    >>>I checked and the code seems fine at least. I think there must be something I need to configure. I tried the SEQUENCE for Codes but nothing happens..
    I hope you could helop me with these..Thanks a lot!!!

  • How to Create Specific SAP Query for Sales BOM

    Dear All Salute !!
    How I can create a SAP Query which provide information from the Sales Order-Line Item, this specific material is having any BOM or not?
    Suppose, user want Input,
    Sales Order No., Product Category, Duration of Sales Order Release.
    want Output,
    Sales Order No., Customer No., Customer Description, Sales Order Line Item, Material No., Material Description, Delivery Date, Quantity, Sales Order release Date
    Users requirement is, List of All Line Items for which BOM is yet to be Uploaded in the System.
    Please provide complete detail with Table & field by using SAP Query.
    Rgds
    Srivastav
    +91-9973504950

    If I am correct, in table KDST, you can see the details of Sales BOM with sale order.  Since right now, I dont have access to SAP, I am unable to confirm this.  You have to consider this table and develop on your own logic with the help of ABAPer.
    thanks
    G. Lakshmipathi

  • SAP Query: Display Selection Fields in the header page of Basic list

    Hello,
    I have to display the selection fields in the header page of the basic list and statistics
    in a SAP Query.
    I know the usage of short names for fields in the header page, but this doesn't work
    for the selection fields.
    How can I display the selection fields in header pages?
    Kind regards
    Thomas

    Try using:
    DATA: wa_lstab TYPE line
    READ LINE sy-index line value INTO wa_lstab
    Thanks,
    SKJ

  • Selection screen fields in SAP Query

    HI friends,
    I have to make the seletion screen field as mandatory in SAP-Query.
    Please let me know the procedure to make field as mandatory or Let me know how to validate the selection-screen field in Query.
    Thanks in Advance,
    Ravi

    Go to SQ02
    Select your Infoset-->Change
    On next Screen.
    Select GoTo->Code->Initialization.
    Write there code
    LOOP AT SCREEN.
      IF screen-name EQ 'SP$00004'.
           screen-required = 1.
           MODIFY SCREEN.
      ENDIF.
    ENDLOOP.

  • Mandatory selection input field in SAP query

    Can anyone please let me know how we can make a selection field input mandatory in SAP query,If we can?

    we can make a selection field input mandatory in SAP query by giving the option *OBLIGATORY * with the SELECT-OPTIONS for the required field.
    This addition defines the input field of the parameter on the selection screen as a required field. If no entry is made in this field, the user cannot use the Execute function (F8) to exit the selection screen, they can only use the functions Back, Exit, or Cancel.
    Reward Points if useful.

  • No hide fields or select fields in SAP Query Extractor?

    HI Gurus,
    I want to generate a data source, extraction data from SAP Query.
    Now I want to hide some fields or to mark some fields as relevant for selection.
    But after saving my settings are unavaiable...?
    Does somebody have an idea? Is this standard when extracting from Query or is this maybe an OSS...?
    Thanks

    Hello,
    Just logoff and Login again, then check it.
    Also see
    SAP Note 1014073 DFG: Changes to the DataSource are displayed incorrectly
    SAP Note 1073714 DataSource in RSA6: Unable to display/change customer fields
    SAP Note 925398 RSA6: DataSource enhancement only visible after restart
    Thanks
    Chandran

Maybe you are looking for

  • Please Help - Fade on load with preloader

    Hi All, I am loading an external swf into an emply mc when a button is clicked. I have the movie fading in when the button is clicked by the following code on the button: on(press){ import mx.transitions.Tween; var alphaTween:Tween = new Tween(_root.

  • VAT /CST% manually in the sales order,not getting copied to the Invoice

    Dear Friends, If I change the VAT /CST% manually in the sales order,its not getting copied to the Invoice Thanks Ivy

  • Delta not reflecting in Queue (RSA7)

    For testing purpose we posted some FI documents in R/3(Devlopment) side using tcode F-02 after that we used tcode RSA3 DataSource: 0FI_GL_4 Update mode: D Target System: BIWXYZ after extraction we could view the posted enteries... after 1 day(As FI d

  • My clock is getting slower...

    I noticed during the last month that the system clock is getting behind right now all the time about 4 minutes. Shouldn't this be updated through the internet correctly?

  • IWeb blog and YouTube

    I added a youtube video in my blog entry placeholder and it works. But under my blog summary page (the only page i use for my blog) it only shows an image of the video, and you have to click on it to enter the entry and view the video. Is there a way