What is the reason to create database directory in oracle instead of oracle could use ;

Hi all,
     I want to know why oracle has given the concept of directory as database object while a file on os can be access directly by it full qualified name. like we use directory object in external table and expdp etc.

655734 wrote:
Hi all,
     I want to know why oracle has given the concept of directory as database object while a file on os can be access directly by it full qualified name. like we use directory object in external table and expdp etc.
In addition to the aforementioned security issues, there is the matter of OS independence.  By being able to refer to an non-os-specific alias, application code does not have to be concerned with the physical (and thus, os-dependent) mapping of a file.  Makes code portable, which is one of the big features of Oracle vs. everyone else.

Similar Messages

  • What is the reason for Invalid database interface call in the statement

    Hi all,                                                     
    Invalid database interface call in the statement where table "ZPP_STORAGE ".
    Thanks.

    DATA: BEGIN OF itab4 OCCURS 0,
                mandt TYPE mandt,
                matnr LIKE mseg-matnr,
                werks LIKE mseg-werks,
                lgort LIKE mseg-lgort,
                tarih LIKE sy-datum ,
                meins LIKE mseg-meins,
                bldat LIKE mkpf-bldat,
                menge LIKE mseg-menge,
             SHKZG like mseg-SHKZG,
             BWART like mseg-bwart,
            END OF itab4.
    LOOP AT itab4.
          insert into zpp_storage from itab4.
          COMMIT WORK.
        ENDLOOP.
    At insert, dump occurs.
    Why?
    Thanks.

  • What are the risk involved in Database Migration from Oracle 7 to oracle10G

    HI,
    As a business requirement me are need to migrate our current production database (Oracle 7.3.4) to Oracle 10G R2.
    I need to understand the Risk involved in doing so and corrective action required.
    Your small input is greatly appreciated.
    Thanks in advance.
    Regards,
    Vijay

    As a business requirement me are need to migrate our current production database (Oracle 7.3.4) to Oracle 10G R2.
    There is no risk.
    but you can't upgrade directly from 7 to 10g.
    you need to upgrade first 7 to 9 then 9 to 10g ( i would recommend to go with 11g)
    Or
    If database size is small the best is EXPORT /IMPORT. easy fast safe.
    http://tahiti.oracle.com ===check the upgrade guide for more details.
    You need to test the completely upgrade process on TEST eviourment before doing anything in production.
    becuase a lots of changes between two database version.
    1. You may be face "Performance" issue after upgrade. so need to check properly.
    Regards,
    Taj

  • Can any body tell me what is the need of creating shipping Instruction

    Hi Everybody,
    Can any body tell me what is the need of creating shipping Instruction in Material Management & where it is used.
    Menu path -> IMG -> Material Management -> Purchasing - > Material Master - > Define Shipping instruction.
    2. What is the use of Manufacturer Part Profile & how it is used in the SAP system.
    Menu path -> IMG -> Material Management -> Purchasing - > Material Master - > Define Manufacturer Part Profile.
    Thanks & Regds.....
    Rashmi

    This characteristic describes the packaging and shipping requirements that have to be fulfilled by the vendor
    The instructions issued to a vendor regarding the shipment or packing of ordered goods.
    o     CO coil
    o     NE unpacked
    o     NT nylon net
    A manufacturer part profile contains indicators and control parameters, which define the conditions for using (inventory-managed or non-inventory-managed) manufacturer parts in the procurement process.
    The manufacturer part profile specifies how manufacturer parts (MPN materials) can be used in the procurement process.
    The manufacturer part profile is assigned to the master record for a firm's own inventory-managed material.
    Among other things, it determines whether:
    u2022     The MPN material or the inventory-managed material is to be entered in a purchase order
    u2022     Info records can be created for the MPN material or the firm's own material
    u2022     The MPN material can be changed during the procurement process

  • What are the differences of creating a physical standby database with ASM?

    I want to create a physical standby database for my 10g(10.2.0.1) database. But it is using ASM. Is it possible to create a standby database for a database using ASM?
    What are the differences of creating a physical standby database with ASM?

    tell us what your research shows and we'll try to
    validate it. I am simulating Oracle ASM on a PC and I want to try
    DataGuard on it now. So I am trying to create DataGuard
    on an ASM system. The purpose is only learning and test.That's telling us how you are researching, not what you have observed.
    Your research could have included looking at the documetation, and you might have found http://download.oracle.com/docs/cd/B19306_01/server.102/b14239/scenarios.htm#sthref1642
    which discusses exactly what you are looking for.
    Message was edited by:
    Hans Forbrich

  • Last week what are the new indexes created in my database

    last week what are the new indexes created in my database.How can I know?
    Thanks

    Please try this:
    SELECT t.name AS TableName ,
    ind.name AS IndexName ,
    col.name AS ColumnName ,
    STATS_DATE(t.object_id, ind.index_id) AS IndexCreationDate
    FROM sys.indexes ind
    INNER JOIN sys.index_columns ic ON ind.object_id = ic.object_id
    AND ind.index_id = ic.index_id
    INNER JOIN sys.columns col ON ic.object_id = col.object_id
    AND ic.column_id = col.column_id
    INNER JOIN sys.tables t ON ind.object_id = t.object_id
    WHERE ind.is_primary_key = 0
    AND ind.is_unique = 0
    AND ind.is_unique_constraint = 0
    AND t.is_ms_shipped = 0
    AND STATS_DATE(t.object_id, ind.index_id) > ( GETDATE() - 7 ) ;
    T-SQL Articles
    T-SQL e-book by TechNet Wiki Community
    T-SQL blog

  • Listener and gsd are unknown, what is the reason

    I just install 10g RAC on linux, everything was good. However, I shutdowned the whole system and started it again,
    my listener and gsd are unknown, what is the reason?
    rac1-> crs_stat -t -v
    Name Type R/RA F/FT Target State Host
    ora.devdb.db application 0/1 0/1 ONLINE ONLINE rac1
    ora....b1.inst application 0/5 0/0 ONLINE ONLINE rac1
    ora....b2.inst application 0/5 0/0 ONLINE ONLINE rac2
    ora....SM1.asm application 0/5 0/0 ONLINE ONLINE rac1
    ora....C1.lsnr application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.gsd application 0/5 0/0 ONLINE UNKNOWN rac1
    ora.rac1.ons application 0/3 0/0 ONLINE ONLINE rac1
    ora.rac1.vip application 0/0 0/0 ONLINE ONLINE rac1
    ora....SM2.asm application 0/5 0/0 ONLINE ONLINE rac2
    ora....C2.lsnr application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.gsd application 0/5 0/0 ONLINE UNKNOWN rac2
    ora.rac2.ons application 0/3 0/0 ONLINE ONLINE rac2
    ora.rac2.vip application 0/0 0/0 ONLINE ONLINE rac2
    rac1-> srvctl start listener -n rac1
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac1.LISTENER_RAC1.lsnr' has placement error.
    rac1-> srvctl start listener -n rac2
    CRS-1028: Dependency analysis failed because of:
    CRS-0223: Resource 'ora.rac2.LISTENER_RAC2.lsnr' has placement error.
    rac1-> tail -30 alert_+ASM1.log
    SUCCESS: diskgroup RECOVERYDEST was mounted
    Wed Aug 31 17:24:48 2011
    NOTE: recovering COD for group 2/0xc8787a38 (RECOVERYDEST)
    SUCCESS: completed COD recovery for group 2/0xc8787a38 (RECOVERYDEST)
    Wed Aug 31 17:25:01 2011
    Starting background process ASMB
    ASMB started with pid=17, OS id=6498
    Wed Aug 31 17:28:07 2011
    NOTE: ASMB process exiting due to lack of ASM file activity
    Wed Aug 31 17:29:00 2011
    Reconfiguration started (old inc 1, new inc 2)
    List of nodes:
    0 1
    Global Resource Directory frozen
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:01 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:01 2011
    LMS 0: 43 GCS shadows traversed, 0 replayed
    Wed Aug 31 17:29:01 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    rac1-> tail -30 alert_devdb1.log
    Communication channels reestablished
    Master broadcasted resource hash value bitmaps
    Non-local Process blocks cleaned out
    Wed Aug 31 17:29:35 2011
    LMS 0: 0 GCS shadows cancelled, 0 closed
    Set master node info
    Submitted all remote-enqueue requests
    Dwn-cvts replayed, VALBLKs dubious
    All grantable enqueues granted
    Wed Aug 31 17:29:35 2011
    LMS 0: 3118 GCS shadows traversed, 1733 replayed
    Wed Aug 31 17:29:35 2011
    Submitted all GCS remote-cache requests
    Post SMON to start 1st pass IR
    Fix write in gcs resources
    Reconfiguration complete
    Wed Aug 31 17:31:25 2011
    Shutting down archive processes
    Wed Aug 31 17:31:30 2011
    ARCH shutting down
    ARC2: Archival stopped
    Wed Aug 31 17:40:11 2011
    db_recovery_file_dest_size of 1500 MB is 14.40% used. This is a
    user-specified limit on the amount of space that will be used by this
    database for recovery-related files, and does not reflect the amount of
    space available in the underlying filesystem or ASM diskgroup.
    Wed Aug 31 22:00:14 2011
    Thread 1 advanced to log sequence 3
    Current log# 2 seq# 3 mem# 0: +DG1/devdb/onlinelog/group_2.262.760635995
    Current log# 2 seq# 3 mem# 1: +RECOVERYDEST/devdb/onlinelog/group_2.258.760635997                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    add an entry in on both the nodes /etc/sysconfig/network DEFAULT_GATEWAY
    eg:-
    [oracle@rac1 ~]$ cat /etc/sysconfig/network
    NETWORKING=yes
    HOSTNAME=rac1.localdomain
    DEFAULT_GATEWAY=192.168.1.10
    and try to start the service.
    if you would like refer:-http://oracleinstance.blogspot.com/2009/12/crs-0215-could-not-start-resource.html

  • Grafhic not work...  what is the reason ?

    hello,
    In the foolowing code I reproduced an "anomalous" behavior that I get when I use graphic functions.
    In the JPanel "PanelToDiplayGraphic", I simply write some words....
    This usually works;
    but if I (before to create the panel) read some data from a database, then the words are not displayed...._
    (I need to get informations from the database to use in the grafhic functions).
    I am not able to understand the reason why this can happen .
    Same one is able to explain me what is the reason ???
    // To use this program requires to have a valid connection to a database.
    // Here the connection comes from MakeConnectionToDataBaseMedident class and his the getConnection() function.
    // Of course, the String sqlStr in the accessToDataBase() function have to be properly changed too...
    package prove.volanti.storePicImages;
    import databaseManagement.MakeConnectionToDataBaseMedident;
    import java.awt.BorderLayout;
    import java.awt.Graphics;
    import java.sql.Connection;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class TestForBug extends JFrame {
        public TestForBug() { // constructor
            setTitle("title");
            setVisible(true);
            setSize(200, 150);
            this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            // ======== part of program to chang to apply the test ...
            accessToDataBase(); // To test the anaomalus behavior put this row in comment
            // ======== part of program to chang to apply the test ...
            PanelToDiplayGraphic panelToDiplayGraphic = new PanelToDiplayGraphic();
            setLayout(new BorderLayout());
            this.add(panelToDiplayGraphic, BorderLayout.CENTER);
        }  // constructor
         * Simple function to access to tatabase
        private void accessToDataBase() {
            MakeConnectionToDataBaseMedident makeConnectionToDataBaseMedident = new MakeConnectionToDataBaseMedident();
            Connection connection = makeConnectionToDataBaseMedident.getConnection();
            Statement statement = null;
            ResultSet resultSet = null;
            String sqlStr = "Select * from skdPzPicsDetails   ";
            boolean validState = true;
            try {
                statement = connection.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_UPDATABLE);
                resultSet = statement.executeQuery(sqlStr);
                validState = resultSet.last();
                int rowsNmbr = resultSet.getRow();
                System.out.println("Nmbr. rows = " + rowsNmbr);
                validState = resultSet.first();
                System.out.println("validState = " + validState);
                String tit = resultSet.getString("picTitle");
                System.out.println("Title =  " + tit);
            } catch (SQLException e) {
                System.out.println("Errrore = " + e.getMessage());
                e.printStackTrace();
        }  // accessToDataBase()
        static public void main(String[] args) {
            TestForBug xxxx =
                    new TestForBug();
        } // main()
         * Panel to display graphic
        class PanelToDiplayGraphic extends JPanel {
            @Override
            public void paintComponent(Graphics g) {
              g.drawString("TEST for use of the Graphic " , 10, 20);
    //            g.drawImage(image, 0, 0, this.WIDTH, this.HEIGHT, null);
        }// DiplayGraphicPanel
    } // TestForBugthank you regards
    tonyMrsangelo.

    thank you Encefophalopathic...
    The window seem to be normal (not froze), but I understand now that the cause of the anomaly could
    came from the parallelism of the threads ....
    I'll look in this way...
    Thank you
    By the course... I remember you gave me an advice some days ago ..
    you said :
    Finally, don't add a mouse listener to a JButton when an action listener,
    a class specifically built to capture button presses, is available.
    There are exceptions to this rule, but I don't see any here. I didn't answer then, but I should like know where I could learn more about how and where to use the listener class...
    I see this tip is more complex than it seemed to be...
    Now, for example, I need to catch event when an element in a checkBox is selected..
    I use event listner for this purpouse, but in this way I get the attivation of the event also
    when the comboBox component is created...
    How I sayd, I only should like to have a good link to read more about..
    thank you again
    regards
    tonyMrsangelo

  • Why view have no stored data ?  And what is the reason view take more time

    Why view have no stored data ? And what is the reason view take more time to query ?
    what happen if a view have stored data?

    user12941450 wrote:
    I want to know the reason that why querying view is slower then querying a normal table?..Untrue.
    For example take a table with 2laks record and a view for that table.
    If i make a query like( Select name,address from table) then it works fast then select(name,address)from view..Incorrectly interpreting the results.
    A view is a SQL statement. Only difference is that the SQL statement is stored in the database's dictionary. Let's consider the following view:
    create or replace view foo_view as select * from empWhen you use the view as follows:
    select * from foo_viewOracle sees it as follows:
    select * from (select * from emp)This is no slower, or no faster, than providing the following SQL to Oracle:
    select * from empSo if you observe a difference in performance between using plain SQL versus using that same SQL via a view, there are other reasons for that difference in performance. The reason is NOT that views are slower.

  • Illustrator keeps quitting-notice others have had similar issues, not resolved-so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help-come on-someon

    Illustrator keeps quitting…notice others have had similar issues…so what it the reason for "sending a report" to Adobe if nothing can be done with it????? paying for a product that I can't use when I need to use it and no help…come on…someone has to have an answer…HELP Pleeeeease

    <moved from Adobe Creative Cloud to Illustrator>
    reset your preferences -
    acrobat:  http://help.adobe.com/en_US/acrobat/X/pro/using/WS58a04a822e3e50102bd615109794195ff-7feb.w .html
    adobe media encoder: https://forums.adobe.com/thread/1713540
    after effects:  http://helpx.adobe.com/after-effects/using/preferences.html
    dreamweaver:  https://helpx.adobe.com/dreamweaver/kb/restore-preferences-dreamweaver-cs6-cc.html
    flash:  http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    illustrator:  http://helpx.adobe.com/illustrator/using/setting-preferences.html
    indesign:  https://forums.adobe.com/thread/526990
    lightroom: https://helpx.adobe.com/lightroom/help/setting-preferences-lightroom.html
    muse (mac): https://forums.adobe.com/thread/1246022?tstart=0
    photoshop:  https://forums.adobe.com/thread/375776
    photoshop elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html,  http://www.photokaboom.com/photography/learn/Photoshop_Elements/troubleshooting/1_delete_p references_file.htm
    premiere elements:  https://helpx.adobe.com/photoshop-elements/kb/preference-file-locations-photoshop-elements .html
    premiere pro: http://www.mediacollege.com/adobe/premiere/pro/troubleshooter/trash-preferences.html
    if that fails, uninstall, clean (http://www.adobe.com/support/contact/cscleanertool.html) and reinstall

  • I am writing datas into a FIFO ,i am reading datas from fifo .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place .what is the reason ?

    I am writing datas into a FIFO in FPGA Target side  ,i am reading datas from fifo in windows host side  .but when i am writing datas like a a(0),a(1),a(2 like that.when i am reading dating datas a(0)comes to a(3 ) rd place, a(1) comes to a a(0) .what is the reason ?

    Please use a shorter title in your subject line and not post the entire question in therre.  (See the subject line I created.)   There is also no such word as "datas".  Data is already plural.
    Please read http://stackoverflow.com/help/how-to-ask.  Your question is hard to read because you aren't using proper punctuation and capitalization of your sentences.  It looks like one run-on sentence.
    Beyond that, it is impossible to help you solve our problem with just your question.  Please provide some more information.  Perhaps even attach code we can look at.  Show us what the data you are sending is supposed to look like, and what it actually looks like.

  • What is the procedure to create field catalog in alv

    what is the procedure to create field catalog in alv?
    with a example please.

    Hi,
    U can use the function module REUSE_ALV_FIELDCAT_MERGE...If we use a structure that is exactly
    identical to the datadictionary other wise u hav to hard code as in the following example.
    **ALV EXAMPLE
    *& Report  ZJE_ALV_EXAMPLE
    REPORT  zje_alv_example.
    TYPE-POOLS: slis.
    *type declaration for values from ekko
    TYPES: BEGIN OF i_ekko,
              ebeln LIKE ekko-ebeln,
              aedat LIKE ekko-aedat,
              bukrs LIKE ekko-bukrs,
              bsart LIKE ekko-bsart,
              lifnr LIKE ekko-lifnr,
           END OF i_ekko.
    *type declaration for values from ekpo
    TYPES: BEGIN OF i_ekpo,
              ebeln LIKE ekpo-ebeln,
              ebelp LIKE ekpo-ebelp,
              matnr LIKE ekpo-matnr,
              menge LIKE ekpo-menge,
              meins LIKE ekpo-meins,
              netpr LIKE ekpo-netpr,
           END OF i_ekpo.
    DATA: it_ekko TYPE STANDARD TABLE OF i_ekko INITIAL SIZE 0,
          wa_ekko TYPE i_ekko.
    DATA: it_ekpo TYPE STANDARD TABLE OF i_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE i_ekpo .
    *variable for Report ID
    DATA: v_repid LIKE sy-repid .
    *declaration for fieldcatalog
    DATA: i_fieldcat TYPE slis_t_fieldcat_alv,
          wa_fieldcat TYPE slis_fieldcat_alv.
    DATA: it_listheader TYPE slis_t_listheader.
    declaration for events table where user comand or set PF status will
    be defined
    DATA: v_events TYPE slis_t_event,
          wa_event TYPE slis_alv_event.
    declartion for layout
    DATA: alv_layout TYPE slis_layout_alv.
    declaration for variant(type of display we want)
    DATA: i_variant TYPE disvariant,
          i_variant1 TYPE disvariant,
          i_save(1) TYPE c.
    *PARAMETERS : p_var TYPE disvariant-variant.
    *Title displayed when the alv list is displayed
    DATA: i_title_ekko TYPE lvc_title VALUE 'FIRST LIST DISPLAYED'.
    DATA: i_title_ekpo TYPE lvc_title VALUE 'SECONDRY LIST DISPLAYED'.
    INITIALIZATION.
      v_repid = sy-repid.
      PERFORM build_fieldcatlog.
      PERFORM event_call.
      PERFORM populate_event.
    START-OF-SELECTION.
      PERFORM data_retrieval.
      PERFORM build_listheader USING it_listheader.
      PERFORM display_alv_report.
    *& Form BUILD_FIELDCATLOG
    Fieldcatalog has all the field details from ekko
    FORM build_fieldcatlog.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'EBELN'.
      wa_fieldcat-seltext_m = 'PO NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'AEDAT'.
      wa_fieldcat-seltext_m = 'DATE.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'BUKRS'.
      wa_fieldcat-seltext_m = 'COMPANY CODE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'BUKRS'.
      wa_fieldcat-seltext_m = 'DOCMENT TYPE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKKO'.
      wa_fieldcat-fieldname = 'LIFNR'.
      wa_fieldcat-no_out = 'X'.
      wa_fieldcat-seltext_m = 'VENDOR CODE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM. "BUILD_FIELDCATLOG
    *& Form EVENT_CALL
    we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM event_call.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
      EXPORTING
      i_list_type = 0
      IMPORTING
      et_events = v_events
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    ENDFORM. "EVENT_CALL
    *& Form POPULATE_EVENT
    Events populated for TOP OF PAGE & USER COMAND
    FORM populate_event.
      READ TABLE v_events INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc EQ 0.
        wa_event-form = 'TOP_OF_PAGE'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-form.
      ENDIF.
      READ TABLE v_events INTO wa_event WITH KEY name = 'USER_COMMAND'.
      IF sy-subrc EQ 0.
        wa_event-form = 'USER_COMMAND'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-name.
      ENDIF.
    ENDFORM. "POPULATE_EVENT
    *& Form data_retrieval
    retreiving values from the database table ekko
    FORM data_retrieval.
      SELECT ebeln aedat bukrs bsart lifnr
             FROM ekko
             INTO TABLE it_ekko.
    ENDFORM. "data_retrieval
    *& Form bUild_listheader
    text
    -->I_LISTHEADEtext
    FORM build_listheader USING i_listheader TYPE slis_t_listheader.
      DATA hline TYPE slis_listheader.
      hline-info = 'this is my first alv pgm'.
      hline-typ = 'H'.
    ENDFORM. "build_listheader
    *& Form display_alv_report
    text
    FORM display_alv_report.
      v_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
      i_callback_program = v_repid
    I_CALLBACK_PF_STATUS_SET = ' '
      i_callback_user_command = 'USER_COMMAND'
      i_callback_top_of_page = 'TOP_OF_PAGE'
      i_grid_title = i_title_ekko
    I_GRID_SETTINGS =
    IS_LAYOUT = ALV_LAYOUT
      it_fieldcat = i_fieldcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    i_default = 'ZLAY1'
      i_save = 'A'
    is_variant = i_variant
      it_events = v_events
      TABLES
      t_outtab = it_ekko
    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.
    ENDFORM. "display_alv_report
    *& Form TOP_OF_PAGE
    text
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
      it_list_commentary = it_listheader
    i_logo =
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    *& Form USER_COMMAND
    text
    -->R_UCOMM text
    -->, text
    -->RS_SLEFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
        WHEN '&IC1'.
          READ TABLE it_ekko INTO wa_ekko INDEX rs_selfield-tabindex.
          PERFORM build_fieldcatlog_ekpo.
          PERFORM event_call_ekpo.
          PERFORM populate_event_ekpo.
          PERFORM data_retrieval_ekpo.
          PERFORM build_listheader_ekpo USING it_listheader.
          PERFORM display_alv_ekpo.
      ENDCASE.
    ENDFORM. "user_command
    *& Form BUILD_FIELDCATLOG_EKPO
    text
    FORM build_fieldcatlog_ekpo.
      wa_fieldcat-tabname = 'IT_EKPO'.
      wa_fieldcat-fieldname = 'EBELN'.
      wa_fieldcat-seltext_m = 'PO NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'IT_EKPO'.
      wa_fieldcat-fieldname = 'EBELP'.
      wa_fieldcat-seltext_m = 'LINE NO'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MATNR'.
      wa_fieldcat-seltext_m = 'MATERIAL NO.'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MENGE'.
      wa_fieldcat-seltext_m = 'QUANTITY'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'MEINS'.
      wa_fieldcat-seltext_m = 'UOM'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-tabname = 'I_EKPO'.
      wa_fieldcat-fieldname = 'NETPR'.
      wa_fieldcat-seltext_m = 'PRICE'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
    ENDFORM. "BUILD_FIELDCATLOG_EKPO
    *& Form event_call_ekpo
    we get all events - TOP OF PAGE or USER COMMAND in table v_events
    FORM event_call_ekpo.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
      EXPORTING
      i_list_type = 0
      IMPORTING
      et_events = v_events
    EXCEPTIONS
    LIST_TYPE_WRONG = 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.
    ENDFORM. "event_call_ekpo
    *& Form POPULATE_EVENT
    Events populated for TOP OF PAGE & USER COMAND
    FORM populate_event_ekpo.
      READ TABLE v_events INTO wa_event WITH KEY name = 'TOP_OF_PAGE'.
      IF sy-subrc EQ 0.
        wa_event-form = 'TOP_OF_PAGE'.
        MODIFY v_events FROM wa_event TRANSPORTING form WHERE name =
        wa_event-form.
      ENDIF.
    ENDFORM. "POPULATE_EVENT
    *& Form TOP_OF_PAGE
    text
    FORM f_top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
      EXPORTING
      it_list_commentary = it_listheader
    i_logo =
    I_END_OF_LIST_GRID =
    ENDFORM. "TOP_OF_PAGE
    *& Form USER_COMMAND
    text
    -->R_UCOMM text
    -->, text
    -->RS_SLEFIELDtext
    *retreiving values from the database table ekko
    FORM data_retrieval_ekpo.
      SELECT ebeln ebelp matnr menge meins netpr
             FROM ekpo
             INTO TABLE it_ekpo.
    ENDFORM.                    "DATA_RETRIEVAL_EKPO
    *&      Form  BUILD_LISTHEADER_EKPO
          text
         -->I_LISTHEADER  text
    FORM build_listheader_ekpo USING i_listheader TYPE slis_t_listheader.
      DATA: hline1 TYPE slis_listheader.
      hline1-typ = 'H'.
      hline1-info = 'CHECKING PGM'.
    ENDFORM.                    "BUILD_LISTHEADER_EKPO
    *&      Form  DISPLAY_ALV_EKPO
          text
    FORM display_alv_ekpo.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER = ' '
    I_BUFFER_ACTIVE = ' '
      i_callback_program = v_repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = 'F_USER_COMMAND'
      i_callback_top_of_page = 'TOP_OF_PAGE'
    I_CALLBACK_HTML_TOP_OF_PAGE = ' '
    I_CALLBACK_HTML_END_OF_LIST = ' '
    I_STRUCTURE_NAME =
    I_BACKGROUND_ID = ' '
      i_grid_title = i_title_ekpo
    I_GRID_SETTINGS =
    IS_LAYOUT =
      it_fieldcat = i_fieldcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT =
      i_save = 'A'
    IS_VARIANT =
      it_events = v_events
      TABLES
      t_outtab = it_ekpo
      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.
    ENDFORM.                    "DISPLAY_ALV_EKPO
    Reward if Helpful

  • What is the reason of doing recording in BDC !

    What is the reason of doing recording.....CAn we directly write the code ???

    Hi,
    OKCODE is nothing but the button clicks which you have performed while creating or changing a document.
    You will be moving around in the transaction for creating a document and finally you click the save button.  When click the save button then you will generally have the OKCODE as '=SICH'.
    The OKCODE basically tells you which button you have clicked, as you are having so many options in the transaction to work around.
    Thanks,
    Mahesh.

  • When I signin Apple ID showing error 403 on my mobile. What is the reason? And how can solve it?

    When I signin Apple ID showing error 403 on my mobile. What is the reason? And how can solve it?

    This often means that the maximum of 3 iCloud accounts have already been created on the phone and it cannot create another account.  When this happens, all you can do is re-use one of the accounts previously created or creat your account using a different iOS device or Mac, if you have one.

  • I'm using i phone 5, the battery drops suddenly from 20% to 5% what is the reason ? and what is the solution?

    i'm using i phone 5, the battery drops suddenly from 20% to 5% what is the reason ? and what is the solution?

    There could be many causes and many solutions.  All of them start with creating a backup using iCloud or iTunes on your computer.  After that, try some of the steps written about in this blog;
    http://www.overthought.org/blog/2014/the-ultimate-guide-to-solving-ios-battery-d rain
    If none of that helps, you may consider putting the iPhone into DFU mode (Google it) which will reset the firmware that monitors the battery.

Maybe you are looking for

  • After Effects CS5.5 error: crash in progress last logged message was 3300 DynamicLink 5

    Randomly when I start after effects CS5.5 and premiere pro CS5.5 I get the following error: After effects error: crash in progress last logged message was <3300> <DynamicLink> <5> 000000001AAB2080 I have all programs updated. PC Specs: i7 930 @ 2.8GH

  • What Datatype Should I Use to Change the "lockoutTime" attribute using JNDI

    I am able to use JNDI to modify an object's String valued attributes in ADAM. However, now I want to modify lockoutTime which has a datatype of LargeInteger/interval According to the documentation for AD, I can set the lockoutTime as: new BasicAttrib

  • Why is Aperture 3 sooooo slow?

    Let me first say I just started using Aperture 3 after using Photoshop/Lightroom for years and so far over all I LOVE it. However I'm finding it to be extremely slow at processing images. I made a default preset in adjustments that I would like to us

  • Need help with update statement with multiple joins

    I've got the following select statement that is pulling 29 records: SELECT PPA.PROJECT_ID, PPA.SEGMENT1, peia.expenditure_item_id, peia.expenditure_type, pec.expenditure_comment FROM PA.PA_PROJECTS_ALL PPA, pa.pa_expenditure_items_all peia, pa.pa_exp

  • Good tutorial for plugin for oem

    I'm looking for a good tutorial for building a plugin (cep actually ..) for oem. All the docs I found are not very clear to me. Does anybody know where can I found one? Or maybe some good examples besides those which comes with the zip file Thanks.