How do I program the use of Z index on a database table

Hello friends,
I need an example of an ABAP  program where the use of a customer defined index (, i.e. Z**) on a DB table is forced.
I do not want to use primary index. I've created an index and I want to use / force my own index in the program.
Any ideas please?
Thanks for your help.

Hi,
As per my knowledge Nothing to specify as secondary index in program.
Regards
Md.MaahboobKhan

Similar Messages

  • How can i save the data from ALV grid to my database tables?

    Hi all,
    Suppose in a grid i want to edit some fields and after editing the data i want to store the refresh data to my database tables. How can i do that? what is procedure? Please tell me in details.
    Thanks in Advance,
    Abhijit.

    Hi, 
       If you are doing it with oops concept then here are the steps for that.
    1) Declare DATA : er_data_changed TYPE REF TO cl_alv_changed_data_protocol,
           data_changed TYPE REF TO cl_alv_changed_data_protocol.
    --For getting the row no of of the row which is edited by user
    DATA : ls_mod_cell TYPE table of lvc_s_modi with header line,
    lv_value TYPE lvc_value .
    in your program
    2) Define a class
    CLASS notification DEFINITION.
      PUBLIC SECTION.
        CLASS-METHODS : handle_data_changed FOR EVENT data_changed OF cl_gui_alv_grid IMPORTING er_data_changed.
    ENDCLASS.                    "NOTIFICATION DEFINITION
    3) For that class write the implementation
    CLASS notification IMPLEMENTATION.
      METHOD handle_data_changed.
        PERFORM handle_data_changed USING er_data_changed.
      ENDMETHOD.                    "handle_data_changed
    ENDCLASS.                    "NOTIFICATION IMPLEMENTATION
    4) In the  PERFORM handle_data_changed  you code like this
    FORM handle_data_changed  USING er_data_changed type ref TO
    cl_alv_changed_data_protocol.
    SORT er_data_changed->mt_mod_cells BY row_id .
    LOOP AT er_data_changed->mt_mod_cells
    INTO ls_mod_cell .
    append ls_mod_cell.
    ENDLOOP.
    *LS_MOD_CELL will have all the rows which were edited
    and all the updated data corresponding to those rows*
    You can now use the the data which is in LS_MOD_CELL
    to update into your DB Table.
    LOOP at ls_mod_cell.
      READ TABLE itab3 INTO t_output INDEX ls_mod_cell-row_id.
    ENDLOOP.
    ENDFORM.                    " handle_data_changed
    Regards,
    Syed

  • What is the use of initial value in a database table?

    Hi can anyone help me in knowing what is the use of initial value which is present besides primary key while creating a table?

    Initial Value:
    Indicator that NOT NULL is forced for this field
    Use
    Select this flag if a field to be inserted in the database is to be filled with initial values. The initial value used depends on the data type of the field.
    Please note that fields in the database for which the this flag is not set can also be filled with initial values.
    When you create a table, all fields of the table can be defined as NOT NULL and filled with an initial value. The same applies when converting the table. Only when new fields are added or inserted, are these filled with initial values. An exception is key fields. These are always filled automatically with initial values.
    Restrictions and notes:
    The initial value cannot be set for fields of data types LCHR, LRAW, and RAW. If the field length is greater than 32, the initial flag cannot be set for fields of data type NUMC.
    If a new field is inserted in the table and the initial flag is set, the complete table is scanned on activation and an UPDATE is made to the new field. This can be very time-consuming.
    If the initial flag is set for an included structure, this means that the attributes from the structure are transferred. That is, exactly those fields which are marked as initial in the definition have this attribute in the table as well.
    hope it helps,
    Saipriya

  • How can I program the text fields in my email forum to have rounded corners

    How can I program the text fields in my email forum to have rounded off edges or corners. 
    this is the code im using.
    // insert code here// insert code here// prepare email field
    var email = sym.$("email")
    email.html("Enter your Email: ");
    inputEmail = $('<input />').attr({'type':'text', 'value':'', 'id':'email'});
    inputEmail .css ('font-size', 14);
    inputEmail .css ('width', 350);
    inputEmail .css ('background-color', '#4e4e4e');
    inputEmail .appendTo(email);
    // prepare topic field
    var topic = sym.$("topic");
    topic.html("Topic: ");
    inputTopic = $('<input />').attr({'type':'text', 'value':'', 'id':'topic'});
    inputTopic .css ('font-size', 14);
    inputTopic .css ('width', 350);
    inputTopic .css ('background-color', '#4e4e4e');
    inputTopic .appendTo(topic);
    // prepare message field
    var message = sym.$("message");
    message.html("Message: ");
    inputMessage = $('<textarea />').attr({'type':'textarea','rows':'10', 'cols': '25','value':'', 'id':'message'});
    inputMessage .css ('font-family',"Arial,Helvtica,sans-serif");
    inputMessage .css ('color',"#ffffff");
    inputMessage .css ('font-size', 14);
    inputMessage .css ('background-color', '#4e4e4e');
    inputMessage .css ('box-shadow', '#4e4e4e');
    inputMessage .css ('width', 350);
    inputMessage .css ('height', 150);
    inputMessage .appendTo(message);
    var submitBtn = sym.$("btn");
    submitBtn.html("Submit");
    submitBtn.css("text-align", "center");
    submitBtn.css("font-size",14);
    submitBtn.css("font-weight","bold");
    submitBtn.css("color","#ffffff");

    Try this: inputEmail.css ('border-radius', '25px');
    attachment
    more details

  • How do I program the preloader in a fluid swf from another fluid swf?

    I have built a fluid swf(preloader.swf) which is like an intro-cum-preloader screen to a flash site which is stored in main.swf. How do I program the preloader.swf to show the preload percentage of main.swf ?
    All the swf files used here are fluid,so there is an actionscript file which loads the movieclips onto stage dynamically,please give me a solution to this keeping this in mind. Please do ask for clarifications if needed.

    You want to use the Loader class in Actionscript 3. If you look at the example in the online help, you'll see that there are, among others, a progress event and a complete event. You can use this progress event, to track the progress of the loading of the file. The complete event occurs when the file has completely loaded.
    Have a look at this: http://help.adobe.com/en_US/ActionScript/3.0_UsingComponentsAS3/WS5b3ccc516d4fbf351e63e3d1 18a9c65b32-7fa4.html it explains how to use a Progress Bar component to show the loading of a file.

  • HT1420 How do I deauthorize the use of itunes on computers which have crashed and are no longer accessible??

    How do I deauthorize the use of itunes on computers which have crashed and are not accessible??

    Individual computers can only be deauthorised directly on them, but if you have 2 or more computers authorised then you can log into your account on your computer's iTunes (Store > View My Account) and 'deauthorise all' (which you can do once every 12 months) and you can then authorise/reauthorise the computers that you still have and need : authorising and deauthorising.
    Deauthorising a computer doesn't remove any content from it, it just means that you can't use iTunes content on it until you reauthorise it.

  • How can I force the use on a specific application when I am in the Downloads window?

    I have Vista and Firefox 3.6.15
    when I open an email attachment it goes to the intended application but when I click on the downloaded file in Downloads it invokes OpenOffice and then it displays:
    "Move background page assignment
    The loading of password-encrypted Microsoft Powerpoint presentationsis n ot supported"
    How can I force the use on a specific application when I am in the Downloads window?

    Hi Frank!
    you should catch your save-event and after saving put the following line:
    oMatrix.Columns.Item(4).Cells.Item(lstRowIndex + 1).Click(SAPbouiCOM.BoCellClickType.ct_Regular);
    that's it!

  • How do I regain the use of my cloud CS6. .. .

    How do I regain the use of my Cloud - CS6 photoshop after Adobe keeps asking that I renew my free trial and cuts me off
    from using it (I am already a member)?

    Confused14 if you are unable to activate your software using your Adobe ID then please see Sign in, activation, or connection errors | CC, CS6, CS5.5 - http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html.  There are several common solutions offered for the difficulties which you are facing.

  • How can i cancel the using of "Only calls for emergency?"

    How can I cancel the using of "only calls for emergency?"

    In the USA, you cannot.  I believe it is an FCC requirement that all cell phones be enabled to dial 911, even if they do not have an active contract or prepaid service assigned to them.

  • How do I change the background color of a row in a table indicator?

    Hello,
      How do I change the background color of a row in a table indicator? I know how to change the background color in a active cell, but that is not what I want. My first intent is to make the background color of the first row a unique color, such as green, just to highlight the top row of the table.
    Regards,
    Kaspar
    Regards,
    Kaspar

    I have done this before by using a for loop to change the active cell of a row in order to give the appearance that the whole row is turning the color at once.
    CLA, CLED, CTD,CPI, LabVIEW Champion
    Platinum Alliance Partner
    Senior Engineer
    Using LV 2013, 2012
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.

  • How I can save the value of a variable in a database?

    hello,
    how I can save the value of a variable in a database? I need to keep the # of times you press click animation. to know how many times it has been seen.
    I connect to msql database, using php, javascript, ajax and jquery, but not how to save the variable counter clicks from adobe edge Animate
    appreciate your help so I can connect to the database from adobe edge animate.
    thank you very much
    Luis Felipe Garcia
    [email protected]

    Hi, all-
    This isn't an Animate-specific issue, but I thought I'd take a stab at it anyway.  As with anything else on the web, you need to have a server script to handle incoming data, so it's all back end work.  Your page will need to call that script and provide parameters to that script that it can read.
    The easiest way I can think of to do this (and this is all highly theoretical, so please make sure it's secure before you implement it) is to create a 1px div that has visibility off.  Whenever you click, you can load your URL in that div, which then increments your counter on your db.
    Hope that helps inspire some interesting solutions!
    -Elaine

  • How do you count the multiple columns of a field in a table

    How do you count the multiple columns of a field in a table

    Hi,
    4396bf34-e890-4202-a6b0-4e08c9ff0e89 wrote:
    How do you count the multiple columns of a field in a table
    Whenever you have a problem, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    "Field" isn't a standard database term.  Some people say "field" when they mean "column", but I don't think that's what you mean ("How do you count the multiple columns of a column ..").  Do you want to know how many times a column is used (as opposed to NULL), or the number of different values in a column?  You really need to show what you want.

  • How can i get the info off of an old appleworks database. to my mountain lion. OS X?

    how can i get the info off of an old appleworks database. to my new mountain lion. OS X? My old data base is on AppleWorks 6

    1.  Read Roger Wilmut's excellent series of articles Abandoning Appleworks, especially the one on databases.
    2.  Call the Apple Store and order Snow Leopard Server for $19.99 + sales tax & shipping: 1.800.MYAPPLE (1.800.692.7753) - Apple Part Number: MC588Z/A (telephone orders only).
    3.  Install Snow Leopard Server into Parallels 8, now available for a short time (4 more days) in the March 2013 MacUpdate 10 App Bundle for $49.99:
    4. Install Appleworks 6.2.9 into Snow Leopard Server and it will now run concurrently with Mt. Lion:
                                  [click on image to enlarge]

  • How to execute a Java method when row inserted into a database table?

    I have the need to fire off a java method when a row is inserted into a database table. I am unfortunately working with MySQL which just recently supported triggers but these new triggers can not execute a Java application on any event.
    What I am looking for is an event driven approach such that when a row is inserted into a specific table I can fire off a java method (sitting in a tomcat container) that will take the contents and send it to a web service.
    It has been mentioned that JMS may have the ability to poll and monitor a database table. Just wondering if anyone could point me in the right direction.
    thanks
    JavaTek

    A service handler might be the right way to run some code at the end of a service call (another way would be to make use of filters).
    First, make sure your static table is merged with ServiceHandlers.
    Secondary, change your custom method name into one that is not already in the service definition of COLLECTION_COPY_LOT (preferably a unique method name like collectionCopyLotLastAction that describes its purpose) and remove the following line from your code:
    m_service.doCodeEx("",this);Now create a service definition for COLLECTION_COPY_LOT in your custom component based on the original COLLECTION_COPY_LOT (copy paste from the original service definition) and add you own method collectionCopyLotLastAction as the last step in the service. Play with the load order to make sure CS is using your service definition of COLLECTION_COPY_LOT instead of the original.
    regards,
    Fabian

  • How can I regain the use of my Firefox 3.6.22 browser?

    After updating my Wise Stamp and My Points plugins I was unable to open my F.F. browser. In the upper left corner it first says "loading" but then changes to "restore session" and refuses to open.
    I'm using an Imac intel core duo os 10.4.11, Firefox 3.6.22
    I was advised to upgrade my os to Snow Leopard but I want to avoid that if at all possible. Would welcome suggestions as to how to regain the use of my Firefox 3.6.22 Browser. Thought I could fix the problem by reinstalling it but the same problem persists.

    Whilst you could use Firefox 3.6.0 that is not secure and a security risk therefore can not be recommended. It is likely the earlier version only really differs because of security patches. (see https://www.mozilla.org/en-US/firefox/3.6/releasenotes/ to https://www.mozilla.org/en-US/firefox/3.6.22/releasenotes/ )
    If you do have security software it is likely to allow a specific version of firefox, and may block other versions as being unrecognised.
    I do not see why Firefox 3.6.22 can not be used. It should open on your system. Have you got security software that may be blocking changes or new installations. Or maybe if you have been using an insecure version, and do not have security software then it is conceivable the problem is because of malware.
    Try a clean reinstall of firefox 3.6.22, involving deleting the program files but not the profile files, and consider also trying a new clean profile (create an additional profile, do not delete the existing one - you would loose valuable information).
    * see http://kb.mozillazine.org/Standard_diagnostic_%28Firefox%29#Clean_reinstall
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * [[basic troubleshooting]]
    * [[is my firefox problem a result of malware]]
    * [[firefox will not start]]

Maybe you are looking for

  • How or Can I upgrade my laptop's video card?

    is it possible? First of all I don't know if my laptop video card is intergrated, i heard if it is, you cant upgrade...here are my specs for my Toshiba Satelite L675D AMD Phenom™ II dual-core processor N640* 4GB DDR3 memory 500GB Serial ATA hard driv

  • New mac mini 2009 from box problems

    Hi, i am from Ukraine, my English is not good. It's bad. Smile But, i have problems whith my Mac Mini. My friend bought me a mac in USA and post it to me. When i unpack it and try to connect to my monitor i had a problem. Mini tunr on and LED turn on

  • LOV problem ... returning display-value and not key-value

    Hi. Sorry for my broken English. I have a problem with pop-up dynamic LOV. I have a simple form called Form A containing item_code and item_name. Users can create, update and delete new item by using this form. Another form called Form B has a field

  • Error updating 5800 to V30

    It's been 2 days now that I am trying to update my 5800 to V30 but I can't , after I check for updates I see the new FW to be available but after I accept to download and install it shows an error " Error occurred. Software update must be restarted."

  • Help. My iSight video full of pink static noise.

    I received my new MacBook pro a few weeks ago and my iSight was working. I tried it today and now I get this: http://www.trotch.com/tmp/isight_problem.jpg A picture full of pink static. I have tested in Photo Booth, iMovie, and iChat. I have tested w