When we create a program from se38

We are provided to choose one of the values such as 'Executable Program', 'Module Pool' etc.
Here is the question is that I, up to this time, coded just executable program.
I wonder how and why we could use 'Module Pool'.
What can we do with module pool?
Thanks in advance.
Deniz.

hi
module pool is used to create custom screens with table-controls, subscreens etc which may be used for both input/output.
If your ABAP program requires a user dialog then dialog programming is required.
A user dialog is any form of interaction between the user and the program :
Entering data
Choosing a menu item
Clicking a button
Clicking or double clicking an entry
It is also used when we need to navigate back and forth between screens
<b>Dialog Programs: </b>
A dialog program allows you to work interactively with the system and to change the contents of the database tables. Each dialog program has a certain sequence of screens that are processed by the system one after the other.
From the view of a user, a dialog step consists of receiving a screen for entering data, then after the users clicks a button or selects a menu entry, processing is started. From the view of the SAP system, the screen is prepared and sent. After this, the user receives it and fills it out. Then the system analyzes and processes the data contained on the screen after receiving it from the user.
<b>A dialog program  offers: </b>
a user-friendly user interface
format and consistency checks for the data entered by the user
easy correction of input errors
access to data by storing it in the database.
<b>Components of Dialog Program</b>
Transaction Codes
Starts the screen sequence.
Can be created through transaction SE93.
Screens
Each dialog program consists of one or many screens.
They are called either by
Transaction codes outside the program
Using CALL SCREEN statement in corresponding program
Dynamic programs have their own data objects called screen fields that are linked to input/output fields that appear on the screen
Screen consists of screen mask or layout and its flow logic. A flow logic determines the logical processing within screen.
Screen has an independent component of program called GUI status.
GUI Status
     Each screen has GUI Status/es which are independent components of the program. These include
Menu Bars
Standard toolbar
Application toolbar
Function key settings
Can be created through Menu Painter in ABAP Workbench.
ABAP Program
Each screen and GUI Status in R/3 system belongs to single ABAP Program
An ABAP Program includes dialog modules called by the screen
also check this link
http://www.sapmaterial.com/dialog_programming.html
Hope this helps
if it helped, you can acknowledge the same by rewarding
regards
dinesh

