Regarding Deletion of a table from infoset query.

Dear Sappers,
I have created a query using two tables KNA1 and BSIS.....
for showing Customer Code (KNA1_....)  and the Document currency(BSIS_WRBTR)
I have two questions....
1. How to delete one table either of KNA1 or BSIS from the query sq02
2. Which table to use in respect with KNA1 to show the document currency or the sales revenue....
please help me out

Hi,
1. I dont think a table can be deleted from the created query u need to create one   
    new query
2. Better use VBRK for document currency.
    I dont think one can suggest u to use one particular table
    First u c what r the field values that r required to u. then press F1 and go for   
    technical information to get the name of the table and field.
Cheers,
Anil.

Similar Messages

  • Creating a table from a query

    I am trying to create a table from the results of a query. With other products, I could issue the following SQL statement to achieve my goal but this doesn't work with Oracle.
    select MyTable.* into NewTable from MyTable where MAPID < 1000
    What am I missing?

    Try this way :
    create table NewTable as
    select * from MyTable where MAPID < 1000;

  • Regarding Passing two internal Tables from Driver Program to Smartform

    hi all,
              I am Passing Two Internal Tables from Driver Program to Smartform it is going to dump and message is showing like this " one of the parameters eded according to the interface description was not specified ".
              When i am passing one Internal Table Output is coming Perfectly. Is there any restriction for passing of internal tables.
    Regards
    Rami

    HI,
    Check the names specified in the smartfrom and FM whcih you are calling in the driver program. Both might be different....

  • Regarding passing an internal table from print program to smartform....

    Hi All,
    can any body let me how to pass an internal table to the smartform, i have processed the data in the print program then i want to pass the final internal table from the print program to smartform and with that data in the internal table i have to process it in the smartform (i want to get some more data based on the internal table data from the print program) and then i will display finally.
    for example: i have it_qals which contains all the lot numbers which is processed in teh printprogram, now i want to pass all these (it_qals) lotnumbers to smartform , and in the smartform i will use the lotnumbers in the it_qals table and will process other data accordingly 
    can any body help me plzz.. its very urgent

    Chek this code i am coping my whole program here.
    REPORT ZDP_SMARTFORMS_REPORT3 .
    TABLES: MARA,
    MAKT.
    DATA: FNAME TYPE RS38L_FNAM.
    DATA: BEGIN OF ITJOIN OCCURS 0.
    INCLUDE STRUCTURE ZDP_JOIN__IN_SMARTFORM.
    INCLUDE STRUCTURE MARA.
    INCLUDE STRUCTURE MAKT.
    data: END OF ITJOIN.
    *DATA: BEGIN OF ITJOIN OCCURS 0,
    MATNR LIKE MARA-MATNR,
    END OF ITJOIN.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: MAT FOR MARA-MATNR.
    SELECTION-SCREEN END OF BLOCK B1.
    SELECT MARA~MATNR MAKTX "UP TO 5 ROWS
    FROM MARA JOIN MAKT ON MARAMATNR = MAKTMATNR
    INTO TABLE ITJOIN
    WHERE MARAMATNR IN MAT and maktspras eq 'EN'.
    into corresponding fields of table it
    *SELECT MATNR UP TO 5 ROWS FROM MARA INTO TABLE ITJOIN
    WHERE MATNR IN MAT.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZDP_SMARTFORMS_3'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FNAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    not necessar y above function if u copy function name from
    **- smartforms>environment>function name
    CALL FUNCTION '/1BCDWB/SF00000037'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    ITJ = ITJOIN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Also check these links
    Check out this link,
    http://www.erpgenie.com/abap/smartforms.htm
    and also refer these threads,
    Passing table to smartform
    PASSING INTERNAL TABLE IN SMARTFORM
    Hope this helps.
    ashish

  • Count number rows in multiple tables from one query

    Hi
    I was wondering if its possible to have a single query return the number of lines in multiple tables, for example i have the tables
    foo1
    pk_foo1
    and
    foo2
    pk_foo2
    They are not joined together by any contraints. So the pseudo code for the query would be something like
    SELECT numrows(pk_foo1), numrows(pk_foo2) FROM foo1, foo2
    Thanks!

    without a join you get a cartesian product for the query:
    SQL> select count(d.deptno),count(e.deptno)
      2  from dept d,emp e
      3  /
    COUNT(D.DEPTNO) COUNT(E.DEPTNO)
                105             105so you need to do a bit of trickery
      1  select a.cnt,b.cnt
      2  from
      3  ( select count(d.deptno) cnt from dept d ) a,
      4* ( select count(e.deptno) cnt from emp e) b
    SQL> /
           CNT        CNT
             7         15
    SQL> select count(*) from dept;
      COUNT(*)
             7
    SQL> select count(*) from emp;
      COUNT(*)
            15

  • "Create Table from select Query" Vs "Insert into"

    Hi
    Schenaio:
    My Select Query returns more than 10 million records, these records needs to be inserted into another table.
    Approach 1:
    I created table called TABLE1, and inserted the records using INSERT statement as a batch (batch size is 5000).
    Approach 2:
    I create table like,
    CREATE TABLE TABLE1 AS <SELECT QUERY>
    Here Apporach-1 took almost 40 minutes to complete the insert but Approach-2 took only 6 minutes.
    If anybody knows why it is? And is there any way to improve the performance of Approach-1?.
    Thanks
    Nidhi

    Most "batch" methods execute the same query multiple times. Row filtering is done after the rows are fetched from the source. The process of fetching all the rows could be a FullTableScan.
    Therefore, a FullTableScan is executed for each batch of 5000 rows.
    However, your query and batch definitions may well be different. We haven't seen the query and the execution plan.
    Another point : How are you "filtering" the rows (i.e the second execution inserts rows 5001 to 10000 and does not attempt to reinsert rows 1 to 5000) ?
    What is the overhead imposed by the filter ? (does the third execution have to exclude rows 1 to 10000 and inserts rows 10001 to 15000 and so on)
    Hemant K Chitale

  • Need tool/utility to get list of tables from sql query

    Hi,
    I often have to analyze huge queries without having access to database. Is there any tool where I can submit the a sql query and it gives me list of tables used in the query.  I also need similar thing for documentation.
    Let me know if anybody uses anything like this.
    Thanks.
    liquidloop[at]live[dot]co[dot]uk

    You can find the size of each table, and thus list the tables in the process.
    SET NOCOUNT ON
    DBCC UPDATEUSAGE(0)
    -- DB size.
    EXEC sp_spaceused
    -- Table row counts and sizes.
    CREATE TABLE #t
    [name] NVARCHAR(128),
    [rows] CHAR(11),
    reserved VARCHAR(18),
    data VARCHAR(18),
    index_size VARCHAR(18),
    unused VARCHAR(18)
    INSERT #t EXEC sp_msForEachTable 'EXEC sp_spaceused ''?'''
    SELECT *
    FROM #t
    -- # of rows.
    SELECT SUM(CAST([rows] AS int)) AS [rows]
    FROM #t
    SELECT
    t.NAME AS TableName,
    p.rows AS RowCounts,
    SUM(a.total_pages) * 8 AS TotalSpaceKB,
    SUM(a.used_pages) * 8 AS UsedSpaceKB,
    (SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB
    FROM
    sys.tables t
    INNER JOIN
    sys.indexes i ON t.OBJECT_ID = i.object_id
    INNER JOIN
    sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id
    INNER JOIN
    sys.allocation_units a ON p.partition_id = a.container_id
    WHERE
    t.NAME NOT LIKE 'dt%'
    AND t.is_ms_shipped = 0
    AND i.OBJECT_ID > 255
    GROUP BY
    t.Name, p.Rows
    ORDER BY
    t.Name
    --- SQL2005
    select o.name
    , reservedpages = sum(a.total_pages)
    , usedpages = sum(a.used_pages)
    , pages = sum(case when a.type <> 1 then a.used_pages
    when p.index_id < 2 then a.data_pages else 0 end)
    , SUM(a.used_pages)*8096 AS 'Size(B)'
    , rows = sum(case when (p.index_id < 2) and (a.type = 1) then p.rows else 0 end)
    from sys.objects o
    join sys.partitions p on p.object_id = o.object_id
    join sys.allocation_units a on p.partition_id = a.container_id
    where o.type = 'U'
    group by o.name
    order by 3 desc --biggest tables first
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Update SAME column name in two tables from ONE query

    Dear All Seniors
    Please tell me is it possible to update a same column name in two tables.
    I have two tables in same schema
    (1)table name
    pem.igp_parent
    column name
    igp_no.
    igp_type
    (2)table name
    pem.igp_child
    column name
    igp_no.
    igp_type
    i want to update igp_no column in one query please tell me how it would be possible.
    thanks
    yassen

    You want to update the data from what to what? Where is the new data coming from?
    If you are trying to put the same data in two different tables, that strongly implies that you have a normalization problem that needs to be addressed.
    Why do you want a single query rather than updating each table in turn? Can you join the two target tables to produce a key-preserved view?
    Justin

  • Effects of Updating GRPO table from Update Query..

    Hi all,
    Wanted to know what are the repercussions of updating GRPO table with Update statement, Basically the client is not selected Project field in the GRPO rows in some of the documents during the Posting. Now the same is to be updated, as Invoices are created for most of them and payments also made document is un-editable.
    If i can update using UPDATE statement how will the system react? I know as per SAP guidelines, we cannot update the SAP Tables directly using INSERT or UPDATE statements but wanted to know what is the further effect on postings and SAP as a whole.
    Regards
    Rohan

    Hi,
    The using of update, insert or delete are not allowed in SAP B1. If you use it in B1 db, the maintenance contract with you will be stopped and your money will not be returned. The consequence of using the statements is the database inconsistency.
    Just an info, SAP AG support will use insert, update and delete statement only if the statements are needed and fix the db inconsistency. E.g., if your user is trying to add sales order and after add, the sales order row is empty and header is not empty. SAP will use  the statement to fix the database only if the cause of the error is explained to them. E.g. the server is suddenly shutdown because  the power supply is stopped and it made the sales order like that
    JimM

  • Select distinct from an infoset query

    Hello
    I need to select distinct / delete duplicate from an infoset query created thru SQ02.
    Please let me to know how this can be done?
    Many thanks in advance!
    regards
    Sanjyot

    Hi,
    You can verywell use infoset query if you are doing following things
    Join using Keyfields to retreive data from tables
    If not using keyfields create index for those table fields  in those fields which will improve in accessing database
    Try to use minimum of tables of small size dont try to join big tables like GLPCA and all.
    Try to load small set of data like a period or month. Dont try for a year or so.
    if your performance is good for aperiod you can go for a year.
    If you are good in function module you can try function module in which you will have the option of specifying no of records to be selected usign package size.
    Hope this helps for you.
    Thanks,
    Arun

  • How to delete Infoset Query in R/3

    Hi  Gurus,
    I created a Infoset using SQ02 in R/3 and generated the query. Now I need to delete that Infoset query. Please advice me how to delete infoset query from the functional group in R/3.
    Thanks
    Liza

    Hi,
    In SQ01 ,press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
    and try to delete , I think, it should work.
    Regards
    CSM Reddy

  • Delete Source Table from Repository

    Hi:
    I created a custom folder (XXCUSTOM) in the Informatica repository and in the Sources subfolder I imported a standard EBS table. I now know that the same standard table exists in the Sources subfolder for a SDE folder. So, I went to the custom folder and attempted to delete the EBS table from the Sources subfolder, but I get the response:
    "The source table RA_TERMS_B will be deleted from the repository and any Mappings which use this source will be invalidated."
    Does anyone know if this means that ALL occurrences of the table (including in the SDE folder) will be deleted?
    Thanks.

    Thanks!

  • InfoSet Query in R/3

    Hi Guys-
    I want to consolidate multiple similar (all same fields) records to a single record in an Infoset Query. Any one can please guide me how to do this.
    Thanks - Troy.

    Hi,
    In SQ01 ,press shift+F7 then find your user group. then from infoset query tab ,select ur infoset.
    and try to delete , I think, it should work.
    Regards
    CSM Reddy

  • Infoset query BI 7.0

    Hi All BW gurus ,
    i want a clear picture how to create an infoset query and when to go for infoset and infoset query in GENERIC Extaction . anyone pls send the screen shots how to create and extract data to bw side from  infoset query  ,
    my email is [email protected],
    100% points will be assined to the gurus
    regards
    Sherwin

    <b>Look at</b>
    http://help.sap.com/saphelp_erp2004/helpdata/en/92/43ec39d0383f09e10000000a11402f/frameset.htm
    Re: Infoset
    https://www.sdn.sap.com:443/irj/sdn/thread?threadid=199410&messageid=2217326
    https://www.sdn.sap.com:443/irj/sdn/thread?threadid=189150&messageid=2113030

  • Unable to update and delete record in table

    Hello All,
    Kindly help me regarding the below mentioned issue plz
    When I want to update or delete record in table from form developed in 6i give no error message but no action and when I run same form on other system updation and deletion are successfully done.
    Any suggestion

    Hello
    More explanation is as under:
    1. I am working on only one table say A
    2. Wants to update only one row of Table A at one time in single user envoirment.
    3. My form is successfully update some rows as well but not on all rows on one PC while same form able to update all rows on other PC.
    4. I drop the table and re-create the table again but problem persist.
    Any advice plz.

Maybe you are looking for

  • Which camcorder works best with mac computer

    I am looking to purchase a camcorder for my teen ager.  She is interested in making short movies and using imovie and the mac computer to edit them, etc.  Which canon  camcorder would be best?

  • IPhoto 6.0.1 Crashes upon launch!

    Hi, Just installed iPhoto 6.0.1 and ran it successfully exactly once, it updated my library and thumbnail cache. Shortly thereafter, my system went nuts. iPhoto locked up. Then app after app kept locking up, including the Dock, until the system becam

  • Getting V2 style Step Trigger Content using API

    I have written a C++ code for getting forms trigger text using API. In which, I am not able to get V2 style step trigger text from Forms6/6i API. Can anyone help me to sort this out? Thanks Kannan M.

  • JavaScript for Simplify Command

    Hello! I have combed through the Illustrator CS3 JavaScript Reference and am having some difficulty finding how to call the Simplify command using JavaScript. Does anyone know if this is possible. If it is, could you give me a hint as to where this m

  • Moutain lion from new MBA on Desktop mac.

    Hello. I just buy a MBA with moutain lion, can i install it on my mac mini (lion) ? thx