Adhoc query -sq02- Additional fields

HI experts
I am working additional fields in SQ02 .
I added a additional field for an infotype in SQ02  .Issue when I go to Tcode PQAH and run the query .I Could not able to see the selections check box for my additional fields which is useful to select as input field .
And when I right click on my additional field I could see  options 'Only value'  but for other fields I could see ' only value ' , 'only text' and ' value and text' .
If any one worked on these kind of issues .Please give pointers .and requirement is specific.

Hi Kamesh,
I have the same issue - did you resolve this issue, and please could you share how?
Thanks,
Vaishali

Similar Messages

  • Sap query and additional fields.

    Hello guys.
    ABAP it's not my strong skill, but i need to develop some report.
    What i need:
    input: material, SLED, plant
    output: material, SLED, plant, values from characteristic field.
    I have created sap query with additional field type c.
    Below my code:
    TYPES: BEGIN OF charast,
            ATNAM(50)    TYPE c,
            ATWTB(8)     TYPE n,
            X(50)        TYPE n,
            C(50)        TYPE n,
            ATINN(50)    TYPE n,
            END OF charast.
    DATA: char TYPE TABLE OF charast WITH HEADER LINE.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR              = MCH1-MATNR
         CHARG              = MCH1-CHARG
         GET_CLASSIFICATION = 'X'
       TABLES
         CHAR_OF_BATCH      = char.
    LOOP AT char into TEST (This is an additional field type C.
       ENDLOOP.
    Questions:
    1. How i can return internal table into standard abap type, because i can create additional field only with standart types.
    2. Need i fetch exporting parameters before calling FM? Or sap query do it automatically, based on given values on selection screen of the report?
    3. How i can return only needed field from FM output? Now, when i'm executing FM via SE37 it's show desired result, but when i'm getting it from code i see strange values.
    4. If i don't know exactly return by an FM values, how i can fill structure dynamically?
    5. How i can return result of a program not only to additional field but to layout?
    Sorry for noob questions and thank you in advance guys!

    Well, seems like it work fine for me.
    Below my crappy, but working code:
    DATA: material TYPE MCHB-MATNR,
           batch    TYPE MCHB-CHARG,
           plant    TYPE MCHB-WERKS,
           sloc     TYPE MCHB-LGORT,
           gtdt     TYPE STANDARD TABLE OF clbatch,
           gtdit    TYPE clbatch.
    SELECT MATNR INTO material FROM MCHB
       WHERE MATNR = MCHB-MATNR.
    ENDSELECT.
    SELECT CHARG INTO batch FROM MCHB
       WHERE CHARG = MCHB-CHARG.
    ENDSELECT.
    SELECT WERKS INTO plant FROM MCHB
       WHERE WERKS = MCHB-WERKS.
    ENDSELECT.
    SELECT LGORT INTO sloc FROM MCHB
       WHERE LGORT = MCHB-LGORT.
    ENDSELECT.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR = material
         CHARG = batch
         WERKS = plant
         GET_CLASSIFICATION = 'X'
        TABLES
          CHAR_OF_BATCH = gtdt.
    READ TABLE gtdt INTO gtdit
       WITH KEY atnam = 'BATCH_SHELF_LIFE_EXPIRY_DATE'.
    GTD = gtdit-ATWTB.

  • SQ02 - Ad Hoc Query - Custom additional fields

    HI experts
    I am working additional fields in SQ02 .
    I added a new additional field for an info type in SQ02.
    Issue is when I right click on my additional field I can see options 'Only value' but for other fields I can see ' only value ' , 'only text' and ' value and text' .
    When creating the new field in SQ02, the check box "Determine LIKE reference using text field" is disabled.
    Is there is configuration somewhere or any other way, where I can also get the text for the custom additional field?
    I can see that this question has been asked earlier, but there are no responses.
    Also on SAP documentation, this field is shown as enabled.
    But I cant get the text for a additional field working. Please coyu post your suggestions?
    Thanks,
    Vaishali

    Hello Srini,
    Thank you for your time.
    Consider the additional field SYHR_A_P0001_AF_PL_CTRY (country) in Infotype 0001 in the infoset.
    This field does not populate any country code or text for us, so I need to create a custom additional field that will have the same functionality.
    I have created two new additional fields - Z_Country_Code and Z_country_text in additional fields section of IT0001.
    One field fetches country code and other fetches the text corresponding to this code.
    What I want to achieve is the standard functionality that is available for standard fields - P0001-WERKS for example.
    In the query output, you could select to display text/code/ text and code.
    For the additional field "Country", I have to select two separate fields - Z_Country_Code and Z_country_text  to achieve the same  functionality.
    How can I achieve this?
    When we define a custom additional field, in the field definition section, there is a check-box "Determine LIKE reference using TEXT FIELD" , but this is disabled when I create the additional fields. Perhaps, if this is enabled, then I can define the text table.
    Any ideas how to enable this text box?
    Vaishali

  • Adhoc Query: Through Additional Actions

    Hi Gurus,
    I am using following critera to pull a report:
    Selection                                        Output
    Additional action(0302)                    PERNR
    All actions
    report is nort generating any data, i have checked 0302 for records, reecords are there in PA0302.
    Wht may be the reason?
    Regards,
    Sushil

    If you do not want to use IT 0000 (Actions), then you can sure add it in  the infoset, go to SQ02 and then add infotype 0302 in your infoset, or create a new infoset.
    Then you have to create the simple SQ01 query to meet your needs, I have just tested it and it worked fine.

  • ABAP QUERY - SQ02 addition of logic in infoset (END-OF-SELECTION)

    I guys I have read this discussion: http://scn.sap.com/message/8193608#8193608
    but solve partially my problem.
    In particular I need special logic to interpret the single field from field symbol, for example:            
         loop at <goo> assigne <goo_wa>.                  
               tot_qty = tot_qty + <goo_wa>vbap-zmeng.
         endloop.
    I would like to add new row, with my logic into stracture of query %G00.
    thanks for any idea Omar

    resolved, it is must to use for all filed-symbols
    example
    types: beging of l_summary,
         matnr type matnr,
    end of l_summary.
    data: lt_summary type standard table of l_summary,
             ls_summary type line of lt_summary,
             lf_string type string.
    fiel-symbols: <gt> type standard table,
    <ls> type any,
    <lf> type any.
    lf_string = '%G00[]'.
    unassign <gt>
    assign (lf_string) to <gt>.
    if <gt> is assigned.
    loop at <gt> assigning <ls>.
    lf_string = '<ls>-vbap-matnr'.
    unassign <lf>.
    assign (lf_string) to <lf>.
    if <lf> is assigned.
    ls_summary-matnr = <lf>.
    endloop

  • SQ02 - Query with adicional fields

    Hi, I need your help to develop a query with additional fields.
    The case is that:
    In my query I only have a table VBAK and my propose is that this query returns me the quantity that are in a sales document for some material that should be selection parameters.
    So I create 2 additional fields: one that is the u2018 Material u2018 that have no codification and other that is the quantity that have the code:
    select single ZMENG into quantity from VBAK where matnr = material.
    But the result is null, I don't know why.
    Can you help me?
    Thanks in advance.
    Dora

    Hi,
    MATNR is not available in VBAK !
    You have to create first an info-set using SQ02 : here you link VBAK and VBAP, and select the fields you need.
    From SQ01, create a new query where matnr is a selection field ....

  • Adhoc query missing field labels

    Hi,
    We have a problem regarding adhoc query. The fields are not showing all characters when you hit the refresh button at the bottom. For example, i chose to output Personnel Area, upon executing the refresh button, it is showing 2 characters only instead of four (US01 and is showing US only). This happens for some fields as well. It seems the labels are being cut. But when you check the field documentation, it says 4 characters. Also, when you click on the "output" button, everything is ok. Meaning, you can see all 4 characters for Personnel Area.
    The infoset we are using has been there for a long time already and there were no problems like this before, It was just now that this thing happened and were not sure what triggered this.
    please let us know if you have any thoughts about this, Thanks in advance!

    Hi Sanghamitra,
    Yes, i am referring to the reading pane at the bottom. However, there are quite number of fields that seem to be reduced. Also, the reading pane is working ok before and it shows the exact characters that you actually want to see. It has the same results as that when you hit the output button. We're not sure how it happened or if it was impacted by any support packs. With that, we want to know how to bring it back to its original appearance before.

  • Additional fields in infoset query can not be used as datasource fields

    I create one infoset query with additional fields (using ABAP code) in R/3. When I create datasource RSO2 using this infoset query, system only show all fields without additional fields that I enhanced in infoset query. Does that mean we can not get additional fields information in generic datasource creation that we enhanced in infoset query?

    dear Awa,
       you are enhanced some fields in r/3.right that fields are  shown in
    rsa6 select your data source click on display your datasource then select
    extract structure its shows how many fields are haveing particular
    datasource .or otherwise goto rso2 select your data source display
    double click on  your extractstructure  its show how many fields haveing
    the particular datasource. check the Rsa6 what ever fields you newly added that field default hide mode
    you remove the hide tickmark.

  • SQ01 - Additional fields

    Hi friends,
    I generated new infotipo for personnel evaluation. Now when new infotipo i want to use it in trx. SQ01 to do query, the additional fields, are not seen. They are fields with description texts. How I can see those fields of infotipo?.
    Thank you very much,
    Regards.

    Were not the fields because query badly was made.
    Thanks.

  • Adhoc query Issue in IT0001- Additional fields.

    Hi Everyone,
            Im facing issue in adhoc query, In IT0001- Additional field .The supervisor name is not getting displayed in the output  even though personnel number is getting fetched.Output value attributes is  chosen  as 'value and text'.
    Details of the field:
    Name of the field: Personnel number of superior (Org. Manag
    Technical name :SYHR_A_P0001_AF_OMNGR_NR (Additional field)
    This is happening after the implementation of A3 to A9 notes.
    Thanks in Advance.
    Regards,
    S P Joshi.

    Did you try Ted's solution of identifying the "addtional field 'SYHR_A_P0001_AF_OMNGR_NA' "as a displayed field ?
    Note that if that field is not already in your Info-Set, you will have to add it (using t-code sq02).

  • Additional field in adhoc query

    Hi all, I need to be able to report on the IT105 subtype 0001 system ID for employees who are withdrawn from the company, however, when someone leaves their IT105 record is delimited so adhoc query will not output anything.  Has anyone coded an additional field that will look at the latest record regardless of the date?
    If you have, please can you share the code with me!?
    Many thanks!

    Hi Tanya ,
    Please find the code below. It is designed for additional structure z105_last which is bassed on P0105 type.
    data l_it_p0105 type standard table of p0105.
    clear: l_it_p0105, z105_last.
    call function 'HR_READ_SUBTYPE'
      exporting
        tclas                 = 'A'
        pernr                 = peras-pernr
        infty                 = '0105'
        subty                 = '0001'   
        begda                 = '18000101'
        endda                 = pn-endda
      tables
        infty_tab             = l_it_p0105
      exceptions
        others                = 1.
    if sy-subrc = 0.
      describe table l_it_p0105.
      read table l_it_p0105 into z105_last index sy-tfill.
    endif.
    Regards,
    Sergey

  • Some fields missing in Adhoc Query

    In infotype PA0006 (Addresses) we have 4 telephone nr fields in view (PA0006-TELNR, NUM01, NUM02, NUM03).
    I have a requirement to make them all available in adhoc query.
    In SQ02 for the HR infoset, Infoset P0006 is already available in the database window, but only includes TELNR & NUM01.  Num02/3 are not available for me to drag into the field group for the users to be able to use.
    The table view clearly has these fields (+05 & 06), so I don't know why they arent available in mt database view in SQ02?
    Is there anyway to get them in, so I can make them available to the users, or is there a field property somewhere that excludes these from being available in SQ02?
    Thanks for any advice
    Graham

    You can add whole table PA0006 to your infoset by navigating to "Additional fields" section > right click > create > additional table PA0006.
    Then enter:
    SELECT SINGLE * FROM PA0006
    WHERE PERNR                = P0006-PERNR
       AND SUBTY                = P0006-SUBTY
       AND OBJPS                = P0006-OBJPS
       AND SPRPS                = P0006-SPRPS
       AND ENDDA                = P0006-ENDDA
       AND BEGDA                = P0006-BEGDA
       AND SEQNR                = P0006-SEQNR
    Then you will have all fields from IT0006 in your infoset.

  • Problem with a Currency field in Adhoc Query - HR

    Hi,
    I have an Adhoc query that uses Custom infotype fields (Z infotype and z fields).
    The currncy field also has a reference field in the infotype (of type waers).
    Wehen we try to get the ouput of the Adhoc Query it gives following error:
    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.
    I have already tried a number of solutions:
    1> Regenerate the infoset...
    2> make the field as an additional field and write my own code for it (the error comes before the code as i kept a breakpoint but it stopped before that)
    if i add other fields of this infoset instead of this field, then those appear in the output.
    Any solutions ??
    thanks in advance,
    Anuj

    Hi,
    Is the problem not clear or no one has an answer?
    Please reply with some suggestions..
    Regards,
    Anuj.

  • Creation of additional fields in Infoset SQ02

    Hi Experts,
    I'm a FICO consultant trying to create a query.
    Requirement : Link RSEG Table to BKPF Table in the join condition
    Link: RSEG-BELNR concatenated with RSEG-GJAHR = BKPF-XBLNR
    Now I'm trying to create an additional field in SQ02 named MiroYear and in the field code part i gave the below piece of code
    "CONCATENATE RSEG-BELNR RSEG-GJAHR INTO MIROYEAR."
    It shows no syntax errors. I added the same to the field group as well.
    Issue: The additional field (MIROYEAR) is not appearing in the join condition in SQ02.
    Is this the right way to create an additonal field? Have i made any mistake? Or any of you have any better ideas to join RSEG and BKPF in SQ02?
    Your quick response will be appreciated
    Best Regards
    Vimal

    Hi,
    Table RESG and BKPF are linked BKPF-AWKEY.
    Now first of all if you create an additional field, that field will not appear in the join.
    One way will be to create an infoset with direct read to table RSEG, and then inside add additional fields for each BKPF field.
    Then in the code
    CONCATENATE RSEG-BELNR RSEG-GJAHR into MIROYEAR
    select single ....
    into (ADDFIELD1, ADDFIELD2, ADDFIELD3,.....)
    from BKPF
    where awkey = miroyear.
    Regards,
    Khusro Habib

  • Additional field in selection screen of a abap query

    Hi,
    I am adding a new additional field in the selection screen through abap query(using transaction SQ02) which is of type VBRK-FKSTO.
    The value entered can be 'X' or empty space.But the value which is entered in the selection screen is not getting reflected in the code.Kindly advice me on what needs to be done to capture the selection screen value in the code.
    Regards,
    S.Subasree

    Hi
    You can add new field in VFX3 selection screen as follow. In the report code we can see various explicit enahcement points provided by SAP.One of them is ENHANCEMENT-POINT sdblbddl_01 SPOTS es_sdblbddl STATIC. Here you can declare your selection screen parameters.  Then in the processing i can see a call customer fucntion happening in VBSK_DISPALY which you can implement to add your logic.
    Thanks
    Nabheet

Maybe you are looking for

  • Smpatch update ALERT: Failed to install patch

    I do not even know where to start. Since installing Solaris 10 0606 it seems every time I try to patch the system I get failures of one type or another. One problem today has to do with zones: "To install the new instance of this package in all zones

  • Energy Profiler Error - All measurements not possi...

    I have a 5800 XPM - I have energy profiler installed. have used the programme reasonably sucessfully until now. Every time I start it a message comes up "All measurements are not possible, Channel is reserved by another application". I have not other

  • ODBC goes dead after migrating to intel mac

    On my G4 powerbook, I had a full complement of ODBC DSNs connecting to various databases. I used the migration assistant to move my applications and files to a new MacBook Pro. I tested each application before wiping the old computer and getting rid

  • IDVD Not Saving Audio Files in Menus/Themes

    I am a new Mac user and am having a bit of trouble with iDVD6. I can apply an audio file to the Main screen or Chapter screen. It plays correctly in the Preview. However, if I leave that screen and come back to it, the default audio file for that the

  • Upload Images to Kuler

    I really want to be able to use Kuler, but I use it by uploading a logo or image to create the color scheme for a project.  This feature is vital, without it I can just use my other adobe products and don't need to use kuler.