Add table in query.

Hello experts ,
I have query with 1 table , if i want to add one more table to my query  and make a join with 2 tables or more than 2 , how can i do this ?
Thanks for your help,
Avi.

hi.
select kna1~kunnr kna1~sortl zsdo~asmid pa0001~ename
       zsdo~pc_p01_begda zsdo~pc_p01_ded_per
        into corresponding fields of table it_samptb_all
        from zsdo
        inner join kna1 on ( zsdo~kunnr = kna1~kunnr )
        inner join pa0001 on ( zsdo~asmid = pa0001~pernr )
    where zsdo~samp_flag eq 'X'     " Sampling is Active
      and zsdo~ostact = '1'         " Active Outlets only
      and zsdo~pc_p01_cshare ne '0'
      and pa0001~endda eq '99991231'
      and zsdo~ssok in ssok1
      and zsdo~kunnr in kunnr1.

Similar Messages

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

  • Need to add tables in the pricing report(V/LB)

    Hi
    I want to add some table in the existing pricing report.But I am unable to do so.
    My requirement was to add some new selection field in the Pricing report which is possible by adding the table in the existing pricing report.
    But I found If I go to EDIT>Tables.there is one option is called  "add table" which is appearing grey.
    Can you found it the way to add the tables in the Pricing report.

    Hi Sumit,
    You cannot add anything to existing report - you need to create new one and there you will be able to choose more tables than you use now.
    Regards,
    Marcin

  • How to see lock on table and query?

    Hi All,
    How do we see lock on table and query?
    Thanks,
    Rafi

    Yes Rafi,
    It is working fine at my end. See below:
    Opened Session 1 with scott/tiger and:
    update emp set ename='xx' where empno=7499;
    Opened Session 2 with scott/tiger and:
    update emp set ename='xx' where empno=7499;
    <<Its lock here>> This session is locked by above one.
    Opened Session 3 with sys/pw as sysdba and:
    SQL> set serveroutput on
    SQL> BEGIN
      2  dbms_output.enable(1000000);
      3  for do_loop in (select session_id, a.object_id, xidsqn, oracle_username, b.owner owner,
      4  b.object_name object_name, b.object_type object_type
      5  FROM v$locked_object a, dba_objects b
      6  WHERE xidsqn != 0
      7  and b.object_id = a.object_id)
      8  loop
      9  dbms_output.put_line('.');
    10  dbms_output.put_line('Blocking Session : '||do_loop.session_id);
    11  dbms_output.put_line('Object (Owner/Name): '||do_loop.owner||'.'||do_loop.object_name);
    12  dbms_output.put_line('Object Type : '||do_loop.object_type);
    13  for next_loop in (select sid from v$lock
    14  where id2 = do_loop.xidsqn
    15  and sid != do_loop.session_id)
    16  LOOP
    17  dbms_output.put_line('Sessions being blocked : '||next_loop.sid);
    18  end loop;
    19  end loop;
    20  END;
    21  /
    Blocking Session : 139
    Object (Owner/Name): SCOTT.EMP
    Object Type : TABLE
    Sessions being blocked : 134
    PL/SQL procedure successfully completed.HTH
    Girish Sharma

  • How to add table in SAP Non interactive forms in webdynpro java

    Hi Experts,
    I have a requirement in webdynpro java.I have a print button.On clicking print button a pdf will be opened.
    This pdf will have data from the webdynpro view.I want to know how to add table in the adobe pdf.The webdynpro view will have many rows of table(rows will keep changing as per the size of the data output).How to send this data to adobe.How do we bind the node to the table in the adobe.How to automatically
    Please suggest.
    Thanks,
    Rajani
    Edited by: Rajani Nandagiri on Dec 26, 2008 8:58 AM

    Rajani,
    Take a look at below links, it will help you.
    [Handling Dynamic Length Tables in Adobe Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0859ad1-53aa-2a10-78ae-99e41c407669]
    [Integrate tables & Images in Adobe Web Dynpro|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/wdjava%20archive/dynamic%20non-interactive%20pdf%20form.pdf]
    [How to Handle Table Input and Output|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/wd%20java/7.0/adobe/how%20to%20handle%20table%20input%20and%20output.pdf]
    [How Tou2026deal with Table input and display in Interactive Forms|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00c4041d-188d-2910-6ea2-b4d5155f56e0]
    Chintan

  • Can we create prompts in Derived Table sql query

    Hi,
    I am trying to define derived table sql query as below. Though the syntax parsing is going through but when I am generating the report it is throwing and invalid prompt definition error.
    " select * from table_a where call_direction = @Prompt('Enter Call Direction','A','"derivedtable_a".SHORT_STRING',mono,free,not_persistent,) and
    where call_type = @Prompt('Enter Call Direction','A','"derivedtable_b".SHORT_STRING',mono,free,not_persistent,) "
    Can somebody please share your thoughts if this can be achieved in universe or not ?
    Appreciate immediate responses as it is a show stopper for my deliverable.
    Thanks in advance.
    Thanks and Regards,
    Shireen.

    Hi Shireen
    We can use prompt in the derived table. There is issue with the SQL that you have used while creating the Derived Table.
    Instead of using the "derivedtable_a".SHORT_STRING' field use the object from the class on which you are creating the derived table.
    For example: If you are creating a derived table in the sample universe efashion on Agg_yr_qt_rn_st_ln_ca_sr table then use the following query:
    SELECT *
    FROM Agg_yr_qt_rn_st_ln_ca_sr
    WHERE Agg_yr_qt_rn_st_ln_ca_sr.Yr = @Prompt ('Enter Value','C','Time Period\Year',mono,constrained)
    Hope this helps!
    Thanks

  • Linking logical database to TABLE in query

    Can we link Logical Database to Table during query creation in tcode SQVI
    Message was edited by:
            rohith modi
    Message was edited by:
            rohith modi

    go to sqvi and select "Table Join"in data source and enter title select radio button for "basis mode" and enter u reach a new screen in that new screen press "insert table" and give ur table name and again  press "insert table" and give another table in thsi way we can joint table in ABAP query.
    reward points if it is helpful

  • How to add table actions to an Advanced Table programmatically

    We have code in my CO which builds an advanced table dynamically and associates it with a VO. The table comes out looking good - the correct columns and data are displayed.
    I now want to add Table Actions for that particular dynamically created table.
    The code below builds the buttons correctly and they are built/rendered just fine.
    After adding this code to build the FlowLayout bean, add the buttons and associate the it to the TableActions of the advanced table bean, none of the buttons on the page work anymore. Each time I click any button (even if it's a page level button like 'Save' or 'Cancel'), I get the following error:
    +## Detail 0 ##+
    java.lang.NullPointerException
    +     at java.util.Hashtable.get(Hashtable.java:336)+
    I have added debug statements in by CO, but it is never even getting into the ProcessFormRequest
    Below is the code we are using. Can anyone suggest a way to have this flow layout created dynamically like this and not break all button functionality on the page?
    //Create the advanced table
    OAAdvancedTableBean tableBeanP1 = (OAAdvancedTableBean)createWebBean(pageContext, ADVANCED_TABLE_BEAN, null,"Proc1Tab");
    tableBeanP1.setViewUsageName("P100DetailsVO1");
    tableBeanP1.setNumberOfRowsDisplayed(10);
    //Create a new flow layout to be used as the table actions
    OAFlowLayoutBean tableActionBean = (OAFlowLayoutBean)createWebBean(pageContext, FLOW_LAYOUT_BEAN, null, "P1ButtonRegion");
    //Create the "Add Control Group" button for this table:
    OAButtonBean addButtonBean = (OAButtonBean)createWebBean(pageContext, BUTTON_BEAN, null, "P1AddCtrlGroup");
    FireAction FireActionAddGroup = new FireAction();
    FireActionAddGroup.setEvent("AddCtrlGroup");
    Parameter param = new Parameter();
    param.setKey("ProcedureIndex");
    param.setValue("1");
    Parameter[] params = {param};
    FireActionAddGroup.setParameters(params);
    addButtonBean.setPrimaryClientAction(FireActionAddGroup);
    addButtonBean.setText("Add Control Group");
    tableActionBean.addIndexedChild(addButtonBean);
    //Add the table actions bean to the table:
    tableBeanP1.setTableActions(tableActionBean);

    Hello Ashley,
    you are already close to the solution. In BADI QISR1 you simply fill the
    table SPECIAL_DATA e.g.like
      fieldindex = 1
      fieldname = 'FIELD1'
      fieldvalue = 'Value1'
      fieldindex = <n>
      fieldname = 'FIELD1'
      fieldvalue = 'VALUE<n>'
    Then on the Adobe form layout (Adobe Designer), you have to use the table control XFO from the standard library. Here you have to bind then the corresponding column to FIELD1.
    Best regards,
    Simon

  • "Error in function: Add Table not found [131-183]" - TDS Addon Version 3.16

    While loading TDS Addon Version: 3.16 I am getting the undermentioned error:
    "Error in function: Add Table not found [131-183]"
    SAP B1, 2005B, PL 39.
    It also shows the message that it is successfully installed. When I try to access any of the screen the above messge pops up.
    This is very urgent kindly help me out.
    Edited by: Philip Eller on May 16, 2008 8:50 AM
    Edited by: Philip Eller on May 30, 2008 8:41 AM*

    Dear,
    The addon is a third party addon which was developed by CitiXSys. so the support is provided by the partner who developed the addon.
    Go to the vendor Citixys for further support will give you a quick reply.
    Regards
    Apple

  • How to build table join query in Jdeveloper

    Hi,
    Can someone tell me how to build table join query in Jdeveloper's Expression Builder UI?

    [Is it possible to create a table of contents in Crystal Reports?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313335333133303330%7D.do]

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

  • CANT execute query with parameter on user defined tables using query genera

    Dear All,
    I have problem when executing query with parameter on user defined tables using query generator.
    It seems SBO cannot accept parameter to query user defined tables.
    I've tried these:
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
    I try to pass the value directly without using parameter and It works
    SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
    This one works
    SELECT * FROM RDOC T0 WHERE T0.width =[%0]  --- this SUCCESS
    and this one works too
    SELECT * FROM RDOC T0 WHERE T0.width = 595  --- this SUCCESS
    Is there anyone can help me ....???
    Thanks,
    Alfa

    I  generated this code using query wizard ....
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = (N'2' )
    and replaced the (N'2' ) with [%0]
    SELECT T0.[U_Status] AS 'Document Status' FROM  [dbo].[@ST_PR_H] T0  WHERE T0.[U_Status] = [%0]
    and It worked ......
    Thanks 4 all .....

  • How to define table specific QUERY in parameter file for Export Utility

    Hi All
    I am trying to create A SINGLE parameter file for export utility. I have 2 tables and want to use a different QUERY condition for each of these tables. However i do not want to create 2 seperate parameter files for this and run/script exp twice.
    Is there a way to do it ?
    NOTE: I am using normal export utility for Version 9 and NOT oracle data pump.
    Following is an example of what i want to achive in parameter file:
    Tables = (TabA,TabB)
    # for table - TabA
    QUERY = "where id =25"
    #for table - TabB
    QUERY = " where court_id=54 and id >1"
    Please advice on syntax of parameter file so that exp knows that it has to process 1st condition for only TabA and second condition for TabB.
    Any samples/syntax examples are greately appreciated.
    thanks in advance!
    cool tech

    No there is no such alternative. Query condition is applicable to all the tables listed in TABLES parameter.
    http://download.oracle.com/docs/cd/B10501_01/server.920/a96652/ch01.htm#1005843

  • Refresh table-form query on table only

    Hello,
    I have a group being generated as a table-form layout. What I would like is for the table page to be refreshed always on entry. I can't set the group requery condition to always, or "when entering the page" as then the view object is executed going navigating from the table page to the form page. This seems a very simple requirement to me but Im struggling to come up with an elegant solution.
    Basically what i need is the refreshCondition on the invokeAction binding executable to be "Always and layout=table".
    Any help would be greatly appreciated !
    Cheers,
    Brent

    How do you do this, if your current page is a .jsff and not a .jspx? When I look at the refreshCondition, a .jsff does not have access to the facesContext.
    Thanks,
    Michelle
    Since this question was already answered, I created a new thread:
    Refresh table-form query on table only for .jsff pages
    Edited by: MSchaffer on Dec 1, 2010 11:54 AM

  • 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

Maybe you are looking for

  • How do I move the photos around in Develop tab ?

    Hi there, I have selected a photo and wanted to do some adjustments to the exposure, saturation and whatnot. So I went to the DEVELOP tab. As the picture is too small, I press "Cmd +" to enlarge the photo. But the section of the photos that I wanted

  • There was a problem reading this document (11)

    I have a user that is attempting to apply a redaction but is getting this error.  I can find no solution on any forum thus far.  Is there a location where adobe error codes are listed?  Any assistance is appreciated.  Thanks.

  • Black Screen Recording

    I am using an HD DVR Motorola QIP6416.  Three shows in the past week have resulted in a blank screen when I try to view them.  I have tried watching them on both tv's I have set up to FIOS and both just show a freeze on the live program followed by a

  • I am trying to download apps on my iPad

    The apple ID box that asks for my password lists an I'd name for which I don't have the password. When I answer the secret question answer(my birthday) I'm told it's a wrong answer.  They e-mail me a new password but it doesn't work. How do I set my

  • Magic Trackpad text input

    Hi I've been using my trackpad sort of like a remote control while watching movies etc on my Mac. I was wondering if there is any way to input simple text using the trackpad when the keyboard is out of reach. I have seen a few things that come close