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

Similar Messages

  • Adding additional fields to an Infoset Query

    Hi Experts,
    I have added a couple of additional fields to an infoset query using SQ02.
    I have also written code for filling in the fields.
    I have also added them to some Field Groups.
    Despite this, when I run the query, they are not being displayed in the output list.
    What could be the reason for this?
    Kindly help with your inputs.
    Thanks in advance.
    Regards,
    Keerthi

    goto sq01,
    give the query name...
    goto change.. just below output, you have a drop down for field group and field catalog. select field catalog.
    select the fields you want to show in output

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

  • SQ01 Infoset Query - making a selection mandatory

    Hello,
    Is it possible to make a selection mandatory on an Infoset Query? If so, how do you do this?
    I have a report that I created using infoset query, but need to make a selection option mandatory to prevent the scenario of the report being run with no selections.
    many thanks,
    Allan

    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.

  • Add field dynamically in ABAP Query Report.

    Hi All,
    Can we add fields dynamically in the ABAP Query Report?
    There is a field in my report which should occupy the line only if it has value. But if we drag-drop the filed in the report it automatically occupy the line though it doesn't have value.
    Thanks in Advance!!!

    hi rohini,
    we can add fields dynamically in the ABAP Query Report,in this way we can to,
    first of all u create ur selection-screen with all the fields and make the field invisible i.e the one which u want to add dynamically. and based on ur requirement change that invisible to visible and use modify screen.
    in this way we can solve.
    search for invisible and modify screen in sdn u can get better information and u can understand what i am saying.

  • 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

  • How to control attributes in 'Add Fields' in af:query Advance mode

    Hi,
    The VO attributes those set Queriable=false doesn't appear in the Add Fields dropdown in ad:query advance mode.
    But I have few attributes in a VO those required to use in VO query so I cannot set those attrbutes Queriable as false.
    Also observed that QBE doesn't work for the attributes whose Queriable set as false.
    So can someone please suggest me how to achieve below,
    VO attribute which having Queriable=true but doesn't appear in 'Add Fields' dropdown in af:query advance mode.
    JDeveloper version 11.1.1.7.0
    Edited by: user12820425 on Mar 21, 2013 10:16 AM

    Hi Naresh
    Thanks for your reply.
    In ViewCriteria -> UI Hints we can set attribute Rendered Mode as never, but that perticular attribute still appear in 'Add Fields' section.
    I think renderedMode=never means that attribute doesn't appear in Advance or Basic mode user need to manually select that attribute.
    So please suggest me how to achive my requirement.

  • How to show attributes only in query panel but not in Add fields.

    Hi,
    Jdev - 11.1.1.7.0
    I have a requirement where I need to show attribute only in search panel but not in Add Fields list which is available in advanced section.
    Thanks for your time and help.
    Regards,
    Dileep.

    Hi,
    Is it really possible implement this kind of scenario, I could not find any property to disable the attribute only 'Add Fields' but not in query panel.
    Please some one confirm me this behavior.
    Thanks,
    Dileep.

  • Deleting fields from field group in Infoset

    Hi Geeks,
    I have created an infoset query. Based on tables
    VBAK - Sales order header data
    VBAP - Sales order item data
    VBUP - Sales document item status
    VBPA - Parnter function table.
    I created a custom BW data-source in RSO2 based on this infoset query.
    Now I want to delete tables (VBPA) or entries (VBPA-KUNNR) in field groups from infoset query.
    & system is not allowing me to do this saying
    System says "VBPA-KUNNR" is used in queries.
    Can anybody please suggest me any way to change the infoset & inturn datasource created over it.
    Thanx in advance.
    Monica

    Go to SQ02. Enter your infoset. Click on 'Role/User Group Assignment'. Make a note of all the user group that this infoset is assigned to (checkbox is checked means it is assigned to that group).
    Now go to SQ01. In the menu, 'Edit-->Other user group', enter the user group (repeat this process if you have more than one user group assigned) that you determined before. Now you will see all(if any) the queries. Select the query and delete it by clicking the trash can icon.

  • Infoset Query-concatenate fileds

    Dear Experts,
    How to Concatenate two fields into a local field in an infoset query.
    Regards
    Jogeswara Rao

    Hello Jogeswara,
    If you are creating an additional field in the query, then do the following when calling transaction code SQ02.
    1.  Click pushbutton labeled Extras and create an additional field.  Make sure that it is in character format and that its length is long enough to fit the two fields to be concatenated including a space in between (if desired).
    2.  Then click the CodingForAddition pushbutton for the field you created in step 1.  Enter your CONCATENATE command.
    Suppose you want to concatenate MARA-ERNAM and MARA-ERSDA into additional field NAME_DATE separated by a space.  Define NAME_DATE to be character of length 23 which is large enough to contain the maximum size of the concatenated fields plus a space.  You would enter the command below for the additional field. 
    CONCATENATE MARA-ERNAM MARA-ERSDA INTO NAME_DATE
    SEPARATED BY SPACE.
    Kind Regards,
    Rae Ellen Woytowiez

  • Code order in sq02, Problem in the selection fields in sq01

    Hi all,
    I'm writing a query with sq01 and sq02.
    In sq02 I have some joined tables, and 2 extras fields named: "TIME" and "LEFT_ER".
    in this fields I wrote a code to calculate something from fields in the tables.
    The problem is:
    1. When I write the code in the coding section "Additional field/structure" for each field, If I want to use this fields in the selection fields (in sq01) the query can't find any record.
    But if I run this query without any selection in this fields, I get all the records, with my calculated fields.
    2. I tried to write this code in the coding section "Record processing", and it seems that I can use this fields in the selection fields (in sq01), and get all the records I wanted.
    But in the sq02 I get a Warning messages:
    "Access error in code for additional field *GET******
    *GET****** has sequence number 00
    Access to LEFT_ER with sequence number 00"
    In this case my field LEFT_ER has no code.
    And when I change the order of the sequence number, I didn't get the Warning message, but I could not use my fields in the selection fields (in sq01), like at the beginning.
    HELP ME PLEASE.
    Itzhak.
    Message was edited by: Itzhak Tanami

    Hi,
    i've an idea .
    pls define your help-fields :
    1) as sel-option : s_f1 for bseg-dmbtr
    and
    2) as calculate-field  : c_f1 for bseg-dmbtr
    so for event e.g. GET BSEG .
    you <b>1st</b> calculate your field .
    e.g.
    if bseg-shkzg = 'H'.
       c_f1 = Bseg-wrbtr * -1.
      else.
       c_f1 = Bseg-wrbtr.
    endif.
    and 2nd  your restriction from sel-screen:
    <b>check c_f1 in s_f1.</b>
    good luck
    Andreas

  • Information message in infoset query.

    hi all,
    i have added a field into the infoset query adn im using s_pho_48000513 . my probelm is when ever im opennig the query im getting information message as some selection fields are not available.does any have idea why im getting this message ..where i went wrong in ading the field to infoset.what check should i do.please suggest.and another thing when im doing switch off object selection from extras im not getting this information message but this field is comming in selection fields from infoset with default selected with enable mode and all other fields selected with disable mode.
    any inputs is apreciated..
    regards,
    suha

    Remove those fields/Infotypes from the infoset with the help of SQ02 from that infogroup
    Thanks
    Jaydeep jadhav

  • Hour Minute format in Infoset Query

    Dear Experts,
    Please gudie how to define the formula in a Local field of an Infoset Query which displays 90 minutes as 1:30 (hr.mt)
    Regards
    Jogeswara Rao

    Hi NiteshKr12,
    Since you do not want the AM|PM, so you use the 24 hour clock, for the 24 hour clock, it can let user select hour from 0 to 23, then if you want to let user only select from 0 to 12, one workaround is to prevent user to select the hour from 13
    to 23, if user selects the hour more than 12, then reset the time and ask user to select the hour from 0 to 12. For more information, please try to refer to the following code:
    private async void tpVacation_TimeChanged(object sender, TimePickerValueChangedEventArgs e)
    if(tpVacation.Time.Hours>12)
    MessageDialog messagedialog = new MessageDialog("Please select hours from 0 to 12 only","Your Attention");
    await messagedialog.ShowAsync();
    tpVacation.Time = new TimeSpan(0, 0, 0);
    Best Regards,
    Amy Peng
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • 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

  • Infoset/query : how to fix a selection field value?

    I am writing queries with SQ01 and designing Infosets with SQ02.
    I have to restrict the results of a query to a specific plant.
    This can be done by adding the plant field in the selection screen of the query and by asking the users to fill always the same fixed  plant number when the query is started. Another solution is to filter the output.
    Isnt it possible to simplify this by forcing the plant number in the initialization of the Infoset values without display of this field in the selection screen? This value has to be initialized before the table containing the Plant field is joined to the other tables?

    Open SQ01 transaction,give your query name, click on infoset query button.
    On the right side of the screen you can define default values for those fields.
    If you want to disable the same field in selection creteria then open your infoset in SQ02
    transaction and click change, click on extras buttonin appllication tool bar,on right hand side
    in code tab you can add your logic.