Similar Messages

  • Ora-0000 when submitting a concurrent program from DB trigger

    Hello,
    I am getting following error when submitting a concurrent program from a trigger.
    ORA-20002: ORA-20026: 10322991ORA-0000: normal, successful completion
    ORA-06512: at "APPS.NPX_RUN_PICKR", line 63
    ORA-04088: error during execution of trigger 'APPS.NPX_RUN_PICKR'Though, this indicates normal successful completion, it does not generate any request_id. Nor, it launches the concurrent request.
    Below is the trigger code. Any idea why this is happening? Thanks, R
    CREATE OR REPLACE TRIGGER APPS.NPX_RUN_PICKR
    AFTER INSERT
    ON APPS.NPX_PICK_RELEASE
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
       p_printer        VARCHAR2 (240);
          p_print_flag     BOOLEAN;
          --concurrent_request variables
          l_request_id     NUMBER;
          --initializing variables
          l_app_id         NUMBER;
          l_resp_id        NUMBER;
          --pick_release variables
          v_out            VARCHAR2 (500);
          lorg number;
         errx varchar2(2000);
         p_message varchar2(2000); 
         result boolean;
       BEGIN
          p_printer := fnd_profile.VALUE ('PRINTER');
          p_print_flag :=
             fnd_request.set_print_options (p_printer,                  -- printer
                                            'LANDSCAPE',                  -- style
                                            0,                           -- copies
                                            TRUE,                   -- save output
                                            ''                   -- print together
                                           result:= FND_Request.Set_Mode(TRUE);
          l_request_id :=
             fnd_request.submit_request (application      => 'NPX',
                                         program          => 'NPXIBOXPICK',
                                         description      => NULL,
                                         start_time       => NULL,
                                         sub_request      => FALSE,
                                         argument1 => :New.order_number,
                                         argument2 => :New.org_id
          IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;
    exception when others then
    errx := sqlerrm;
    raise_application_error(-20002,errx);
    end;

    Hello Hussein,
    It is 11.5.10.2.
    The line 63 represents following block
    IF l_request_id = 0
          THEN                                   
             errx := sqlerrm;
             p_message :=:New.Order_Number ||errx;
                      raise_application_error
                       (-20026, p_message);
          end if;Thanks,
    R

  • How do you create bookmarks when you create a PDF from word?

    Hi All, how do you create bookmarks when you create a PDF from word, rather than having to individually copy from a pdf and create bookmarks?
    Adobe 8.1 full version.

    Thanks for the reply, I'll give it a go and will let you know

  • Why do i get 2 curves and not just 1 when i create a diagram from a row of data in a table ?

    Why do I get 2 curves and not just i when I create a diagram from a row af data in a table ?

    Erik,
    Thank you for giving me the points.  Generally you wait to award points until your problem is solved.  It is totally your at your descretion.
    OK.
    This is still not clear.  To post a screenshot get the "stuff" you want to show in view on your screen, then type the key combination <Command>+<Shift>+3.  The cursor will change to a crosshair.  Click and hold on the top-left corner, then drag to enclose what you want to show (to the bottom-right corner), then release.  The screenshot will appear on your desktop and will be named something like "".
    Now click the camera icon in the tool bar for this forum:
    , click the text box to allow you to navigate to, and select your screenshot.
    Here is what you sent me:
    The graph does not seem to be associated with the table of data you are showing.  Generally when you highlight a graph the corresponding table will highlight and show the source of each of the series in the graph (dark and light blue).
    This is what I would expect to see when highlighting a graph:
    Right now I think there is ANOTHER table arround that is the source for the graph and the table you show is "just another table".  You can move your data into the table the graph refers to by copy and paste, or simply typing the values.  You can change how many series there are by grabbing the little circle at the bottom right of the highlighted cells (when you have the graph highlighted) and dragging as shown:
    The Numbers Users' Guide is a great resource you should utilize and can be found here:
    http://support.apple.com/manuals#macosandsoftware
    The chapter on graphing (or charting) is 7 and starts on page 134.

  • It used to be that when I created a pdf from a word or publisher document, hyperlinks worked fine. Now I cannot get them to work unless the text displayed for the link is the complete address and it all appears on one line. Why?

    it used to be that when I created a pdf from a word or publisher document, hyperlinks worked fine. Now I cannot get them to work unless the text displayed for the link is the complete address and it all appears on one line. Why?

    You can print to the Adobe PDF printer, but that only creates links that Acrobat or Reader recognize as such. That is the reason for needing the entire URL on one line. It is not actually an embedded link, but one created by Acrobat on the fly. With OFFICE 2013 you have two choices: 1. create the PDF with the print to Adobe PDF and then add the links in Acrobat so that they are complete or 2. I think the WORD save as PDF or XPS will create the PDF with links, but not sure. If so, that would be the quickest solution for you, but be aware of potential problems with the MS plugin.
    Of course, the third option is to upgrade to XI which can be done with AA 9. You will probably not be eligible for a for an upgrade to whatever the next version will be.

  • Adobe Updater requires password when I launch any program from the suite

    It is very annoying, but not a destructive issue.
    When I launch any program from Creative Suite 3 Design Premium (6 programs) the Adobe Updater pops out and asks for a password. I can either provide a password and proceed, or deny the password and still proceed with the program.
    Is there any way to stop the Updater from popping up?
    I have it on my two machines Mac Pro (2x 2.66 GHz, 11GB RAM) and Mac Book Pro (2.33 GHz, 3GB RAM).
    I am sure that there is some settings which I simply overlooked. Can anyone point it to me?
    I would appreciate that. Thanks.
    Jack

    Unfortunately when Adobe products are restored from backup, especial CS4 and especially Mac, it breaks licensing.
    There is a python script included in the license recovery kit that should work if you are familiar with Terminal.
    If not, you must reinstall your CS4 suite.  You don't need to delete your preferences, so it should be the same as before.
    Error "Licensing has stopped working" | Mac OS
    Gene

  • When I create a .pdf from an Office file, I have to close the original file before using.  Help?

    When I create a .pdf file from an Office 2010 file (.docx or .xlsx), I cannot move, rename or alter the .pdf file until I first close the original Office file.  If I try, I get a message that the file is in use.  Is this due to some sort of cache setting?  Any suggestions?

    I believe we are using Adobe drivers within Office to generate the PDF through the print function.  All of the settings appear to be Adobe.  If I launch Distiller separately and navigate to the setting I get the exact same settings form I get when I go through the print properties settings. 

  • Function Module to create a program in SE38

    Hi,
    I have to create an ABAP program dynamically. The program name(to be created) will be provided in the selection screen and the logic of the program will be available in an internal table & also in a local PC file. Is there any Function Module available in SAP to create the program dynamically by using the code which is available in the internal table. The program should be saved in the Local Object.
    Can someone help me on this issue. Thanks in advance.
    Best Regards,
    Paddu.

    Hello Paddu.
    This code fullfills your requirement. Only has the resctriction that all the file names must be in uppercase.
    REPORT zcreate_report.
    * TYPES
    TYPES: BEGIN OF ty_code,
             line TYPE char255,
           END OF ty_code.
    * CLASSES
    CLASS cl_gui_frontend_services DEFINITION LOAD.
    * INTERNAL TABLES
    DATA: data_tab TYPE STANDARD TABLE OF file_info.
    DATA: wa TYPE file_info.
    DATA: ti_code TYPE STANDARD TABLE OF ty_code.
    * VARIABLES
    DATA: name TYPE PROGNAME.
    DATA: count TYPE i.
    DATA: bytecount TYPE i.
    DATA: filename TYPE string.
    * SELECTION-SCREEN
    PARAMETERS: p_dir TYPE string OBLIGATORY DEFAULT 'C:\test\'.
    *** START-OF-SELECTION
    START-OF-SELECTION.
      CLEAR count.
      CALL METHOD cl_gui_frontend_services=>directory_list_files
        EXPORTING
          directory        = p_dir
          files_only       = 'X'
          directories_only = space
        CHANGING
          file_table       = data_tab
          count            = count.
      IF count EQ 0.
        MESSAGE i000(zsd1) WITH 'No files found'.
        EXIT.
      ENDIF.
      LOOP AT data_tab INTO wa.
        CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
          EXPORTING
            i_input  = wa-filename
          IMPORTING
            e_output = wa-filename.
        CONCATENATE p_dir wa-filename INTO filename.
        CALL FUNCTION 'GUI_UPLOAD'
          EXPORTING
            filename                = filename
            filetype                = 'ASC'
          IMPORTING
            filelength              = bytecount
          TABLES
            data_tab                = ti_code
          EXCEPTIONS
            file_open_error         = 1
            file_read_error         = 2
            no_batch                = 3
            gui_refuse_filetransfer = 4
            invalid_type            = 5
            no_authority            = 6
            unknown_error           = 7
            bad_data_format         = 8
            header_not_allowed      = 9
            separator_not_allowed   = 10
            header_too_long         = 11
            unknown_dp_error        = 12
            access_denied           = 13
            dp_out_of_memory        = 14
            disk_full               = 15
            dp_timeout              = 16
            OTHERS                  = 17.
        CHECK sy-subrc EQ 0.
        READ TABLE ti_code TRANSPORTING NO FIELDS INDEX 1.
        CHECK sy-subrc EQ 0.
        name = wa-filename.
        INSERT REPORT name FROM ti_code.
      ENDLOOP.
    Regards.
    Valter Oliveira.

  • When I create a PDF from Excel, there are blank cells in Excel document, when they convert to PDF the blank cells have data in them?

    There are cells in the excel document that have formula's in them.  The formulas are pulling data from other blank cells, so that is why they are blank in the formulated cells.  So in Excel, they are just a dash.  When I create the PDF, the document gets opened in Acrobat and the once blank cells have data in them.  Not sure why there is data in those fields on the PDF if its blank on Excel.

    Not really sure that I fixed the problem, but I did find a work around and wanted to post it if someone else runs across the same issue. Apparently the document creator used lots of custom rules and shading. If I pulled up the custom rules and shading palette and just unchecked both the custom ruling and shading boxes, it allowed me to create the print file correctly--the disappearing part numbers were on the new PDF. I didn't have to update the whole book which I didn't want to do because I feared it would mess up the rules and shading. Just unchecking the box before creating the PDF solved that issue for my purposes.

  • How to create one program from few programs

    Hi.
    I have for example 5 programs and I would like to create one program in which i could switch between this 5 programs. One of these should be running all the time and the others should start when i will switch to them. I need solution or something like that.
    Thanks.

    You can do a search on "dynamically called" sub vi's.
    See the tiny example below of how to call it.  You can actually call multiple VI's and they will run in parallel, although you have to be careful when doing this.
    You would have to wire False to  "Wait till done"
    You can stop/close the VI using property node.  If you wired False to "Auto Dispose Ref", then make sure you do close ALL references before exiting your program.
    Message Edited by Ray.R on 04-27-2010 08:19 AM
    Attachments:
    callByReference.png ‏16 KB

  • How to keep high res when I create a pdf from Publisher doc

    I created a pdf from a Publisher document, and the resolution is less than 300 dpi (about 500KB). The 1/2 page document is over 4MG as a Publisher document, so why did I lose resolution & what can I do to keep the resolution above 300?
    I tried 3 different ways, "print," "press" and "print PowerPoint." Is it simply the fact I'm using the online trial?

    >Well, Aandi, I create the original images in Harvard Graphics and then print the HG file to a pdf using the Acrobat Distiller. The onscreen and printed graphic images in the pdf look pixelated along the edges--i.e., not as sharp as in the original.
    Ok. Are these transparent graphics i.e. with ragged edges, or just
    rectangular graphics?
    >
    >When I called Customer Service/Sales to ask about v.9 allowing for higher res screen/print images, he checked with somebody and told me that the highest res. is 600 dpi.
    I don't know why they said that. It's nonsense. Acrobat can store
    images at very high resolution, though 600 dpi is considered an
    enormous resolution, far higher than is needed for almost all
    practical purposes. Do not confuse printer resolution with image
    resolution: you don't try to match them together.
    For example, a coffee table book with high quality pictures was
    probably typeset on a 4000 dpi imagesetter, and the photos are
    probably around 300 dpi.
    >
    >I'm using v.5. I'm willing to upgrade if there is a reason to do so.
    There are many possible reasons but higher resolutions isn't one of
    them. What Distiller settings are you using for compression?
    Aandi Inston

  • When i create new layer from background the new layer then covers up the background.  It previously did not do this.

    I am a rookie.   This worked on previous pics but I apparently have clicked something I shouldn't have.  Thanks for any help.

    The problem with Actions is that as a new user, you are not going to know what steps are happening when the Action runs.  The action could be deleting the background layer, for instance.  Is the action one that came with Photoshop?  If you sourced it from somewhere else, can you give us a link? 
    There is also some ambiguity in the language you use.  Not your fault. But when you say 'create new layer from background' to me that probably means you are copying the background layer.  If that is not the case, could you give a more detailed description of the steps you are taking?
    Do you know how to upload a screen shot?  If you are using Windows 7 or 8, you can use the Snipping tool to drag across your image and layer panel. Save the image, and upload to this thread using the little camera icon.

  • Hyperlinked text--the text, not the link--disappears when I create a PDF from a book in FM 11

    I am editing a FrameMaker 11 document with some text that is hyperlinked to a website. Earlier PDFs output fine. When I created the last PDF, some of the text disappeared in the PDF, but it's still visible in FM. On the PDF, the hyperlink is active in the blank space and it works to go to the website. Specifically the hyperlinked text is part numbers in a table with a shaded background--I mention this because if I open a page of the defective PDF in Illustrator--the text that has disappeared is behind the shaded square. Some of the hyperlinked part numbers are visible in the PDF--this seems almost random. It's not just part numbers or rows where I have edited something. I'm editing the document, I didn't create it. My background is InDesign and I am a novice in FrameMaker. Appreciate any guidance or suggestions.

    Not really sure that I fixed the problem, but I did find a work around and wanted to post it if someone else runs across the same issue. Apparently the document creator used lots of custom rules and shading. If I pulled up the custom rules and shading palette and just unchecked both the custom ruling and shading boxes, it allowed me to create the print file correctly--the disappearing part numbers were on the new PDF. I didn't have to update the whole book which I didn't want to do because I feared it would mess up the rules and shading. Just unchecking the box before creating the PDF solved that issue for my purposes.

  • Error when running mortgage calc program from DOS prompt

    I have a GUI Mortgage Calculator program. It probably isn't the most efficient use of code, but it gets the job done. I am running java SDK 1.6.0_06. This is a class assignment. We are to compile the code and post the .class file for our team members to run. I am trying to get the .class file to run after I compile it with javac. I used jCreator LE to create it... it compiles and runs there just fine. The program will compile at the DOS prompt, but will not run properly. The following is the error I get (any help would be appreciated):
    Exception in thread "mani" java.lang.NoClassDefFoundError: manchorMortgage3
    Caused by: java.lang.ClassNotFoundException: manchorMortgage3
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader1.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Below is my code:
    * manchorMortgage3.java
    * Created on July 10, 2008
    * This program calculates and displays the mortgage amount
    * from user input of the amount of the mortgage and the user's
    * selection from a menu of available mortgage loans.
    import java.math.*; //*loan calculator
    import java.text.*; //*formats numbers
    import java.util.*;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class manchorMortgage3 extends javax.swing.JFrame {
        /** Creates new form manchorMortgage3 */
             public manchorMortgage3() {
             initComponents();
             setLocation(300,200);
        /** This method is called from within the constructor to
         * initialize the form.
        // Begin Initialize Components
        private void initComponents() {
            mortgageAmount = new javax.swing.JLabel();
            jTextField1 = new javax.swing.JTextField();
            termAndInterest = new javax.swing.JLabel();
            jRadioButton1 = new javax.swing.JRadioButton();
            jRadioButton2 = new javax.swing.JRadioButton();
            jRadioButton3 = new javax.swing.JRadioButton();
            calcButton = new javax.swing.JButton();
            enterAmount = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            jTextArea1 = new javax.swing.JTextArea();
            jButton2 = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Manchor - Mortgage Calculator - Week 3");
            mortgageAmount.setText("Enter the Mortgage Amount:");
            termAndInterest.setText("Select Your Term and Interest Rate:");
            jRadioButton1.setText("7 years at 5.35%");
            jRadioButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jRadioButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jRadioButton1ActionPerformed(evt);
            jRadioButton2.setText("15 years at 5.5%");
            jRadioButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jRadioButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jRadioButton2ActionPerformed(evt);
            jRadioButton3.setText("30 years at 5.75%");
            jRadioButton3.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            jRadioButton3.setMargin(new java.awt.Insets(0, 0, 0, 0));
            jRadioButton3.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jRadioButton3ActionPerformed(evt);
            calcButton.setText("Calculate");
            calcButton.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    calcButtonActionPerformed(evt);
            jTextArea1.setColumns(20);
            jTextArea1.setEditable(false);
            jTextArea1.setRows(5);
            jScrollPane1.setViewportView(jTextArea1);
            jButton2.setText("Quit");
            jButton2.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton2ActionPerformed(evt);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(26, 26, 26)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 324, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                .addComponent(enterAmount)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 222, Short.MAX_VALUE)
                                .addComponent(calcButton)
                                .addGap(75, 75, 75))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jRadioButton3)
                                    .addComponent(jRadioButton2)
                                    .addComponent(jRadioButton1)
                                    .addComponent(termAndInterest)
                                    .addComponent(mortgageAmount)
                                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addContainerGap(224, Short.MAX_VALUE)))))
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(277, Short.MAX_VALUE)
                    .addComponent(jButton2)
                    .addGap(70, 70, 70))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addGap(31, 31, 31)
                    .addComponent(mortgageAmount)
                    .addGap(14, 14, 14)
                    .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(20, 20, 20)
                    .addComponent(termAndInterest)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jRadioButton1)
                    .addGap(15, 15, 15)
                    .addComponent(jRadioButton2)
                    .addGap(19, 19, 19)
                    .addComponent(jRadioButton3)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(calcButton)
                        .addComponent(enterAmount))
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                    .addGap(18, 18, 18)
                    .addComponent(jButton2)
                    .addGap(20, 20, 20))
            pack();
        }// End initialize components
        private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//event_jButton2ActionPerformed
            System.exit(1);
        }//event_jButton2ActionPerformed
        static NumberFormat nf = NumberFormat.getCurrencyInstance(Locale.US);
        static NumberFormat np = NumberFormat.getPercentInstance();
        static NumberFormat ni = NumberFormat.getIntegerInstance();
        static BufferedReader br;
        private void calcButtonActionPerformed(java.awt.event.ActionEvent evt) {//event_calcButtonActionPerformed
            enterAmount.setText(null);
            jTextArea1.setText(null);
            double monthlyPayment;
            double interest;
            double amount ;       
            int years ;
            double monthlyInterest, monthlyPrinciple, principleBalance;
            int paymentsRemaining, lineCount;
            np.setMinimumFractionDigits(2);
        br = new BufferedReader(new InputStreamReader(System.in));
      lineCount = 0;
            try
                    amount=Double.parseDouble(jTextField1.getText());
            catch (Exception e)
                enterAmount.setText("Please Enter Mortgage Amount");
                return;
            if(jRadioButton1.isSelected())
                interest=0.0535;
                years=7;
            else if(jRadioButton2.isSelected())
                interest=0.055;
                years=15;
            else if(jRadioButton3.isSelected())
                interest=0.0575;
                years=30;
            else
                enterAmount.setText("Please Select Your Term and Interest Rate");
                return;
        jTextArea1.append(" For a mortgage of " + nf.format(amount)+"\n"+" With a Term of " + ni.format(years) + " years"+"\n"+" And an Interest rate of " + np.format(interest)+"\n"+" The Payment Amount is " + nf.format(getMortgagePmt(amount, years, interest)) + " per month."+"\n"+"\n");
        principleBalance = amount - ((getMortgagePmt(amount, years, interest)) - (amount*(interest/12)));
        paymentsRemaining = 0;
        do
            monthlyInterest = principleBalance * (interest/12);//*Current monthly interest
             monthlyPrinciple = (getMortgagePmt(amount, years, interest)) - monthlyInterest;//*Principal payment each month minus interest
            paymentsRemaining = paymentsRemaining + 1;
            principleBalance = principleBalance - monthlyPrinciple;//*New balance of loan
            jTextArea1.append(" Principal on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(monthlyPrinciple)+"\n");
                    jTextArea1.append(" Interest on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(monthlyInterest)+"\n");
                    jTextArea1.append(" New loan balance on payment  " + ni.format(paymentsRemaining) + " is " + nf.format(principleBalance)+"\n"+"\n"+"\n");
         while (principleBalance > 1);
        }//Begin event_jRadioBtton1Action Performed
        public static double getMortgagePmt(double balance, double term, double rate)
                double monthlyRate = rate / 12;
                double monthlyPayment = (balance * monthlyRate)/(1-Math.pow(1+monthlyRate, - term * 12));
                return monthlyPayment;
        private void jRadioButton3ActionPerformed(java.awt.event.ActionEvent evt) {//Begin event_jRadioButton3ActionPerformed
             if(jRadioButton2.isSelected())
                jRadioButton2.setSelected(false);
             if(jRadioButton1.isSelected())
                jRadioButton1.setSelected(false);
        }//End event_jRadioButton3ActionPerformed
        private void jRadioButton2ActionPerformed(java.awt.event.ActionEvent evt) {//Begin event_jRadioButton2ActionPerformed
             if(jRadioButton1.isSelected())
                jRadioButton1.setSelected(false);
             if(jRadioButton3.isSelected())
                jRadioButton3.setSelected(false);
        }//End event_jRadioButton2ActionPerformed
        private void jRadioButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRadioButton1ActionPerformed
            if(jRadioButton2.isSelected())
                jRadioButton2.setSelected(false);
            if(jRadioButton3.isSelected())
                jRadioButton3.setSelected(false);
        }//End event_jRadioButton1ActionPerformed
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new manchorMortgage3().setVisible(true);
        // Begin variables declaration
        private javax.swing.JButton calcButton;
        private javax.swing.JButton jButton2;
        private javax.swing.JLabel mortgageAmount;
        private javax.swing.JLabel termAndInterest;
        private javax.swing.JLabel enterAmount;
        private javax.swing.JRadioButton jRadioButton1;
        private javax.swing.JRadioButton jRadioButton2;
        private javax.swing.JRadioButton jRadioButton3;
        private javax.swing.JScrollPane jScrollPane1;
        private javax.swing.JTextArea jTextArea1;
        private javax.swing.JTextField jTextField1;
        // End  variables declaration
    }

    The class is not in your classpath. Likely you blew away your classpath with some silly environment variable.
    If you are in the directory where your class file is then execute
    java -cp . manchorMortgage3and it will work. (Note the -cp . which tells java to include the current directory in the runtime classpath)

  • Data Corrupted when using CREATE AS SELECT * FROM over DB LINK

    Hi ,
    I wonder if anyone has suffered a simillar issue as this:
    I have a DB Link Between a 10gR1 (Base install not patched) database on Windows 2003, and a 10gR2 (with latest Patch Database ) on Sun Solaris. The 10.1 DB is the SOURCE 10.2 is TARGET
    When using a statement like the following on the Target :
    CREATE TABLE a AS SELECT * FROM TABLE a@SOURCE
    The statement completes, however for some (not all) tables, the data content is seriously corrupted, I noticed this when trying to apply a UKey on the newly created table in TARGET. The data was completely messed up for around 600 out of 450000 rows, I could not easily tell which rows were messed up as it was the columns that build the UKey that were affected :-(
    The same happens if I precreate the table and use INSERT /*+APPEND*/ INTO AS SELECT.... etc
    I realise that using an unpatched 10.1 is not nessasarily advisable, however currently it is difficult for us to patch or upgrade the DB...
    If anyone has seen this before an/or has any ideas what might be the cause , I would appreciate any help I can get.
    Cheers
    JAmes

    The Problem Manifest itsself in that some fileds are created with incorrect Values, specificaly in easy to identify cases NULL where the original values where not NULL.
    These field do not contain special chars like ä or ß , so it does not seem to indicate a charset issue.
    JAmes

Maybe you are looking for