Doubts in Query & Infoset Builder

Hi All,
I have a problem/doubt with my query, Due to a requirement I have to place a Check box in my Selection scree of Query.
Unfortunately when I place my Checkbox in Info-set(SQ02), Its showing check Box at first place.
Example:
We have a Query with selection screen fields as
MBLNR
MJAHR
MATNR
MENGE
Now When I add a Checkbox in SQ02 & when I run the report, I am getting this Checkbox, at Top of selection screen.
Actually I am looking to have this Check box after my selection-screen elements.
I tried with Sequence on selection-screen, but its only working with the fields declared in Selections.
Is there any chance like I can declare my Selection screen parameters in the position I want.
Please advice me.
Thanks,
Dileep .C

user10447332 wrote:
(!)select * from emp where rownum>5
it wont give o/p/what is the reason.
if we mention rownum<=5 then it gives o/p what is the reasonIts because rownum is applied to the row at the last stage of fetch. It is applied to the row which would be displayed to the user. So after your row is ready to be shown to the requester, it is assigned rownum as 1 and then oracle checks if it is greater than 5. Since the result is false, this row is rejected and next row is given rownum as 1 and checked again. Since all rows would fail (as all rows would be assigned as rownum 1) you would get no rows selected.
(2)
i have two data bases. i want to import 2 tables from database1 to data base2.how to do it.
Well you can use
- exp/imp
expdp/impdp
copy commmand
db link
(3)i have servers at 3 locations us,uk,asia.
if data is changed in one server.it should reflect in all servers.
if we query from any server we have to get same result how to do it.You can use
materialized view
oracle streams
3rd party tool like golden gate
(4)
i have data in excel file.i want to load data from excel file int o my tavble .how to do it(dont use sql loader)I only know sql loader as a way to do it
Regards
Anurag

