Alternative UI Output formats for BAPI table

Hi Experts,
Can I display the output of a BAPI table in any other format apart from a table.
Regards
Abdullah

Abdullah,
In web dynpro you cannot have tables with scrollbar. A workaround for that may be a use of ScrollContainer UI element with fixed height and display all table rows via setting visibleRowsCount=-1.but problem here is , table headers will be scrolled as well. So it is better not to have them like that.
I would suggest take use of existing table UI element and dont alter its functionality.
Regarding incorporating the application using web dynpro I guess that you must be knowing(not sure but think that you need to get rid of COM DCOM).
hope it helps
regards,

Similar Messages

  • How to get multiple output formats for each execution of the report?

    Hi,
    Is it possible to get multiple output formats for each execution of the report? If so can you provide some details?
    Thanks

    In Reports 6i, Reports Distribution was introduced. This allows you to run the report once and output to a number of destinations with a different format. It also allows you to distribute individual sections within a report to different destinations in different formats.
    The Destinations for a Report to distribute to are defined either in a distribution file and passed on the command line or inside of the report definition.
    To add a destination to the the report definition, bring up the property palette against the report object and then select the "Distribution" property under the "Report" node. This will bring up a dialog that allows you to create a distribution list. You can then test this list by selecting "file->distribute" from the menu.
    To run a report that is to be distributed through rwrun60, you need to add "distribute=yes" to the command line. It will pick up the destinations from the report definition. If you add "destination=<filename>" then it will pick up the destinations from the specified "<filename>" and ignore the destinations in the report definition.
    Note: if "distribute=yes" is specified on the command line then the destype/desname/desformat parameters will be used to format the report (ie: which printer/display to use during formatting for sizing objects) but will be ignored when the report is sent to the destinations.

  • 57F4 Print Output format for Subcontracting

    1. How to assign Print out put format for goods issue made against a subcontracting vendor
    2. How to assign print output format for 57F4 Subcontracting challan
    3. What are CIN settings for subcontracting po.

    Hi,
    Maintain the Outout type J1IF for the excise group - SPRO - IMG - Logisitics general - Tax on goods & movements - India - Business transactions - Subcontracting - Maintai subcontracting attributes
    check following link
    [http://wiki.sdn.sap.com/wiki/display/ERPLO/SubcontractingChallan57F4_J1IF01_J1IF11]
    Regards
    Kailas Ugale

  • What is the possible output format for a BAPI  ?

    Can anybody tell me what is the possible output format of a BAPI.
    What happens when a BAPI excecutes ?
    thanks

    Hi,
    All the output message/feedback about a trasaction are stored in the RETURN parameter table .
    You can read that RETURN internal table using "format message" or "Read_Text" Fucntion modules.
    Thanks
    Dany

  • Help on ALV GRID display outputting format for 2 internal tables

    Hi,
        I have requirement in ALV GRID where I need to display the data from 2 internal tables. The first internal table has the content of Delivery due list data and second the internal table has the corresponding stock transfer data of the Delivery Due list. I have a checbox on my selection screen, when unchecked it should output the 1st internal table data, i.e for Delivery due list. When it is checked then it should output 1st Internal table data + 2nd internal table data of stock transfer. For example, 1 document delivery due list data and 2nd line for that document should show the stock transfer data. You can also check the transaction code VL10E for that will show a delivery due list...and for stock tranfer,you need to check with Purchase order in in the USer Role tabstrip. Pls suggest.
    Regards,
    Mira

    Hi,
    U can try out this code
    REPORT zzz_test NO STANDARD PAGE HEADING
                           MESSAGE-ID zz.
    The Data Declarations
    INCLUDE zzm_test_alv_data.
    The Selection Screen Definition
    INCLUDE zzm_test_alv_selscrn.
    The definition and implementation of the event reciever class
    INCLUDE zzm_test_alv_class.
    START-OF-SELECTION
    START-OF-SELECTION.
      PERFORM f1000_load_itabs.
    END-OF-SELECTION
    END-OF-SELECTION.
      IF NOT cb_disp IS INITIAL.
        CALL SCREEN 9001.
      ENDIF.
    Include for getting data
      INCLUDE zzm_test_alv_forms.
    Include for PAI and PBO of screen
      INCLUDE zzm_test_alv_screen.
      INCLUDE ZZM_TEST_ALV_DATA                                          *
    This include has all the data declaration defined
    Author............: Judith Jessie Selvi
    Creation Date.....: 28/03/2005
    Table Declarations:
    TABLES: mara,
            makt.
    Internal Tables:
    The following structure type must be defined in the data dictionary
    DATA:  i_fieldcat  TYPE lvc_t_fcat,
           i_fieldcat1 TYPE lvc_t_fcat,
           i_output1   TYPE STANDARD TABLE OF mara,
           i_output2   TYPE STANDARD TABLE OF makt,
    Work Areas:
           w_output1   TYPE STANDARD TABLE OF mara,
           w_output2   TYPE STANDARD TABLE OF makt.
    Variable:
    DATA: lv_repid    LIKE sy-repid.
    lv_repid = sy-repid.
      INCLUDE ZZM_TEST_ALV_SELSCRN                                       *
    Author............: Judith Jessie Selvi
    Creation Date.....: 28/03/2005
    SELECTION-SCREEN BEGIN OF BLOCK b_main WITH FRAME TITLE text-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS: cb_disp AS CHECKBOX.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN END OF BLOCK b_main.
      INCLUDE ZZM_TEST_ALV_CLASS                                         *
    This include has all the data declaration defined for ALV
    Author............: Judith Jessie Selvi
    Creation Date.....: 28/03/2005
    INCLUDE <icon>.
    Predefine a local class for event handling to allow the
    declaration of a reference variable before the class is defined.
    DATA : o_alvgrid1 TYPE REF TO cl_gui_alv_grid ,
           o_alvgrid2 TYPE REF TO cl_gui_alv_grid ,
           cont_for_cognos1   TYPE scrfname VALUE 'BCALC_GRID_01_9100',
           cont_for_cognos2   TYPE scrfname VALUE 'BCALC_GRID_01_9200',
           custom_container1 TYPE REF TO cl_gui_custom_container,
           custom_container2 TYPE REF TO cl_gui_custom_container,
          Work Area
           w_layout TYPE lvc_s_layo ,
           w_variant TYPE disvariant.
          Constants
    CONSTANTS : c_lay(1) TYPE c VALUE 'A' .                  " All Layouts
    CONSTANTS: BEGIN OF c_main_tab,
               tab1 LIKE sy-ucomm VALUE 'MAIN_TAB_FC1',   "
               tab2 LIKE sy-ucomm VALUE 'MAIN_TAB_FC2',   "
               END OF c_main_tab.
      INCLUDE ZZM_TEST_ALV_FORMS                                         *
    This Include has the various forms used in the program
    Author............: Judith Jessie Selvi
    Creation Date.....: 28/03/2005
    *&      Form  f9001_build_field_cat
          To Build Field Catalog
         -->P_I_FIELDCAT  text
         -->P_0021   text
    FORM f9001_build_field_cat TABLES   p_fieldcat STRUCTURE lvc_s_fcat
                          USING value(p_structure).
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
           EXPORTING
                i_structure_name       = p_structure
           CHANGING
                ct_fieldcat            = p_fieldcat[]
           EXCEPTIONS
                inconsistent_interface = 1
                program_error          = 2
                OTHERS                 = 3.
      IF sy-subrc <> 0.
        MESSAGE i005 WITH 'Error in ALV field catalogue creation'.
                                                                " text-e05.
        LEAVE LIST-PROCESSING.
      ENDIF.
    ENDFORM.                    " f9001_build_field_cat
    *&      Form  f9000_objects_create
          For creating Custom Containers
    -->  p1        text
    <--  p2        text
    FORM f9000_objects_create.
      CREATE OBJECT custom_container1
          EXPORTING
              container_name = cont_for_cognos1
          EXCEPTIONS
              cntl_error = 1
              cntl_system_error = 2
              create_error = 3
              lifetime_error = 4
              lifetime_dynpro_dynpro_link = 5.
      CREATE OBJECT custom_container2
          EXPORTING
              container_name = cont_for_cognos2
          EXCEPTIONS
              cntl_error = 1
              cntl_system_error = 2
              create_error = 3
              lifetime_error = 4
              lifetime_dynpro_dynpro_link = 5.
      IF sy-subrc NE 0.
    add your handling, for example
        CALL FUNCTION 'POPUP_TO_INFORM'
             EXPORTING
                  titel = lv_repid
                  txt2  = sy-subrc
                  txt1  = 'The control could not be created'(510).
      ENDIF.
      CREATE OBJECT o_alvgrid1
           EXPORTING i_parent = custom_container1.
      CREATE OBJECT o_alvgrid2
           EXPORTING i_parent = custom_container2.
    ENDFORM.                    " f9000_objects_create
    *&      Form  f9003_layout
          To define the layout
         -->P_SY_TITLE  text
         -->P_0030   text
         -->P_0031   text
         -->P_0032   text
    FORM f9003_layout USING  value(ptitle)
                             value(pzebra)
                             value(pmode)
                             value(pwidth).
      w_layout-grid_title  = ptitle.
      w_layout-zebra       = pzebra.
      w_layout-sel_mode    = pmode.
      w_layout-cwidth_opt  = pwidth.
      w_variant-report     = sy-repid.
    ENDFORM.                    " f9003_layout
    *&      Form  f9006_error_handle
         To handle event
         -->P_PTEXT  text
    FORM f9006_error_handle USING value(ptext).
      IF sy-subrc NE 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
             EXPORTING
                  titel = text-e03 " Error Note
                  txt2  = sy-subrc
                  txt1  = ptext.
      ENDIF.
    ENDFORM.                    " f9006_error_handle
          FORM EXIT_PROGRAM                                             *
    FORM exit_program.
      CALL METHOD custom_container1->free.
      CALL METHOD custom_container2->free.
      CALL METHOD cl_gui_cfw=>flush.
      IF sy-subrc NE 0.
        CALL FUNCTION 'POPUP_TO_INFORM'
             EXPORTING
                  titel = lv_repid
                  txt2  = sy-subrc
                  txt1  = 'Error in FLush'(500).
      ENDIF.
    ENDFORM.
    *&      Form  f1000_load_itabs
          Select from Database
    -->  p1        text
    <--  p2        text
    form f1000_load_itabs.
      SELECT * FROM mara
               INTO TABLE i_output1
               UP TO 50 rows.
      SELECT * FROM makt
               INTO TABLE i_output2
               UP TO 50 rows.
    endform.                    " f1000_load_itabs
      INCLUDE ZZM_TEST_ALV_SCREEN                                        *
    2/ Description / Include functions
    This include contains PBO and PAI events for the screen of report
    ZZZJJ_TEST_ALV
    3/ Responsibility
    Author............: Judith Jessie Selvi
    Creation Date.....: 28/03/2005
    DATA FOR TABSTRIP 'MAIN_TAB'
    CONTROLS:  main_tab TYPE TABSTRIP.
    DATA:      BEGIN OF i_main_tab,
                 subscreen   LIKE sy-dynnr,
                 prog        LIKE sy-repid VALUE
                                  'ZZZ_TEST',
                 pressed_tab LIKE sy-ucomm VALUE c_main_tab-tab1,
               END OF i_main_tab.
    *&      Module  STATUS_9001  OUTPUT
          text
    MODULE status_9001 OUTPUT.
    IF custom_container1 IS INITIAL.
      SET PF-STATUS 'ZSTATUS'.
      SET TITLEBAR 'ZTITLE'.
      Creating Object
        PERFORM f9000_objects_create.
      Building the field catalog
        PERFORM f9001_build_field_cat TABLES i_fieldcat
                                USING 'MARA'.
        PERFORM f9001_build_field_cat TABLES i_fieldcat1
                                USING 'MAKT'.
      Modifying the field catalog
       PERFORM f9002_modify_field_cat TABLES i_fieldcat.
      For Layout
        PERFORM f9003_layout USING sy-title 'X' 'B' 'X'.
    ENDIF.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  MAIN_TAB_ACTIVE_TAB_SET  OUTPUT
          Call method to display in the output grid
    MODULE main_tab_active_tab_set OUTPUT.
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
      To display report
         i_main_tab-subscreen = '9100'.
          CALL METHOD o_alvgrid1->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output1[]
             it_fieldcatalog               = i_fieldcat[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
        WHEN c_main_tab-tab2.
      To display report
          i_main_tab-subscreen = '9200'.
          CALL METHOD o_alvgrid2->set_table_for_first_display
          EXPORTING
             is_variant                    = w_variant
             i_save                        = c_lay
             is_layout                     = w_layout
          CHANGING
             it_outtab                     = i_output2[]
             it_fieldcatalog               = i_fieldcat1[]
          EXCEPTIONS
             invalid_parameter_combination = 1
             program_error                 = 2
             too_many_lines                = 3
             OTHERS                        = 4.
      IF sy-subrc <> 0.
        MESSAGE i005 WITH text-e06."Error in ALV report display
        LEAVE LIST-PROCESSING.
      ENDIF.
    WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 “MAIN_TAB_ACTIVE_TAB_SET OUTPUT
    *&      Module MAIN_TAB_ACTIVE_TAB_GET INPUT
          Check & Process the selected Tab
    MODULE main_tab_active_tab_get INPUT.
      CASE sy-ucomm.
        WHEN c_main_tab-tab1.
          i_main_tab-pressed_tab = c_main_tab-tab1.
        WHEN c_main_tab-tab2.
          i_main_tab-pressed_tab = c_main_tab-tab2.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 “MAIN_TAB_ACTIVE_TAB_GET INPUT
    *&      Module USER_COMMAND_9001 INPUT
          User Command
    MODULE user_command_9001 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          PERFORM exit_program.
          SET SCREEN '0'.
        WHEN 'EXIT' OR  'CANC'.
          PERFORM exit_program.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 “USER_COMMAND_9000 INPUT
    *&      Module MAIN_TAB_ACTIVE_TAB_SET INPUT
          Set sunscreen
    MODULE main_tab_active_tab_set INPUT.
      main_tab-activetab = i_main_tab-pressed_tab.
      CASE i_main_tab-pressed_tab.
        WHEN c_main_tab-tab1.
            i_main_tab-subscreen = '9100'.
        WHEN c_main_tab-tab2.
            i_main_tab-subscreen = '9200'.
        WHEN OTHERS.
         DO NOTHING
      ENDCASE.
    ENDMODULE.                 “MAIN_TAB_ACTIVE_TAB_SET INPUT
    Thanks & Regards,
    Judith.

  • Output Format for Currency

    Hi There,
    I have set defaults as '1,000.00' for currency output in the own data but in the output of report it is showing like '1.000,00'.
    PS: there is no formating statement in the program as well.
    Any advice friends, how can I make it in required format.
    Regards,
    Shabbar

    HI ali ,
    yeah u can do thi sin scripts ..
    take a look at this ..
    Country-Dependent Formatting: SET COUNTRY The formatting for certain field types depends on the country settings. These field types include, for example, date fields and number fields that include either a decimal point or the ‘thousands’ separator character. The formatting options defined in the user master record are usually the ones used here. To choose a formatting option other than the one specified in the user master record, use the SET COUNTRY control command. The country-dependent formatting options are stored in the T005X table. Syntax: /: SET COUNTRY country_key You can enter the country key either as a literal value enclosed in quotes or as a symbol.
    /: SET COUNTRY 'CAN' /: SET COUNTRY &country_key& Use a blank country name to revert to the setting found in the user master record: /: SET COUNTRY ' ' This SAPscript command actually calls the corresponding ABAP command internally. This guarantees the effect of the SAPscript command to be identical with that of the ABAP command
    regards,
    VIjay
    Message was edited by:
            vijay k

  • Output Format for Amount in SAP Script PO

    Hi,
    In my Standard SAP Script PO Form 'MEDRUCK', all amount values are getting printed in the form 1.234.567,89 but I want them to be in the Form 1,234,567.89 .
    For doing this I have gone in T-Code SU3 and set the default decimal notation as
    X 1,234,567.89 . 
    I have also tried by giving the command
    /: SET COUNTRY 'IN'
    But still the amounts in the ouput format is coming in the same way 1.234.567,89 .
    If anyone has faced similar situation, plz tell how to change the output format of amount in SAP Script.
    Thanks and Regards,
    Nitin Gupta

    I have tried using SU3 but it's not worknig. Is their any other method also of which maybe I am not aware of?

  • Best Output Format for Slide Show?

    If I were to purchase Final Cut Studio...
    What would be the best output format to use for a simple slideshow intended for Web deployment? In other words, which encoding method will provide the best compromise between file size and video quality? The slideshow is a series of simple static images with some fade transitions and Ken Burns effects. There is also a soundtrack for background music.
    A 1.5 minute slideshow with soundtrack created using Adobe Flash is less than 2 MB in size (which is great for Web deployment), and it looks very good. If that same slideshow is exported from Flash to a QuickTime-compatible format, it balloons to over 20 MB!
    So what I'd really like to know is, if something like Final Cut Pro were used to create that same slideshow, would I be able to produce a web-ready video that rivals the Flash version in size?
    Thanks for any help and insight you can provide,
    -Steve

    Studio X wrote:
    Quicktime is a file wrapper that can contain anyone of a number of codecs.
    Yes, I understand that.
    H.264 is the prefered version for web/apple TV delivery.
    A 90s slideshow that was less than 2 MB as a SWF file became a 27 MB behemoth when exported using the H.264 codec. The exported file had the same frame rate and resolution (pixel dimensions) as the original Flash file. The audio was optimized as well. Why the dramatic difference? (I think I know why, but perhaps I'm missing something.)
    That being said, Final Cut Pro is a video editing program and is a waste of money if all you are doing is simple slideshows.
    Slideshows are not all I will be doing, but I will be doing them occasionally, and it's hard to justify purchasing Flash just to create slideshows that are optimized for the Web.
    Have you tried iMovie then converting the output to either Flash or (if you have Quicktime Pro) converting to h.264 QT?
    My tests indicate that anything but Flash format results in a monstrous file for a simple slideshow. I have a notion as to why this is, but I wanted to check to make sure that I'm not overlooking some way of creating smaller non-Flash files.
    The bottom line is that Final Cut Studio will be far more useful and versatile for what I need to do, and I would be much more proficient with that software; but if I can't output video files that rival those of Flash in terms of quality and file size, then I might have to get a copy of Flash after all.
    And yes, you can convert a QuickTime movie to flash, but it's just not the same in terms of file size as generating the same slideshow directly in Flash. I suspect this is because Flash is optimized for animation, whereas the QuickTime codecs are designed for video, and a simple slideshow is more of an animation than a video.
    So my real question is (and I suspect the answer is no), is it possible using Final Cut Studio to generate a simple slideshow which rivals the output from Flash in terms of file size for a given resolution?
    -Steve

  • SMTP - Output Formats for RAW Text

    Hi,
    I am trying to set the output format in transaction SCOT for RAW Text. I want to set the format to HTM. However, HTM does not exist in the dropdown menu. Does anyone know how I can get HTM as an option for RAW Text?
    Thanks
    /Elvez

    Hi Elvez,
    Check note 698124 SAPconnect: Customer-specific format conversion, let me know if it
    solved your request ?
    Ari

  • Changing output format for iTunes conversions

    WHen I convert my WMA files, iTunes converts them as quicktime files. When I play music through my laptop I prefer to us Windows Media Player though, not quicktime.
    Does anyone know if I can change the output format in iTunes to change them from WMA to MP3 instead of quicktime?
    thankyou

    When you import a wma file into iTunes, it makes a copy of the file converting it to either MP3 or AAC according to how you have set your preferences in Edit>>Preferences>>Advanced>>Importing.
    You want the drop down box labelled "Import Using".
    The actual program used to play the file depends on how you have your file associations set. You can change this by right clicking on a file and selecting "Open with" >>Choose Program. You select the program you want to use (assuming it knows how to play the file) and also ensure the "Always use selected program..." check box is ticked.
    The original wma file is left intact, so unless you delete it, it will be available to use in WMP. If you don't want to do that, and you want to use WMP as your player, you need to import into iTunes as MP3 rather than AAC.

  • Need output format for trigger  program

    Hello everyone ;
    https://forums.oracle.com/message/11078921#11078921
    Above link is reference . It's also my own thread related to   this discussion.
    SQL> desc user_login
    Name                                                              Null?    Type
    USERNAME                                                                VARCHAR2(30)
    ISDBA                                                                          VARCHAR2(20)
    LOGIN_DATE                                                              DATE
    LOGIN_TIME                                                               VARCHAR2(15)
    LOGOUT_TIME                                                          VARCHAR2(15)
    EXTERNAL_NAME                                                     VARCHAR2(30)
    AUTHENTICATION_TYPE                                          VARCHAR2(30)
    HOST                                                                          VARCHAR2(20)
    Program for tracing user logon/logoff  details
    SQL> create or replace  trigger  tri_logon
    AFTER LOGON ON DATABASE
    BEGIN
    INSERT  INTO  user_login (username, isdba, external_name,
    authentication_type, HOST,  login_date , login_time)
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER'),
    SYS_CONTEXT ('USERENV', 'ISDBA'),
      SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME'),
      SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE'),
      SYS_CONTEXT ('USERENV', 'host'),
      SYSDATE, TO_CHAR (SYSDATE, 'HH24:MI:SS') FROM DUAL;
       END;
    Trigger  created.
    SQL> create or replace trigger tri_audit1
    2 BEFORE LOGOFf on database
    3   BEGIN
    4 insert into user_login (username, logout_time)
    5 (select user, TO_CHAR(SYSDATE, 'HH24:MM:SS') from dual);
    6 end;
    6 /
    Trigger  created.
    I got following output . Here i cannot insert logout_time on logout_time column.
    logout_time is dispalyed seperately please see last two output values  (CST01 ,  02:06:16)   and  user_name also displayed twice.  (don't  need )
    USERNAME   ISDBA   LOGIN_DAT   LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME AUTHENTICATION_TYPE  HOST
    CST01           FALSE     21-JUN-13          02:06:11                                            oracle                            DATABASE                            linuxserver     CST01    02:06:16
    I want output following  below  format
    Expecting output  logout time  on  LOGOUT_TIME column  and   user_name  should be displayed once.
    USERNAME ISDBA LOGIN_DAT LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME  AUTHENTICATION_TYPE HOST
    CST01      FALSE       20-JUN-13       13:06:34                                            oracle                       DATABASE                   LINUXSERVER
    thanks in advance ..

    8f953842-815b-4d8c-833d-f2a3dd51e602 wrote:
    Hello everyone ;
    https://forums.oracle.com/message/11078921#11078921
    Above link is reference . It's also my own thread related to   this discussion.
    SQL> desc user_login
    Name                                                              Null?    Type
    USERNAME                                                                VARCHAR2(30)
    ISDBA                                                                          VARCHAR2(20)
    LOGIN_DATE                                                              DATE
    LOGIN_TIME                                                               VARCHAR2(15)
    LOGOUT_TIME                                                          VARCHAR2(15)
    EXTERNAL_NAME                                                     VARCHAR2(30)
    AUTHENTICATION_TYPE                                          VARCHAR2(30)
    HOST                                                                          VARCHAR2(20)
    In addition to the myriad of other issues pointed out in this and your other -- essentially duplicate -- thread, why do you have separate columns for login_date and login_time?  A DATE datatype (which you have correctly defined for LOGIN_DATE carries both date and time elements.  You only need one column -- LOGIN_TIME -- populated with SYSDATE when the user logs in.  And LOGOUT_TIME should also be a DATE, populated with SYSDATE.  This alone points to several design flaws.
    1) DATE and TIME are not seperate elements.  In this application, the concept of 'time' has no meaning apart from the date, and a DATE data type, by definition, stores both date and time.
    2) keeping either date OR time in a varchar is asking for trouble.  Comparisons and math simply do not work as you expect.
    3) You don't have a date for LOGOUT, but suppose the user logs on at 2330 on Tuesday, and logs out at 0030 on Wednesday..
    Properly, you should only have two columns for this .. LOGON_TIME, defined as a DATE, and LOGOUT_TIME, defined as a date.
    Or possibly separate rows, one for LOGON and one for LOGOUT, both with a sessid to join them.
    Or better, and as I mentioned earlier, don't reinvent what AUDIT already does.  How much time have you spent on this (how much of your employers MONEY has been spent) when you could have solved the whole thing in 5 minutes with AUDIT?
    Program for tracing user logon/logoff  details
    SQL> create or replace  trigger  tri_logon
    AFTER LOGON ON DATABASE
    BEGIN
    INSERT  INTO  user_login (username, isdba, external_name,
    authentication_type, HOST,  login_date , login_time)
    SELECT SYS_CONTEXT ('USERENV', 'SESSION_USER'),
    SYS_CONTEXT ('USERENV', 'ISDBA'),
      SYS_CONTEXT ('USERENV', 'EXTERNAL_NAME'),
      SYS_CONTEXT ('USERENV', 'AUTHENTICATION_TYPE'),
      SYS_CONTEXT ('USERENV', 'host'),
      SYSDATE, TO_CHAR (SYSDATE, 'HH24:MI:SS') FROM DUAL;
       END;
    Trigger  created.
    SQL> create or replace trigger tri_audit1
    2 BEFORE LOGOFf on database
    3   BEGIN
    4 insert into user_login (username, logout_time)
    5 (select user, TO_CHAR(SYSDATE, 'HH24:MM:SS') from dual);
    6 end;
    6 /
    Trigger  created.
    I got following output . Here i cannot insert logout_time on logout_time column.
    logout_time is dispalyed seperately please see last two output values  (CST01 ,  02:06:16)   and  user_name also displayed twice.  (don't  need )
    USERNAME   ISDBA   LOGIN_DAT   LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME AUTHENTICATION_TYPE  HOST
    CST01           FALSE     21-JUN-13          02:06:11                                            oracle                            DATABASE                            linuxserver     CST01    02:06:16
    I want output following  below  format
    Expecting output  logout time  on  LOGOUT_TIME column  and   user_name  should be displayed once.
    USERNAME ISDBA LOGIN_DAT LOGIN_TIME   LOGOUT_TIME   EXTERNAL_NAME  AUTHENTICATION_TYPE HOST
    CST01      FALSE       20-JUN-13       13:06:34                                            oracle                       DATABASE                   LINUXSERVER
    thanks in advance ..

  • Wrong format for spreadsheet table, list view, label component

    I have a movie which is connected to a web service.  The web service feeds into cells that are linked to a spreadsheet table component.  The cells are properly formatted in excel and the fields show up fine when using static data.  However, once I pull in data in preview mode or with a published movie the cells lose the desired format.  I tested this with other components such as list view and label and get the same result.  I do not see the same results with the mouse over values in a chart though.  Anyone know what might be the problem?
    Thanks for the help

    Thanks for the response Andy.
    The fields I use have the same uniform format so there is no dynamic formatting going on.  I have read up on the rebind fix and have tried it but it doesn't seem to change things.
    Here are the specifics of my situation.  I paste some sample data returned from a query into the excel sheet.  One of the fields is a percentage so I format those cells appropriately and the excel sheet reflects the change.  I then bind the spreadsheet component to the cells containing the sample data.  The percentage field is properly displayed on the canvas as well as when I go into preview mode.  I now feed the cells with the sample data with a web service that uses the same query I used to generate the sample data.  In preview mode the percentage cell now is unformatted and shows up looking like a decimal number.  The same situation occurs for a label component bound to a single percentage cell.  I even configure the label component to format the text as a percentage.

  • When creating a new project, what is the best output format for TV?

    I'm watching my iMovie creations on an LCD TV with 1080p. When I playback the mp4 format it always kinda looks worse than the original content.

    I totally agree. The only way I have found to get good HD quality is to first output the edited camcorder file BACK to the camcorder. Then play that on your HD TV and you get real HD. Unfortunately you cannot do this with the newer versions of IMovie. Maybe there is another way but i can't find it.

  • What is the best HD output format for .MTS files?

    Hi guys,
    I'm in trouble with .MTS files taken from a Sony videocam.
    Everything works and I get my final movie in mpeg2 (or H.264) Blu-ray and the final BDisk looks pretty.
    But a friend of mine has edited some of these clips with Sony Vegas and his video is more definited than mine.
    I tried in many ways to change some output settings like "same as source HD" or changing bitrates, GOP, VBR (single or double) in HD 1080i setting (yes, the clips are interlaced)........... but my final results are everytime less definited than Sony does with just a (bloody) default setting.
    Any idea to improve the output quality of these files?
    Thanks in advance
    Giorgio

    Hi Bill,
    nice to hear you.
    Unfortunately these tips have not given me an help.
    My way of doing is:
    Check the input files (format, interlaced or progressive, bitrate, framerate, fields, pixel, extension name etc.....) with MediaInfo.
    Open the proper Premiere project (in this case AVCHD 1080i square pixel)
    Edit and output using Mpeg2 Blu-ray  or H.264 Blu-ray using the best settings I can..
    In this case I've tried ALSO to output a movie as much as possible similar to the input format, looking at the GOP also (premiere gives as default  M3 N15, but the source is M2 N13): no way indeed!!!!
    My fear is that Pr doesn't hold .MTS files properly as Vegas does.
    Strange: Vegas is a Sony product as the videocam I've taken the files from.
    I hope I'm doing something wrong but I'm afraid I had to edit this files with Vegas.
    Tell me I'm wrong, please
    Giorgio

  • What is the best output format for idvd

    Am I better publishing to media browser and choosing "large," or is it better to export to Quicktime, and if so, what is the highest quality to choose for going to iDVD. This will be a presentation on a very large screen. Thanks.

    The answer is: it depends. It depends on the resolution and format of the clips in your project, your aspect ratio (normal vs. widescreen), etc.
    You want to try to keep the number of conversion steps at a minimum. I.e. using 640x480 source material in an iMovie '08 project, sharing as Large at 720x540 from iMovie '08 only to have it converted to 720x480 in iDVD isn't optimal as you end up with two resolution conversion steps.
    Why don't you experiment with a short sample clip and a DVD-RW? Use a DVD player and a television to judge the results, not the software DVD player on your Mac.

Maybe you are looking for

  • Where TF is the File menu?!

    Nice going with this new "improved" version with no menubar and few useful options under the Firefox "menu." Whose bright idea was this?

  • AppleTV (6-11) and Macbook Pro. Will it work?- Airplay

    I just got an Apple TV. Can I play stuff on my MacBook Pro through the Apple TV? (Airplay) Or just via iTunes? I didn't see any quick way to do it, but say some third party application to do it? Do I need to buy something else? thanks mark

  • Get a web property value with REST

    Hello, i want to get the value of a property that i have set in my web property bag using REST call, is it possible? Thanks a lot

  • Strange Folder Icon Quirk

    The past few days I have been having problems with some of my folder icons. When I am in icon mode, sometimes my Generic Apple folders are Tiny. I Command-J to get the adjustment window and scroll through different sizes. It seems mostly at standard

  • After updating to iOS 7.1 calling no longer works

    After I updated to 7.1, everything works fine except for calling/my phone number. iMessage and FaceTime only work when using my email but when people call me it goes straight to voicemail and when I call people I just hear nothing. The LTE works fine