About Query Output

Why the Query Output format changed from 'Layout' to 'SAP List Viewer' after added some codes?
How to modify it back?
Edited by: abpjoel on Dec 2, 2010 2:45 AM

你好!
如果可以的话,你可以给我样例吗? 我想在我们的系统里,查一下有没有这个问题。
还有你们系统的basis support package可以告诉我吗?

Similar Messages

  • Query output into cfmail

    I need to send an individual email to about 100 names fetched
    from an Access 2003 database. I am fetching the distinct emails
    from the database and getting each Project owned by each distinct
    email address.
    I created the correct output on a test web page where the
    query will list every distinct email address with each email
    address having their own Project Title listing. Now the question is
    how do I use my output to send an individual email to each of the
    distinct email addresses I got in my query??
    For example someone with the email Address of
    [email protected] would get one email with his Project Title
    listings that could be 3 or 4 titles. The next distinct email
    address of [email protected] will get his own email with his
    Project title listings.
    Here is my attempt but the #userEmail# has everyones email
    address.
    <cfoutput query = "theQuery" group = "userEmail">
    <cfmail to: #userEmail# subject: Project Listing
    <cfoutput>Project Listing:
    #ProjectTitle#</cfoutput>
    <cfmail>
    </cfoutput>
    Please help.

    Jazzy has the correct answer. And if your project listings
    reside in seperate tables, you need to run a seperate query within
    the loop BUT outside of the cfmail in order to retrieve those. So
    that would then be...
    <cfquery name="rs_read" datasource="xxx" >
    SELECT *
    FROM #session.sometable#
    WHERE whateverid = '#variables.whateverid#';
    </cfquery>
    <cfloop index="loopcount" from="1"
    to='#rs_read.RecordCount#' step="1">
    <cfquery name="rs_projects" datasource="xxx" >
    SELECT projects
    FROM #session.sometable#
    WHERE email = '#rs_read.email#';
    </cfquery>
    <cfset variables.proj = ''>
    <cfoutput query="rs_projects">
    <cfset variables.proj = variables.proj & ' ' &
    rs_projects.projects>
    </cfoutput>
    <cfmail from="[email protected]" to="#rs_read.email#"
    subject="#rs_projects.whatever#">
    bla bla #rs_read.anyvariable#
    PROJECTS: #variables.proj#
    </cfmail>
    </cfloop>
    REMEMBER: You can not nest outputs in outputs, that's why you
    can not run the query output inside CFMAIL because CF regards
    cfmail as an output routine.

  • Programme required for query output

    Hi,
    We have created a Query in system which will give output of non-printed invoices in system. User select these invoices list and prints it manually.
    Now user has comeup with a requirement that he wanted a programme that selects the query output (non printed invoices) and that automatically adds the output type XXXX.
    Pls let me know does anyone know about such progrmme??
    Thanks in advance
    Srikky

    hi,
    1. sorry we have some limitation in query.
    2. copy the logic into Zprogram and create newly.
    3. add check boxes for each invoice in teh report.
    4. keep select all and deselect all push buttons on the top.
    5. write a SPOOL request inside the program which converts into PDF.
    6. and execute for getting print out.
    or
    an out put is generated automatically when you save an invoice.
    requisites:  a spool program has to be attached to the driver program and execute the spool by selecting it.
    regards,
    balajia

  • ALERT PROBLEM WITH QUERY OUTPUT

    I have a few queries that were originally created using the B1 Query Wizard, that I then attached to Alerts.  Unfortunately when the Alert runs, the query output is different either in layout or records returned (usually less) when compared to running the query directly.  Is this a glitch in B1 as some folks have told me or is there a problem with queries created by the Query Wizard?

    Hi Frank,
    This is a limitation.
    The note 874145 is written about it. It also offers some workarounds.
    I would think that you can also create a 'Select count(*)' query that would also run as an alert that would tell the user how many records are affected. I did not test this, just an idea.
    Hope it helps,
    Jesper

  • Problems about  query filter (BEx).

    Hello there,
    I have some problems about  query filter (BEx).
    I have master data and I want to use attribute in this master data to dynamic filter in query(BEx).
    But this attribute is key figure. I can't done it now. TT
    Is this possible? If yes, could anyone advise how this is to be done?
    Thanks in advance.

    Hi
    In BEx there is option as 'Exceptions' & 'Conditions'. If you go in condition, you can specify range for key figure output. This is either predefined or by user selection. You create the condition as per your requirement & it will show you filtered data.
    How to create conditions you will find easily on this site.
    You can create as many conditions as no of filters you want. You can create these at query level also at report output level.

  • How to get query output data

    Hi,
    I have created procedure to analyze tables. I tried to get output but its not displaye in a proper way. I want to output as like as a query output.
    create or replace procedure tablestats
    as
    begin
    for cur in (SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS')FROM DBA_TABLES WHERE OWNER='SCOTT') LOOP
    dbms_output.put_line(cur.owner||' '||' '||cur.table_name||' '||cur.NUM_ROWS||' '||cur.BLOCKS||' '||cur.AVG_ROW_LEN);
    DBMS_STATS.GATHER_TABLE_STATS('scott',cur.table_name);
    end loop;
    end;
    Output came lke this:
    SQL> exec tablestats
    SCOTT  DEPT 4 4 20
    SCOTT  EMP 14 4 38
    SCOTT  SALGRADE 5 4 10
    SCOTT  SERVICE 8 5 12
    SCOTT  BONUS 0 0 0
    PL/SQL procedure successfully completed.
    Acually i want output like..
      1* SELECT OWNER,TABLE_NAME, NUM_ROWS, BLOCKS, AVG_ROW_LEN,TO_CHAR(LAST_ANALYZED, 'MM/DD/YYYY HH24:MI:SS') Last_Analyzed FROM DBA_TABLES WHERE OWNER=
    'SCOTT'
    SQL> /
    OWNER                          TABLE_NAME                       NUM_ROWS     BLOCKS   AVG_ROW_LEN   LAST_ANALYZED
    SCOTT                          DEPT                                             4                   4                 20                   11/27/2013 19:10:44
    SCOTT                          EMP                                            14                   4                 38                    11/27/2013 19:10:44
    SCOTT                          SALGRADE                                   5                   4                 10                    11/27/2013 19:10:44
    SCOTT                          SERVICE                                      8                   5                 12                     11/27/2013 19:10:44
    SCOTT                          BONUS                                        0                    0                  0                      11/27/2013 19:10:44
    Please help me.
    Thanks,

    Hi,
    As John said, PL/SQL doesn't give you any of the nice formatting features that front end tools, like SQL*Plus, provide.  If you want headers, you have to say exactly what they are, and write them yourself.  If you want the columns to line up, you have to decide how long they will be and pad them yourself.  It's a lot of work.
    Why not let PL/SQL do the things that only PL/SQL can do, and let SQL*Plus do the things it does well?  Have your procedure  or function return a cursor, which you can then diplay in SQL*Plus, or write a piplined function, that you can use in queries where SQL*Plus can format the results.
    The query you posted can eaisly be done directly from SQL*Plus, of course.  I assume you posted a very simple example, becuase your question is just about display.  If you don't absolutely need PL/SQL, don't use PL/SQL.  What I said above applies if you really do need PL/SQL.

  • Store Query Output or Cache Query

    My search query returns almost about 5000 records or more at
    a time out of 7million records. and I am outputing about 35 records
    at a time on a page. The problem is when the user pages to the next
    page, I hit the DB again and again through the paging process of
    the user.
    The Cache attribute of <cfquery> does not work when you
    are using <cfqueryparam> methods in the Components which we
    are using.
    How can I Store all the outputs of the Query returned into a
    var and cycle through it instead of hitting the DB every time or is
    there another method of caching this returned query output?
    Please give example.

    Thanks, that did the trick, another problem that came out of
    this is Internet Explorer. When Users page to lets say page #6 and
    then use the back button to come back, when it reaches the page
    one,the Query executes again. This only happens with internet
    explorer. I have tried caching the page but still same problem
    persists. I have changed the form method to "get" and it is still
    problematic.

  • HELP about analog output video

    Hello, I´m need help about analog output video in Premiere CS5 using Matrox RTX2. I need to crop a video with resolution in 1440x1080 to 4:3 in output analog. But what happens is wrong (I think). My video is in format anamorphic and the other option is 16:9 letterbox. Is there any way to crop the video without using effects. Thanks a Lot and sorry my bad english (my native language is Portuguese).

    There are no 4:3 HD specifications.  You'll have to put the video into a normal SD sequence, and scale it down till the top and bottom of the video meet the frame.  That way the sides will be cut off.

  • Central Management server - executed a query but how to send the query output in the form of mail?

    Hi All,
    i have used CMS in SQL 2008 R2. i have added couple of servers in its group. i have executed a query & i need to send the query output in the form of email.
    basically query is checking the rows count from couple of user tables in servers.
    issue here is how to copy the data that is used by CMS? i need to work on automate the rows count in difft user table in db servers
    could you please suggest how can i achieve this?

    Copy to what?
    SELECT COUNT(*) FROM sys.objects
    Running the above statement returns two columns (server name and count)
    All the servers SS2005  and onwards , then use
    EXEC msdb.dbo.sp_send_dbmail 
         @profile_name = 'name', 
         @recipients = '[email protected]', 
         @query = 'SELECT COUNT(*) FROM sys.objects', 
         @subject = 'Count rows'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • ERROR displaying in the query output... urgetn

    hi experts,
    For the amount keyfigures in the query output it displaying ERROR after the amount like ex- 2000 ERROR.
    plz let me know how to rectify this..
    regards
    vadlamudi

    hi,
    i have created only two keyfigures EMP_BASIC and EMP_HRA. and in the transformations i have mapped with 0DOC_CURRCY.
    but in the report its showing ERROR only after the amount. plz tell me exactly with what field i need to map???
    regards
    vadlamudi

  • About query Operator in find page??

    hi all~
    I hava a trouble about query operator.
    for example:
    In find page , there are some attribute for query.
    attribute BRAND for query the vender's name,
    Assume database has the follow data:
      BRAND
    =================
    1.IBM
    2.RedIBM
    3.BLUEIBMCO
    Case 1:When i input IBM in BRAND attribute and press Find,the result is :IBM
    Case 2:When i input %IBM in BRAND attribute and press Find,the result is : RedIBM,BLUEIBMCO
    How could I get above two result just input IBM??
    I want to serch the value of BRAND that contain IBM whether it location at the frond or middle.

    Spray Lin,
    I'm afraid that this time I do not quite understand what you are after.
    When I understand you correctly, you are saying that the current behavior is not what I think it should be, for example IBM results in IBM and IBMblue. That is strange indeed.
    Furthermore is it that when you try to find on IBM it should find everything with IBM in it? Said in other words, entering IBM should have the same result as entering %IBM%?
    If that is the case, you can achieve that by adding an extra property to the find form bean: "wildcardUsage". Setting this to "surround" will result in a "%" being put in front and at the end of the value you enter.
    You can look this up in the JHeadstart Developers Guide in the section Model-Aware Form Beans.
    Jan Kettenis,
    JHeadstart Team

  • Issue In query output

    Hello Gurus,
    I am having an issue with query output.Please find below the details of it
    Unsold claims: Total---> 200
    Dispatch: Total--->118,086
    Unsold claims/dispatch--->0.001694
    This should be the output but its coming --.0033120 because itu2019s dividing with max value in dispatch which is 60,386.
    Reason: The aggregation property of Dispatch is max value. I am not supposed to do any changes in Modeling. So can we do any thing at reporting level to get the desired output?
    Desired output---->0.001694
    Output coming---->.0033120
    Please help me in getting the desired output at query level.
    Regards,

    solved with the help of nested exception aggregation

  • Change layout of Adhoc query output list for Custom infotype

    Hi All,
    The fields in the Infoset query output on a custom infotype are aligned with the fields u2018payment typeu2019 and u2018amountu2019 appearing repeatedly(in columns) as declared in the Infotype and the output will be a long horizontal list.
    Instead, the requirement is that the output list should show vertically so that If I choose u2018Payment Typeu2019 and u2018Amountu2019 as output fields, it will show a long vertical list as in the case of a standard infotype (IT0008).
    Also, this way enables user to use Payment Type as a selection criteria so as to just pulling the needed payment type. When we use IT0008 in the infoset it works fine but in custom IT it does not work.
    Any pointers/suggestions on how we can achieve this would be helpful.

    Hi yu liang,
                     You can find vendor list having Vendor No. & without showing total liability for every vendor.
    after executing the report,
    1.You need to select "change layout (ctrl+F8)",
    a small window comes, it has two part -> column content & hidden fields.
    then u select "Vendor" from hidden field & move it to column content.
    2. at column content there is a column named "Total". u need to remove check for your column name "amount".
    now select "copy" button or enter. u will find the req. report.
    u can save it also by ur name.
    hope its helpful to u.......
    plz, reward points as a way of thanks if helpful...

  • To download the query output to falt file

    Hi all,
    i have a query which i know will give more than 65k records as the output for a selection.
    i cannot run this query in excel due to its limitation.
    if i run on web i cannot download this as downloading is happening to excel file only.
    The customer ideally wants to download the query result to a text file(csv,tab-delimited etc) which inturn it will upload to MS-Access.
    How do i achieve this?
    SAP has given response use try using these options:
    1.open interfaces to receive the output of a query via the MDX language.
    2.open hub tool as it is designed for big amounts of data.(i suppose this is not possible as i want to download query output not the data target contents)
    how do i achieve my scenario with option 1?
    Are there any alternatives??
    Any useful help will be rewarded.
    Regards,
    Dhanya.

    hi vivek,
    thnks for the useful reply.
    i have some problem with my ID,hence loggin in through my coleague's ID.
    i will assign u points as i get logged in.
    I did as u said by downloading it to unconverted format.
    the file got download to a text file.where the output has
    1.header rows(10 lines almost)
    2.the values r coming in single quotes e,g:
    '144000023073      'TAAS SETTLEMENT CONV 738 '19333000   '30.09.2006          '0.000
    how can i remove all this?
    Regards,
    Dhanya
    I

  • How to get the Query output to Excel

    Hi ,
    Can you tell me how to get the Query output to excel with out using any third party tool?
    Can you tell me how to write the code in Webservice and call it..
    Please explain it Elaboartly..
    Thanks in Advance!!!
    Mini

    whats your source system?
    you can use Live office, or query as a webservice if you are getting data from universe
    if you're getting data from SAP BI query and you have a java stack on your netweaver then you can get the data directly using sap bi connector in xcelsius.
    good luck

Maybe you are looking for

  • IWeb won't open and other related problems ....

    I saw other posts regarding this but not sure if there is a fix that works. I worked in iWeb all day yesterday. This morning, I cannot open iWeb 08. When I try, it says "iweb can't open "xxxx.html" file" (this is a file I created yesterday) So I sear

  • Booting safe mode hangs during fsck_hfs rMBP + 10.8.0

    When trying to boot in safe mode (holding down shift while power on) to troubleshoot issues with the upgrade to 10.8.1 the boot process hangs indefinitely. When switching on verbose and safe mode (nvram boot-args="-x -v") I see that it proceeds until

  • Best size of procedure cache size?

    here is my dbcc memusage output: DBCC execution completed. If DBCC printed error messages, contact a user with System Administrator (SA) role. Memory Usage:                                    Meg.           2K Blks                Bytes       Configur

  • Getting error after trying to download digital copy of a movie

    I tried several times trying to download a digital copy of percy jackson & the olympians and it give error -5000 and says I don't have enough access privileges to do this.

  • Excise group assignment

    Dear Freinds where do i assign excise group as while the user is trying to do GR he is unable to See the excise Invoice view as there is no assignment of excise invioce group 51 to the plant Pls help to solve the problem thanks and regards John