Custom Field in Infoset Query missing in Infoset

Hi Everyone,
I'm in a puzzle and I hope someone can help me. Basically I need to maintain an existing infoset Query - While looking through the query and it's related Infoset I noticed there is a custom field appearing in the query (SQ01) but this field is nowhere to be seen in the Infoset (SQ02) - I'm just wondering how can this be ?
The same custom field exists in another Infoset - is it therefore possible to build a query using an infoset while pulling in fields from another ?
I would appreciate any thoughts on this matter as I'm in a very confused way over this.
Thanks in advance
Kind Regards
Damien
Edited by: Damien Kesle on Jul 22, 2009 3:48 PM

Hi Damien Kesle ,
There are ways by which you can create fields ( they are called Local fields ) in the Query too.
Please see , whether the custom field you are asking is present in the Query.
Even then , just to confirm that your said field does not exist in the infoset, follow the steps.
Go to SQ02, put the name of your Infoset and click on tab "Description ".
Then do a Ctrl + F (Find/Search) for the field. If its not there, then you can confirm that the field comes from Query and not Infoset.
Approach for any further queries.
Regards,
Subin John

Similar Messages

  • Alignment and restriction of Custom field in SAP query report

    Hi Experts,
    I have one custom field in query report(SQ01) called Amount in local currency which is calculated based on Amount in document currecy * exchange rate.
    But this field values are coming in left alignment instead of right alignment so how i should get in right alignment and second issue is how i can restrict field value to only 2 decimals.
    I tried the below link "http://media.techtarget.com/searchSAP/downloads/SAP_Query_C7.pdf" but the steps they mentioned are not appearing in SQ01 for example in that link they mentioned to click Basic List option for advanced steps but when i click i goes directly to field list with field groups on left pane
    Please provide solution for this.
    Thanks&Regards,
    narasimha

    Hello narasimha,
    In the Infoset when you create the additional field, enter an existing SAP table field that has type CURR in the parameter labeled LIKE Reference.  For example you can enter BSAK-DMBTR as a value. When you select the additional field in the query, the currency will also show.
    Kind Regards,
    Rae Ellen Woytowiez
    Edited by: Rae Ellen Woytowiez on Apr 25, 2011 11:27 PM

  • Add custom field to af:query component?

    Anyone had any experience overriding af:query copmonent? I need to add my custom search field (to query component), which would have a search icon next to it, and on click, a popup widow would open containing my custom task flow where I could select a record with certain value and on return that custom field (in query component) would get populated with selected value. I hope I'm being clear. Please point me to any useful information. Is that even possible? I use JDeveloper 11.1.2.3.4.0 Regards, Marko

    Hi,
    af:query is a component that comes as is. Its not designed for customization in that you can add your own fields. If you have a requirement for this then
    1. expose a method on the VO Impl or AM Impl that expect arguments (your query parameters)
    2. Use the arguments to populate bind variables used by a ViewCriteria
    3. Apply the View Criteria to the View Object
    4. Execte the View Object
    5. Drag and drop the method from the DC panel as a parameter form
    6. Ensure the result table PartialTrigger property is pointing to the button ID of the parameter form
    7. Change whatever UI component you want to change in the parameter form
    This gets you going ...
    Frank

  • How to add & fill custom fields in POWL Query

    Hi all,
    I have a requirement where I need to create a new POWL Query and should show the Defect data of each Issue ID. I looked for tutorials and threads about POWL queries but can't seem to find the information I needed.
    In details, I need a new query which should be available in NWBC -> Quality Issue Management -> Worklists. We already have one which is an overview of all Issues, but I need to create a new worklist which displays the Defect data of each Issue. (Please note, I am new to QIM and this is my first time handling QIM requirement.)
    May I ask if you can guide me or if you know some links where there are steps how can I extract the Defect data? I also looked at OSS Note 1865206, is the steps for "Additional result fields" all I need?
    Thanks,
    Leo

    Hi James,
    The above was cancelled, but now I need to look why the query is not automatically refreshing the data when I changed the worklist parameters. It doesn't also refreshes the data when I click "Refresh list" button below the table in NWBC QIM worklist view:
    But when I close the tab and reopen it, it now displays the updated list.
    I tried the refresh configs I found here, but still doesn't work.
    Thanks,
    Eo

  • Custom field mappings in query

    Hello
    In our classes we use GregorianCalendar for date representation.
    Therefore I wrote a ColumnFieldMapping class for mapping of
    GregorianCalendar to SQL_DATE.
    (I used the SQLDateMapping class as example).
    The storing and retrieving works without problems.
    Just, when I want to query for a specific date, I have to pass a
    java.util.Date object as parameter:
    String filter = "_dateOfSample >= startDate";
    Query query = pm.newQuery(Sample.class, filter);
    query.declareParameters("java.util.Date startDate");
    Java.util.date startDate = ...
    Collection samples = (Collection)query.execute(startDate);
    Although, this works fine, I think, that the caller of the query shouldn't
    have to know, the DB "internal" representation of a field.
    Is there a way, that the parameter is also transformed by the mapping class?
    Thanx for any help
    -- Pat

    Hi Patrick
    Thanx for your reply.
    What happens if you pass a GregorianCalendar parameter to the query?kodo.util.UserException: The specified parameter of type "class
    java.util.GregorianCalendar" is not a valid query parameter.
    Also, are you overriding the getDataStoreValue() method in your mapping?No.
    I just adapted the SQLDateMapping example.
    Now, I've rewritten the mapping class based on IsMaleMapping and everything
    works fine.
    And it's even easier.
    Thanx for your help
    -- Pat

  • Infoset Query probelm for Custom Subtypes

    Hi Experts.....
             I am new to Infoset Queries...
      The problem is an Infoset query is generated for PA infotypes. It is generating output for all the infotypes except for Communication infotype which contains custom Subtypes. Could you plz help me how to get the data from these custom subtypes.(For these subtypes a select query is written).
      Thanking you in advance.
    Regards,
    Sree

    hi
            Thanks for the reply.......
       We had already created custom fields in the query..... The problem is for some fields it is getting the data. but the select query for all the fields is same(i.e., the where condition is based on pernr & usrty fileds in IT 0105).
       I can't understand why it is taking for some fields & why not for some....
      Could you plz help me.
    Regards,
    Sree.

  • How to increase performanceof query based on Infoset?

    How to increase the performance of a query based on a Infoset?
    As per designing of query, all the necessary fields are placed where they are required.

    Hi  Akshara ,
    To improve performanceof query try to remove unnecessary characteristics, attributes, or key figures ,Superfluous conditions or variables .Large InfoCubes and Complex hierarchies .Variables populated by user exits
    For characteristics specify either variables or restrictions .
    You can create indexes on DSO and Aggregates on cubes (if any).
    Please go through the links :
    http://help.sap.com/saphelp_crm40/helpdata/en/77/4a213cc534f20ae10000000a11402f/content.htm
    Re: Performance of query built on infoset
    Query performance issue - Infoset query
    Hope you will find this helpful.
    Regards,
    Jaya

  • Adding custom fields to Va05n output list

    Hi Experts,
    i am looking to add some custom fields to Transaktion Va05n.
    It seems,at least to me, that the underling Program "SD_SALES_ORDERS_VIEW" is not meant to be enhanced. I guess i could do a append to the structure used in the ALV-Output, but there is no user-exit or Badi to fill the custom fields.
    Am i missing something here?

    Hi,
    You can do "Implicit Enhancement Option" as follow.
    1.  Adding your customer field catalog at routine "FORM fieldcat_init "
       You have to enhance at the end of this routine.
    2. Filling you value the internal table at routine "FORM liste_anzeigen".
       You have to enhance at begin of this routine before it is display.
    Hope it help.
    Sayan.

  • Using custom fields of Infoset as Selection Criteria in Query Reporting

    Hi Experts,
    I have created one Infoset based on LDB PNPCE and added some custom fields to it. Coding has been done for the custom fields.
    But these additional custom fields are not available as selection criteria while creating the query.
    Can you please tell me how to use the custom fields as selection criteria?
    Reply soon
    Thanks in Advance.
    Raveesh

    Hello Guys,
    I just noticed that it is possible to select custom fields as selection criteria in case of SAP Query,
    but NOT is case of Infoset(Adhoc) query.
    Can anyone tell me the whether it is possible to select the custom fields as Selection Criteria in case of Infoset Query?
    Thanks in Advance,
    Raveesh

  • Populating Additional Field in InfoSet Query

    Hello,
    My team and I are working on generating a relatively simple report from the VBAK (Sales Header), VBAP (Sales Items) and VEDA (Date data) tables.  We would prefer to be able to build an InfoSet (SQ02) and Query (SQ01) instead of writing a custom report.
    The problem is the VEDA table contains data that may link to the VBAK and sometimes the VBAP table.  The usage is that the header has begin and end dates for a contract, which is denoted by a blank value in POSNR field in the VEDA table.  If a particular line on a contract has different dates than the header, there will be an additional record in the VEDA table where the POSNR value matches the POSNR value from the VBAP (Item) record.
    The link to the VBAP table is straight forward being keyed off of the VBELN (doc number) and the POSNR (item number) fields in both tables.  However, there's isn't a POSNR field in the VBAK (header) table and the VEDA table shows this as a blank value in the POSNR field.
    The simplest thing I can think of doing is link the VEDA table to the VBAP and let it retrieve all the exact matches on Sales Doc & Item Number but add two "Additional Fields" to the Query that would represent the Sales Header begin and end dates.
    I know how to add an additional field but how would you "re-query" the VEDA table and under which option under the Code tab.
    Thanks

    Hi Alex
    Please see if below example helps you to understand:
    Supposing, we are displaying material description within our query.
    1. So we define the join with MARA & MAKT while creating infoset in transaction SQ02.
    2. We create feild groups to identify the fiels we use for selection and display.
    3. Here after selecting language key from MAKT, by default this will take SY-LANGU always for the case.
    4. To make it applicable for different languages we can code in INITIALIZATION Event.
    5. To do so we can do it by two options: Use menupath: Goto->Code->Initialization
    i) First option using variable: <b>MAKT-SPRAS = SY-LANGU.</b>.
    ii) Second option using Parameter-Id: <b>SET PARAMETER ID 'SPR' FIELD SY-LANGU</b>.
    6. Save & Generate.
    Now when we execute the query, we are defaulting the language as System Language.
    Hope the above info helps you for better understanding.
    Kind Regards
    Eswar

  • Problem with custom code in infoset query

    Hi,
    I have created a infoset. In the infoset i added a few additional fields and wrote code in the field code for those fields. I saved and generated the infoset. But in the output of the query, i am getting blank values for those additional fields. When i checked the generated program (SE38), the code is not present in the program.
    If anyone has encountered a similar problem and resolved it, please let me know where i am going wrong.
    Thanks.

    Hello,
    After adding the code for additional fields in Infoset, please syntax check and then activate the Infoset. Then the program will be regenerated with your custom code.
    Thanks,
    Venu

  • Infoset query with KNB1 customer's ADRC information

    Hello,
    An explanation into the problem:
    I'm trying to create an infoset query with KNA1, KNB1 and ADRC which would do the following:
    In KNA1-SORTL we hold customer numbers which can be found from KNB1. This query should:
    Display KNA1-KUNNR and relevant address data for this customer via connection KNA1-ADRNR and ADRC-ADDRNUMBER. Then it should check KNA1-SORTL- field and if it corresponds to KNB1-KUNNR, it should go back to KNA1 with this KUNNR and display all this customer's relevant address data via this customer's KNA1-ADRNR to ADRC-ADDRNUMBER.
    I'm relatively new to infoset coding and ABAP in general, plus I'm self- taught so please bear that in mind.
    I'll give an example as to what I've managed to do so far. In SQ02 I joined tables KNA1(left outer join)KNB1 and KNA1(join)ADRC and created an extra field ZADRNR to see if I could display the ADRNR for the customer number found in KNB1.
    Something along the lines of:
    IF KNB1-KUNNR = KNA1-SORTL.
    SELECT SINGLE ADDRNUMBER FROM ADRC INTO ZADRNR
    WHERE ADDRNUMBER = KNA1-ADRNR.
    ENDIF.
    Obviously this doesn't work. Pseudocode would look like this:
    Check field KNA1-SORTL
    IF KNA1-SORTL = KNB1-KUNNR THEN
    GO BACK TO KNA1 with this KUNNR and display it's ADRC.
    KNB1 sadly doesn't maintain an ADRNR of it's own, or this would be much simpler.
    Any help or advice is much appreciated, so far I've only been coding a few lines in infosets with ABAP so I'm not all that familiar with it. I've managed to create several queries through trial and error, mostly, and this forum and it's articles have helped a great deal.
    Please let me know if I should provide any additional information, and my apologies if I posted this in the wrong forum area.

    Hi Lalit, and thank you very much for your reply.
    Unfortunately excluding space entries in selection screen wouldn't solve the issue, since we have KNA1-ADRNR for each entry, it's just that it would be different for customers found in KNB1.
    I could probably solve this by making two separate queries and working on them in excel and that way we would have the necessary information.
    But in order to do this in SAP seems to mean that I have to write a custom report. For that, it seems I'll be spending New Year's eve learning how to ABAP
    Thank you for your help, at least we don't have to struggle with finding out a way to do this via queries so we'll just find alternative means for this.
    Thanks again and have a happy new year!

  • 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

  • Mandatory fields for Infoset query

    Hi all,
       I am creating a datasource using Infoset queries.to test it, how to make a field as mandatory in selection screen.
    thanks in advance.
    Reagrds,
    Murali

    hi murali,
    Mandatory selection screen:
    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.
    You would have to place the code in the PBO. In case of selection screens, you will have to do it in the AT SELECTION-SCREEN OUTPUT EVENT.
    Doesn't really make much sense to try and do it in the PAI ( = AT SELECTION-SCREEN).
       You can do it using customer exit. You have the options to verify a variable input and display a message back to the users, check the attached documents. The check can be done in the customer exit step I_STEP = 3.
    https://websmp102.sap-ag.de/~sapdownload/011000358700002765042003E/HowToVerifyVariableInput.pdf
    A tool that provides reporting on one or multiple ODS Objects. InfoSet Query provides Web reporting capabilities (known as ABAP Query or SAP Query).
    Check this link.May be it can help you.
    http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm
    Hope IT solves ur problem
    Thanks
    Varun CN

  • Changing the Infoset Query out put field

    Hi,
      Please let me know can we do the changes for the Input/Output field for the infoset query in PRD. That mean  if some of the fields are hidden and we want to show them at the output can we directly do the changes in PRD .
    Thanks & Best Regards,
      Mahesh

    hi
    Create the infoset with PNP database and add all the infotypes required (including custom ones). Add all fields.. vale, text etc. as seperate fields of the custom Z tables as additional fields in the infotypes and write your code accordingly to select the data into these fields based on the already existing infotype fields. For example if you want to get designation based on position you will write:
    select <designation> from ZDESG
    into <custom field>
    where PLANS = P0001-PLANS
    Creating joins over already existing joins will not be a stable solution.
    thanks & regards
    Satish

Maybe you are looking for