Please help me with some action event buttons

{color:#ff6600}i am trying to figure out how to capture two values from an action event button. i have already tried it 6 times and i cant figure it out.
Its a simple calculator with numbers 1 and 2 and does a multiplication calculation.
Can you help me figure it out it will be really helpful.
{color}
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
public class Calculator implements ActionListener {
JFrame frame;
JPanel contentpane;
JButton one,two;
JTextField field;
JButton mult;
JButton adds;
JButton equals;
JButton go;
public Calculator() {
frame = new JFrame ("Calculator" );
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
contentpane = new JPanel();
contentpane.setBorder(BorderFactory.createEmptyBorder(20,20,40,40));
one = new JButton( Integer.toString(1));
one.setActionCommand(Integer.toString(1));
one.addActionListener(this);
contentpane.add(one);
two = new JButton(Integer.toString(2));
two.setActionCommand(Integer.toString(2));
two.addActionListener(this);
contentpane.add(two);
field = new JTextField(10 );
contentpane.add(field);
go = new JButton("calculate");
go.setActionCommand("go");
go.addActionListener(this);
contentpane.add(go);
mult = new JButton( "*");
mult.setActionCommand("mult");
mult.addActionListener(this);
contentpane.add(mult);
adds = new JButton( "+");
adds.setActionCommand("add");
contentpane.add(adds);
frame.setContentPane(contentpane);
frame.pack();
frame.setVisible(true);
public void actionPerformed (ActionEvent event ) {
String eventn = event.getActionCommand();
String text = field.getText();
String mult ="*";
{color:#800080}if (eventn.equals("1")||eventn.equals("2") ){  \\ *{color:#ff6600}i dont know how to store two different value from an action event{color}*
text+=eventn ;
int num = Integer.parseInt(text);
field.setText(text);
{color}
{color:#800080}if (eventn.equalsIgnoreCase("mult")){
field.setText("");
{color}
{color:#800080}};
{color}
public static void runGui(){
JFrame.setDefaultLookAndFeelDecorated(true);
Calculator r = new Calculator();
public static void main (String[]args){
javax.swing.SwingUtilities.invokeLater(new Runnable(){
public void run(){
runGui();

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class ListenerDemo {
    private class DigitListener implements ActionListener {
       private int digit;
       public DigitListener(int digit) {
           this.digit = digit;
       public void actionPerformed(ActionEvent evt) {
            JOptionPane.showMessageDialog(f, "You pressed " + digit);
    private JFrame f = new JFrame();
    private JButton button1 = new JButton("1");
    private JButton button2 = new JButton("2");
    public static void main(String[] args) {
        EventQueue.invokeLater(new Runnable(){
            public void run() {
                new ListenerDemo().go();
    void go() {
        button1.addActionListener(new DigitListener(1));
        button2.addActionListener(new DigitListener(2));
        JPanel cp = new JPanel();
        cp.add(button1);
        cp.add(button2);
        f.setContentPane(cp);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setVisible(true);
}

Similar Messages

  • Please help  me with some questions with batch input session?

    hello everyone.
      I come to some questions  like
    1 What is a batch input session ,
    2  What is the alternative to batch input session?
    3  An ABAP program creates a batch input session.   We need to submit the program and the batch session in back ground. How to do it? 
       would you please help me with the questions, couldn't thank you more.
       Best regards
                                                                          Frank

    Hi
    Batch Input Session:
    BATCH INPUT SESSION is an intermediate step between internal table
    and database table. Data along with the action is stored in session
    ie data for screen fields, to which screen it is passed, program
    name behind it, and how next screen is processed.
    Three processing modes of executing Batch Input Session :-
    Run Visibly : You can correct faulty transactions online & work step-by-step through  the transactions not yet executed.
    Display Errors only : You can correct faulty transactions online.   Transactions not yet executed, but without error, run in the background.
    Run in Background .
    2) What is the alternative to batch input session?
    Call transaction.
    3) An ABAP program creates a batch input session. We need to submit the program and the batch session in back ground. How to do it?
    go to SM36 and create background job by giving
         job name,job class and job steps (JOB SCHEDULING)

  • Please Help me with my Custom Event

    I am new in java, please help me about my custom event
    I have a simple source code about custom event but it doesn't work like I want. This code generate result :
    start
    end
    but I want result :
    start
    my custom event (from aaa method)
    end
    Thank you
    package TestBean;
    class MyEvent extends java.util.EventObject {
    public MyEvent(Object source) {
    super(source);
    interface MyEventListener extends java.util.EventListener {
    public void myEventOccurred(MyEvent evt);
    class MyClass {
    protected javax.swing.event.EventListenerList listenerList =
    new javax.swing.event.EventListenerList();
    public void addMyEventListener(MyEventListener listener) {
    listenerList.add(MyEventListener.class, listener);
    public void removeMyEventListener(MyEventListener listener) {
    listenerList.remove(MyEventListener.class, listener);
    protected void fireMyEvent(MyEvent evt) {
    Object[] listeners = listenerList.getListenerList();
    for (int i=0; i<listeners.length; i+=2) {
    if (listeners==MyEventListener.class) {
    ((MyEventListener)listeners[i+1]).myEventOccurred(evt);
    public class BeanFrame extends javax.swing.JFrame {
    public BeanFrame() {
    initComponents();
    MyClass c = new MyClass();
    System.out.println("start");
    c.addMyEventListener(new MyEventListener()
    public void myEventOccurred(MyEvent evt)
    aaa(evt);
    System.out.println("end");
    private void aaa(MyEvent evt) {                    
    System.out.println("my custom event");
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">
    private void initComponents() {
    setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
    getContentPane().setLayout(layout);
    layout.setHorizontalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 400, Short.MAX_VALUE)
    layout.setVerticalGroup(
    layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
    pack();
    }// </editor-fold>
    public static void main(String args[]) {
    java.awt.EventQueue.invokeLater(new Runnable() {
    public void run() {
    new BeanFrame().setVisible(true);

    package TestBean;
    class MyEvent extends java.util.EventObject {
        public MyEvent(Object source) {
               super(source);
    interface MyEventListener extends java.util.EventListener {
        public void myEventOccurred(MyEvent evt);
    class MyClass {
        protected javax.swing.event.EventListenerList listenerList =
        new javax.swing.event.EventListenerList();
        public void addMyEventListener(MyEventListener listener) {
              listenerList.add(MyEventListener.class, listener);
        public void removeMyEventListener(MyEventListener listener) {
              listenerList.remove(MyEventListener.class, listener);
        protected void fireMyEvent(MyEvent evt) {
             Object[] listeners = listenerList.getListenerList();
             for (int i=0; i<listeners.length; i+=2) {
                    if (listeners==MyEventListener.class) {
                          ((MyEventListener)listeners[i+1]).myEventOccurred(evt);
    public class BeanFrame extends javax.swing.JFrame {
          public BeanFrame() {
                initComponents();
                MyClass c = new MyClass();
                System.out.println("start");
                c.addMyEventListener(new MyEventListener(){
                                  public void myEventOccurred(MyEvent evt){
                                              aaa(evt);
                System.out.println("end");
          private void aaa(MyEvent evt) {
                System.out.println("my custom event");
         // ><editor-fold defaultstate="collapsed" desc=" Generated Code ">
         private void initComponents() {
               setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
           javax.swing.GroupLayout layout = new 
           javax.swing.GroupLayout(getContentPane());
           getContentPane().setLayout(layout);
           layout.setHorizontalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
           .addGap(0, 400, Short.MAX_VALUE)
           layout.setVerticalGroup(
           layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
    .addGap(0, 300, Short.MAX_VALUE)
          pack();
    }// </editor-fold>
    public static void main(String args[]) {
             java.awt.EventQueue.invokeLater(new Runnable() {
             public void run() {
                      new BeanFrame().setVisible(true);
    }just enclosed it with the code tags.

  • OMG! Please help me with some actionscript for a flash .php form

    Wright I've been trying for ages to get this to work. I have
    10 combo boxes and tow input text fields in a "_mc" named "form"
    one send button with the following code on it.
    on (release) {
    form.loadVariables("email.php", "POST");
    I then have this code on the ".php" file.
    <?php
    $sendTo = "[email protected]";
    $subject = "Custom Sven Clog Order Form";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $email .= $_POST["email"];
    $name .= $_POST["name"];
    $message .= $_POST["treadColor"];
    $message .= $_POST["baseColor"];
    $message .= $_POST["bendOrNon"];
    $message .= $_POST["heelSize"];
    $message .= $_POST["nubucColors"];
    $message .= $_POST["galaxyColors"];
    $message .= $_POST["suedeColors"];
    $message .= $_POST["patentColors"];
    $message .= $_POST["leatherColors"];
    $styles .= $_POST["styles"];
    mail($sendTo, $subject, $message, "nEmail = $email\nStyles =
    $styels\nName = $name";
    ?>
    I've looked at all the normal stuff that might be wrong, is
    the "email.php" file on the server? Yes!. Is the ".swf" file on the
    server? Yes! I just cant get the code wright! The form is made in
    "flash 8 PRO" And the ".swf" file is in a Dreamweaver site. Well
    the hole thing is in a Dreamweaver site.
    I fill out the form hit send and all I get back is blank
    email with the name, sent to and subject lines filed out.
    AAAAAAAARrrrrrrrrrr!
    Someone please for the of it all tell me wear the hell I have
    gone wrong? I thank you all for taking the time to read
    this!!!!

    Firstly again, your php script, you have now put a '.'
    infront of all of the variables.
    The '.' consentinas a string. It should read....
    <?php
    $sendTo = "[email protected]";
    $subject = "Custom Sven Clog Order Form";
    $headers = "From: " . $_POST["name"];
    $headers .= "<" . $_POST["email"] . ">\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-Path: " . $_POST["email"];
    $email = $_POST["email"];
    $name = $_POST["name"];
    $message = $_POST["treadColor"];
    $message .= $_POST["baseColor"];
    $message .= $_POST["bendOrNon"];
    $message .= $_POST["heelSize"];
    $message .= $_POST["nubucColors"];
    $message .= $_POST["galaxyColors"];
    $message .= $_POST["suedeColors"];
    $message .= $_POST["patentColors"];
    $message .= $_POST["leatherColors"];
    $styles = $_POST["styles"];
    Also you need to close the brackets in your mail()
    function....
    mail ($sendTo, $subject, $message,$headers);
    That is the first problem. Your big problem is that you
    aren't sending any of the variables from your swf, to the php file.
    You need to look up loadVars(). I don't think you can use
    loadVariables, as you want to send the variables to php, not
    recieve them. You can use loadVars to sendAndLoad variables to the
    php... be it 'email','name' etc and the php script will email
    them.

  • Please help me with some backup questions....

    After suffering through two hard drive failures (not my main drive, fortunately), and being frustrated with trying to keep everything backed up, I'm taking a fresh approach to everything and I plan to do the following:
    1.  Purchase a new, 2 TB hard drive (enterprise class - Can you guys recommend a reliable one?) and clone my existing main hard drive to it.
    2.  Purchase a second identical drive and install it in bay #2.
    3.  Likely purchase G-Technology's G-Safe with Raid 1 capability.  Likely 3 TB just cause.
    4.  I'll keep my current 1 TB Hitachi Deskstar in the 3rd bay.  It serves only my Sonos music system.  (I wanted a separate drive for that so my regular drives weren't always running.)
    So far so good.  I plan on putting all my files on the one main 2 TB drive.  (Formerly roughly 500 GB of music was on a separate internal drive, the one that's died twice now. Seagate Barracuda FYI.)  I'll then clone the main drive to the identical drive in the 2nd bay and make it bootable as well.  That's backup #1 and I plan on having it also updated regularly.  (Incrementally, not a complete erase and rewrite, but still keeping it bootable.)  I'll then hook up the Raid 1 drive and clone the main hard drive to that as well, also making it bootable.  That will give me backup #2 and #3 (through mirroring).  These drives will be backed up less often and when not being used, will be stored in a fire proof safe in the garage.  So far so good, I think.
    What I'm stuck on is what software to use for doing the cloning and more importantly, the backups.
    For the cloning, I understand I can simply use the Restore function in the Disk Utility.  Is this correct?  Or am I better off using SuperDuper or Carbon Copy Cloner?  If so, which one?  And why?
    For the regular backups, I have been using Retrospect but frankly, I'm less than impressed with their interface and I've never liked the fact that even if the backups aren't compressed, I can't see the files unless I do so through Retrospect.  I can't just go to the backup drive and view the files.  They're all hidden in the one Retrospect icon.  So, I'm considering the following:
    Time Machine:  However, I was less than impressed with it in the past as it seemed to completely fill whatever drive I pointed it to and then it would fail to backup.  I never could figure it out that well. 
    SuperDuper:  I was just checking them out and it seems that it's not only a good cloner, but will also then keep that clone up to date and bootable on a regular basis.  It really sounds like it's what I need.  And the screen shots I saw on their site seem pretty well thought out and explain a lot.
    Carbon Copy Cloner:  I know this app has been around for a long time, though I've never used it.  I'm presuming it's good for cloning a drive onto a larger drive, just as SuperDuper is, but can it do scheduled backups of that clone like SuperDuper can? 
    And in all cases, I want to keep both the second internal drive and the external RAID drives backed up from their original clonings.  Can any of these programs handle ongoing backups to two or more destinations from the same source? 
    And finally, a last question or two:
    To repeat my first question, who makes a really reliable enterprise class drive? 
    And has anyone had any experience with G-Technology's G-Safe with RAID 1? 
    Thanks much for all your help. 
    Oh, here's my system:  Mac Pro tower, 2008 2.8 GHz, 10 GB ram.  Dual Intel processors.  Currently 10.5.8, soon to be 10.6.8. 

    valbelvalbel wrote:
    After suffering through two hard drive failures (not my main drive, fortunately), and being frustrated with trying to keep everything backed up, I'm taking a fresh approach to everything and I plan to do the following:
    1.  Purchase a new, 2 TB hard drive (enterprise class - Can you guys recommend a reliable one?) and clone my existing main hard drive to it.
    2.  Purchase a second identical drive and install it in bay #2.
    3.  Likely purchase G-Technology's G-Safe with Raid 1 capability.  Likely 3 TB just cause.
    4.  I'll keep my current 1 TB Hitachi Deskstar in the 3rd bay.  It serves only my Sonos music system.  (I wanted a separate drive for that so my regular drives weren't always running.)
    Hitachi and Seagate both make enterprise class drives. Just visit their websites to find models.
    So far so good.  I plan on putting all my files on the one main 2 TB drive.  (Formerly roughly 500 GB of music was on a separate internal drive, the one that's died twice now. Seagate Barracuda FYI.)  I'll then clone the main drive to the identical drive in the 2nd bay and make it bootable as well.  That's backup #1 and I plan on having it also updated regularly.  (Incrementally, not a complete erase and rewrite, but still keeping it bootable.)  I'll then hook up the Raid 1 drive and clone the main hard drive to that as well, also making it bootable.  That will give me backup #2 and #3 (through mirroring).  These drives will be backed up less often and when not being used, will be stored in a fire proof safe in the garage.  So far so good, I think.
    I don't know what your desires are for backup redundancy, but I would create a two drive mirrored RAID for your main backup. This could consist of two identical hard drives mounted in your Mac Pro's slots (this is what I do.) Or you could purchase a two-drive external case and use Firewire. (I also do this.) Drive size should be determined by how large a drive(s) you are backing up and if you plan to use Time Machine. TM's backup device must be at least twice the size of the drive(s) it backs up.
    What I'm stuck on is what software to use for doing the cloning and more importantly, the backups.
    For the cloning, I understand I can simply use the Restore function in the Disk Utility.  Is this correct?  Or am I better off using SuperDuper or Carbon Copy Cloner?  If so, which one?  And why?
    For the regular backups, I have been using Retrospect but frankly, I'm less than impressed with their interface and I've never liked the fact that even if the backups aren't compressed, I can't see the files unless I do so through Retrospect.  I can't just go to the backup drive and view the files.  They're all hidden in the one Retrospect icon.  So, I'm considering the following:
    Time Machine:  However, I was less than impressed with it in the past as it seemed to completely fill whatever drive I pointed it to and then it would fail to backup.  I never could figure it out that well. 
    SuperDuper:  I was just checking them out and it seems that it's not only a good cloner, but will also then keep that clone up to date and bootable on a regular basis.  It really sounds like it's what I need.  And the screen shots I saw on their site seem pretty well thought out and explain a lot.
    Carbon Copy Cloner:  I know this app has been around for a long time, though I've never used it.  I'm presuming it's good for cloning a drive onto a larger drive, just as SuperDuper is, but can it do scheduled backups of that clone like SuperDuper can? 
    And in all cases, I want to keep both the second internal drive and the external RAID drives backed up from their original clonings.  Can any of these programs handle ongoing backups to two or more destinations from the same source?
    If you are running Lion then do not use SuperDuper. It has not yet been updated for reliable use with Lion and cannot handle Lion's Recovery HD. Carbon Copy Cloner's recent beta release would be a good choice as would Synk Pro from Decimus, or Tri-Backup.  All of these will clone a drive as well as perform scheduled backups/updates of a clone. But only CCC properly deals with Lion's Recovery HD at this time. All of these make essentially file by file copies from the source to the destination. One can easily restore a file or a few items without needing to use the backup utility since everything on the backup is accessible through the Finder.
    TM is not able to create a bootable clone. It is an archival backup utility intended for home users needing basic, automatic, and simple to use backup software. Restoring software from a TM backup can only be done through the TM application.
    And finally, a last question or two:
    To repeat my first question, who makes a really reliable enterprise class drive? 
    And has anyone had any experience with G-Technology's G-Safe with RAID 1? 
    Thanks much for all your help. 
    Oh, here's my system:  Mac Pro tower, 2008 2.8 GHz, 10 GB ram.  Dual Intel processors.  Currently 10.5.8, soon to be 10.6.8. 

  • Please help me with the following two questions, very urgent

    Hi All,
    Please help me with some scenerios about what are the common problems when modifying a standard script such a standard Invoice script and how can we overcome them.
    What are the common problems encountered when working with SAP SMARTFORMS and how to overcome them?
    Please help me with these questions, its very urgent.
    Thanks in advance.
    MD.

    hi
    hope it will help you.
    reward if ehlp.
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)

  • After a few minutes on safari it freezes everything i can't even force quit i have to shut off by holding the power button down please help me with this. thanks

    everything freezes i can't even force quit i have to shut off by holding the power button down please help me with this. thanks

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a Fusion Drive or a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

  • HT1296 i cannot transfer some videos to my iphone 3gs. the file is in MPEG4 format. i can view in itunes but cannot be transfered to iphone. Please help me with this problem.

    i cannot transfer some videos to my iphone 3gs. the file is in MPEG4 format. i can view in itunes but cannot be transfered to iphone. Please help me with this problem.

    In iTunes, Advanced>Create iPod or iPhone version

  • PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    PLEASE HELP ME.  Some important emails have gone to an archive mail box and i really need them.  Can someone please help me with how to view the archive email box and the emails that are in there?

    http://kb.mozillazine.org/Recovering_deleted_mail_accounts

  • Can you please help me with validation logic for Events in Table maintenance generator

    Can you please help me with validation logic for Events in Table maintenance generator,i.e if i enter record in 1st internal table then automatically 2nd internal table should be updated.

    Hi Glen Anthony,
        Thanks for replay,
         I used foreign key relationship between those 2 internal tables....
    I used event 05: When creating a new entry. I want to know the custom logic by which my 2nd Internal table gets automatically updated when i update my 1st Internal table
    Thanks Glen.

  • Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    Is there any link between oe_order_headers_all and hz_cust_accounts tables. I need to find the cust_account_id for some order_number. Please help me with this

    you can link
    OOH.invoice_to_org_id=CUST.cust_account_id   -- invoice customer
    OOH.sold_to_org_id=CUST.cust_account_id   -- sold to customer
    OOH.ship_to_org_id=CUST.cust_account_id   -- ship to customer

  • Please help me with spry bar menu

    I have laid out my page with the div tags in Dreamweaver. I defined the  different sections by putting colors in them until i am ready to put stuff into them however when i insert the spry menu bar into my navigation section, the area below it is behaving like a drop down box  of color. What i mean is that the area below which is supposed to stretch from left to right as a single box is now broken up by a different color box the width of the spry bar and goes down to the next box. When i preview it in the browser the page appears normal. How can i get rid of the intruding box in dreamweaver.

    HI
    I am practicing for the webmaster design course pratical exam. The web page i will be asked to construct will consist of a home page with two or three other pages pages in the site it will have to link to.  I know how to do most of the steps individualy but i do not know in what order some of them are done. What i mean is this. ... after setting up the root folder..images..laying out the divs .. i would like to know ... at what point do i do the various things like, set up a styles folder...make a template... make the other pages of the site ..etc. I think i am able to do nearly all of these things but not sure in what order they should be done so the site will work.
    I have reached the point where i have established the site and layout, i.e. the wrapper, logo, navigation,header,bodycontent,right and left columns, clearbar, footer. i would like someone to list the sequence i should follow after this. I am praticing on a trial CS5.5 which seems to simplfy to a freat extent what we learned on the course because it is a later version. The version we used on course was  CS4  and if the pratical is in this version then i will need to know how it is done in this format.
    Date: Sun, 22 Jan 2012 17:45:18 -0700
    From: [email protected]
    To: [email protected]
    Subject: Please help me with spry bar menu
    Re: Please help me with spry bar menu created by Nancy O. in Dreamweaver - View the full discussion
    If this only happens in DW Design View, use Live View or turn off your CSS display.
    View > Style Rendering > un-tick Display Styles.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4157994#4157994
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4157994#4157994. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in Dreamweaver by email or at Adobe Forums
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • I cannot install itunes on my windown 7 laptop.  Error says "computer not modified".  Please help me with this problem.

    I cannot install Itunes and Icloud on my Sony Vaio Laptop - Window 7.  Error says " computer/system not modified".  Please help me with this problem. 

    Hello there, jag123059.
    The following Knowledge Base article offers up some great steps to follow for resolving issues with installing iTunes:
    Issues installing iTunes or QuickTime for Windows
    http://support.apple.com/kb/ht1926
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • Please help me with the proper query for the below problem

    Hi,
    I have a table RATE which have two columns RT_DATE (date) and RATES(number).
    This table have following data.
    RT_DATE
    RATES
    1-JAN-2007
    7
    2-MAR-2008
    7.25
    5-JAN-2009
    8
    8-NOV-2009
    8.5
    9-JUN-2010
    9
    I wanted to get the rate of interest on 8-DEC-2009.
    Output will be 8.5 as this given date is in between 8-NOV-2009 and 9-JUN-2010. Could you please help me with proper query?
    Regards,
    Aparna S

    Hi,
    That sounds like a job for the LAST function:
    SELECT  MIN (rates) KEEP (DENSE_RANK LAST ORDER BY rt_date) AS eff_rate
    FROM    rate
    WHERE   rt_date < 1 + DATE '2009-12-08'
    MIN above means that, in case of a tie (that is, 2 or more rows with the exact same latest rt_date) the lowest rates from that latest rt_date will be returned.  In rt_date is unique, then it doesn't matter if you use MIN or MAX, but syntax demands that you use some aggregate function there.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for your sample data, and also post the results you want from that data.
    Point out where the statement above is getting the wrong results, and explain, using specific examples, how you get the right results from the given data in those places.
    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#9362002

  • Hey guy can you please help me with this issue PLEASE!

    Hey Apple can you please help me with this issue, i have a iPhone 3gs and when i put my sim card into the iPhone it makes iphone 3gs shut down suddenly how do i fix that?
    iPhone version: 6.0.1
    service provider: Vodafone nz

    You could restarting your phone that sometimes fixes issues
    Hold down the Sleep/Wake button and the home button together until the apple logo appears (ignore the ON/OFF slider) then let both buttons go and wait for phone to restart (no data will be lost).

Maybe you are looking for

  • Required help for Identifying diff. items in file content conversion.

    Hi All, I've to use a file content conversion parameters for a .txt file in which there are two objects. One is a header and the other is a item detail. How do we get or mark the difference between both so that XI recognizes the particular line is a

  • Acrobat XI - blank page sizes

    When using the Pages > Insert Blank Page command, is it possible to specify the page dimensions of the new page?

  • The listener support no services

    hello all, I just installed Oracle 11g r2 on linux x64 after installation, i went to sqldeveloper to test the connection. it worked, so i shutdown the box. now, i turned on the box. I opened sqldeveloper to create a new account. it return an error OR

  • Performance monitor

    BEA performance monitor 8.1 gives following error any clue? java.io.IOException: Read channel closed

  • Syncserver fails, reset does nothing - please help!

    I regularly sync my iPhone to iCal, using iTunes, however the last few days i've been unable to sync either direction. I've hard-reset my phone, rebooted, reset the sync server, and all other options I can think of (overwrite phone, etc etc). Syncser