How to sort a custom database table ?

Hi,
how do I sort/order a custom (Z) database table (not internal table) ? Couldn't find a suiting option with F1 for the SORT statement.
Thanks,
Avraham

>
Avraham Kahana wrote:
> I have to do this within my program.
Use ORDER BY in your select.  Or just select your data into an itab and use SORT.  I don't see the problem.
If you mean that you want to sort your table in the database itself, then you can't.  Database table rows are not held in any specific order; the order is applied when you select the data out of the table.

Similar Messages

  • How to edit one particular entry in custom database table

    Hi all,
    I want edit one particular entry in custom database table with or without a program.
    1.   I tried using SE16N and &SAP_EDIT but im unable to get entries to edit.
    2.   I tried using '/h' and 'code = edit' but it is prompting me to delete an entry but not edit.
    3.   I tried using modify statement. But in vain.
    I tried this statements through programatically,
                            MODIFY itab FROM wa_itab TRANSPORTING  zabc.
                            MODIFY zsample_02 FROM itab.
    please suggest with out writing a program, if possible.

    Hi ,
    Try with FM SE16N_INTERFACE.
    1 .Go to SE37
    2. Enter FM SE16N_INTERFACE and execute
    3. Give table name in Itab,
    I_EDIT                  =   
    X
    I_SAPEDIT             =    
    X
    4. Press F8
    5. Edit table entries and save.
    Thanks

  • Its very urgent:how to insert data into database tables

    Hi All,
    I am very new to oaf.
    I have one requirement data insert into database tables.
    here createPG having data that data insert into one custom table.
    but i dont know how to insert data into database tables.
    i wrote the code in am,co as follows.
    in am i wrote the code:
    public void NewoperationManagerLogic()
    ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
    OADBTransaction oadbt=getOADBTransaction();
    if(!vo1.isPreparedForExecution())
    vo1.executeQuery();
    Row row=vo1.createRow();
    vo1.insertRow(row);
    in createPG processrequest co:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.NewoperationManagerLogic();
    process form request:
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    if(pageContext.getParameter("Submit")!=null)
    ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
    am.getOADBTransaction().commit();
    please help with an example(sample code).
    its very urgent.
    thanks in advance
    Seshu
    Edited by: its urgent on Dec 25, 2011 9:31 PM

    Hi ,
    1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
    2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
    3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
    You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
    Thanks
    Pratap

  • How to create tree by database table

    hello sir ,
    my table is as follows,
    NAME LINK ID PID ROLLID
    User mgt. f?p=131:1: 1 - 10 ////root node///
    district 10 1 1 child
    Roles 16 14 4 child
    Users 11 10 1 child
    ROLLID is given from another table whis is (ROLES). i making tree by the combinations of id , pid, & roll id. by the roll id i can manage the tree to do not display specific nodes to specific users.
    ROLE table as :
    ROLE_ID NAME DESCRIPTION
    1 Administrator This is administrator
    2 Assistant Director -
    3 Assistant Statistical Officer -
    4 Data Entry Operator -
    but i think it is very complicated process . give me solution about it
    also i have to give my images to each node. how can i do that?

    You already have a thread going about this: Re: how to create tree by database table .
    Scott

  • [HTML DB] How to use the existing database table?

    [HTML DB] How to use the existing database table?
    I installed Oracle 10g database in Computer A(Windows 2000), and I already create all the tables with data and the data size is about 300MB.
    In Computer B(Windows 2000), I installed HTML DB 1.6.
    How can I use /get the existing database table (in computer A) for HTML DB?
    Could anyone help me on this? I am newbie and I need some detail instructions. or Where can I find the examples.....
    Thanks

    Well I guess if you wish to retain that architecture, i.e. HTMLDB on one machine and your data on another, you will have to establish database links to access the data. Oracle documentation will describe how to achieve that.

  • How to insert data in database table

    Hi experts,
                   How to insert data into database table using internal table from function module.

    Hi,
    As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on  'All or None Concept'.
    For the insert Statement Key word you can have a look at the following link:
    http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm
    Hope this helps.
    Thanks,
    Samantak.

  • How to find relationship between database tables

    Hi Mate,s.
    Iam new to SAPBW , PLZ tell me , How to find releationship between database table(Transperent tables).
    Regards.
    harry

    hi harry,
    from your previous postings, i guess you are asking relationship between tables in r/3, following links may help :
    http://www.sapgenie.com/abap/tables.htm
    http://www.sapgenie.com/abap/tables_sd.htm
    http://www.sapgenie.com/abap/tables_mm.htm
    http://www.sapgenie.com/abap/tables_fi.htm
    http://www.sapgenie.com/abap/tables_ps.htm

  • How to synchronize between OID and the Custom Database  Tables ?

    Hi All,
    Our ADF Application is using Oracle SIngle-Sign On (OAS 10.1.4). Meanwhile we also maintain
    users login within Database table to store application menu accessibility data.
    i.e:
    Firstly user Login using Oracle SSO, after logged in, application will query the above mentioned
    database tables to determine which menu he/she has access.
    We have develope a security module to input users login into the database, so I need to synchronize
    the data into OID, so that that particular user can use Oracle SSO.
    How is the mechanism to do that ?
    Thank you very much,
    xtanto

    Hi,
    OID providesa Java and PLSQL API. I agree with Chris that from what you describe, the PLSQL API seems to be the best approach to take as it allows you to use database triggers for the synchronization
    Frank

  • How  to  insert data into custom database table from an hcsf

    i want to insert data into database table that i have created from an hcsf.
    example :
    say i have created a table in oracle database and i hav created a hcsf file.now i want that when somebody fills in that hcsf and click submit ,i want that entries should be updated in my database table.
    plzzz reply ASAP(it's urgent)

    you'll need a bit of Java code... extract the data during a check-in filter, and insert it into the database.
    check out the "DataAccess" component in the HowToComponents for query-running examples, and the "DynamicPrefix" component for a check-in filter example.
    I have older copies here:
    http://bezzotech.com/library

  • How to insert data into database table from a servlet? Help please.

    From a servlet I want to insert a message with some servlet parameters into an oracle database table by writing 'insert into tablename'. How shall I write the sql statement?

    simple suppose u wanned to insert user name and password into table user_info then this is a simple example .....
    Best Regds
    bondzoro
    [email protected]
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class tester extends HttpServlet {
    Connection con = null;
    public void init(ServletConfig sc){
    super.int(sc);
    Class.forName("oracle.jdbc.driver.OracleDriver");
    public void service(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOE
    try {
    con=DriverManager.getConnection("jdbc:oracle:thin:@database_URL:1521:ORA8","username","pa
    String user = req.getParameter("username");
    String pass = req.getParameter("pass");
    PreparedStatement pst = con.prepareStatement("insert into user_info values(?,?)");
    pst.setString(1,user);
    pst.setString(2,pass);
    pst.executeQuery();
    pst.close();
    con.close();
    }catch(Exception _e){
    _e.printStackTrace(System.err);
    ~

  • How to Sort Dimension in Pivot Table via Order Column which is changing like Factual values

    Hi,
    Recently in of our product offerings we got stuck on this following question:
    How to Sort Dimension based on the Order Value which Keeps Changing with Factual Values??
    We have a data source laid out as (example)
    In the above the “Order” columns are changing per
    Company/(DimensionA) for DimesnsionB.
    Instead what we want is: (But only if we can get the following result without putting the “Order” Column in the “Values” Section. 
    If there are any configurations that we can make to our power pivot model for the similar data set so that the
    DimesnionB in this case can be sorted by the Order column, would be greatly helpful to us. 
    Sample File:
    http://tms.managility.com.au/query_example.xlsx
    Thanks
    Amol 

    Hi Amol,
    According to your description, you need to sort dimension members in Pivot Table via order column, and you don't want the order column show on the Pivot table, right?
    Based on my research, we can sort the data on the Pivot table based on one of the columns in that table, and we cannot sort the data based on the columns that not existed on the Pivot table. So in your scenario, to achieve your requirement, you can
    add the column to pivot table and hide it.
    https://support.office.com/en-gb/article/Sort-data-in-a-PivotTable-or-a-PivotChart-report-49efc50a-c8d9-4d34-a254-632794ff1e6e
    Regards,
    Charlie Liao
    TechNet Community Support

  • After creating a customizing database table 'create entries disable'

    After creating the database table i want to add fields through goto-table contents-create entries but "create entries" is in disable mode how can i resolve this?

    Dear Dileep,
    You need to go to "Delivey and Maintainence" tab there you will "Data Browser/Table Maintainence",
    Here you need to select "Display/Maintainence Allowed" in the drop down list.
    Thie will help to find the "create entrie enable".
    Thanks,
    Ananth.

  • INSERT in the custom database table to create a new entry.

    Hello Experts,
    I'm trying to INSERT the entry in my custom databse table that i have created. But I'm not sure what i'm missing as i'm getting the sy-subrc = 4 after the INSERT statement and my records are not added to the database table.
    I'm using the INSERT as below:-
          APPEND gw_relax TO gt_relax.
          INSERT  INTO zmm_bg_relax VALUES gw_relax.
    Please let me know your helpful responses on this,
    Thanks,
    Naveen

    Check [INSERT dbtab|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm] [FROM TABLE itab [ACCEPTING DUPLICATE KEYS]|http://help.sap.com/abapdocu_70/en/ABAPINSERT_SOURCE.htm#&ABAP_ALTERNATIVE_2@2@],
    If the addition ACCEPTING DUPLICATE KEYS  is specified, all rows are inserted for which this is possible. The remaining rows are rejected and sy-subrc is set to 4. The system field sy-dbcnt  is set to the number of lines that are inserted.
    So if you get sy-subrc = 4, some of the records of the internal table are already contained in the database table.
    You cannot put 2 or more records in a database table with the same primary key, primary keys are unique keys with the addition of a not-null constraint. If you need multiple records with a same key, you must add another key to the primary key. (use a timestamp or a counter)
    Regards,
    Raymond

  • How to replicate a customized condition table from ECC to CRM

    Dear All,
    We have created a new condition table in ECC, using a new set of key fields to define sales district specific product price. This table is in ECC only and we would like to replicate it to CRM. Could you please let me know how we can do that? What replication object should we use?
    Thanks in advance!
    Erinn

    Hi,
    Use DNL_CUST_CNDALL, this would create the database table in CRM. Also you might need to run other loads corresponding to your scenario like DNL_CUST_CND_PR, DNL_CUST_PRC  etc
    Regards
    Prasenjit

  • Date format mismatch between OIM 11gR2 GTC and backend custom database table (Oracle 11g R2)

    Hi,
    We have an OIM 11g R2 version running that has a GTC installed and configured. The GTC is used to provision to a 11g R2 database table via the DBAT 9.1.0.5.0 connector. Now the requirement is that the timestamp be recorded in the backend DB when a new record is provisioned to it using the GTC.
    During the setup of the GTC, the target system date format is asked for should be one from among the values allowed by the following predefined formats:
    Customizing Formats (The Java™ Tutorials > Internationalization > Formatting)
    Now our problem is that the target DB to which the provisioning is supposed to happen, isn't under our control and hence we cannot change its schema, and the date format in that table is of the type "01-JAN-10 12.00.00.000000000 AM", which translates to "dd-MMM-yy hh.mm.ss.fffffffff (AM/PM)".
    On the other hand, as you can see from the above link, none of the values that OIM allows to be passed through the GTC allow for that format to be used.
    Does anyone know of any way in which we can intercept the GTC provisioning request and convert the date on the fly, after OIM has passed on the control, but before the values are written into the DB table, or does anyone know of any workarounds to this issue?
    I'd really appreciate it if someone could provide a solution to this.
    Thanks.

    [http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/refsched.htm#CIHBFCJG]
    See 26.6 for the plugin.zip directory structure, and as I said, I used the same method on a previous task in the same OIM instance.
    Edited by: 939908 on Jan 31, 2013 8:04 AM

Maybe you are looking for

  • Not compatible with version of windows?

    I have windows 7 service pack 1 64bit Operating system on my HP laptop and when i try and open Acrobatpro_11_web_wwmui.exe I am being told "the version of this file is not compatible with the version of windows you're running. Check your computer's s

  • No receiver could be determined while doing SAP ECC Integraion with MDM 7

    Dear All, Can you please help me to resolve the following issue. We are doing SAP ECC Integration with MDM 7.1 by using MDM PI Adapter. Source side we are processing MATMAS.MATMAS05 IDoc and Receiver side we are using MDM PI Adapter to Connect the MD

  • Nvidia-Settings skips needed resolution [SOLVED]

    I've been messing with xorg.conf for a long time now, since my first days back on Ubuntu. It is something I hate, but something I've learned how to manipulate pretty well. For some reason, 1360x768 is completely skipped over in "modes" in the Nvidia

  • With all these resources why is Aperture so slow?

    Since the last update Aperture 3.0.2 is running slower that before. When I check Activity monitor at times it will have 145% of the CPU over 36 threads using a gig and a half of ram and just sit there being in an almost hung state. I say almost hung

  • Interesting things to monitor via syslog/snmp etc on 5508?

    Hi all, We don't use Cisco prime for network monitoring. I'm interesting and monitoring and alerting on any potential wireless performance or security issues. Has anyone got any suggestions for interesting things to monitor on a 5508 WLC? We have a r