Create a Button and run ABAP

Hi,
I´m trying to put one button (or link) in my Web Template and call an ABAP code.
Shailesh comments about service help and I search many discussions about this, but I dont know how can I do this.
I created a two class:
ZBUENO (Super Class CL_RSR_WWW_MODIFY_TABLE)
Z_SERVICE (Super Class CL_RSR_WWW_HELP_WINDOW)
Putted on my Web Template, break-points was working, but I need to execute one ABAP when the user clique on button, otherwise, every time my ABAP will be executed.
Tks for any help,
Bueno

Dear Frank, please, can you take a look on this code:
The first part we create a link to try cmd SUBMIT and in my class Z_SERVICE I putted a break-point on PROCESS_CMD method. Is this correct?
<BODY>
<P> </P>
<A href="<SAP_BW_URL cmd="SUBMIT" help_service="Z_SERVICE" item="TABLE_1">">Generate File</A>
<P><object>
         <param name="OWNER" value="SAP_BW"/>
         <param name="CMD" value="GET_ITEM"/>
         <param name="NAME" value="TABLE_1"/>
         <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
         <param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
         <param name="WIDTH" value="651"/>
         <param name="HELP_SERVICE_CLASS" value="Z_SERVICE"/>
         ITEM:            TABLE_1
</object></P>
</BODY>
Very thank you !!

