Active button with .PSD attached

Hello
I have created a motion picture with 3 live type fonts. I import to DVD SP 4 and I do the quick button over each text, so when selected I have it set to have a faded box over the title. All works great.
Was think of doing something neat, was thinking if I could only get a still picture to do the same thing. I want it to work like the faded box over the text. I have added the asset, selected it in the button, only issue is, since its a still, it on all the time. is this even possible?
thanks, always trying new creative ideas

See if this is useful
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
class SwingA implements ActionListener
JPopupMenu pop;
JFrame frame;
JPanel panel;
JButton cmdPop;
JDialog dlgFrame;
int times_clicked = 0;
     public static void main(String[] args)
     SwingA A=new SwingA();
     SwingA()
                try
          UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                  frame=new JFrame("PopUp");
                  frame.setSize(600,480);
                  frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
                  pop=new JPopupMenu();
                  cmdPop=new JButton("Click");
                 cmdPop.addActionListener(this);
               JMenuItem item = new JMenuItem("First");
               JMenuItem item1 = new JMenuItem("Second");
               pop.add(item);
               pop.add(item1);
                 panel=new JPanel();
                  panel.add(cmdPop);
                  frame.getContentPane().add(panel);
                  frame.setVisible(true);
          catch(Exception E)
     public void actionPerformed(ActionEvent source)
       pop.show(cmdPop, cmdPop.getWidth(), 0);
}