Maybe you are looking for

  • Need Help with Simultaion for a Solar cell simulation

    hello, I want to simulate a Solar Cell in Multisim and i already entered the cirquit for a solar cell. However i have a problem with the simulation. i want to vary the load and the input power to see how the output voltage varys, as a function of inp

  • Cloning a Vector String causes warning: unchecked

    I have a Vector<String> that I want to clone and store in another Vector<String>. I can't figure out why I get a warning. Vector<String> DATA = new TestData1().getData(); Vector<String> nuDATA; //@SuppressWarning( "unchecked" ) nuDATA = (Vector<Strin

  • Is it possible to have 2 lines with BT Infinity Un...

    As you will know, BT Infinity Unlimited broadband has a 100GB threshold, which when met will then throttle your speed to about 1Mb download which renders your internet all but useless except for the most basic tasks. I use around 150GB in down/upload

  • I can't find the Firefox tab that takes me to edit and print et al. unless I have a little bitty screen.

    I just got a new computer and got changed to windows 8, and the guy set it up with internet explorer when I was accustomed to using firefox. My son put it on firefox, but I can't find the firefox tab with access to edit, print, print preview, etc. ,

  • Ignoring Mail Notifications from especified users

    Hi, I configured Calendar Server and IWC to send mail using Postfix ATM. It works! The problem now is, the users who more has used the service, add a new event and the notifications are not sent. A new User, add a new event and the MTA respons: /var/