Ad hoc Query - Add table to an existing Infoset

Hi,
I have an Infoset created based on PNP database table. Now I wanted to add certain fields from a table (not from logical database table) to same Infoset. Can I add the table to the existing Infoset? If yes could please guide me how to do it.
From one thread I found out using Extras tab, in change Infoset screen we can add table. But not able to proceed further.
I will be grateful for your help.
Thank you.
GRM

Hi GRM,
As u have mentioned that u have used LDB, PNP. Now ur query is that u want to add a table into the query.
Firstly check in which Infotype that Table and field is being called.
Then, go to T.Code - SQ02
Select ur query that u have used in that LDB - PNP. Click change.
Then from the Menu bar, Select EDIT & then CHANGE INFO-TYPE SELECTION.
After the above activity, a selection screen will appear. From that Selection screen, select the appropriate Infotype then add it and it'll bring all related Tables used in that Infotype.
Accordingly u may select and deselect as per ur requirement. Generate the Infoset Query once again after coming out of the screen.
Hope this helps,
ARNAV...

Similar Messages

  • How does one add tables to an existing universe using COM designer SDK.

    Morning All
    How does one add tables to an existing universe using COM designer SDK. I have tried:
    objUniverse.Tables.Add (strTable_Name)
    but get "Cannot create Table" error.
    Any ideas?
    Thanks in advance.
    Anita

    Hi Anita,
    -Use the Add method to add classes and objects to an existing universe using a VB 6 application.
    Adding a Class
    Definition: Function Add(Name As String) As Class
    Syntax: NameOfClassesVariable.Add
    Adding an Object Instance
    Definition:  Function Add(Name As String, [ClassName As String]) As Object
    Syntax: NameOfObjectsVariable.Add(name, [class])
    - name is the name of the object.
    - class is the name of the class containing the object. This parameter should be used in cases where more than one objects exist with the same name.
    Sample Visual Basic 6 Code
    Dim DesApp As Designer.Application
    'MODIFY AND EXPORT CLASSES AND OBJECTS OF AN EXISTING UNIVERSE
    Sub modify_and_export_universe()
    Dim DesUnv As Designer.Universe
    Dim DesCls As Designer.Class
    Dim DesObj As Designer.Object
    Dim DesDBCol As Designer.DBColumn
    Dim DBColName As String
    Set DesApp = New Designer.Application
    'Login to designer
    Call DesApp.LogonDialog
    'Make sure to log on with your administrator profile
    'e.g : "hostname","username", "password","Enterprise"
    'Make Designer application visible
    DesApp.Visible = True
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'to Open  locally  the universe you want to modify
    'Set DesUnv = DesApp.Universes.Open("club_uni")
    'Use OpenFromEnterprise method (Universes Class) to import a universe from the repository and opens it
    Set DesUnv = DesApp.Universes.OpenFromEnterprise("Universes", "club_uni", False)
    'Add a valid connection which already exists
    DesUnv.Connection = "club"
    'open the universe
    'Call DesApp.Universes.Open("club_universe")
    'Add the table Account and refresh the view in the main window
    Set DesTab = DesUnv.DBTables.Item("Customer").Insert
    DesUnv.ArrangeTables
    'Add a class
    Set DesCls = DesUnv.Classes.Add("Class MyCustomer")
    'Looping through all the fields of the DB Table Account
    For Each DesDBCol In DesUnv.DBTables.Item("Customer").DBColumns
    'Store name of the column
        DBColName = DesDBCol.Name 
         'Add an object to the class
        Set DesObj = DesCls.Objects.Add("Obj " & DBColName)
         'Affect a field to the object
        DesObj.Select = "Customer" & "." & DBColName
    Next
    'Save the existing universe with the same name club_uni or you can change
    DesUnv.SaveAs "club_uni"
    MsgBox "Universe created and saved Class MyCustomer has been added!!"
    'Close the universe
    UnvFullName = DesUnv.FullName
    MsgBox "The UniverseFilePath is " & UnvFullName
    'Close the universe
    DesUnv.Close
    'This line disable warning messages from Designer
    DesApp.Interactive = False
    'Export the universe to the CMS DB (to the last universe folder)
    'Make sure you save the universe before exporting it
    Call DesApp.Universes.Export("Universes", UnvFullName)
    MsgBox "This document has been exported successfully !!"
    'Close designer
    DesApp.Quit
    Set DesApp = Nothing
    End Sub
    Hope this helps.
    Regards,
    Deepti Bajpai

  • Ad Hoc Query from table PPDIT

    Hi,
    I'm creating an ad hoc query to retrieve data from table PPDIT by filtering the transaction key. This is to get a list of amounts posted to the technical accounts(Transaction key HRA). However, the query output and the output from table PPDIT through SE16 are different. It seems like the query only picks up transaction key HRF. Anyone with any ideas why?

    Hi,
    Than you add the additional field from extras option.
    click on extras tab.
    From there add table add field add structure.
    If you want to add a field write the name of the field and continue.
    suppose the field is matnr.
    Long text = material number
    header = material number
    and in like reference = mara-matnr.
    tablename-field name.
    let me know if this helps you.
    Regrds,
    Nikhil.

  • How can I add table fields with existing structure ?

    I like to add PSTLZ field to stucture KOMGG.Is it possible to add table field with the existind structure.If yes how can I do this?kindly help me on this.

    hi
    go to se11
    in change mode select the button append
    create new append which starts from Zpstlz in this komgg structure and add data element and domain to this field and activate with request number
    then in field catalogue this field should be visible ,here ends your append
    now it is ready to use in condition tables.
    reward if helps !!!!!

  • Ad Hoc Query Data Issue for Position Based Infoset

    Experts,
    I've created an infoset that is based on the S object using the PCH database.  For this infoset, I've included several infotypes with focus on 1000, 1001, and 1028.  I've included the Address infotype (1028) as this is where we store our work location information.  For some reason though when I attempt to pull information from 1028, specifically the House Number and Street field, the Postal Code field, and the City field.
    For some reason though, no data is being returned in those fields.  I've verified for the position (in PP01) that I'm querying on that the data is maintained in 1028, and I've verified that I'm attempting to report on the correct fields by verifying the field technical names I'm pulling in the Ad Hoc Query with those I know have data stored in them on the infotype for the specific position.
    Would anyone have any guidance on what could be happening here or what I might need to adjust to be able to pull this data?
    Thanks in advance for your time and help.
    Best Regards,
    Joe

    To add some further clarity to this item, the Address infotype on the Position (S) object is pulling from a dropdown of selectable Buildings.  If unfamiliar, the Building drop is populated by configuration data from the IMG.  The fields that are populated then in the Address infotype actually come then from the Building entries and are simply populated onto IT1028 (address) depending on which Building is selected.
    I think this is what it occuring then when I select the fields from the Address infotype and I see nothing populated in the Ad Hoc query since the field information is not actually stored in IT1028 but on in the Building entry.
    Has anyone else experiencing this particular problem?  If so, have you found a solution?
    Regards,
    Joe

  • How to Modify the Ad-hoc Query Infoset of Standard Area.

    Hi all,
    Am having problem with Ad-hoc Query.
    i need to modify ZHR_PA_01 Infoset, this is an infoset available in Satandard Area.
    For displaying the Infoset, am Unsing T-code : S_PH0_48000510
    As of my knowledge Using T-Code SQ01& SQ02.... we can create , Change, delete the Infosets of Global Area.
    But
    please any body can tel me,How to Change the Infoset of Standard Area
    How to add the New Field Group to this Standard area infoset.
    Thanks in Advance.
    Points will be rewarded.
    Regards,
    Kalam A.

    Hi Prakash,
    thank u very much,
    yes, i have added the new Infotype 9105 to data fields.
    1.but this infotype in Data fields is showing as P8003.
    could you tel me why this is showing like this.?
    2.i have a field "Priority" in the existing "Critical Role" Field Group.
    n My requirement is
    "Add the Priority Field text description as an additional output field. the Numeric value stored in the Proirity field can be lookied up in the YHRPRIOX table,Object Type ZR."
    3.After adding fields to newly created Field Group, is there any think to do the Coding or Changes.
    4.After adding i have saved it & Generated the Infoset, i got few warnings.
    and Could you tel me How to test this..??
    Could you provide me, if any links or materials for this..?
    Please dont feel bad for all asking all the questions
    Cos am very new to Ad-hoc Querry and i have gone through the Documents in Help.sap.com.Am unable to find the above questions.
    So
    Could you please answer to my questions.
    Thanks&Regards,
    Kalam A.

  • Ad Hoc Query - cost assignment

    Hi Experts,
    I'm  trying to pull the contents of 'Cost Assignment' field i.e manually entered cost centre  which is available as a button on infotype 2002 & 2003 screens.
    In an Ad-hoc Query, it is not available as a field in any of the standard infosets.
    Is there a simple way of adding in the IT2003 cost assignment field?
    Please help.
    Thanks,
    Arpita

    Hi,
    You need to add table ASSOB_HR to your infoset. The cost assignment data is stored in that table. Use PERNR and INFTY to get the cost assignment data.
    Hope this helps.
    Donnie

  • Ad Hoc Query Output

    When I access Ad Hoc query (S_PH0_48000510) to run an existing report, instead of selecting the output button right away, I click on Hit List, get the number of records, then I click on display (eyeglasses).  The pop-up window shows me 24 records, all of which I am expecting to see as they fall within my selection criteria.  I select them all, then click on the output button.  Only 7 records show upu2026  And, there are no error messages or authorization messages.  I checked the layout and filter, and everything looks correct.  Does anyone have any ideas as to what I'm missing?  There are no calculated fields; this is just a simple query.
    Thanks in advance!!

    Hi Debbie,
    One thing we did in all of our custom Infosets was to include the start date and end date of every infotype as well as the date changed and who changed it.  Thus, when we run reports that are date specific we can say that the start date and/or end date must fall within that range and we can also output that info. 
    I do not know your data or selection criteria, but the problem may lie with data that is no longer current or "top of stack" that excludes hits from being included in the output.  One example is with IT0000-Actions.  You may be seeking those employees who had a Rehire action since January 1st.  But a later transfer or leave of absence action may now be "top of stack" and the current action, thus is no longer "Rehire",  Your output would only be those whose latest action is Rehire and the others with later actions would be left off.  Adding the start and end date fields will sometimes allow the output of the older Rehire record as would deleting the action type in the selection once the Hit List was maintained in the Reporting Set section.  You would now see the Rehire along with the other actions.
    Paul
    Paul

  • Help in Ad-hoc query and Hr form editor

    any body have material links of Ad-hoc query(it means how the reports are generated with Ad-hoc query) and Hr form editor(with examples) plz forward it to me???????????

    Hi,
    HR Ad Hoc Query is the special version of InfoSet Query with the HR object selection.
    You can find the system documentation here:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/f9/cc9138e4a0341fe10000009b38f8cf/frameset.htm
    However I doubt the use of documentation of the query generator. So what is your concrete question?
    Or in any R/3 via application help of transaction SQ01.
    Also HR580 is a good course.
    Regards,
    Michael

  • Ad hoc query - Infoset, after selection it is giving two different output

    Hi All,
    We are facing problem in ad hoc query, after PQAH Ad hoc query, when we go to one infoset, so after making some selection and putting some output field,
    When we click on refresh data button(in lower pane) so it gives only one record, which is incorrect, but when we click on u2018Start Outputu2019 button it gives 3 records those are correct.
    Can anyone tell me, why this is giving different output.(first time 1 record, and second time 3 records) record 3 output is correct.
    Regards,
    Kumar
    Edited by: kumar r12 on Mar 18, 2011 9:00 AM

    Hi Kumar,
    Are you looking at the "Hit List" or the output of the results in the lower pane?  The hit list will only give you the number of persons who will be in your output.  The refresh button should give you a preview of the output. 
    What persons or fields are different or not shown in the preview area vs. the output?  Also, what are the dates for the data?  Are you looking at current data or looking for history?  The output may be showing you history and the preview only current data.  Most concerns with Ad Hoc Query output are related to dates - for the selection and the output. 
    Paul

  • How to add an Infotype to an exsting Infoset (ad hoc query)

    Hi,
    How to add an Infotype (Ex. 0025) to an exsting Infoset (ad hoc query)?
    I was trying by clicking on 'Extras' tab & create...I get three options, create field, create table or create structure.
    I am not sure which to use or is there any other way? Pls. let me know the steps...
    Also what is this 'Package', which is aked whenever you create or change an Infoset.
    Pls. suggest.
    Tnx
    SKR

    I was able to add the infotype by adding the table as PA0025 & include all the fields in the field group.
    When I check, I get the following error:
    "Access to PA0025 with sequence no. 01"
    Message Text
       Access to PA0025 with sequence number 01
    Technical data
    Message type__________ W (Warning)
    Message class_________ AQ (Message texts for SAP Query)
    Message number________ 006
    Message variable 1____    Access to PA0025 with sequence number 01
    Message variable 2____ 
    Message variable 3____ 
    Message variable 4____ 
    Message attributes
    Level of detail_______ 4 (Level of detail 4)
    Problem class_________ 3 (medium)
    Sort criterion________ 
    Number________________ 1
    Do we need to input the sequence no. as 00? or is their anything else that I have to maintain?
    Tnx
    SKR

  • How to add a new tables in the existing Pricing Report

    Hi,
    I have created Z2 list report in the pricing report (V/LD) with some tables and field names.
    Now I got one requirement that i have to Add some more tables and filed names in the List Report Z2 in the pricing report.
    Could anyone helpme out how can i add tables and fileds names to the existing list report in the Pricing report
    Thanks for your support
    Best Regards
    Amjathpasha

    hi, Pasha:
    May i know how to solve this problem? as i also met this kind of problem.
    and i tried V/lb, do not find the place to add the table.
    Thanks,
    Linda

  • How can i import tables from a different schema into the existing relational model... to add these tables in the existing model? plss help

    how can i import tables from a different schema into the existing relational model... to add these tables in the existing relational/logical model? plss help
    note; I already have the relational/logical model ready from one schema... and I need to add few more tables to this relational/logical model
    can I import the same way as I did previously??
    but even if I do the same how can I add it in the model?? as the logical model has already been engineered..
    please help ...
    thanks

    Hi,
    Before you start, you should probably take a backup copy of your design (the .dmd file and associated folder), in case the update does not work out as you had hoped.
    You need to use Import > Data Dictionary again, to start the Data Dictionary Import Wizard.
    In step 1 use a suitable database connection that can access the relevant table definitions.
    In step 2 select the schema (or schemas) to import.  The "Import to" field in the lower left part of the main panel allows you to select which existing Relational Model to import into (or to specify that a new Relational Model is to be created).
    In step 3 select the tables to import.  (Note that if there are an Foreign Key constraints between the new tables and any tables you had previously imported, you should also include the previous tables, otherwise the Foreign Key constraints will not be imported.)
    After the import itself has completed, the "Compare Models" dialog is displayed.  This shows the differences between the model being imported and the previous state of the model, and allows you to select which changes are to be applied.
    Just selecting the Merge button should apply all the additions and changes in the new import.
    Having updated your Relational Model, you can then update your Logical Model.  To do this you repeat the "Engineer to Logical Model".  This displays the "Engineer to Logical Model" dialog, which shows the changes which will be applied to the Logical Model, and allows you to select which changes are to be applied.
    Just selecting the Engineer button should apply all the additions and changes.
    I hope this helps you achieve what you want.
    David

  • Add a new table to an existing Print Layout Designer report

    Is it possible to add a new table to an existing Print Layout Designer report? For example, in the Production Order there is a Sales Order field (which is displayed on the report), I would like to display some information from UDFs found on the Sales Order, but when I add a Database Field to the report the Sales Order tables does not appear in the list (OWOR).

    Hi
    It is possible provided there is a relationship which exists between two tables.
    You can add a Database field. Goto the Properties and selct Content Tab.
    Now in the Table dropdown, hold the Alt Key and click. This displays all the tables in B1. After selecting the Table, you can select the related Column.
    Remember there should be a relationship which exists between this column and existing columns.
    Because PLD works completely on Joins to my understanding

  • Add Table maintenance program for custom table to an existing func group

    Hi Guys,
    Can I add Table maintenance program for custom table to an existing function group or I need to create a new
    function group for each custom table.
    Thanks,
    mini

    You can add to an existing function group, there's nothing technically to stop you doing this.  However, consider that this is creating generated function modules in this function group and you would be wise to avoid using a function group containing manually created modules.
    I personally always create a new function group, using the name of the table as the name of the function group.
    Regards,
    Nick

Maybe you are looking for

  • XSLT transformation in OSB Proxy Service

    Hello, I am trying to modify the answer from a WebService using an XSLT transformation in an OSB Proxy Service, but I am unable to do so. Here it is the content of the answer's body it receives: <ns0:getRecountUnitMovementsResponse xmlns:ns0="http://

  • SAP Script Check box

    Hi, how can we able to add Check box in SAP script main window. My requirement is to display two check boxs with YES and No names. Based on condition, I want to mark any one check box. Thanks in Advance. Thanks, Raman

  • Random test questions quiz results not working

    I have a project with random test questions. It's published in HTML5...Each time I play the project in preview, the test results are accurate and correct at the end...However after I have published the project to my site, all the random test question

  • How to cancel an running load

    Hi Gurus,      I wanted to know how to cancel an running load..is it to change the status into red n deleted it from the cube..??    once i did it like this in my system but after sometime the laod again automatically converted into green n continue

  • HT1222 what is the problem with my pc

    my computer is always having a problem when i on face book...malware virus