E-Mail Functionality for PO's

Hi Every Body,
I am working on email functionality.
=> (Requirement) Sending the PO Order Ouput to vendor via email in the form of PDF fom.
=> I am getting some problem while receiving mail in the OUTLOOK.
=> I am getting mail in the form of "TEXT Fomate"  with special character instead of "PDF Formate".
For Your Information.
=> I am using following functional module.
CONVERT_OTF - PDF Conversion FM
SO_NEW_DOCUMENT_ATT_SEND_API1 - E-Mail FM.
=> Unicode is Mandatory.
If any body is aware of this problem, provide some inputs to me to go ahead forward
Thanks & Regards,
Naga.

Hi Naga
Firstly , As you are getting problem while receiving mail through Outlook , and as you are getting mail in text format, then you need to check the Conversion OTF - PDF
.Secondly also check what is the condition record you have maintained for the output type. with e-mail only or any other transmission medium
Finally check in  the output type wheather you have assigned any smartform data , if assigned then go to smartform and check how the text conversion has been maintained
Regards
Srinath

Similar Messages

  • Enable E-mail functionality for RFQ/PO.

    Hi All,
    I have a requirement to enable E-mail functionality to send the PO/RFQ output to the Vendor. Whenever we go to the messages in the PO ME22N or ME23N & click on the out message, we should get a pop up asking to enter the E-mail address.
    Please let me know what settings do we need to do?
    -Muneer.

    Hi,
    Purchase order via e-mail in SAP system can be done , there are some configurations and pre-requisites to do as follow:
    1. You must maintain an e-mail address in the address in the vendor master.
    2. The same applies to your own user master. You also have to specify an e-mail address there in order to identify the sender.
    Note that it is not possible to change the e-mail address of the vendor via the SAP purchase order transaction (ME21N, ME22N, and so on). The system only uses the e-mail address of the vendor that is maintained in the vendor master!
    3. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path: (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy). As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
    4. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    5. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
    6. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
    7. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
    For more details, check out the OSS note :191470
    Regards,
    Biju K

  • Automated mail function for sales order acknowledgement

    Hi Friends,
    We have a requirement for automated functionality for sending mail to the sold to customers when the order is first saved.
    We already have a customer program to convert into PDF and mail directly.
    But this is to automatically send the mail to sold to customer. I think for acknowledgement we have already a existing outputtype.
    I understand that we need to maintain the mail address over the customer master of the sold to.
    Apart from this, is there that we need to maintain to have this automated functionality of sending mails.
    I had tested with existing Z otuput type by changing the transmission medium to 5 and entering my own email id where it prompts to enter mail id. But it wont send any mails.
    Just wondering if we have any determined steps that i can follow.
    thanks in advance.
    Best Regards,
    Ram

    Hi:
    Order acknowlegement output BA00 or your copy of this one is capable of using medium 5 to send SMTP mail to an external address  ( even PDFs can be attached  is your want).  When you trigger the medium 5 output, did the output get process successfully and you get a green light in your output screen?   If not, have a look to see if a communication strategy is assigned.  If yes, your configuration is OK. What is missing is mostly likely that Basis have not set up SAPCONNECT to send SMTP mail externally for you.
    Frank

  • E-mail functions for Custom Extensions

    Hello,
    Is there a way to use the e-mail functions that P4P uses, including reading the config file, in a Custom Extension?
    Thanks, in advance.

    you can use something like the following
    //If you want to get the current user's email (as the From):
    var currentUser = userService.UserContext.User.ContainedUser as IUser;
    string from = currentUser.email;
    // To get the email info of the originator from a spec, access the SpecSummary's Originator property, which is an IUser, and then get the email property of the user.
    string to = <yourSpec>.SpecSummary.Originator.email;
    string subject = "...";
      EmailService().SendMessage(from , to, subject, body);
    private static IUserService GetUserService()
                return AppPlatformHelper.ServiceManager.GetServiceByType<IUserService>();          
    private static IEmailService EmailService()
           return AppPlatformHelper.ServiceManager.GetServiceByType<IEmailService>();          

  • Mail functionality for entry made

    Hi,
    AT the time whenever employees (created as vendors) account get hit,we want to send mail to them.
    Is there any std functionality by which we can inform them about their account statement.
    I know this can be done by exits & all, But if any standard is there then I want to use that.
    Your help will be highly appreciated.
    Regards,
    Meenakshi

    Hi,
    No std workflow is available.
    regards

  • For users having problems with Mail functionality...

    Hello! I have been having problems with Mail functionality as well, so, I took a few steps to see if I could solve the problem on my own.
    My problems were:
    Mail would freeze when sending mail, or, when I pressed quit, it would freeze.
    If I toggled between inboxes too much it would freeze up.
    Even after trying the many techniques others offered on this board, Mail still froze up. So.. here's what I did:
    1.) Turn off the auto-retrieve mail function in the preferences/general menu. Set it to a manual check. Just check it yourself every once in awhile. It may not be as convenient, but it works, trust me.
    2.) Under the fonts and colors menu, set all three fonts to the SAME font (mines Century Schoolbook, but anything works) and turn off fixed-width font. Sometimes mail has a tough time decoding and working with texts, and causes it to freeze.
    3.) Clean our your main inbox! Place the emails that you want to keep, but don't need to be in your inbox in a new folder on your inbox bar (mines aptly named 'Saved Messages.' That way, when you open up Mail to your default account, it doesn't have 1,000+ messages to index. Also, try to keep the inboxes from having more than 100-200 messages per. It seems to frown on any more than that.
    After trying these three easy, steps, restart mail and see if things run smoother. I have had no problems since these changes, and mail runs a ton better. Plus you don't have to worry about deleting your library/mail folder anymore. Let me know if things work out so I can see if my theory is a universally proven thing. Thanks and good luck!
    iMac G5 20"   Mac OS X (10.4.5)  

    Good question. I have worked very little with IMAP other than as a testing device, so, on a daily routine I cannot say how it would function. However, I can only expect that by having the option to download all emails for offline viewing selected, you are right in it being a lag creator. Another suggestion would be, if you are running a single-computer setup, to have the account delete emails from the server after recieving them on your computer. Thus, you reduce the risk of repeat downloads or unnecessary build-up on the server end. DO NOT select this option if you run multiple computer set ups on one AppleMail account system or you will cause some discrepancies and/or data loss from system to system. Or, if you have emails redirected from a seperate server to Mail (i.e. I redirect mail from my university email account into Mail so that I don't have to go to the web-mail site to check it--> just like Gmail or Yahoo etc etc) you won't be able to check them from the web-based email system if you have the system delete them. Ok that sounded confusing. Solution: have the system remove emails from the server after a week (or any period of time, just not immediately) so that, in the off-chance you need to use the online system, you will have access, and will give you a chance to check the emails on other systems without a threat of data corruption (by corruption i mean that frustrating feeling you get when you can't find that super important email that was in your inbox just 10 seconds ago on your desktop etc.)
    I will see if I can learn anything more about IMAP Ernie. Its definitley the biggest problem source for Mail, POP and .Mac being simple and functional as long as you don't play with the settings too much. As far as the issue of Offline viewing goes, try turning it off and seeing how Mail functions.
    BEFORE you turn it off, however, I recommend saving all of your emails in your inbox as a text file or something so, in case the server burps and has a brain flatuence, you don't lose anything. Been there, done that, thrown the books against the wall in a frustrated rage.
    My only reserve about the Offline Viewing is whether or not Mail will, when you click "recieve mail," have to re-download the emails from the server each time. If so, then it may end up taking longer and lagging more. The issue here is obviously minimizing the amount of activity between Mail and the email server without jeapordizing information on the server or multiple Mail programs on the same account. When we can find that balance, I think Mail's potential will be realized. Keep the questions coming.

  • Oki Printer scan to mail function - which settings for icloud?

    I am using an Oki MC560 multifunction printer.
    It also has a scan-to-mail function which i now intend to use with my @me.com address.
    Unfortunately i can't find any information what to enter in the setup.
    At least in the preferences it only suggests a server number (like 192.168.3.5), not a name (like smpt.me.com).
    Does anybody know the correct preferences for that printer or where to get it?
    Oki itself couldn't provide me that information.
    Thanks a lot.

    Incoming server: imap.mail.me.com
    Outgoing server: smtp.mail.me.com
    username: your email address
    smtp server port: use defaults. SSL Enabled
    All this means practically nothing
    1. "Incoming server: imap.mail.me.com"
         (Tried To set-up new mail account with this - nothing)
    2. "Outgoing server: smtp.mail.me.com"
         (Is already set to this!)
    3. "username: your email address"
         (where?)
    4. "smtp server port: use defaults. SSL Enabled"
         (Where? There is no "default setting" in Mail 2.1.3)
    My mail settings are all messed up and need to be completely re-set.
    I need more descriptive instructions (illustrated), if possible, for setting up a new mail account in Mail 2.1.3 that will work with the new iCloud.

  • "Rules" not functioning for organization of Mail.  Please advise.

    In order to make my life easier, I've set up some rules to help organize my mail. For example, I set up a rule that says:
    If the From contains [email protected]
    If the To contains [email protected]
    Move message to the folder entitled myfriend.
    This rule works for all incoming mail, but does not work for sent mail. Why not? And what do I need to do so that all email, either recieved from that person or sent to that person always ends up in the same folder (i.e. the "myfriend" folder which is located in my Imports folder, meaning it is taken off the mail server)?
    Please advise
    Best,
    Tim
    Powerbook G4 Aluminum   Mac OS X (10.4.4)  

    Landolphe,
    First of all the update from 10.4.3 to 10.4.4 did not do any updates to Mail, so that should not be an issue. Your short description of the Mailboxes folder does not immediately seem out of line, but difficult to tell, yet.
    If anything has taken place to move any folders and mailboxes around, then Rules can sometimes lose track of the target mailbox -- have you moved anything, either in the Sidebar of the Mail window, or using the Finder?
    If your mailboxes, or at least some of them, originated in Panther, I want you to read the article at the link below, and then get back to me with some observations, before attempting any changes:
    http://docs.info.apple.com/article.html?artnum=301315
    This issue of leftover files applies not only to mailboxes you have previously created (which are in the Mailboxes folder the article mentioned) but can also apply to those mailboxes in account folders created prior to the upgrade to Tiger.
    Also, please report the size of each file or folder. Do not, however, try to list the files that are within the folder named Messages, that is found in each and every mailbox.
    More info, please.

  • PHP mail() function not working

    Hello, I am having a problem sending mail with php while hosting my own website with apache on my mac. First of all I would like to note that I do not have a large background with web hosting and php. Everything that I did so far was just suggestions from online articles and other forums, so please include detail with any answers.
    I have apache started, and my website hosted just fine. I can also view php pages so I know php is running too. My problem is using the php mail() function.
    I have a simple form in my site who's action attribute is set to results.php. In the results.php file I have the mail() function (along with html code displaying "thank you...blah blah blah") sending info from the form to my email address. I never get an error on the php side, but my mail never gets sent.
    Is there some type of setting in a config file that need to be turned on or changed?
    Here is what I have done/modified so far from my research from online articles. i dont know what some of them mean, but followed the steps correctly:
    Edited the /etc/hostconfig file and added the line MAILSERVER=-YES-
    Edited the /etc/postfix/main.cf file and uncommented the #myhostname = ...line and made it "myhostname = localhost" (without quotes)
    Edited the php.ini file to the following - The line under where it says
    ; For unix only. You may supply arguments as well (default: "sendmail -t -i")
    Sendmail_path = usr/sbin/sendmail -t -i
    I opened the mail.log file and here are some entries from the other day:
    Code:
    Jul 9 08:16:50 new-host postfix/master[689]: daemon started -- version 2.4.3, configuration /etc/postfix
    Jul 9 08:16:50 new-host postfix/qmgr[691]: 4B4DC2E8331: from=<[email protected]>, size=323, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: 7A8242EE3C0: from=<[email protected]>, size=280, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: B1C052EE3C4: from=<[email protected]>, size=280, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/qmgr[691]: C281C2EE3C5: from=<[email protected]>, size=327, nrcpt=1 (queue active)
    Jul 9 08:16:50 new-host postfix/smtp[694]: 4B4DC2E8331: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=213262, delays=213261/0.05/0.86/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/pickup[690]: 0F5D22EE4DB: uid=70 from=<_www>
    Jul 9 08:16:51 new-host postfix/cleanup[692]: 0F5D22EE4DB: message-id=<20100709121651.0F5D22EE4DB@localhost>
    Jul 9 08:16:51 new-host postfix/qmgr[691]: 0F5D22EE4DB: from=<[email protected]>, size=333, nrcpt=1 (queue active)
    Jul 9 08:16:51 new-host postfix/smtp[695]: 7A8242EE3C0: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=27074, delays=27073/0.02/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/smtp[697]: C281C2EE3C5: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=26817, delays=26816/0.02/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:16:51 new-host postfix/smtp[696]: B1C052EE3C4: to=<[email protected]>, relay=relay.verizon.net[206.46.232.11]:25, delay=27174, delays=27173/0.01/1.1/0, dsn=4.0.0, status=deferred (host relay.verizon.net[206.46.232.11] refused to talk to me: 571 Email from 74.102.108.224 is currently blocked by Verizon Online's anti-spam system. The email sender or Email Service Provider may visit http://www.verizon.net/whitelist and request removal of the block. 100709)
    Jul 9 08:17:23 new-host postfix/smtp[694]: connect to mx1.comcast.net[76.96.62.116]: Operation timed out (port 25)
    Jul 9 08:17:50 new-host postfix/master[689]: master exit time has arrived
    Any other suggestions on how to get this to work? I have also created a simple php file that sends mail without retreiving info from a form and also tried using several different email addresses to send to and from, but still nothing

    Edited the /etc/postfix/main.cf file and uncommented the #myhostname = ...line and made it "myhostname = localhost" (without quotes) Change that to mail.yourispname.com Then run sudo postfix reload and see if it sends mail. The reason being, is that you don't have a fully qualified domain name.
    And make that reflective in your mail() function file/template.
    Message was edited by: doug pennington

  • When I tried to Mail Merge for Data is is not exporting any data.

    HI,
    EBS-12.1.3
    DB-11gR1
    OS - RHEL 5.6
    [With my Login User and SysAdmin Login User] When I enter into to the "People -> Enter and Maintain" Form and then I press the "Export Button", there is error Alert
    Function is not available to this responsibility. Change Responsibilities or Connect to the System Administrator
    I Added the Function "HR ADI Seeded Integrator Form Functions" into the "AE HRMS Manager" Responsiblity. It is also working and Export Data icon is enable.
    Problem:
    But Problem is when I tried to Mail Merge for Data is is not exporting any data.
    ====================================================================
    Steps
    1.Move to the "People -> Recruirment" and then "Request Recruitment Letter" .
    2. Enter the New Request. as
    Letter Name "App. Letter Contract Site",
    Automatic or Manual = Manual.
    Select the Name from the LOVs for the Request for Detail Block.
    3. Press the "Export Data" icon.
    4. Integrator Page Appear with my Custom Integrator Name as "Appointment Letter - Contact Site".
    5. Select the "Word 2003" from the View List. and Reporting is Checked.
    6. Review the Folowing Enteries as:
    Integrator Appointment Letter - Contact Site
    Viewer Word 2003
    Reporting Yes
    Layout App. Letter Contract Site
    Content XXHR_MBE_APP_LET_CONT_SITE_V
    Session Date 2011/08/02
    Mapping XXHR_MBE_APP_LET_CONT_SITE_V Mapping
    7. Press "Create Document" Button.
    8. It will open the Excel 2003 and then Word 2003. But no data down download from the Form.
    9. It open the Mail Merge Letter but no Data is Display.
    ===========================================================
    Note:
    a. I am following the Steps from the Link:"http://apps2fusion.com/at/38-ss/351-generate-recruitment-letters-web-adi".
    b. From the "Desktop Integrator Manager", "Oracle Web ADI", "HRMS Web ADI", it is working fine and Dowload the Data.
    ===========================================================
    Thanks
    Vishwa

    Please try the solution in ("Function not available to this responsibility" Error While Cliclking On Forms Personalisation [ID 1263970.1]) and see if it helps.
    Thanks,
    Hussein

  • Prob in getting Mail body for the standard tcode F150(Dunning).

    Hello all,
    I am using F150 for the dunning notice print out.After seeing the display of the dunning notice once we come back it populates a popup window where it asks to send the mail to the particular mailid or not. I have used the BTE ---  SAMPLE_PROCEE_00001040 and copied it as z function module and customised according to my requirement in order to get the mail id of the customer in the pop up.My mail is going to the customers mail id properly only but my prob is that we are not able to get any mail body for that particular mail.Where can we add the mail body text to that mail in the standard tcode f150.can any one suggest is it possible or not.
    Regards,
    Pavani.
    Edited by: Pavani Rayappureddi on Aug 11, 2009 11:21 AM

    solved my self.
    added         C_ITCPO-TDTITLE  = 'Pending Receivables Statement-XXX GROUP'.
    in the bte code.

  • E-mail functionality using so_new_document_att_send_api1

    Hi
    We Implemented E-mail functionality in our tool useing "so_new_document_att_send_api1" standard FM but here im unable to attach excel document .How to attach a excel document in this standard FM plz help.
    Asif

    hi try this code
    *& Report  ZTEST_2                                                     *
    *& Report  ZTEST_2                                                     *
    REPORT  ztest_2                                 .
    TYPES : BEGIN OF t_email_update_iw32,
             aufnr LIKE viaufks-aufnr,
             vornr LIKE afvc-vornr,
             text(220),
            END OF t_email_update_iw32.
    DATA : gt_email_update_iw32 TYPE STANDARD TABLE OF t_email_update_iw32,
           gw_email_update_iw32 TYPE t_email_update_iw32.
    TYPES : BEGIN OF t_email_date_error,
             aufnr LIKE viaufks-aufnr,
             prueflos LIKE qamr-prueflos,
             merknr  LIKE qamr-merknr,
             text(220),
            END OF t_email_date_error.
    DATA : gt_email_date_error TYPE STANDARD TABLE OF t_email_date_error,
           gw_email_date_error TYPE t_email_date_error.
    TYPES : BEGIN OF t_email_conf_doc_error,
             aufnr LIKE viaufks-aufnr,
             vornr LIKE afvc-vornr,
             text(220),
            END OF t_email_conf_doc_error.
    DATA : gt_email_conf_doc_error TYPE STANDARD TABLE OF
    t_email_conf_doc_error,
           gw_email_conf_doc_error TYPE t_email_conf_doc_error.
    SELECTION-SCREEN : BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
    PARAMETERS : cb_email AS CHECKBOX DEFAULT 'X'.
    *SELECTION-SCREEN BEGIN OF LINE.
    *SELECTION-SCREEN COMMENT (16) text-007 FOR FIELD p_email1.
    PARAMETERS : p_email LIKE somlreci1-receiver,
                 p_email1 LIKE adr6-smtp_addr.
    PARAMETERS : p_table1 AS CHECKBOX,
                 p_table2 AS CHECKBOX,
                 p_table3 AS CHECKBOX.
    SELECTION-SCREEN : END OF BLOCK b4.
    CLEAR gw_email_update_iw32.
    REFRESH gt_email_update_iw32.
    gw_email_update_iw32-aufnr = '1234567'.
    gw_email_update_iw32-vornr = '0010'.
    gw_email_update_iw32-text = 'This is table1'.
    APPEND  gw_email_update_iw32 TO gt_email_update_iw32.
    CLEAR gw_email_update_iw32.
    gw_email_update_iw32-aufnr = '4564578'.
    gw_email_update_iw32-vornr = '0020'.
    gw_email_update_iw32-text = 'This is table1'.
    APPEND  gw_email_update_iw32 TO gt_email_update_iw32.
    gw_email_date_error-aufnr = '222615'.
    gw_email_date_error-prueflos = '1111'.
    gw_email_date_error-merknr = '2222'.
    gw_email_date_error-text = 'This is table2'.
    APPEND gw_email_date_error TO gt_email_date_error.
    gw_email_date_error-aufnr = '222615'.
    gw_email_date_error-prueflos = '3333'.
    gw_email_date_error-merknr = '4444'.
    gw_email_date_error-text = 'This is table2'.
    APPEND gw_email_date_error TO gt_email_date_error.
    gw_email_conf_doc_error-aufnr = '9900107987'.
    gw_email_conf_doc_error-vornr = '999999'.
    gw_email_conf_doc_error-text  = 'This is table3'.
    APPEND gw_email_conf_doc_error TO gt_email_conf_doc_error.
    gw_email_conf_doc_error-aufnr = '9900107987'.
    gw_email_conf_doc_error-vornr = '999999'.
    gw_email_conf_doc_error-text  = 'This is table3'.
    APPEND gw_email_conf_doc_error TO gt_email_conf_doc_error.
    DATA : lw_space VALUE ''.
    SET PARAMETER ID 'ZPDF' FIELD lw_space.
    DATA : pripar LIKE pri_params.
    CALL FUNCTION 'GET_PRINT_PARAMETERS'
      EXPORTING
        in_parameters          = pripar
        line_size              = 255
        layout                 = 'X_65_132'
        no_dialog              = 'X'
      IMPORTING
        out_parameters         = pripar
      EXCEPTIONS
        archive_info_not_found = 1
        invalid_print_params   = 2
        invalid_archive_params = 3
        OTHERS                 = 4.
    NEW-PAGE PRINT ON PARAMETERS pripar NO DIALOG .
    RESERVE 5 LINES.
    DATA : text1(10) TYPE c  VALUE 'AUFNR',
           text2(10) TYPE c VALUE 'VORNR',
           text3(50) TYPE c VALUE 'TEXT'.
    IF p_table1 = 'X'.
      WRITE  AT 10   text1. WRITE AT 30  text2 . WRITE AT 30 text3.
      LOOP AT  gt_email_update_iw32 INTO  gw_email_update_iw32.
        WRITE : /  gw_email_update_iw32-aufnr , gw_email_update_iw32-vornr ,
    gw_email_update_iw32-text.
      ENDLOOP.
    ENDIF.
    WRITE : / sy-uline .
    IF p_table2 = 'X'.
      WRITE : / 'AUFNR' , 'PRUEFLOS' ,  'MERKNR', 'TEXT' .
      LOOP AT gt_email_date_error INTO gw_email_date_error.
        WRITE : / gw_email_date_error-aufnr, gw_email_date_error-prueflos,
    gw_email_date_error-merknr,gw_email_date_error-text.
      ENDLOOP.
    ENDIF.
    WRITE : / sy-uline .
    IF p_table3 = 'X'.
      WRITE : / 'AUFNR' , 'VORNR' , 'TEXT' .
      LOOP AT gt_email_conf_doc_error INTO gw_email_conf_doc_error.
        WRITE : / gw_email_conf_doc_error-aufnr,
    gw_email_conf_doc_error-vornr, gw_email_conf_doc_error-text.
      ENDLOOP.
    ENDIF.
    NEW-PAGE PRINT OFF.
    DATA : mtab_pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : rqident LIKE tsp01-rqident ,
           rqcretime LIKE tsp01-rqcretime .
    SELECT  rqident  rqcretime FROM tsp01
           INTO (rqident,rqcretime)
           WHERE rqowner = sy-uname
           ORDER BY rqcretime DESCENDING.
      EXIT.
    ENDSELECT.
    DATA: spool_id LIKE tsp01-rqident.
    MOVE  rqident TO spool_id.
    DATA : p_file LIKE rlgrap-filename VALUE 'C:\file.pdf' ,
           numbytes TYPE i,
           cancel.
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
      EXPORTING
        src_spoolid = spool_id
          NO_DIALOG =
          DST_DEVICE =
          PDF_DESTINATION =
    IMPORTING
        pdf_bytecount = numbytes
          PDF_SPOOLID =
          LIST_PAGECOUNT =
          BTC_JOBNAME =
          BTC_JOBCOUNT =
      TABLES
        pdf = mtab_pdf
    EXCEPTIONS
       err_no_abap_spooljob = 1
       err_no_spooljob = 2
       err_no_permission = 3
       err_conv_not_possible = 4
       err_bad_destdevice = 5
       user_cancelled = 6
       err_spoolerror = 7
       err_temseerror = 8
       err_btcjob_open_failed = 9
       err_btcjob_submit_failed = 10
       err_btcjob_close_failed = 11
       OTHERS = 12
    IF sy-subrc <> 0.
      MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno
      WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    end
    DATA :  w_buffer TYPE string. "To convert from 132 to 255
    DATA : i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE.
    LOOP AT mtab_pdf.
    Replacing space by ~
      TRANSLATE mtab_pdf USING ' ~'.
      CONCATENATE w_buffer mtab_pdf INTO w_buffer.
    ENDLOOP.
    Replacing ~ by space
    TRANSLATE w_buffer USING '~ ' .
    DO.
      i_record = w_buffer.
    Appending 255 characters as a record
      APPEND i_record.
      SHIFT w_buffer LEFT BY 255 PLACES.
      IF w_buffer IS INITIAL.
        EXIT.
      ENDIF.
    ENDDO.
    *start try
    DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
    DATA: doc_chng LIKE sodocchgi1.
    DATA : tab_lines TYPE c.
    doc_chng-obj_name = 'TEST'.
    doc_chng-obj_descr = 'Mail came successfully'.
    objtxt = 'Regards'.
    APPEND objtxt.
    objtxt = 'Nitin'.
    APPEND objtxt.
    objtxt = 'hahaha'.
    APPEND objtxt.
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    * ERSTELLEN DES EINTRAGS ZUM KOMPRIMIERTEN DOKUMENT
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    * ERSTELLEN DER ANLAGE FUR DAS DOKUMENT
    **OBJBIN = '\O/ '. APPEND OBJBIN.
    **OBJBIN = ' '. APPEND OBJBIN.
    **OBJBIN = ' / \ '. APPEND OBJBIN.
    LOOP AT i_record.
      objbin[] =  i_record[].
    ENDLOOP.
    DESCRIBE TABLE objbin LINES tab_lines.
    *objhead = 'picasso.txt'. APPEND objhead.
    * Erstellen des Eintrags zur komprimierten Anlage
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'PDF'.
    objpack-obj_name = 'PDF File received '.
    objpack-obj_descr = 'PDF File received '.
    *objpack-doc_size = ( tab_lines ) * 255 .
    APPEND objpack.
    * Fullen der Empfangerliste
    refresh reclist.
    reclist-rec_type = 'U'.
    reclist-receiver = p_email1.
    APPEND reclist.
    reclist-rec_type = 'B'.
    reclist-receiver = sy-uname.
    APPEND reclist.
    reclist-rec_type = 'U'.
    reclist-receiver = p_email.
    APPEND reclist.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
      EXPORTING
        document_data              = doc_chng
        put_in_outbox              = 'X'
      TABLES
        packing_list               = objpack
       object_header              = objhead
        contents_bin               = objbin
        contents_txt               = objtxt
        receivers                  = reclist
      EXCEPTIONS
        too_many_receivers         = 1
        document_not_sent          = 2
        operation_no_authorization = 4
        OTHERS                     = 99.

  • E-Mail Functionality

    This might turn into an open letter to RIM, so please bear with me.
    I have been a BlackBerry user for 4 years now and, as a non-enterprise user, I am running into too many limitations to e-mail functionality.
    1. Truncated Email
    This is the first aspect in which other platforms exceed in e-mail and can draw me away from BlackBerry. I understand the need for truncated messages in other parts of the world where 3G/4G are not as prevalent as here in the States, but where unlimited data plans are required for many smartphones, this limitation is not needed. I vote to make these at the very least, optional for users to select whether to view the entire message or not. I can't tell you how many emails I've received only to find the "Truncated XXXXkb." It is very frustrating.
    2. Email Attachment Size Limitations
    The email attachment size limitations via BIS are very unpleasant. If I shoot a video of a couple seconds, it is already too big to be email to send via E-mail and I am forced to have to be near a computer before I can send the video. This is another limitation that I'm looking to move away from BlackBerry for.
    This goes even deeper with the browser on OS6. Today, I tried accessing the new Twitter Mobile site only to receive an error that the site is too large to view. This needs to change.
    3. Exchange/Folder Integration
    The only way for BIS users to access exchange is either through OWA (without PUSH) or through BES. Other platforms allow exchange functionality with the same data plans for the same prices that BIS users pay for their data plans. Unfortunately, BIS users need to pay extra to access Exchange with Activesync capabilities through BES. If the company does not deploy BES, then we are stuck with OWA. 
    Folder Integration is very unintuitive. If I have rules that skip my Inbox and have e-mail automatically placed in folders, I have to go to the folder to see that there are unread emails in there. The iPhone for instance shows a folder listing for only that account and, at a quick glance, I can view unread emails associated directly with the folder. 
    4. Gmail Plugin
    This may be a bug, but in the event that it is by design, I'd like to bring it up to your attention. Gmail has the 'All Mail' category and the 'Inbox' Category. The plugin checks the ALL MAIL folder for new email, however, by default, the Gmail plugin shows the Inbox. If I have filters that skip the inbox and go to ALL MAIL (aka. ARCHIVED), I get notification of new email, but opening the Gmail mailbox does not display new messages, unless I go to filter and ALL MAIL. Maybe a quick little count next to the folder name of unread messages in that folder would go a LONG way in alleviating this issue.
    I hope someone takes the time to read this and pass it on to the appropriate individuals.
    Thanks.

    mahen915 wrote:
    This might turn into an open letter to RIM, so please bear with me.
    I hope someone takes the time to read this and pass it on to the appropriate individuals.
    Thanks.
    You should know, this forum is the last place you ought to drop a open letter to RIM, and actually expect someone of note to read it. This is a user to user community forum. There's a CONTACT link at the bottom of the Blackberry.com page with all the addresses relevant to sending RIM a letter.
    1. This is part of the miracle of how RIM's email push and compressed data works with RIM and BlackBerrys. Only the first chuck of 2k of an email is initially transmittted and only when you open the email and scroll down does it begin to grab the next 2k chuck. It's how BIS and BES were designed and you will rave reviews from users on how RIM push email uses about 15% of the bandwidth of users data than other smartphone technologies.
    2. Ditto, but your numbers are way off. A couple seconds video and even double, triple and 10x that is not too large to send via email. I think the cap currently is 6mb? I need to check.
    3. Yep, you're not alone.
    4. Don't use it.
    Good luck.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • HT6030 I downloaded Mail Update for Mac OS X 10.5.6 and was told it could not be installed because it was from an unidentified developer.  Tried installing download from MailUpdate & advised the disk did not meet the requirements for update. Hmmmm.

    I downloaded Mail Update for Mac OS X 10.5.6 and was told it could not be installed because it was from an unidentified developer.  Tried installing download from MailUpdate & advised the disk did not meet the requirements for update.   Expect it's due to being at 10.9.1.  Mail is still teetering between dysfunctional and non-functional.  Advice?

    I'm not sure what "Mail Update for Mac OS X 10.5.6" is. Mac OS X 10.5.6 is Leopard, a system that is quite old at this point. There have not been any Mail updates for Leopard in quite some time. If you are trying to install some old Mail update for Mac OS X 10.5.6 in Mavericks, that won't work.
    If you are trying to install the Mavericks Mail update manually, that's not necessary if you have updated through the App Store. If the App Store shows no updates, you don't need this. (The error message doesn't make sense, and may indicate some other problem with your system, assuming that you were downloading this update from Apple's site.)
    I'd advise you to start a new topic in the Mavericks forum and describe the problems you are having with Mail. Be sure to include specifics, but try to avoid speculating on causes, as responses that may be related to an inaccurate assumption on your part can cloud the issue.

  • Job to send all user their initial password by e-mail (one for the pros)

    Hello,
    (IDM 7.2 with MSSQL)
    I try to create a job that sends all user their "IDM-PASSWORD" via email.
    In the first step, I generate a random password for all user. This password should now be sent to each user so they can log in to IDM-UI.
    This is my approach:
    1. Step
    Define the source
    A Job with a to generic pass:
    SOURCE:
    SELECT DISTINCT mskey FROM idmv_vallink_basic_active WHERE mcidstore=1 AND
    ((mskey IN (SELECT mcmskey FROM idmv_vallink_basic_active WHERE mcattrname='MX_ENTRYTYPE' AND mcsearchvalue = 'MX_PERSON')))
    Destination:
    MSKEYVALUE = %MSKEYVALUE%
    JOB CONSTANTS:
             MAIL_SMTP_HOST = Host
             MAIL_SMTP_PORT = Port
             MAILATTRIBUTE   = MX_MAIL_PRIMARY
             MAILFROM         = MAIL....com
             NOTIFICATION     = blabla
             POSTTEXT         = </FONT><br><br>
             PRETEXT         = <FONT SIZE=5> blabla
    Script for mailing:
    function blödesMailding(Par){
    var userList = Par.get("MSKEYVALUE");
    var user = new java.util.Vector();
    user = uSplitString (userList, "|");
    var i = 0;
    var result;
    var emailAddress = "";
    var idStore = uGetIDStore();
    var emailAttribute = "%$MAILATTRIBUTE%";
    for (i=0; i < user.size(); i++) {
         emailAddress = uIS_GetValue(user.get(i), idStore, emailAttribute);
         result = UserFunc.uSendSMTPMessage("%$MAILFROM%", emailAddress, "%$NOTIFICATION% ", "%$PRETEXT% " + "%$POSTTEXT%", "%$MAIL_SMTP_HOST%", "%$MAIL_SMTP_PORT%", 1);
         if (result.length > 0) {
              UserFunc.uErrMsg(2, result + ":Mail to:" + emailAddress);
    return "";
    And here is the error message^^:
    Warning Constant MAIL_SMTP_HOST was not defined in the repository (-1)
    Warning Constant MAIL_SMTP_PORT was not defined in the repository (-1)
    Warning Constant MAIL_ORIGINATOR was not defined in the repository (-1)
    Warning Constant MAIL_DEBUG was not defined in the repository (-1)
    Warning Constant MAIL_DEBUG_RECIPIENTS was not defined in the repository (-1)
    I set all of these constats in the GLOBAL CONTANTS form ID store! 
    and here he also complains:
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Warning Could not send SMTP message to !ERROR:Entry does not exist using SMTP host mail.mymhp.net
    java.net.ConnectException: Connection refused: connect
    Maybe I made a mistake, or my solution doesn't work at all.
    I would be very glad if someone had an idea, or a better solution for this problem.

    M Pollicove wrote:
    > From the Job Folder you can access global constants, but I don't think you can access repository constants.  Re-work the script so it uses globals (making sure to set up the globals) and you should be fine.
    Both repository constants and global constants work in jobs, just study your initial loads to see the use of repository constants.
    Gerhard, do you have your correct repository defined in your pass/job? If you copy/pasted the pass the original repository might be still in the pass (done this a few times
    You should be able to access your global constants in scripts with notation like (without any built-in functions):
    var idStore = "%$glb.SAP_MASTER_IDS_ID%";
    Edited by: Tero Virta on Jan 13, 2012 9:40 AM

Maybe you are looking for

  • Primary Key - Generated by database TRIGGER

    Hi, I have a form with a block that is attached to a table. So far, nothing fancy :-) The Primary is generated with an ORACLE SEQUENCE. That is done at the TABLE level with a DATABASE trigger. So in the form, the primary field is not populated. Works

  • Wi-Fi name change

    I would like to change the name of my Wi-Fi network through my router. I know how to do this, but when I try to connect to the new network with my i-phone, it says unable. When I change the name back to the original name, everything works ok. Any ide

  • Error message: Mail quit unexpectedly while using the AudioToolbox plug-in.

    I am receiving the following error message: Mail quit unexpectedly while using the AudioToolbox plug-in. I would appreciate any advice about what can be done to solve this problem. Thanks much.

  • Database control escaping /* and */

    Hi, I have a requirement where I need to speicfy sql optimizers in my query like example: select /*+ INDEX(TABLE1 INDEX1) */ COLUMN1, COLUMN2 FROM TABLE1 where someconditions But I am not able to specify the /*+ and */ in the database control query a

  • All content except for PDF are stuck in GenWWW - IBR IS converting them..

    Hello, We are having a serious issue with our UCM/IBR where all new documents except for PDF's are successfully converted (we confirmed this through IBR weblayout directory and log files) but they are never Released. We have tried the following: 1. R