Formatting displayed output

Hi: how do I format the output so that it shows me the complete value for the EVENT_ID field
===========
SQL> select /*+ FIRST_ROWS */ EVENT_ID from EVENT_DATA where AGENT_ID IN (160,212,264);
EVENT_ID
4.9561E+18
4.9561E+18
================
TIA
Ravi

You can also change numwidth in sql*plus
SQL> select 12345678901234567890 from dual;
12345678901234567890
          1.2346E+19
SQL> set numwidth 20
SQL> /
12345678901234567890
12345678901234567890

Similar Messages

  • How to display output only sort format in alv

    Hi Experts,
    I have one problem in alv output display. I'm developing alv report for orders raised during the period.I want to display each order wise value(netwr) and order quatity (kwmeng) . i set 8 radio buttons one radio btn click then i want output ex.in grid display click on sort then each order wise calculate the value and quantity . that particular data to display when click on radio button.
    ex:click on sort in grid display.
    (branch) (order no)     (quantity)   (value)                        (BSTNK)
    AMUM     0000003354     2             10                                    3,271
    AMUM     0000003354     1              10                                    6,542
                                                       (above qty sum 2+1=3)  
    (SUM) =   AMUM       0000003354            3                       20            9,813
    HIP2         0000003362     2           5     17,810
    HIP2             0000003362     1          5     23,075
    (sum) = HIP2          0000003362                 10           40,885
    i display output in alv griddisplay.client asking one rb put in selection screen i want output like above only sum col.
    when i click one radio button output is come like (sum) above.
    Please help me.
    Thanks & Regards,
    Balakrishna Gajula

    hi you need to use sortinfo for your requirement.
    ie see the below code.
    "declare sortinfo at data declaration
    data:   wa_sort     type slis_sortinfo_alv,      "''' add this
                layout      type slis_layout_alv.          "add this
    ""make the below changes in your fieldcat
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'Td - Rvdt'.
      wa_fieldcat-fieldname = 'QUANTITY'.
      wa_fieldcat-do_sum    = 'X'.          """"""add this to your  *QUANTITY field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
      wa_fieldcat-tabname   = 'FINAL'.
      wa_fieldcat-seltext_m = 'temp''.
      wa_fieldcat-fieldname = 'VALUE'.
      wa_fieldcat-do_sum    = 'X'.             """"""add this to your  *VALUE field*
      append wa_fieldcat to it_fieldcat.
      clear wa_fieldcat.
    """"" you need to add this after workarea of fieldcat
      wa_sort-fieldname =  'BRANCH'.  " Here Branch indicates the fieldname
      wa_sort-subtot    = 'X'.
      append wa_sort to it_sort.
      clear wa_sort.
      wa_sort-fieldname = 'ORDERNO'.
      append wa_sort to it_sort.
      clear wa_sort.
    " in your alv fm add sortinfo
      call function 'REUSE_ALV_GRID_DISPLAY'
        exporting
          i_callback_program = sy-cprog
          is_layout          = layout
          it_fieldcat        = it_fieldcat
          it_sort            = it_sort                   """""""""add this
        tables
          t_outtab           = final                   " your internal table name
        exceptions
          program_error      = 1
          others             = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    This solves your purpose.
    Regards,
    koolspy.

  • To Display Output in Grid ALV with change of some field display total with

    Hi Masters,
    I m working on ALV in which  i have to display output with the following format.
    Header
    "Some String"                                                             date/time                                                                               
    User:XYZ01       page 1 
    Line
    1st field    2nd    3rd     4th       5th   6th    7th   8th   9th  10th field
    x               y       z        A        B     C       D     E      F       G
    BLANK..............................................................................                            
                          "total 3rd+4TH"           P        Q     R      S        T       
    same thing for every change of 4th field .
    So the problem is with inserting the line with string "Total of 3rd+4th" in the output .
    Can Anyone help me out?
    Thanks ,
    Varlani Amit

    Hi,
    Use control-break statement ON-CHANGE for the 4th field, and do the changes.
    regards,
    sri

  • How to Download displayed output to Excel Using Bsp Application

    Hi Experts,
    please give me some idea because I am New In BSP.
    How to Download displayed output to Excel Using Bsp Application.
    If any sample code please do send me.
    In my condition I am getting data in  2-3 table view formats on one page and i want download that in Excel.
    please help me.
    Regards & Thanks,
    Yogesh

    Hi,
    This is more a question for the BSP forum.
    Anyway, as such it's realy easy since you can use HTML in order to import to Excel. All you need to do is add
    runtime->server->response->set_header_field( name = 'Contnet-Type'
    value = 'application/vnd.ms-excel' ).
    runtime->server->response->delete_header_field( name = 'Cache-Control' ).
    runtime->server->response->delete_header_field( name = 'Expires' ).
    runtime->server->response->delete_header_field( name = 'Pragma' ).
    Also check threads like
    Download BSP data into Excel
    export bsp-table to excel
    Export BSP Table to Excel
    Eddy
    PS. Reward useful answers and earn points yourself

  • Formatted HTML output with Spry regions - is it possible?

    I have recently begun using the XML export extension in
    conjunction with an Access database to output dynamic data into a
    page with a Spry master/detail setup. So far, my simple example is
    going great, but I've run into a snag that I need some help with.
    To explain what I'm doing - it's a simple article page with
    the list of articles on the left with the title and date and the
    article title and full contents on the right hand side. So far it's
    all working very well, updating in real time when I click an
    article title on the left. The problem is the output with this one
    field which stores not only text, but also HTML formatting that is
    generated by a wysiwyg editor used on the article creation side of
    this little app. This HTML formatted content is the article body
    and is stored in a field named the same - "body". With traditional
    ASP, the HTML formatting displays as expected and all is well, but
    with Spry, it doesn't output formatted HTML, but instead shows the
    content and HTML code together as text. How can I get this one
    field ("body") to be output so all the HTML formatting is shown?
    This is my simple page example. Click through and you'll see
    what I mean.
    http://www.shoestodyefor.com/ajax.asp
    Here's the section of code in question regarding the output
    on that right hand panel where the body is displayed for each
    article:
    <div spry:detailregion="ds1">
    {title}<br />
    {entryDate}<br />
    <br />
    {body}
    /div>
    Is it possible to have that {body} section shown so the
    dynamically created HTML code from the wysiwyg editor is displayed
    correctly?

    Steve Skinner wrote:
    > Is it possible to have that {body} section shown so the
    dynamically created
    > HTML code from the wysiwyg editor is displayed
    correctly?
    The version of Spry that ships with Dreamweaver CS3 (Spry
    1.4) doesn't
    support the type of output created by the XML Export
    extension.
    This issue has been corrected in Spry 1.5, but no plans have
    been made
    public for integrating Spry 1.5 into Dreamweaver CS3. You
    would need to
    download Spry 1.5 from
    http://labs.adobe.com/technologies/spry/.
    Details
    of how to hand-code the fix for output from XML Export are
    here:
    http://labs.adobe.com/technologies/spry/samples/data_region/HTMLFragsInXMLSample.html
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Rows to columns/Transpose the records Query and Display output

    hi ,
    can anyone help me query this and transpose it to this format?
    i am still a beginner in sql.
    thanks for help!
    Rows to columns/Transpose the records Query and Display output
    id     startdate     endate                    
    1111     1/2/2001     11/3/2001                    
    1111     2/5/2002     4/3/2002                    
    1111     2/6/2000     2/5/2001                    
    3333     5/2/2003     11/3/2003                    
    3333     6/2/2003     12/3/2003                    
    3333     2/6/2005     2/5/2005                    
    desired output     
    id     startdate1     endate1     startdate2     endate2     startdate3     endate3
    1111     1/2/2001     11/3/2001     2/5/2002     4/3/2002     2/6/2000     2/5/2001
    3333     5/2/2003     11/3/2003     6/2/2003     12/3/2003     2/6/2005     2/5/2005

    Have you only 3 dates for each id ?
    So, try :
    SQL> l
      1  with tbl as
      2  (select 1111 as id, to_date('01/02/2001','DD/MM/YYYY') startdate, to_date('11/03/2001','DD/MM/YYYY') enddate from dual union all
      3  select 1111 as id, to_date('02/05/2002','DD/MM/YYYY') startdate, to_date('04/03/2002','DD/MM/YYYY') enddate from dual union all
      4  select 1111 as id, to_date('02/06/2000','DD/MM/YYYY') startdate, to_date('02/05/2001','DD/MM/YYYY') enddate from dual union all
      5  select 3333 as id, to_date('05/02/2003','DD/MM/YYYY') startdate, to_date('11/03/2003','DD/MM/YYYY') enddate from dual union all
      6  select 3333 as id, to_date('06/02/2003','DD/MM/YYYY') startdate, to_date('12/03/2003','DD/MM/YYYY') enddate from dual union all
      7  select 3333 as id, to_date('02/06/2005','DD/MM/YYYY') startdate, to_date('02/05/2005','DD/MM/YYYY') enddate from dual )
      8  select id, max(decode(dr,1,startdate)) start1,
      9             max(decode(dr,1,enddate)) end1,
    10             max(decode(dr,2,startdate)) start2,
    11             max(decode(dr,2,enddate)) end2,
    12             max(decode(dr,3,startdate)) start3,
    13             max(decode(dr,3,enddate)) end3
    14  from (select id, startdate,enddate, dense_rank() over (partition by id order by startdate) dr from tbl)
    15* group by id
    SQL> /
                                                    ID START1   END1     START2   END2     START3   END3
                                                  1111 02/06/00 02/05/01 01/02/01 11/03/01 02/05/02 04/03/02
                                                  3333 05/02/03 11/03/03 06/02/03 12/03/03 02/06/05 02/05/05
    SQL> HTH,
    Nicolas.

  • WD Compoenent - Non -Interactive form- Not displaying output

    Hi,
    I am practicing this adobe form session [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a3e2f018-0b01-0010-c7a8-89deb6e63e97] from SDN.Unfortunately this session was not complete so I am trying to complete it.
    In brief : this WD component accepts CARRID and displays output in PDF format.
    I was able to capture selection and get respective entries for that selection in my internal table but my display is blank.Here is what I coded in Search Button..
    method ONACTIONSEARCH .
        data: isflight type table of sflight.
        DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
        DATA lo_el_adobe_data TYPE REF TO if_wd_context_element.
        DATA lo_nd_data_selections TYPE REF TO if_wd_context_node.
        DATA lo_el_data_selections TYPE REF TO if_wd_context_element.
        DATA ls_data_selections TYPE wd_this->element_data_selections.
    * navigate from <CONTEXT> to <DATA_SELECTIONS> via lead selection
        lo_nd_data_selections = wd_context->get_child_node( name = wd_this->wdctx_data_selections ).
    * get element via lead selection
        lo_el_data_selections = lo_nd_data_selections->get_element(  ).
    * get all declared attributes
        lo_el_data_selections->get_static_attributes(
          IMPORTING
            static_attributes = ls_data_selections ).
    * Retrieve that data from the database. Normally it is suggested to
    * encapsulate the data retrieval in a separate class.
    * For simplicity, the SELECT statement has been implemented here.
        clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
        lo_nd_adobe_data = wd_context->get_child_node( name = `ADOBE_DATA` ).
        lo_nd_adobe_data->bind_elements( isflight ).
    endmethod.
    endclass.
    Anything wrong with my code..I am getting my data in  isflight internal table.
    FYI..I am throwing output as text field in adobe form.
    rgds
    vara
    Edited by: Vara K on Jan 19, 2009 9:51 PM
    Edited by: Vara K on Jan 19, 2009 10:02 PM

    Hi Vara,
    Try this:
    method ONACTIONSEARCH .
        data: isflight type table of sflight.
        DATA lo_nd_adobe_data TYPE REF TO if_wd_context_node.
        DATA lo_el_adobe_data TYPE REF TO if_wd_context_element.
        DATA lo_nd_data_selections TYPE REF TO if_wd_context_node.
        DATA lo_el_data_selections TYPE REF TO if_wd_context_element.
        DATA ls_data_selections TYPE wd_this->element_data_selections.
    * navigate from <CONTEXT> to <DATA_SELECTIONS> via lead selection
        lo_nd_data_selections = wd_context->get_child_node( name = wd_this->wdctx_data_selections ).
    * get element via lead selection
        lo_el_data_selections = lo_nd_data_selections->get_element(  ).
    * get all declared attributes
        lo_el_data_selections->get_static_attributes(
          IMPORTING
            static_attributes = ls_data_selections ).
    * Retrieve that data from the database. Normally it is suggested to
    * encapsulate the data retrieval in a separate class.
    * For simplicity, the SELECT statement has been implemented here.
    *    clear isflight. refresh isflight.
        select * into corresponding fields of table isflight from sflight
        where carrid =  ls_data_selections-carrid.
    * navigate from <CONTEXT> to <ADOBE_DATA> via lead selection
        lo_nd_adobe_data = wd_context->get_child_node( name = `ADOBE_DATA` ).
        lo_nd_adobe_data->bind_elements( isflight ).
    endmethod.
    I hope it helps.
    Regards
    Arjun

  • Formatting the output (currency with decimals)

    hi all,
          i want to format the output of the currency field. Right now it displays the exact value like say 23 or 43.5 etc. But my requirement is i need it to display in a standard format as 23.00 , 43.50 , 565.00 etc. i,e if there is no decimals then it should be filled with zero's.
    I have gone through some of the threads which speaks of formatting the output if it is a value node. But here i have directly bounded the table to a model node.
    Domian level datatype of the field is Currency in R/3. After model import in dictionary it is showing as decimal.
    How can i achieve this?I Appreciate if someone can help me on this.
    Regards,
    G Nid

    hi,
    Go thru this link it might helps you.
    column heading -refer to the webdynpro tutorial 34
    Change the currency data type char and specify the length.
    Thanks,
    Lohi.

  • Sqlplus set statement:format the output without specifying every col length

    Hi ppl,
    i am writing below query inside a shell script. Is there any way to format the output of sqlplus without providing the name of all the columns that we are going to output. for example, in below code i have specified the column width of the columns i want to output. but if the number of columns is large (or when we want to do a select * from...) then it becomes tedious to write all of them. Is there any way i can define display length all the columns to be of same size.. or at least all the number columns of one size, char columns of one size etc...
    sqlplus -sa/passwd@db_name << EOF
    SET ECHO ON;
    SET HEADING ON;
    COLUMN USERNAME FORMAT A20;
    COLUMN USER_ID FORMAT A20;
    COLUMN PASSWORD FORMAT A20;
    spool filename.txt
    some qry... ;
    exit
    EOFThanks
    Edited by: KnockTurnAll on 25 Oct, 2010 10:41 PM
    Edited by: KnockTurnAll on 26-Oct-2010 04:25

    My SQL*Plus is a bit rusty, but I don't think you can for characters. You can set NUMWIDTH for a default size for numeric columns.
    You could write a small bit of SQL to generate the required column definitions. You could even hit ALL_TAB_COLUMNS to generate a generic 'set every column width' file and run it as a separate sql script in your main script. Not sure if there is an upper limit on the number of Columns you can define.
    Back in the day when we did everything with SQL*Plus scripts, we had a standard columns file that we called in all our scripts, just for this purpose.
    Carl

  • Decimal Notation while displaying outputs

    Hi All,
    There are two typs of decimal notations first is 1,000.00 and other is 1.000,00.These are maintained in user profile settings. Are these specific to countries also?
    If I want to display amount in the output with correct decimal notation, decimal notaion at which level should be considered User level or Country level?
    please reply.
    Thanks
    Saurabh

    Hi,
    If we specify the country key  the system do not consider the settings from the user master record and searches table T005X for the country key. If the country key exists, the system sets sy-subrc equal to 0 and formats the output of all  the 'WRITE' statements according to the settings defined in T005X. If the country key you specified does not exist, the system sets sy-subrc equal  to 4 and formats for all 'WRITE' statements with the decimal characters as period '.'.
    thinking on this point of view its better to specify the country key......

  • Downloading displayed output

    we are having a zreport.
    i am not having problem in the program.
    everything is fine.once the output is
    generated we will download the displayed output ( ie first
    the user will see the output in the screen then if he want
    he will download with the help of menu option given by sap)
    into spreadsheet or html format or
    richtext format etc , by clicking the option list->save list in file->spreedshet.
    this we can see in foreground.
    but once we execute the report in background how can we download the displayed report output into
    excel.

    Hi,
    When ever we run a report in back ground the output will be stored in spool. So download data from spool.
    Check transactions SP01/SP02 to get the spools or system variable sy-spono.
    Open ur spool number in SP01, Click on the icon(Page like thing), Here u will see ur output. Now from the standard SAP functionality as we have in foreground can be used to download.
    Thanks,
    Vinod.
    Edited by: Vinod Reddy Vemuru on Jul 10, 2008 3:06 PM

  • Plz help me, no display output during boot up of 715 workstation

    now i have a HP 715 model workstation,today, conneted hp monitor..but can't display output during system boot up so i tried  solve this problem,1)changed battery2)removed HDD after reboot system and press ESC key    => now can't use Keyboard..not working key board3)Press Tap key.. Just i think, this problem is system configulation problem. not monitor problem..so i found internet website..but now i can not change configulation who know this problem.plz help me  

    one question in html submit the reslut stored jdbc that value shows barchartAll your base are belong to us!
    You know, while I understand that English isn't your first language (neither is it mine) and there's no need to be perfect: if you can't write an understandable post yourself, consider asking someone to do it for you.

  • Turn off external display output?

    I've bought a nice big LCD TV mainly for consoles. Because I have it next to my iMac i've also connected that to the TV using a mini-dvi adapter and a dvi-hdmi cable.
    It works great but I only want to use it for playing downloaded video and the like on the big tv.
    When I'm not using it I want my iMac to free up the resources it must be using to achieve screen spanning but I cannot figure out a way to tell the iMac to disable external display output.
    I've tried display mirroring figuring that it won't be eating up video RAM, but it causes page tearing on my mac when dragging windows around for example.
    Even when the TV is unplugged from the mains the mac seems to be outputting to the dvi out, the only way to stop it is the yank the mini-dvi connecter from the back.
    Are there any hacks or utilities that can manually turn dvi support on and off?

    Hello Mark
    I'm using a 27" flat screen TV, mini DVI and 12' S-Video cable.
    Mostly I watch DVD movies on that Display while working at the iMac's 17" it's also great for iPhoto Slideshows and PowerPoint.
    Not to worry the TV supports it's own display and all you are doing is sending a signal to it's video card. Just turn it off or change the channel.
    I tend to stay away from mirroring for the same reasons, but also because the TV's across the room.
    Again not to worry the TV supports it's own display and all you are doing is sending a signal to it's video card. Just leave it connected up to prevent damage to DVI port, Adapter and cable. "yank not"
    Just be sure to gather up all your windows back to the iMac Display befor shutting off or changing the channel.
    Dennis
    17" iMac Intel Core Duo 1.5GB Ram   Mac OS X (10.4.9)   Maxtor 300GB FireWire Creative Inspire 2.1 2G Nano

  • How to format sqlplus output

    In previous OTN Forum format we used {code} to format sqlplus output , how to do in this version ?

    Click on "Use Advanced Editor".
    Highlight your code.
    Click on the symbol >>
    Select Syntax Highlighting
    Select SQL...output looks like below:
    select sysdate from dual;

  • Display Output similar to SPRO (IMG)

    Hi Experts,
    Can we develop a display output similar to the view which we have in SPRO (IMG).
    Any Function Module or Sample Program.
    Regards,
    Abhijit G. Borkar

    Thanx David,
    Can u help tell me the difference between the Transaction Code: SHI3  & SE43 & SE43N.
    Since they look similar to what you have suggested.
    Regards,
    Abhijit G. Borkar