Similar Messages

  • Is it possible to create a thread and run it in background in nokia ??

    Is it possible to create a thread and run it in background in nokia series 40 mobile phones using j2me ??

    Probably a good question for ForumNokia. If you mean start up a thread and run in the background while your MIDlet UI does other things, then sure, why not. If you mean that you want to exit your MIDlet, but leave a thread running in the background, then I don't believe you can do this on series 40. S60 is another story since it supports multiple tasks.

  • Can I put abort execution button and Run button in GUI ?

    Dear All ,
    Can I put "abort execution button" and "Run button" in GUI with bigger buttons ?
    Thanks.....

    Hi wMw.
                 Aborting normally works fine for very small applications or architectures but not for anything after that. Aborting a VI can leave things in states that you don't want to be in or references open. Sometimes you do need to Abort the code though (other programming environments use Abort buttons) so I don't think we can get rid of it entirely.But try to avoid it maximum.
    EDIT:why you are trying to do such a strange thing??
    Thanks as kudos only

  • Creating radio button and make it ennable

    Hello All ,
    Please help me out in creating radio button and make it ennable in web dynpro in java application .
    If Possible please send the sample code as well.
    Thanks
    jyothi.

    Hi Venkat,
    The default value needs to be set manually as John has suggested. To be more precise, if the context node is "RadioButtonValues" and the context attribute is 'RadioBtnVal', then in wdDoInit() method, include the following:
    wdContext.currentRadioButtonValuesElement.setRadioBtnVal("Male");
    Regards,
    Pavithra

  • Creating Add button and array

    Hello,
         I am sure this has been brought up before but I am still not clear on the procedure as I am still new to this. In my coldfusion application I need to create a Button with 'ADD' function.
    When the button is clicked a new text field with a checkbox is created, however, these will need to have a unique names because they will be submitted into MySQL Database table. Of course, unless a dynamic variable can be created and submitted.
    I think I need to get an array function in javascript/ajax?
    I appreciate any help.

    Yes thank you.
    I  know some about the element function in java, but what I worry about is when sending the data into the MySQL and it may be multiple inputs anywhere from 1-500, so I need to create multiple elements. As far as I understand it.
    When I ran my test, the database only inpuy the original text but nothing from the elements I've created using javascript.
    Here is my script:
    <td colspan="3"> Item 1 <cfinput type="checkbox" name="Item" value=" Item1"> </td></tr>
    <tr>    
    <td align="left">Text: </td>
    <td>     
    <!--- textfield --->   
    <cfinput  type="text" name="Text1" size="30">    
    </td> </tr>
    <tr>
    <td align="left">Comments:</td> <td>      <!--- textarea --->
    <textarea name="Comments" cols="30" rows="5"></textarea> <br>
    <input type='button'  value='MORE' onclick='addbox()'>
    </td>
    <td>
    <div id = "Input1"></div>
    <div id = "Input2"></div>
    <div id = "Input3"></div>
    <div id = "Input4"></div>
    <scripttype = "javascript">
    var i = 1;
    function addbox() {
    if (i <= 4) {  // max number of inputs
    document.getElementById('Input'+[i]).innerHTML =  "<input type='text' name='text1' value='Enter Text Here' size = '15' /><br> Comments:<textarea name='Comments' cols='30' rows='5'></textarea> <input type='button' value='MORE' onclick='addbox()'>";
    i++;}else {
    alert ("No more inputs are possible")
    </script>
    </td>
    Of course, once the this step is complete, the form is being submitted as a whole
    The following page is contains SQL Commands of:
    <cfquery datasource="test">
    INSERT INTO ProcessTBL (Item, text1, comments)
    VALUES ('#Trim(Form.Item)#', '#Trim(form.Text1)#', '#Trim(form.comments)#')
    </cfquery>
    All functions as it should, but the problem I am running into is that only CFINPUT text is being inserted into the database and none of the javascript inputs, unless, of course I am missing a variable. Another concern I have is that, once again, the input may be up to 500 variables.
    Once again, I appreciate your help.

  • Letting user to click a button and run an application

    Hi all,
    I'm trying to do this: once the user logged on, the user can click a button to run an application. If it's the first time he/she use it, it'll let user to download the program and then run it. How can I do that?
    Thank you.
    Cal

    Find out about Java Web Start.

  • Creating radio buttons and text box in the screen

    Hi Guys,
    Need help asap. I am writing a report and I have to create text box for user to input GL account numbers for two types of customer. I have to make these fields required and take the data back from the screen and write it in a file. The second thing that I have to do is to make radio buttons for the user to select whether he wants the file written on the application server or the presentation server. and process the report accordingly. Now can somebody please given some code and tell me how I should do this. Both the things have to be done for the same report. Please help.
    Thanks,
    Minal

    Hi,
    TABLES: likp,
            lips.
    TYPES: Begin of ty_likp,
           vbeln like likp-vbeln,
         end of ty_likp.
    TYPES: Begin of ty_lips,
           vbeln like lips-vbeln,
           posnr like lips-posnr,
         end of ty_lips.
    DATA:  i_likp TYPE STANDARD TABLE OF ty_likp,
           i_lips TYPE STANDARD TABLE OF ty_lips,
           w_lips TYPE ty_lips,
           w_likp TYPE ty_likp.
    SELECTION-SCREEN BEGIN OF BLOCK b_0 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:  s_delno FOR likp-vbeln,
                     s_type  FOR likp-lfart,
                     s_ship  FOR likp-vstel,
                     s_date  FOR likp-erdat.
    SELECTION-SCREEN END OF BLOCK b_0.
    SELECT vbeln
             FROM likp INTO TABLE i_likp
             WHERE vbeln IN s_delno
             AND   lfart IN s_type
             AND   vstel IN s_ship
             AND   erdat IN s_date.
      IF sy-subrc <> 0.
        MESSAGE i000 WITH text-002.
        " No valid deliveries for the selection parameters entered.
        STOP.
      ENDIF.
      IF NOT i_likp[] IS INITIAL.
        SELECT vbeln
               posnr
               FROM lips INTO TABLE i_lips
               FOR ALL ENTRIES IN i_likp
               WHERE vbeln = i_likp-vbeln.
      ENDIF.
    format color 1 on intensified on.
      WRITE: /01(46) 'Following are the Hanging Deliveries/Invoices:'.
    format color off intensified off.
    skip.
    format color 1 on.
      WRITE:  SY-ULINE(27).
      WRITE: /1       SY-VLINE,
              3(12)    'Document No.',
              16      SY-VLINE,
              17(8)  'Item No.',
              27      SY-VLINE.
    write:/1 sy-ULINE(27).
    format color off.
      sort i_lips by vbeln posnr.
      LOOP AT i_lips INTO w_lips.
          Read table i_likp into w_likp with key
                            vbeln = w_lips-vbeln
                            posnn = w_lips-posnr.
          if sy-subrc <> 0.
          format color 2 on.
             WRITE: /1   sy-vline,
                    3(12)  w_lips-vbeln,
                    16  sy-vline,
                    17(8)  w_lips-posnr,
                    27  sy-vline.
            write:/1 sy-uline(27).
            format color off.
            clear w_lips.
          endif.
          ENDLOOP.
    Try this one with ur own example.
    Thanks & Regards,
    Judith.

  • Creating Logout button and invalidating session

    Hello All:
    I'm new to java and I'm trying to figure out how to log a user out of a web servlet. Basically I just have a link that returns the user to the first servlet (my login servlet) called log out. I am wondering if when I click on that link (or do I need to make it a button) that I can tell the servlet to invalidate the session I have created, therefore allowing a new user to login from the login servlet.
    I honestly have no idea how to go about this. The following is my code from another servlet in my group:
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author Owner
    * @version
    public class Item1ServletHW2 extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    HttpSession session = request.getSession(true);
    String getuser = (String)session.getAttribute("getuser");
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet Item1ServletHW2</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<form action=>");
    out.println("<table border=1 align=center width=65%>");
    out.println("<tr><td align=center bgcolor=blue colspan=3><font color=white size=3>Welcome to the Music CDs Page </font><font color=red size=3><b>"+getuser+"</b></font></td></tr>");
    out.println("<tr><td width=60% bgcolor=green align=center><font size=2 color=white><b>Item</font></td>");
    out.println("<td width=10% bgcolor=green align=center><font color=white size=2><b>Unit Price</b></font></td>");
    out.println("<td width=40% bgcolor=green align=center></td></tr>");
    out.println("<td bgcolor=green align=left><img src=coldplay.jpg><font color=white size=2>ColdPlay X&Y</font></td>");
    out.println("<td bgcolor=green align=center><font color=white size=2>$19.99</font></td>");
    out.println("<td bgcolor=green align=center><input type=button name=addcart2 value=Add to Cart></td>");
    out.println("</tr>");
    out.println("<td bgcolor=green align=left><img src=oakenfold.jpg><font color=white size=2>Oakenfold - The Club</font></td>");
    out.println("<td bgcolor=green align=center><font color=white size=2>$17.99</font></td>");
    out.println("<td bgcolor=green align=center><input type=button name=addcart1 value=Add to Cart></td>");
    out.println("</tr><tr><td colspan=3 align=center><font size=2 color=white><a href=CatServletHW2>Main Catalog</a> | <a href=ShopCartServletHW2>View Cart</a> | <a href=RegLoginServletHW2>Log Out</a></font></td></tr>");
    out.println("</body>");
    out.println("</html>");
    out.close();
    The Log Out link is the one I want to check when clicked, and if so, invalidate my session before the user is redirected to the RegLogin Servlet. Any help would be greatly appreciated. Thanks so much :).

    I understand how to invalidate the session, but with this example:
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class logout extends HttpServlet
              public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
                   res.setContentType("text/html");
                   PrintWriter pw = res.getWriter();
                   HttpSession ses =req.getSession();      
                   ses.removeValue("desi");
                   ses.removeValue("Login");
                   ses.removeValue("password");                    
                   res.sendRedirect("http://localhost:8080/examples/servlets/login.html");                    
    How can I get this to process when clicking a link called "Log Out", or is there a way to create an onClick button that invalidates the session when clicked. Maybe something like this:
    onClick="session.invalidate();response.sendRedirect("somewhere");>
    Thanks for the helps, but I'm still a bit confused :).

  • Help with creating jar file and running it ?

    Hey guys,
    I have a program with a package called classes and a sub-package called classes.mainLib.
    I am trying to create a JAR file of the class files in mainLib. There is only one class file in classes and that contains the main method. So this is what i am doing:
    1. create a manifest file with: Main-Class: classes.Cars
    2. from within the mainLib directory (./program_name/classes/mainLib/) i do this:
    jar cvf mainLib.jar manifest ./*.class
    3. Then i move this jar file to ./program_name/lib and change directory to ./program name/
    4. try to do this: java -jar ./lib/mainLib.jar
    But it errors with:
    gary@linuxbox:~/java/cars$ java -jar ./lib/mainLib.jar
    Failed to load Main-Class manifest attribute from
    ./lib/mainLib.jar
    Any ideas why this is happening. the manifest is included in the jar'ing
    Thanks.

    At a glance, it looks like you are placing only the
    class files in the jar and trying to navigate your
    classpath to run it. Instead, you have to place ALL
    the package folders into the jar from the root of
    your package hierarchy and the jar runs anywhere, in
    any folder. The packages are INSIDE the jar.
    also I see cars/classes in a path you describe ...and
    the program seems to wnat classes/Cars ??? Could
    this be an additional issue (or am I missing seeing
    something about your package structure)?Firstly, i believe all my spelling and cases are correct.
    I have the following strcuture:
    Cars.class (contains main) : package classes in ./classes directory
    All other classes : package classes.mainLib in ./classes/mainLib
    I would like to jar ALL files in mainLib but not the class that contains the main method. Is this possible?
    I'm not sure how clear i was earlier, hope this is more understandable.

  • Get input from user and create a file and run a script in command line.

    Hi all,
    i'm trying to get a input from user and write it into a file named alpe.jacl
    To get multiple userinputs like address and jobtitle etc etc in the same single window.
    and the code will save the inputs in alpe.jacl one by one in a new line like
    nameis name
    address russia
    jobtitle dev
    So i coded like below.
    Though GUI for user input looks dull Its working fine.
    Now I want this code to perform one more task which is the GUI will contain one more button INSTALL with OK and CALCEL .
    and when after putting all inputs and creating the alpe.jacl file if someone clicks INSTALL it should start ./install.sh script present at the same folder which contains some unix shell commands.
    Here am not able to figure out how to go further...
    One more thing after all the inputs given when I am clicking on the OK button its closing the window instantly which i dont want. I want it like it should wait till someone press CANCEL to exit.
    Please some one help me.
    import javax.swing.*;
    import java.io.*;
    public class file
    public static void main(String []args)throws IOException
    FileWriter ryt=new FileWriter("alpe.jacl");
    BufferedWriter out=new BufferedWriter(ryt);
    JTextField wsName = new JTextField();
    JTextField sName = new JTextField();
    JTextField cName = new JTextField();
    Object[] message = {    "Web Server Name:", wsName,"Server Name:", sName,"Cluster Name:", cName};
    int answer = JOptionPane.showConfirmDialog(    null, message, "Enter values", JOptionPane.OK_CANCEL_OPTION);
    if (answer == JOptionPane.OK_OPTION){    String webserver = wsName.getText();
    String server = sName.getText();
    String cluster = cName.getText();
    out.write("set webservername " +wsName.getText()+"\n");
    out.write("set ClusterName " +cName.getText()+"\n");
    out.write("set ServerName " +sName.getText()+"\n");
    out.close();
    }}Thanks,
    Ricky

    Thanks a lot.
    Is there any way through which i can assign a scroll bar to my panel.
    As when the number of user inputs grows the GUI becomes more bulky and some of the fields are not showing up.
    Cheers
    _Ricky                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to create audit triggers and run it dynamically?

    DECLARE
    V_CRT VARCHAR2(4000);
    V_DRP VARCHAR2(200);
    BEGIN
    FOR tab_rec IN (SELECT TABLE_NAME FROM USER_tabLES WHERE TABLE_NAME NOT LIKE '%TMP' AND TABLE_NAME NOT LIKE '%BAK' AND TABLE_NAME NOT LIKE 'MV_%') loop
    v_DRP := 'DROP TABLE AUD_'||tab_rec.tABLE_name ||';' || CHR(13);
    v_crt := ' CREATE TABLE AUD_'||tab_rec.tABLE_name
    ||'( ACTION VARCHAR2(1) ,
    CONSTRAINT AUD_'||SUBSTR(TAB_REC.TABLE_NAME, 1,11)||substr(tab_rec.table_name,length(tab_rec.table_name)-4,5)||'_CHKACTION CHECK (ACTION IN (''I'',''U'',''D'')),
    ISSUE_TIMESTAMP TIMESTAMP DEFAULT SYSDATE,
    ISSUE_USER VARCHAR2(30),
    ISSUE_HOST VARCHAR2(40),
    FOR col_rec IN (SELECT column_name,data_type,data_length,data_precision,data_scale FROM user_tab_cols WHERE table_name = tab_rec.table_name ORDER BY column_id)
    loop
    IF col_rec.data_type = 'VARCHAR2' THEN
    v_crt := v_crt || col_rec.column_name || ' '|| col_rec.data_type||'('||col_rec.data_length||'),'||chr(13)||' ';
    ELSIF col_rec.data_type = 'NUMBER' THEN
    v_crt := v_crt || col_rec.column_name || ' '||col_rec.data_type;
    IF col_rec.data_precision IS NOT NULL THEN
    v_crt:= v_crt||'('||col_rec.data_precision||','||col_rec.data_scale||'),'||chr(13)||' ';
    ELSE
    v_crt:= v_crt||','||chr(13)||' ';
    END IF;
    ELSE
    v_crt := v_crt || col_rec.column_name || ' '||col_rec.data_type||','||chr(13)||' ';
    END IF;
    END loop;
    v_crt := rtrim(v_crt);
    v_crt := substr(v_crt,1,LENGTH(v_crt)-2)||');';
    DBMS_OUTPUT.PUT_LINE(v_crt);
    v_crt:= '';
    END LOOP;
    END;
    The audit tables are named same as the table prefixed with AUD_. The audit table has two columns ACTION and ISSUE_TIMESTAMP more than the main tables.
    This anonymous block creates the triggers in the table which has audit tables dynamically.
    The user data is not maintained here in this code.
    This code runs.
    DECLARE
    v_output1 VARCHAR2(5000);
    v_insert VARCHAR2(4000);
    v_delete VARCHAR2(4000);
    v_update VARCHAR2(4000);
    v_cols VARCHAR2(1000);
    v_columns VARCHAR2(2000)DEFAULT '';
    v_columns_new VARCHAR2(2000) DEFAULT '';
    v_columns_old VARCHAR2(2000) DEFAULT '';
    v_tab1 VARCHAR2(30) DEFAULT ' ';
    v_tab2 VARCHAR2(30) DEFAULT ' ';
    v_tab3 VARCHAR2(30) DEFAULT ' ';
    v_schema varchar2(30) default 'schema'; --
    v_user_id VARCHAR2(30); -- not used in this program
    v_host VARCHAR2(30);
    BEGIN
    /* The audit tables are created with table name prefixed with AUD and columns ACTION AND ISSUE DATE, ISSUE_USER,ISSUE_HOST added.*/
    FOR rec IN
    (SELECT tname FROM tab WHERE tname LIKE 'AUD%'
    LOOP
    v_columns := '';
    v_columns_new := '';
    v_columns_old := '';
    v_output1 := 'CREATE OR REPLACE TRIGGER '
    ||v_schema||'.' ||rec.tname ||'_TRIG ' || chr(13)
    ||' AFTER ' || chr(13)
    ||' INSERT OR '|| chr(13)
    ||' UPDATE OR '|| chr(13)
    ||' DELETE ON '|| chr(13)
    ||v_schema||'.'
    || substr(rec.tname,5)
    || chr(13)
    ||' FOR EACH ROW '
    ||chr(13)
    ||' BEGIN ' || chr(13);
    FOR colrec IN
    (SELECT column_name
    FROM user_tab_cols
    WHERE table_name = rec.tname
    AND column_name NOT IN ('ACTION','ISSUE_TIMESTAMP','ISSUE_USER','ISSUE_HOST')
    LOOP
    v_columns := v_columns||v_tab3||colrec.column_name ||','||chr(13);
    v_columns_new := v_columns_new ||v_tab3||':new.'||colrec.column_name ||','||chr(13) ;
    v_columns_old := v_columns_old ||v_tab3||':old.'||colrec.column_name ||','||chr(13) ;
    END LOOP;
    v_columns := SUBSTR(v_columns ,1,LENGTH(v_columns ) -2);
    v_columns_new := SUBSTR(v_columns_new,1,LENGTH(v_columns_new)-2);
    v_columns_old := SUBSTR(v_columns_old,1,LENGTH(v_columns_old)-2);
    v_insert := v_tab1||'IF INSERTING THEN ' || chr(13)
    ||v_tab2||'INSERT INTO '||v_schema||'.' ||rec.tname|| chr(13)
    || v_tab2||' ( '||chr(13)
    || v_tab3||'ACTION,'||chr(13)
    || v_tab3||'ISSUE_TIMESTAMP,' ||chr(13)
    || v_tab3||'ISSUE_USER,'||chr(13)
    || v_tab3||'ISSUE_HOST,'||chr(13)
    ||v_columns ||chr(13) ||v_tab2||')' || chr(13)
    ||v_tab2||' VALUES ' ||chr(13)
    ||v_tab2||' (' ||chr(13)
    ||v_tab3||'''I'''||','||chr(13)
    ||v_tab3||'SYSTIMESTAMP'||','||chr(13)
    ||v_tab3||'USER'||','||chr(13)
    ||v_tab3||'sys_context('||'''USERENV'''||','||'''HOST'''||'),'||chr(13)
    ||v_columns_new ||v_tab2||');' ||chr(13)
    ||v_tab1||'END IF;'
    || CHR(13);
    v_delete := v_tab1||'IF DELETING THEN ' || chr(13)
    ||v_tab2||'INSERT INTO '||v_schema||'.' ||rec.tname|| chr(13)
    ||v_tab2|| '( '||chr(13)
    || v_tab3||'ACTION,'||chr(13)
    || v_tab3||'ISSUE_TIMESTAMP,' ||chr(13)
    || v_tab3||'ISSUE_USER,'||chr(13)
    || v_tab3||'ISSUE_HOST,'||chr(13)
    ||v_columns ||chr(13)
    ||v_tab2||')' || chr(13)
    ||v_tab2||' VALUES ' ||chr(13)
    ||v_tab2||' (' ||chr(13)
    ||v_tab3||'''D'''||','||chr(13)
    ||v_tab3||'SYSTIMESTAMP'||','||chr(13)
    ||v_tab3||'USER'||','||chr(13)
    ||v_tab3||'sys_context('||'''USERENV'''||','||'''HOST'''||'),'||chr(13)
    ||v_columns_old
    ||v_tab2||');' ||chr(13)
    ||v_tab1
    ||'END IF;' ||CHR(13);
    v_update := v_tab1||'IF UPDATING THEN ' || chr(13)
    ||v_tab2||'INSERT INTO '||v_schema||'.' ||rec.tname|| chr(13)
    ||v_tab2|| '( '||chr(13)
    ||v_tab3|| 'ACTION,'||chr(13)
    ||v_tab3|| 'ISSUE_TIMESTAMP,' ||chr(13)
    ||v_tab3||'ISSUE_USER,'||chr(13)
    ||v_tab3||'ISSUE_HOST,'||chr(13)
    ||v_columns ||chr(13)
    ||v_tab2||')' || chr(13)
    ||v_tab2||' VALUES ' ||chr(13)
    ||v_tab2||' (' ||chr(13)
    ||v_tab3||'''U'''||','||chr(13)
    ||v_tab3||'SYSTIMESTAMP'||','||chr(13)
    ||v_tab3||'USER'||','||chr(13)
    ||v_tab3||'sys_context('||'''USERENV'''||','||'''HOST'''||'),'||chr(13)
    ||v_columns_new
    ||v_tab2||');' ||chr(13)
    ||v_tab1||'END IF;'|| chr(13) ;
    -- v_output1 := v_output1 || v_insert || v_update|| v_delete ||CHR(13)||'END;';
    --EXECUTE IMMEDIATE v_output1;
    -- v_output1 := v_output1 || chr(13)||'/';
    dbms_output.put_line(v_output1); generate script
    dbms_output.put_line(v_output1);
    dbms_output.put_line(v_insert);
    dbms_output.put_line(v_update);
    dbms_output.put_line(v_delete);
    dbms_output.put_line('END;');
    dbms_output.put_line('/');
    END LOOP;
    END;
    show errors;
    Edited by: ranjus on Oct 17, 2012 3:33 PM

    Thank you so much for your suggestions.
    I went through the link you suggested.
    I wondered why DBA requested me to create triggers when such easy option was available to them. And I found the reason why triggers for audit.
    When Triggers Are Necessary
    Avoiding False Positives. Audit trails are generated through autonomous transactions from the original transactions. Hence they are committed even if the original transactions are rolled back.
    Here is a simple example to illustrate the point. Assume that we have set up auditing for UPDATEs on table CLASS. A user issues a statement to update a data value from 20 to 10 and then rolls it back as shown below.
    update class set size = 10 where class_id = 123;
    rollback
    Now the value of the column SIZE will be 20, not 10, as if the user never did anything. However, the audit trail will capture the change, even if it's rolled back. This may be undesirable in some cases, especially if there are lots of rollbacks by users. In such a case, you may have to use the trigger to capture only committed changes. If there were a trigger on the table CLASS to insert records into the user defined audit trail, upon rollback the audit trails would have been rolled back too
    Capturing Before-change Values. Oracle-provided audit trails do not show the values before and after the change. For instance, the above change will create an audit record that shows the statement and the SCN number at the change, but not the value before the change (20). The value can be obtained from the SCN number using flashback query, but it depends on the information being available in the undo segments. If the information is not captured within the limit specified by the undo_retention period, the prior values can never be retrieved. Using a trigger guarantees that the values are captured without dependence on the undo_retention period, and may prove useful at times. Under these two circumstances you may decide to continue using triggers to record the audit trails at a granular detail.

  • Create executable jar and run it

    hi ,
    I want to create an executable jar file for my Swing application in windows environment and I want to run that jar file by double clicking on it. What should I do?

    I can't beleive I'm saying this given that I didn't like it only 3 months ago but if you change your development environment to Eclipse rather than JCreator/JBuilder or whatever, it saves all that creating manifest files by having one menu item, "Export". You should take a look at minifest files though and at least understand them, they aren't complex at all.

  • Can i design a touch screen using just labview, i mean creating a vi and running it???

    i juust want to design a touch screen using ñlabview, canbe a calculator program whit labview

    I guess it would depend on the type of touch screen and computer that you are using. I don't have a whole lot of experience with touch screens, but isn't touching a touch screen equivalent to clicking a mouse button with a normal screen??
    If this is the case, then if the operating system on that computer is supported by LabVIEW then it should definitely work. All you would need to do is build the LabVIEW program like normal, and put it on the touch screen computer.

  • Create installer and running: MsiError 87: Unable to format error record.

    Ever since I have installed the Labview 2011 beta I am in trouble when creating installers that include the NI runtime.
    Whether it is Labview 2010 or 2011, when I have created the installer and run it, I -and everybody else- gets the warning:
    MsiError 87: <Unable to format error record.>
    And the installer qwill quit.
    When I exclude the runtime from the installer it works nicely. What can I do to fix it?

    Did any of you actually read the beta agreement?
    Issues with the beta are not be be discussed in public so don't keep posting here.
    The terms and conditions of the beta program are posted on the beta site and you agreed to them, so make sure to fully understand them. The only public information is that a beta exists. Everything else is confidential.
    Let me put it in a few simple words:
    "Welcome to Fight Club beta. The first rule of Fight Club beta is: you do not talk about Fight Club beta. The second rule of Fight Club beta is: you DO NOT talk about Fight Club beta!) 
    LabVIEW Champion . Do more with less code and in less time .

  • Help trying to create a button in safari please.

    trying to create a button that runs an applescript. I have been discussing it in 101 but cross posting it here because it's not getting much interest over there.
    Any help would be nice. I have read Become an xCoder and it doesn't seem to answer my questions.
    http://discussions.apple.com/thread.jspa?threadID=1514799&tstart=0

    Is there no way to create an appcontroller that works like an applescript? Or get an applescript to be recognized so a new NSButton added to the Bookmark bar be activated?
    i.e.
    *tell application "System Events"*
    * tell application "Safari" to activate*
    * keystroke "n" using {command down}*
    * delay 0.1*
    * keystroke "l" using {command down, shift down}*
    *end tell*
    Or,
    _Something Like:_
    / AppController /
    *#import <Cocoa/Cocoa.h>*
    *@interface AppController : NSObject*
    *IBOutlet id NSButton;*
    *-(IBAction) autoFill:,delay 0.1,checkSpelling:(id)sender*
    @end
    I really don't know if that AppController looks anything like it should or if it's even close.

Maybe you are looking for

  • How do I combine two versions of the same album into 1

    I have songs from the same album on 2 albums in my library. How do I combine them?

  • Error while processing a view.

    Hi all,     I have dropdownbykey field on my view for SAKNR, and a search help has been attached to it C_SAKNR, i am unable to test the view as it is showing this error. anybody tell me the reason and the way i can come out of it. thanks Tharanatha

  • Structure cFolders 4.0

    Hi, all I have three questions, but I don't find information about this. 1.- How is the infraestructure and the structure of cFolders 4.0? 2.- when I upload the document in cFolders. I want to know Where does it keep ( path) exactly the documents tha

  • Need Abap Code Help

    Hi , I am trying to activate an ODS but it is failing the activation process . When I look into the application log I see this error    "Value 'RAM???¿????????S RAM' (hex. '4D41524B3F3F3FBF3F3F3F3F3F3F3F3F5320574F524B') of characteristic ZEUID contai

  • Popup display ( How to make synchronous popup)

    Hi All, I'm using below code to display popup & no issue with that it's working fine but this is asynchronous display. I want to make popup to synchronous so that i can able to use popup input values in next step to perform some other logic. Please a