Similar Messages

  • I have five buttons with audio attached to each button. When I publish in html5 and test the buttons the audio cuts out at random times. Any suggestions. I have the latest version of Adobe Captivate 7

    Can someone please help me with this problem I cannot see how simply attaching audio to a button can be so problematic. I have no idea how to fix this.

    I am using CP8 and have found similar issues. When using the responsive project, my slides with multiple buttons have audio attached via advanced actions that will cut out if a user attempts to click another button before the first has finished playing. When the user listens to the entire audio file attached to the button, there are no issues with audio btw. I have tried attaching it to the button, but it plays when the button appears rather than on success. Furthermore, setting it to play audio on success is a problem because there are multiple actions that must be completed for each button. I have also found that setting audio any other way besides through advanced actions can create an audio overlap of more than one audio file. I haven't been able to find a way to time the advanced action or slide so that the user cannot click through the buttons without hearing all of the audio first.
    Any ideas on how to get around this problem would be fantastic if it doesn't require an entire rewrite. If I wasn't already 86% through the course development, I would use buttons to initiate branching scenarios which would fix a lot of my issues, but don't want to start over at this point.

  • How to create a button with an attached menu?

    I don't know how these buttons are called but I'll try to explain what I want to do. I have a toolbar where I have a button that cycles through several functions on every action - I use it to cycle through display modes. Because I do not want to switch through all other posibilties I want a menu next to it where I can directly switch to the desired display mode. Clicking on the button cycles through the modes and clicking on the attached menu provides a direct selection. What I have in mind is something like the "show images / show no images / show cached images only" Button in the Opera webbrowser, see
    http://img32.imagevenue.com/img.php?loc=loc74ℑ=a33_button_menu.jpg
    Currently I'm using a group of JToggleButtons but since I'm going to add new display modes adding new buttons would make the toolbar look too crowded.

    See if this is useful
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class SwingA implements ActionListener
    JPopupMenu pop;
    JFrame frame;
    JPanel panel;
    JButton cmdPop;
    JDialog dlgFrame;
    int times_clicked = 0;
         public static void main(String[] args)
         SwingA A=new SwingA();
         SwingA()
                    try
              UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
                      frame=new JFrame("PopUp");
                      frame.setSize(600,480);
                      frame.setExtendedState(JFrame.MAXIMIZED_BOTH);
                      pop=new JPopupMenu();
                      cmdPop=new JButton("Click");
                     cmdPop.addActionListener(this);
                   JMenuItem item = new JMenuItem("First");
                   JMenuItem item1 = new JMenuItem("Second");
                   pop.add(item);
                   pop.add(item1);
                     panel=new JPanel();
                      panel.add(cmdPop);
                      frame.getContentPane().add(panel);
                      frame.setVisible(true);
              catch(Exception E)
         public void actionPerformed(ActionEvent source)
           pop.show(cmdPop, cmdPop.getWidth(), 0);
    }

  • JFileChooser - activating buttons with the enter key

    Hi All,
    I am trying to figure out how to activate the cancel button in the file chooser by tabbing to it, and than pressing the enter key. I know how to do this in a regular dialog, but I can't seem to get the access I need to the JFileChooser to get it to work there.
    I would appreciate any help.
    Thanks!
    robinste

    The Buttons in the File Chooser by default dont use the Enter Key.
    You must make the Enter key work if you are to use it
    after you tab to get the focus on to it.
    For this to be done you will need to extend the FileChooser
    and change the key listener for the cancel button .......
    Hope t was of some help ............

  • If button press, open mail with active project-file as attach?

    Greetings community,
    I have followed question.
    I have a MS-Project Add-In and I have a mask in it. (VB.net - Visual Studio 2012)
    I want to create a button in this mask. If the user click to the button, an e-mail should create (with the local installed mail application), I fill the mail addresse (TO), Subject, message body and the active project file as attachment.
    The user can manuel send this mail.
    Is this possible?
    Regards
      Michael

    Hi,
    AFAIK this will work using the Mailsend method. Below is the help:
    Application.MailSend Method (Project)
    Sends a mail message.
    Syntax
    expression.MailSend(To, Cc, Subject, Body, Enclosures, IncludeDocument, ReturnReceipt, Bcc, Urgent, SaveCopy, AddRecipient)
    expression A variable that represents an Application object.
    Parameters
    Name
     Required/Optional
     Data Type
     Description
    To
     Optional
     String
     The user names of the primary recipients of the message, separated by commas.
    Cc
     Optional
     String
     The user names of the secondary recipients of the message, separated by commas.
    Subject
     Optional
     String
     The subject of the message.
    Body
     Optional
     String
     The main text of the message.
    Enclosures
     Optional
     String
     The file names of one or more files to include with the message. Use the list separator character to separate multiple file names. Do not add space between the list separator and the file name.
    IncludeDocument
     Optional
     Boolean
     True if the active project is included in the message. The default value is True.
    ReturnReceipt
     Optional
     Boolean
     True if a message is sent to the sender when the recipient opens the message. The default value is False.
    Bcc
     Optional
     String
     The user names of the message recipients which are not displayed, separated by semicolons. This argument is only supported in Microsoft Project for the Macintosh version 4.0
    Urgent
     Optional
     Boolean
     True if the message is given a high priority. This argument is only supported in Microsoft Project for the Macintosh version 4.0.
    SaveCopy
     Optional
     Boolean
     True if a copy of the message is saved in the SentItems folder. This argument is only supported in Microsoft Project for the Macintosh version 4.0.
    AddRecipient
     Optional
     Boolean
     True if recipients of the message are added to a personal address book. This argument is only supported in Microsoft Project for the Macintosh version 4.0.
    Greetings,

  • PSD Rollover Button with image in front stops button from changing state

    I have a wide PSD button that changes state when rolled over. I would like to place a PNG image with transparency in some areas over the top of it so that the rollover button shows through the transparent areas of the PNG.
    How can you get it to do the rollover effect when the user mouses over the bit of the button that the image is in front of? Is ther a way of making the PNG 'invisible' to the mouse?
    I know I could redesign the button so that it includes the image but I'm trying to keep file sizes and load times to a minimum, I use this button a lot on my website with a different on each, and having that number of individual buttons would result in a bloated, slow-loading website.

    Hi Abhishek
    Thanks for your reply. I was able to achieve the effect I wanted by having the PNG and the PSD Button with the same link and then grouping them. This means I can mouse over the PNG and still get the PSD rollover effect, which is perfect.
    However I also have another similar problem. I have some different PSD Rollover Buttons which have some text in front of them (basically it's the button label). On some of these buttons when you roll over the text it prevents the rollover state of the button, and on other buttons the rollover effect occurs as it should, and there doesn't appear to be any consistency about which does what. Grouping or ungrouping doesn't appear to make a difference. Can you help?

  • Button Actions for Attached Files with Limitations

    I have a slide with 5 buttons with the action to open up a pdf; one for each button.  Yet it seems that only 3 buttons will work no matter the order I click on them.  Does anyone know if there is a set limit to attached files that can be placed on one slide?

    Hi there
    No set limit I'm aware of. But it might be related to timing and pause points if you didn't properly configure the buttons.
    You should configure each button so it opens in a new window and the project does not continue playing.
    Another thing to check is the naming of the PDFs. When you upload to a web server it may be the case that you perhaps specified SomeFile.pdf in the link but the file is actually named SOMEFILE.PDF or somefile.pdf. (case can factor in here)
    Hope this helps a bit... Rick

  • Multi-layered buttons used psd

    Newb here... I have a multi-layed psd file that I would like to use as button. Simply says Lesson 1. One layer is yellow, then white, then red for normal, active, and selected. What do I do to make each layer show as a button as I go from normal (yellow), to active or hovering over the button (white) to selected(red)? been messing with it for a while, but can't seem to get the right combo of actions in the button inspector, or whatever. thanks in advance!

    Quick description:
    Create the entire menu with background as the layered PSD
    Set separate layers for different states (inactive, rollover, active)
    Add the PSD as a Multilayer Menu
    Draw button around your region designated as a button on the PSD
    Make sure that only the background is turned on in the Menu settings in the inspector (checked, and other layers unchecked)
    In the inspector for the button, select and check the layer for the appropriate state.
    Check the state/display with the state/display buttons under the viewer.

  • Problem with MacMail on MacBook Air - mail with 32MB attachment appearing in "recovered messages" folder every 12 seconds

    Problem with MacMail on MacBook Air
    3 days ago I failed to send a mail with a large (32MB) attachment - and it is no longer in my outbox, draft mails or sent file.
    BUT a copy of this same mail now appears every about 15 seconds in my "recovered messages" folder
    I noticed when I received a system error saying I had a disk almost full issue - there were over 580 copies of the mail with 32MB attachment in the "recovered messages file"
    I deleted them all, and deleted the Trash
    BUT the message still keeps re-appearing every 15 seconds or so.  So I keep deleting them.
    Since then I have not been able to receive mail (altho' I am able to send) and Mail is VERY slow
    I am running MAC OS X 10.6.8
    I am running Mail version 4.6 (1085)

    Also here's the log before it happened. As you can see there is no activity from 9:48 to 10:00 am when the sound occurred.
    23/02/2014 9:48:12.792 am ntpd[52]: FREQ state ignoring -0.145411 s
    23/02/2014 9:48:15.258 am WindowServer[96]: _CGXHWCaptureWindowList: No capable active display found.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000280
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319378: AirPort_Brcm43xx::powerChange: System Sleep
    23/02/2014 9:48:20.000 am kernel[0]: ARPT: 61.319390: wl0: powerChange: *** BONJOUR/MDNS OFFLOADS ARE NOT RUNNING.
    23/02/2014 9:48:20.000 am kernel[0]: AppleCamIn::systemWakeCall - messageType = 0xE0000340
    23/02/2014 10:00:04.000 am bootlog[0]: BOOT_TIME 1393167604 0
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.appstore" claims selected messages.
    Those messages may not appear in standard system log files or in the ASL database.
    23/02/2014 10:00:06.000 am syslogd[17]: Configuration Notice:
    ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
    Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • Can you help me with activation problems with Photoshop in CS2?

    I'm running a titanium powerbook, G4 and Mac OSX 10.4.11. When I launch Photoshop CS2 this happens:
    First, an error message appears in a dialog box which says exactly this: <One or more files in the Adobe Application Support folder, necessary for running Photoshop, are missing. Please run the Photoshop installer and re-install Photoshop.> I click the OK button.
    The Adobe Activation screen shows up next. If I click Activate at the bottom of the Internet Activation screen, I get this: <Activation Unsuccessful. We were unable to activate Adobe Creative Suite. Click the Phone Activation button to speak with one of our Customer Care representatives.> At the bottom left of the screen, it says <Error code: 93:-12> I click the Phone Activation button.
    The automated system fails to recognize some part of the Serial Number and Activation Number process and I speak with a person.
    After more than an hour of being passed from representative to representative, it is determined that they no longer support CS 2, and that this forum is the best place to go for help.
    I'm counting on you, P'shopistas! How can I activate?
    Thanks in advance to all!!!
    Enkisma

    I woud try two things.
    One I would uninstall the application to do so I would look in the Applications/Utilities/Adobe Installers and run the Installer to remove the Photoshop CS 2 application.
    I would then look in the Users/Username/Library/Preferences and remove anything connected to this version of Photoshop same with Users/Username/Library/Cache and Users/Username/Library/Application Support/Adobe and remove anything related to PS.
    Then reinstall.
    if that does not work then do an archival reinstal of the system an d then reinstall.
    Most important is that this software is not activated on two other computers or you will not be able to install and activate.

  • Error while sending a mail with pdf attachment

    Hai
    I am sending mail with an attachment of PDF document. While sending I am getting
    javax.activation.UnsupportedDataTypeException: application/pdf
    This is my code
    public static void setByteArrayAsAttachment(Message msg, byte[] attach)
    throws MessagingException {
    MimeBodyPart p1 = new MimeBodyPart();
    ByteArrayDataSource byteStr = new ByteArrayDataSource(attach,"application/pdf");
    p1.setContent(byteStr,"application/pdf");
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(p1);
    msg.setContent(mp);
    Can one one help me on this...
    Thanks
    Jithesh PM

    Change
    p1.setContent(byteStr,"application/pdf");
    to
    p1.setDataHandler(new DataHandler(byteStr));

  • The Hyperlinks and even the active buttons(like Back, Forward, Maximize,minimize,closeetc) on a webpage opened on Firefox page become inactive and there is no action on mouse click on them.

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    I use Firefox Version 3.6.6. If firefox is kept opened for a day or two with some tabs opened, then the active buttons like the "Back","Forward","Maximize","minimize","Close", etc and even the links on the webpage become disabled. On mouse click no action gets performed on these type of links. Once this starts only a PC restart causes Firefox to work normally.
    Please kindly help me with a solution and I would request a fix for this issue.
    == This happened
    ==
    A few times a week
    == Firefox is kept opened for long time, may be for a day or two with quite a lot of tabs opened.
    ==
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.6
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    Google Redesigned 0.4.5 false
    Greasemonkey 0.8.20100211.5 false
    Java Console 6.0.16 true
    Java Console 6.0.17 true
    Java Console 6.0.20 true
    Java Quick Starter 1.0 false [email protected]
    Microsoft .NET Framework Assistant 1.1 false {20a82645-c095-46ed-80e3-08825760534b}
    New Tab King 3.1.4 false
    RealPlayer Browser Record Plugin 1.1.1 false
    Stylish 1.0.8 false {46551EC9-40F0-4e47-8E18-8E5CF550CFB8}
    Modified Preferences
    Name
    Value
    accessibility.typeaheadfind.casesensitive 1
    accessibility.typeaheadfind.flashBar 0
    browser.places.smartBookmarksVersion 2
    browser.startup.homepage_override.mstone rv:1.9.2.6
    extensions.lastAppVersion 3.6.6
    general.useragent.extra.microsoftdotnet (.NET CLR 3.5.30729)
    network.cookie.prefsMigrated true
    print.print_printer \\secureprint\Level 8 Right Wing Printer
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Left_Wing_Printer.print_unwriteable_margin_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgcolor false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_bgimages false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_command
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_downloadfonts false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_edge_top 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_evenpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerleft &PT
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_footerright &D
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headercenter
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerleft &T
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_headerright &U
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_in_color true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_bottom 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_left 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_right 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_margin_top 0.5
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_oddpages true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_orientation 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_pagedelay 500
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_data 1
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_height 11.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_type 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_size_unit 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_paper_width 8.50
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_reversed false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_scaling 1.00
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_shrink_to_fit true
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_to_file false
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_bottom 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_left 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_right 0
    print.printer_\\secureprint\Level_8_Right_Wing_Printer.print_unwriteable_margin_top 0
    privacy.sanitize.migrateFx3Prefs true
    security.warn_viewing_mixed false
    == User Agent
    ==
    Opera/9.80 (Windows NT 5.1; U; en) Presto/2.5.24 Version/10.54

    I do not use McAfee software and I am having this issue. I can right-click on the "back-or-forward" buttons and get a history list to choose from (which is far from an improvement), but do not get any response from a left-click. The "back-or-forward" navigation buttons are greyed-out. Also, when I open Firefox (4), I get two title bars at the top with two separate sets of the "minimize", "maximize" and "close" icons. It appears as if one window is open within another, but if I click any of the commands "both" windows respond. It's annoying and cumbersome.

  • Issue with Excel Attachement in BI 7.0

    Hi,
    I have developed a custom report to send an e-mail with excel attachment in BI 7.0. When we are trying to open the excel sheet attachment in the e-mail. I am getting a message warning message stating that<b> 'This file is not in a recognizable format'</b>. but if we click on ok button then everything looks fine i.e the data is displaying as expected.
    I have developed the same reports in SAP R/3 and SRM but I don't see any issues over there.
    Can any one help me on this issue.
    Thanks in advance,
    Venkat Bomma

    When the selection screen pops up choose the KEY only function on the TOOLS on the top right corner of the screen. Then you will be able to enter the values manually.
    Hope this helps.

  • How to send an email with an attachment using webdynpros

    Hi Friends,
    i have a table and a toolbar button (send) when i click on that button i have to send an email for the selected row from the table with an attachment. please let me know step by step in detail.
    Thanks,
    Mahesh.Gattu

    Hi Mahesh,
    I observed one thing that the mail was waiting in the system. In SCOT transaction we can see that the mail was waiting.
    And also we need to add one more parameter to the function module call i.e.       commit_work                = 'X'
    After adding this parameter also in my scenario the mail was in waiting state in SCOT transaction.
    In Scot transaction, i have created a job sheduled for the INT, selected varient INT and set the peroid 1 min.
    After performing this, the mail functionality was working in my application.
    Sample code:
    METHOD onactionsend_mail .
    For API
      DATA: ls_maildata TYPE          sodocchgi1,
            lt_mailtxt  TYPE TABLE OF solisti1,
            ls_mailtxt  TYPE          solisti1,
            lt_mailrec  TYPE TABLE OF somlrec90,
            ls_mailrec  TYPE          somlrec90,
            sent_to_all TYPE          sonv-flag.
      DATA: l_current_controller TYPE REF TO if_wd_controller,
            l_message_manager    TYPE REF TO if_wd_message_manager.
      ls_maildata-obj_name  = 'Test mail Subject'.
      ls_maildata-obj_descr = 'Test mail Description'.
      ls_maildata-obj_langu = sy-langu.
      ls_mailtxt-line = 'Test mail Subject 2'.
      APPEND ls_mailtxt TO lt_mailtxt.
      CLEAR ls_mailtxt.
      ls_mailtxt-line = 'Test mail Description 2 '.
      APPEND ls_mailtxt TO lt_mailtxt.
      ls_mailrec-receiver  = '[email protected]'.
    ls_mailrec-express   = 'X'.
      ls_mailrec-rec_type  = 'U'.
      APPEND ls_mailrec TO lt_mailrec.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = ls_maildata
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = sent_to_all
        TABLES
          object_content             = lt_mailtxt
          receivers                  = lt_mailrec
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc <> 0.
      ENDIF.
    ENDMETHOD.
    You can also refer the thread (regarding email was waiting) Re: email status waiting.
    Best regards,
    Suresh

  • How to send an email with an attachment to the customers email address.

    Hi friends,
    How to send an email with an attachment to the customers email address.
    the attachment will be in doc format.
    Having an Header
    the data which i am sending must be in a TABLE format
    with 5 columns.
    and each column must have a column heading
    Please guide me.
    Thanks in Advance,
    Ganesh.

    *& Report  ZEMAIL_ATTACH                                               *
    *& Example of sending external email via SAPCONNECT                    *
    REPORT  ZEMAIL_ATTACH                   .
    TABLES: ekko.
    PARAMETERS: p_email   TYPE somlreci1-receiver .
    *Here get the values of mail from the table adn6 for the customer address.
    TYPES: BEGIN OF t_ekpo,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
    END OF t_ekpo.
    DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
          wa_ekpo TYPE t_ekpo.
    TYPES: BEGIN OF t_charekpo,
      ebeln(10) TYPE c,
      ebelp(5)  TYPE c,
      aedat(8)  TYPE c,
      matnr(18) TYPE c,
    END OF t_charekpo.
    DATA: wa_charekpo TYPE t_charekpo.
    DATA:   it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
            t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
            t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
            w_cnt TYPE i,
            w_sent_all(1) TYPE c,
            w_doc_data LIKE sodocchgi1,
            gd_error    TYPE sy-subrc,
            gd_reciever TYPE sy-subrc.
    *START_OF_SELECTION
    START-OF-SELECTION.
      Retrieve sample data from table ekpo
      PERFORM data_retrieval.
      Populate table with detaisl to be entered into .xls file
      PERFORM build_xls_data_table.
    *END-OF-SELECTION
    END-OF-SELECTION.
    Populate message body text
      perform populate_email_message_body.
    Send file by email as .xls speadsheet
      PERFORM send_file_as_email_attachment
                                   tables it_message
                                          it_attach
                                    using p_email
                                          'Example .xls documnet attachment'
                                          'DOC'
                                          'filename'
                                 changing gd_error
                                          gd_reciever.
      Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM initiate_mail_execute_program.
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    FORM data_retrieval.
      SELECT ebeln ebelp aedat matnr
       UP TO 10 ROWS
        FROM ekpo
        INTO TABLE it_ekpo.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
          Build data table for .xls document
    FORM build_xls_data_table.
      CONSTANTS: con_cret TYPE x VALUE '0D',  "OK for non Unicode
                 con_tab TYPE x VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
       con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
       con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO it_attach SEPARATED BY con_tab.
      CONCATENATE con_cret it_attach  INTO it_attach.
      APPEND  it_attach.
      LOOP AT it_ekpo INTO wa_charekpo.
        CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
                    wa_charekpo-aedat wa_charekpo-matnr
               INTO it_attach SEPARATED BY con_tab.
        CONCATENATE con_cret it_attach  INTO it_attach.
        APPEND  it_attach.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
          Send email
    FORM send_file_as_email_attachment tables pit_message
                                              pit_attach
                                        using p_email
                                              p_mtitle
                                              p_format
                                              p_filename
                                              p_attdescription
                                              p_sender_address
                                              p_sender_addres_type
                                     changing p_error
                                              p_reciever.
      DATA: ld_error    TYPE sy-subrc,
            ld_reciever TYPE sy-subrc,
            ld_mtitle LIKE sodocchgi1-obj_descr,
            ld_email LIKE  somlreci1-receiver,
            ld_format TYPE  so_obj_tp ,
            ld_attdescription TYPE  so_obj_nam ,
            ld_attfilename TYPE  so_obj_des ,
            ld_sender_address LIKE  soextreci1-receiver,
            ld_sender_address_type LIKE  soextreci1-adr_typ,
            ld_receiver LIKE  sy-subrc.
      ld_email   = p_email.
      ld_mtitle = p_mtitle.
      ld_format              = p_format.
      ld_attdescription      = p_attdescription.
      ld_attfilename         = p_filename.
      ld_sender_address      = p_sender_address.
      ld_sender_address_type = p_sender_addres_type.
    Fill the document data.
      w_doc_data-doc_size = 1.
    Populate the subject/generic message attributes
      w_doc_data-obj_langu = sy-langu.
      w_doc_data-obj_name  = 'SAPRPT'.
      w_doc_data-obj_descr = ld_mtitle .
      w_doc_data-sensitivty = 'F'.
    Fill the document data and get size of attachment
      CLEAR w_doc_data.
      READ TABLE it_attach INDEX w_cnt.
      w_doc_data-doc_size =
         ( w_cnt - 1 ) * 255 + STRLEN( it_attach ).
      w_doc_data-obj_langu  = sy-langu.
      w_doc_data-obj_name   = 'SAPRPT'.
      w_doc_data-obj_descr  = ld_mtitle.
      w_doc_data-sensitivty = 'F'.
      CLEAR t_attachment.
      REFRESH t_attachment.
      t_attachment[] = pit_attach[].
    Describe the body of the message
      CLEAR t_packing_list.
      REFRESH t_packing_list.
      t_packing_list-transf_bin = space.
      t_packing_list-head_start = 1.
      t_packing_list-head_num = 0.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE it_message LINES t_packing_list-body_num.
      t_packing_list-doc_type = 'RAW'.
      APPEND t_packing_list.
    Create attachment notification
      t_packing_list-transf_bin = 'X'.
      t_packing_list-head_start = 1.
      t_packing_list-head_num   = 1.
      t_packing_list-body_start = 1.
      DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
      t_packing_list-doc_type   =  ld_format.
      t_packing_list-obj_descr  =  ld_attdescription.
      t_packing_list-obj_name   =  ld_attfilename.
      t_packing_list-doc_size   =  t_packing_list-body_num * 255.
      APPEND t_packing_list.
    Add the recipients email address
      CLEAR t_receivers.
      REFRESH t_receivers.
      t_receivers-receiver = ld_email.
      t_receivers-rec_type = 'U'.
      t_receivers-com_type = 'INT'.
      t_receivers-notif_del = 'X'.
      t_receivers-notif_ndel = 'X'.
      APPEND t_receivers.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                document_data              = w_doc_data
                put_in_outbox              = 'X'
                sender_address             = ld_sender_address
                sender_address_type        = ld_sender_address_type
                commit_work                = 'X'
           IMPORTING
                sent_to_all                = w_sent_all
           TABLES
                packing_list               = t_packing_list
                contents_bin               = t_attachment
                contents_txt               = it_message
                receivers                  = t_receivers
           EXCEPTIONS
                too_many_receivers         = 1
                document_not_sent          = 2
                document_type_not_exist    = 3
                operation_no_authorization = 4
                parameter_error            = 5
                x_error                    = 6
                enqueue_error              = 7
                OTHERS                     = 8.
    Populate zerror return code
      ld_error = sy-subrc.
    Populate zreceiver return code
      LOOP AT t_receivers.
        ld_receiver = t_receivers-retrn_code.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
          Instructs mail send program for SAPCONNECT to send email.
    FORM initiate_mail_execute_program.
      WAIT UP TO 2 SECONDS.
      SUBMIT rsconn01 WITH mode = 'INT'
                    WITH output = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
           Populate message body text
    form populate_email_message_body.
      REFRESH it_message.
      it_message = 'Please find attached a list test ekpo records'.
      APPEND it_message.
    endform.                    " POPULATE_EMAIL_MESSAGE_BODY
    regards,
    venkat.

Maybe you are looking for

  • FAQ: How do I go about learning ActionScript 3.0?

    Here are a few hand-picked resources for getting started with AS3  that hopefully will give new users confidence to try ActionScript and to  know that they are looking at some of the best resources for learning  it. These are all video tutorials. Cod

  • Problem with GR

    Hi all, I am having a problem when I am doing a GR in MIGO transaction. I am doing a GR with Purchase Order and with a Custom Movement type. When I do a "Check"(before Posting), I am getting an error "The plant data of the material 4000106 is locked

  • How to create this CSV in Sql query?

    I have a order_detail table with the primary key order_detail_id and the foregin keys order_id and product_id. Also I have three other fields, A, B and C, to describe the nature of this order detail. A product_id can be existed on different order_id

  • Ibooks syncing issue ipad 2

    Every time I link my Macbook Pro to my ipad 2 to sync I have to re check the 'load all books' box.  Is this a new books not syncing issue? Or something else? How do I keep the load all box checked so I can not keep assessing my memory wrongly?

  • New field in account advanced search

    Hello Experts, I'm facing issue where the new field is not showing up on the advanced search screen for account (CRMM_ACCOUNT).  The new field has been added to both search request and search result structure.  The logic has also been implemented to