Similar Messages

  • Transport plan for Query/Infoset on ECC 6.0

    Need to develop many abap query programs and related infosets. first these will be developed on DEV server, so suppose there are 20 queries and related 20 infosets, then how should i manage the transport ?
    Is there any need to transport User group ? I think its not.. rather it s created on testing and Production server, Is this right ?
    But without usergroup, Can I transport abap query/infoset ?
    Can someone suggest a plan ?

    Hi,
    If want extract data by using Generic Extractions View then at least one field should be common in all the tables.
    In your case if you want extract data of VBAK & VBAP then take common field in both the table when you are building View.
    Ali.

  • Doubt in Query designer

    Hi all:
    I have a doubt in Query ...
    I have an infocube for GR quantities and other infocube for confimation quantities.
    In a multiprovider,i collect this two cubes.In query designer,if i given GR date as i/p,
    confirmation quantities doesnt display.IF i didnt give GR date as i/p,then both GR and Confimation
    quantities display in seperate line.In that case if i see the confirmation quantitis column,GR quantity is
    and same for GR quanitiy.
    Waiting for your inputs.
    Rgds
    MSK

    MSK,
    These two pieces of information are at different levels. GR Date is mapped only to the GR quantities cube and no mapped to the confirmation quantities cube.
    Map GR date in the multi-provider to a date in the confirmation quantities cube.
    Aneesh

  • SAP Query Infoset

    Dear All,
    I have created a SAP Query Infoset with ldp pnp, i have a customer infotype added to that infoset.
    One of my field in the customer infotype consist of value and text(meaning values are stored in the infotype, which also has some text attached to it which is the check table).
    Now how can i link those two in the infoset, so that user can choose between them?
    Thanks.
    Moderator message: please choose more descriptive subject lines for your posts.
    Edited by: Thomas Zloch on May 26, 2011 10:12 AM
    Edited by: Satish R on May 26, 2011 10:55 AM
    Edited by: Satish R on May 26, 2011 10:59 AM
    Edited by: Satish R on May 26, 2011 11:00 AM

    Hello Satish,
    In SQ01 when you create your output list, you can right-click the column and select "Value and text",  I am on version ECC 6.0.
    Kind Regards,
    Rae Ellen Woytowiez

  • Extracting SAP Query,Infoset  Data from VB Application

    Hi,
    I need to get all SAP Queries,Infosets and SAP Query Group data from a VB application.
    I have found a Remote Enabled Function called    IQAPI_READ_QUERY_CATALOG.
    But when I call the Function from a VB application ,the call is not successful and even I am not getting any exception.
    The call is getting false with null exception .
    Can anyone please guide me.
    Or is there any other function module /procedure / table to extract SAP Query ,Infoset,SAP Query Group data??
    Thanks in Advance.

    http://stackoverflow.com/questions/3765373/how-do-i-do-a-select-distinct-using-a-sap-infoset-query

  • Query Infoset t-code SQ02 with table KONV

    Hi All,
    I want to create a Query infoset using t-code SQ02,
    I want to join table VBAK and KONV for showing all condition types in the Sales order.
    However the program disapear error "Table KONV cannot be used in a join"....
    Is there other method I can join them using the Query infoset ?
    Thanks.
    Terry

    Hello Kin,
    Searching for a solution, I found a Logical Database for sales orders, that have all the information that you need.
    Using like reference the post of Bhagavatula, in the same transaction SQVI you can use, instead of the suggested join, you can select a logical database called VAV in Data source.
    This logical database links the tables, VBAK, VBAP, VBUK and KONV that is the central point of the question.
    You can list the information of logical database using the transaction SLDB.
    In 'Logical Database' inform VAV.
    Press F8 to list all the fields.
    More information about logical database in:
    Link: SAP Logical Database
    See this thread that I wrote some days ago:
    Link:[Thread 7371137|Re: Can we take standard report for all sales orders based on the condition typ;
    Regards,

  • Doubts about Query Builder tool

    Hi!
    We are using database link and the developed querys have many schemas.
    There is possible to use the Query Builder tool for multi Database schemas? How to do?
    There is possible to create query in Query Builder tool using database link? How to do?
    I would like to know about Query Builder tool in the our activies.
    *If there is more information about it(Query Builder tool) or documentations, please talk to me.
    Best Regards,
    Priscila Britto

    hi.
    try this [http://sourceforge.net/projects/sqleonardo/|http://sourceforge.net/projects/sqleonardo/]
    maybe it can help you.

  • Query : JDev + build.xml

    hi all
    I have created one BPEL project in Jdev with that JDev also
    creates build.xml file for compilation & deployment.
    Now If I deploy my BPEL process using JDev Deployer window (Right click on BPEL Project -> Deploy -> BPEL Process Deployer )
    than It compiles BPEL project first then It runs Ant file - build.xml.Now here the my observation is while running build.xml file It will not run compile task - bpelc command . Yes BPEL project is already
    compiled but how JDev will come to know that it should not compile
    BPEL project again. ???
    And another doubt is which JAR file is used to executed "bpelc" command. And we can compile BPEL project from JDev as well as Developer prompt of SOA server so in both cases where this JAR file will be.???
    /M Patel

    I have actually disabled the security for that service. I am thinking the problem is that the LDAP server has some sort of block on web service calls. Could that be the issue? All of my other web services (configured the same exact way) function just fine, and running the query in LiveCycle Workbench works fine. That leads me to believe that something is stopping the WSDL connection.

  • SAP QUERY/INFOSET with OUTER JOIN

    Hi,
    I have created an infoset (SQ02) using two tables for SAP query.
    Table: AGR_TEXTS. Fields: AGR_NAME, SPRAS, LINE, TEXT.
    TABLE: AGR_FLAGS. Fields: AGR_NAME, FLAG_TYPE, FLAG_VALUE.
    Joined these two tables using outer join.  Defined the join condition as AGR_NAME = AGR_NAME.  Saved and Generated the infoset.
    Created SAP Query (SQ01) using the above created infoset.
    In the basic list,
    Marked AGR_NAME (AGR_TEXTS), TEXT, FLAG_VALUE as listed fields.
    Marked AGR_NAME (AGR_TEXTS), SPRAS, LINE, FLAG_TYPE as selection fields.
    Save the query.  When execute the query provided the inputs for all the selection fields in the selection screen as given below:
    AGR_NAME=Z*
    SPRAS=E
    LINE=00000
    FLAG_TYPE=LICENSE_01
    Executed the Query. 
    Got the results only the matched records as per the selection field FLAG_TYPE.
    But I want all the records from table AGR_TEXTS and matched records from table AGR_FLAGS.
    I want the report (output) as below,
    _AGR_NAME                                               TEXT                                                                                  FLAG_VALUE_
    ZCA_BASIC_ACCESS_GLOBAL     Non-critical basic access for all users.                                       53
    ZCA_BASIC_ENDUSER_ACCESS     UK:CA Basic Enduser Access     
    ZCA_BASIC_ENDUSER_ACCESS_UK     UK:CA Basic Enduser Access UK                                        52
    ZCA_BASIC_ENDUSER_SU52_UK     UK:CA Basic Enduser Access to change Parameter ID's     
    But I got the report (output) as below, 
    _AGR_NAME                                                TEXT                                               FLAG_VALUE_
    ZCA_BASIC_ACCESS_GLOBAL     Non-critical basic access for all users.     53
    ZCA_BASIC_ENDUSER_ACCESS_UK     UK:CA Basic Enduser Access UK     52
    Apprecited your help. Thanks.
    Code Formatted by: Alvaro Tejada Galindo on Dec 30, 2009 2:20 PM

    Identify a KF for which there are non-zero values for all accounts in the cube.
    Create the query with Account (from MP coming from both IO and cube) and this KF. KF will have 0 values for accounts not existing in the cube. Create a condition to show only the 0 value for the KF. This should show you all the accounts in the IO which are not in the cube.

  • Doubt in query statement in receiver jdbc

    HI
    Again a doubt in XML format for receiver jdbc.
    I want to execute a query
    select sum(col1) sum(col2) from tablename where startdate <= tdate.
    My payload message looks like this
    <AggregateFn action="SQL_QUERY">
      <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = '$sdate1$'</access>
    - <key>
      <resno compareOperation="EQ">CHILLED_02</resno>
      <sdate1 compareOperation="LT">06/08/2007</sdate1>
       </key>
      </AggregateFn>
    I am getting a error "Data type mismatch in criteria expression" .
    I have defined the datatypes correctly with DateTrans function . I think its the problem with access statement.
    How to give the selection criteria for non-text fields. (can i use same quotes and dollar combination for date field too) . Or is there any other mistake in the xml structure

    Aarthi,
    Try the following
    <AggregateFn action="SQL_QUERY">
    <access>SELECT sum(Weight) FROM KmFuelTrace WHERE resourceno = '$resno$' AND startdate = $sdate1$</access>
    - <key>
    <resno compareOperation="EQ">CHILLED_02</resno>
    <sdate1 compareOperation="LT">06/08/2007</sdate1>
    </key>
    </AggregateFn>
    Also check what us the date format that database uses and give the similar format.
    Regards,
    Sudharshan N A
    Message was edited by:
            Sudharshan Aravamudan

  • Problem in select query in QUERY INFOSET

    Hi All
    I have requirement to find the sales text maintained for sales order in mass in production. By using the FM READ_TEXT i can pass the necessary values to get the sales text. We dont want to write a program and then transprot to P01. So what i did in SQ02 i create a infoset and worte code in the infoset. Here i am facing the problem that in the select query where clause what ever  on the selection screen values, for that the query need to fetch the records. But selection screen is dymically selected based on SQVI t-code.
    In select query if i write like this
    SELECT TDOBJECT TDNAME TDID TDSPRAS
           FROM STXH
           INTO TABLE IT_TEXT_DETAIL
           WHERE TDOBJECT     EQ C_KNMT .
    Here i have hardcoded KNMT so it will fetch only that value irrespective of any values on the selection screen. How to get the values based on the selection screen. I debugged the query it automatically generates the code for selection screen which i am not able to pass in the program.
    SAP has generated this code
    select-options SP$00004 for STXH-TDOBJECT.
    select-options SP$00005 for STXH-TDNAME.
    select-options SP$00006 for STXH-TDID.
      If i pass SP$00004 on where clause its giving me error. So how to pass it dynamically. Waiting for experts answer.
    Regards
    Vijay

    Hi Vijay,
    In this case concatenate 'TDOBJECT' 'EQ' C_KNMT INTO V_WHERE (Say) SEPERATED BY SPACE.
    DATA : v_where(90) type c.
    clear v_where.
    CONCATENATE  'TDOBJECT'
                               'EQ'
                               C_KNMT
                               INTO V_WHERE
                               SEPERATED BY SPACE.
    SELECT TDOBJECT TDNAME TDID TDSPRAS
           FROM STXH
           INTO TABLE IT_TEXT_DETAIL
           WHERE (V_WHERE) .
    Try to do this and let me know in case of any.
    Regards,
    SRinivas

  • At line-selection in SAP Query ( Infoset ) code

    Hi all ,
    Here is one for you :  can I put somehow the following code in a Sap Query ( at infoset level of course ) :
       at line-selection.
      set parameter id 'BUK' field XXX-bukrs.
      set parameter id 'BLN' field XXX-belnr.
      set parameter id 'GJR' field XXX-gjahr.
      call transaction 'FB03' and skip first screen.
    (In other words I would like to see the documents behind a line in the list)
    Some explains : my query's output would be ABAP list , the bukrs, belnr, gjahr fields are on the lines of my resulting list, and my problem is with those XXX 's - I don't know where are stored the lines of my ABAP list.
    I'm pretty new at ABAP so any idea and explains about the generated SAP Query code
    is appreciated . I looked at the final code but seemed very complex for my level.
    Please guide me in this area ( I know the basic things like writing pretty simple reports )
    Thanks !
    Best of all
    Zoli

    Hi,
    You need to add extra piece of code as below:
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'
                I_callback_user_command = 'USER_COMMAND'   "see FORM
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
                i_save                  = 'X'
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
    *       FORM USER_COMMAND                                          *
    *       --> R_UCOMM                                                *
    *       --> RS_SELFIELD                                            *
    FORM user_command USING r_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
    * Check function code
      CASE r_ucomm.
        WHEN '&IC1'.
    *   Check field clicked on within ALVgrid report
        IF rs_selfield-fieldname = 'EBELN'.
    *     Read data table, using index of row user clicked on
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
    *     Set parameter ID for transaction screen field
          SET PARAMETER ID 'BES' FIELD wa_ekko-ebeln.
    *     Sxecute transaction ME23N, and skip initial data entry screen
          CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDCASE.
    ENDFORM.
    "For further information please refer the link below :
    http://www.sapdev.co.uk/reporting/alv/alvgrid_ucomm.htm
    Thanks,
    Sriram Ponna.

  • Doubts regarding XML Form Builder

    Hi All,
          I am having some doubts regarding XML Forms (Projects) that is created using XML Form Builder. Where are exactly these projects stored. Can I edit these projects and add my own Java Functionality in these. And also the data which I fill using these project where is it stored. Suppose New Project I ve created using XML Form Builder, now I want to feed in the news. Where exactly are these news stored.
    Thanks in Advance
    Anish

    Hi Anish
    You can make the standard settings and modify the XML forms builder in line with your requirements in the options. You can set the standard paths for your project on the <b>Paths</b> tab page.
    To get a clear understanding, please go through this link.
    http://help.sap.com/saphelp_erp2004/helpdata/en/62/ca6f365a6df84e87ba085f9b5fb350/content.htm
    Hope that was helpful
    Warm Regards
    Priya

  • 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

  • Regarding Doubt in Query

    Hi Friends,
    I have a doubt in Oracle Query.
    Query
    SELECT ID FROM LIST;
    ResultSet
    1
    2
    3
    4
    5
    789
    In the above query the result will in seperate rows, bu i want it as
    1,2,3,4,5.............,789.
    Can anyone help me to write a query for this type of output.
    Thanks,
    Dick....

    with t as(select 1 col1 from dual
    union select 2 from dual
    union select 3 from dual
    union select 4 from dual
    union select 5 from dual
    union select 6 from dual)
    select   ltrim(max(sys_connect_by_path(to_char(col1),',')),',') col1
    from (select col1,
           row_number() over(order by col1) r1,
           row_number() over(order by col1)-1 r2
          from t)
    start with r1 = 1
    connect by prior r1=r2;                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • Page numbers from XML output file

    Scenario: We have a situation here where we would need to create an XML document and a pdf file produced by an Oracle 11i EBS report. The XML document will need to have the number of pages the report (in pdf) has produced. For example, if I have two

  • Mail content does not load in Apple Mail 10.8.2 using exchange server

    About 10 am this morning Apple Mail stopped working.  Initially, no emails could be sent or received even though connection doctor found nothing wrong with the internet connection.  At 4pm, email would load but with just the sender and the subject -

  • How to handle event structures for two buttons and two counters.

         *I have two buttons A and B, and have to compare the difference in hits between them.  So do I place an event structure within a while loop for each button (2 buttons, 2 event structures, 2 while loops), or does it need to be one event structure

  • Photoshop unable to open Nikon D610 NEF files

    I'm using Mac Os 10.6 and photoshop cs6 is unable to open NEF (RAW) files. I've tryed updating it and also tryed Adobe DNG Converter but the version that runs on Mac Os 10.6 is unable to convert the NEF images. Is there any Cs6 uptdate coming?

  • Using Typekit fonts offline?

    New here. I spend a great deal of time working offline in InDesign, as well as Illustrator and Photoshop. However, when offline, Typekit fonts that I have synced do not appear in the font lists of those programs and must be replaced in the documents