Maybe you are looking for

  • PO has no items

    While creating a GR Iam getting an error msg PO has no line items. I checked with confirmations tab. Everything is fine.But invoice has been issued by the vendor .There is no GR.Do i need to realease the PO .If so please let me know how to proceed .

  • How my Ubuntu/Firefox 3.6.16 turned into Microsoft I.E. with a Virus Warning.

    When I was 'Surfing' the Internet, looking for some "Train" Photo Wallpapers, when I clicked on a Photo to view, my Firefox 3.6.16 browser turned into a "Fake" I.E. Browser Page with a Windows "Defender" warning box in the center stating that my syst

  • Where is radius/tacacs communication taking place

    hello, if iam logging in to a domain, and my domain is configured for an authentication to an ACS, where is the radius/tacacs communication taking place? - is it from client to ACS - or is it from domain to ACS

  • IOS 8 update time 20 hours?

    II'm trying to download ios8 on my old iphone 5 as part of a restore.  It says it will take 20 hours!  I realize there is a lot of traffic, but 20 hours?  It was this way at 3am EST and the same now at 9 am.  Any ideas other than wait it out?  I did

  • IBook G3 500 MHz; screen has gone all catawampus

    My immediate thought was a fouled up logic board, but the symptoms don't seem an exact fit. The silly thing was working just fine up until this evening, when I suddenly found myself only able to see what was in the top 1/4 of the screen. The bottom 3