Can't send smartform to external mail address

Hi, everyone.
Now, after creating some self-defined smartforms, we want to send its
PDF copy to
our external mail address. From this point, I had some try.
Reference to SAP Library, I make a testing program named 'YPDF_TEST'.
However, one exception always exists when running and error message id
is 'XS806' - means
"No delivery to &, invalid recipient address"
I filled the address with following fields.
[ dev_mail_recipient-logsys = 'CLNT600'.
dev_mail_recipient-objtype = 'RECIPIENT'.
dev_mail_recipient-objkey = '[email protected]'. ]
I just can't understand the real reason why it doesn't work.
Through debugging, I found the error occurs when handling the following
codes
in function "SX_ADDRESS_TO_DEVTYPE".
[ swc_create_object o_recipient 'RECIPIENT' recipient_id-objkey.
swc_get_property o_recipient 'CommunicationType' m_recipient-type.
get_property_longvalue o_recipient m_recipient-address. ]
On the current situation, if can't come over this problem,
we may not build the connection and don't provide information in time.
Failed to send, I yet try another function - added the tail but on earthdidn't get it ~~~
Would you give me some hints or advice ?
Any help is appreciated.
====================
<i>REPORT ypdf_test .
DATA: fm_name TYPE rs38l_fnam.
DATA: my_control_pars TYPE ssfctrlop. "for CONTROL_PARAMETERS
DATA: my_output_info TYPE ssfcrescl. "for JOB_OUTPUT_INFO
DATA: output_options TYPE ssfcompop.
DATA: e_devtype TYPE rspoptype.
DATA: gw_lcprint TYPE ziebsflc001.
DATA: bin_file TYPE xstring,
bin_filesize TYPE i,
ndiv TYPE i, offset TYPE i,
nmod TYPE i.
DATA: BEGIN OF bin_table OCCURS 0,
x TYPE xstring,
END OF bin_table.
DATA: lines LIKE tline OCCURS 0.
DATA: dev_mail_sender LIKE swotobjid, "B20K061818
dev_mail_recipient LIKE swotobjid.
DATA: dev_mail_applobj_tab LIKE swotobjid OCCURS 10 WITH HEADER LINE.
DATA: param LIKE itcpp.
my_control_pars-no_dialog = 'X'.
my_control_pars-getotf = 'X'.
Get genereated function name of Smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZDEMO_SMART_FORM_PPF'
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
ENDIF.
Get Device type
CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
EXPORTING
i_language = sy-langu
I_APPLICATION = 'SAPDEFAULT'
IMPORTING
e_devtype = e_devtype
EXCEPTIONS
no_language = 1
language_not_installed = 2
no_devtype_found = 3
system_error = 4
OTHERS = 5 .
IF sy-subrc <> 0.
ENDIF.
output_options-tdprinter = e_devtype.
set needed mail option
my_control_pars-device = 'MAIL'.
dev_mail_sender-logsys = 'CLNT600'.
dev_mail_sender-objtype = 'RECIPIENT'.
dev_mail_sender-objkey = 'CHI_DEV03'.
dev_mail_recipient-logsys = 'CLNT600'.
dev_mail_recipient-objtype = 'RECIPIENT'.
dev_mail_recipient-objkey = '[email protected]'.
CALL FUNCTION fm_name
EXPORTING
control_parameters = my_control_pars
mail_recipient = dev_mail_recipient
mail_sender = dev_mail_sender
output_options = output_options
ip_carrid = 'ID'
ip_connid = '8290'
ip_fldate = sy-datum
ip_bookid = '12345678'
ip_customid = '09876521'
ip_luggweight = 90
ip_wunit = 'KG'
ip_smoker = 'X'
IMPORTING
job_output_info = my_output_info
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.
Another try ***
*DATA: param LIKE itcpp.
*DATA: BEGIN OF off_obj.
INCLUDE STRUCTURE soodk.
*DATA: END OF off_obj,
ok TYPE c,
msgid TYPE symsgid,
msgno TYPE symsgno,
msgv1 TYPE symsgv,
msgv2 TYPE symsgv,
msgv3 TYPE symsgv,
msgv4 TYPE symsgv.
*DATA: dev_mail_applobj_tab LIKE swotobjid OCCURS 10 WITH HEADER LINE.
*CALL FUNCTION 'CONVERT_OTF_AND_MAIL'
EXPORTING
mailoptions = param
mail_sender = dev_mail_sender
mail_recipient = dev_mail_recipient
IMPORTING
office_objid = off_obj
mail_ok = ok
msgno = msgno
msgid = msgid
msgv1 = msgv1
msgv2 = msgv2
msgv3 = msgv3
msgv4 = msgv4
TABLES
mail_application_object_ids = dev_mail_applobj_tab
otf = my_output_info-otfdata.</i>

Hi,
You can follow a different approach. Send the output of the Smartform to the spool.
You have a Function Module to read the spool and convert it to PDF . Then there is one more function module to attach the PDF and send it as a mail.
You need to configure SMTP in Tcode : SCOT.
Search the forum with emailpdfattachment
You have umpteen postings available.
Pls reward if useful.
Regards,
Laxman Nayak

Similar Messages

  • How can we send Smartform to exteral mail through SCOT Transaction

    Hi,
    i want the configuration details in <b>SCOT</b> transaction to send a <b>Smartform to external mail id</b>
    Reg,
    Hariharan

    ur Smartform is sending Request to SAP -SCOT or not ?
    u have to do settings  in the both sides
    1.Sending Request from Smartform to SAP ( i.e SCOT )
    2.SAP will process this request to send to Outlook Servert based on the settings of STMP in SCOT .
    Regards
    Prabhu

  • SAPConnect to Send Emails to external mail address

    I am trying to send email from SAP to an external email address.
    I've configured in SCOT the mail server and it respective port.
    When I tried to send a test message, the message failed in the queue with the log:
    "Cannot process message in SAP System - No ESMTP Plug-In Is Available for SAPconnect
    Application Server Used by the Send Process:
    S21TDI05
    (Schedule Send Process on App.Server with Plug-In)
    Upon checking the sap documentation, I encounter there's also a SMTP Service in "SMICM" as well. Inside there I can see that the SMTP setting is not activate and no values has been entered.
    Are these 2 connected?
    Advices are welcome.
    Thanks,
    Regards,
    Wooi Chian.

    This error message means that your SMTP plug-in is not active. Go to TR: SMICM -> GOTO -> SERVICES
    Here you must see that the SMTP plug in is active.
    This error usally due to bind error. The port wich had to be used is used by an other service.
    Check if below mentioned parameters are set.
    rdisp/start_icman = true
    icm/server_port_0 = PROT=HTTP,PORT=1080
    icm/server_port_1 = PROT=SMTP,PORT=25$$, TIMEOUT=60, PROCTIMEOUT=300
    icm/server_port_2 = HTTPS,PORT=82$$, TIMEOUT=60, PROCTIMEOUT=300
    and restart ICM . You should see SMTP service on SMICM transaction.
    In my case problem was with the below parameters. PORT=HTTPS was assigned to server_port_1. I swapped the values of both the parameters icm/server_port_1 and icm/server_port_3. Only after that SMTP service started being visible under DISPLAY --> Services.
    icm/server_port_0                           PROT=HTTP,PORT=80$$, TIMEOUT=60, PROCTIMEOUT=300
    icm/server_port_1                           PROT=HTTPS,PORT=82$$, TIMEOUT=60, PROCTIMEOUT=300
    icm/server_port_3                           PROT=SMTP,PORT=25$$, TIMEOUT=60, PROCTIMEOUT=300
    Hope this helps solve the issue.
    /Ravi

  • Invalid Certificate Microsoft Outlook cannot sign or encrypt this message because you have no certificates which can be used to send from your e-mail address.

    Hi,
    I have a problem when trying to sign emails with an X.509 certificate in Outlook 2010. I constantly get the error message. The certificate is Verified for the email address I'm sending from.
    "Invalid Certificate
    Microsoft Outlook cannot sign or encrypt this message because you have no certificates which can be
    used to send from your e-mail address."I have no problem with signing documents in Word 2010 with the same certificate, only when trying to send email.Every check I can perform confirms that there's nothing wrong with the certificate. Yet, Outlook still says it is invalid.I have even tried installing a second X.509 for the same email address just to check. Outlook doesn't seem to like either certificate.I know this has been posted before, but I'm completely stuck here.Thanks,~Dan

    Hi,
    You may have checked the option "Encrypt contents and attachments for outgoing messages" in Outlook, please uncheck this to test if the problem persists.
    File -> Options -> Trust Center -> Trust Center Settings -> E-mail Security -> Clear the checkbox "Encrypt contents and attachments for outgoing messages" -> OK.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Sending Mail: To internal mail adress OK, external mail address KO

    Hi everybody,
    I guess this is no XI/PI problem, but I hope some of you had the same problems.
    When we are using mail receiver adapter sending an internal mail is OK but if we use an external mail adresse like mister.sample@gmx. de the mail is not received.
    We used different external mail adresses to obiate that the problem is not the external mail server.
    We use inhause LOTUS NOTES.
    The mail adapter uses the mail package.
    Any ideas?
    Thanks
    Regards
    mario

    Hi Ravi,
    now its clear. musunderstanding. As I wrote: The message was already received by LOTUS NOTES. But it is not send to an external mail adress.
    There is no error in RWB
    Regards mario

  • External mail address

    Hi,
    there is no possibility to set up an external mail address like in mobileme?
    Thanks

    Hello,
    Do you mean you can send message to other external domain, but when you reply a message from external user, the NDR information generate? If so, I recommend you post the detailed NDR information.
    When you send message to external domain or reply a message from external user, the DNS MX record for external domain will be solved. If you receive a message from external domain, your MX record will be solved.
    If I have misunderstanding, please free let me know.
    Cara Chen
    TechNet Community Support

  • Mail doesn't send to certain e-mail addresses, receiving seems ok

    I am using the latest version of the Apple Mail application under Leopard (with all updates downloaded). About a month ago I e-mailed a friend from my home account and unusually didn’t get a reply. I then e-mailed again a few weeks after, again no reply. After a phone conversation found out she didn’t receive either of my mails. This prompted many test e-mails, the outcome of which was the following:
    1 - Was able to receive my friend’s e-mails, but if I replied using Apple mail (hitting the reply button), my reply never got back to her.
    2 - Was able to send to and receive my friend’s e-mails using MS outlook from my place of work using a PC and my work e-mail account. No problems.
    3 - Was able to send and receive to my work account from my home account using Apple Mail, no problems.
    4 - Was able to send and receive my friend e-mails from my home account, using web mail rather than using Apple Mail.
    5 - Could no longer e-mail my wife using the Apple Mail (and she could not e-mail me), we both use the same ISP. However using web mail rather than Apple Mail we could still send and receive e-mails from each other.
    6 - Phoned my ISP, my account seems to be ok, which was also confirmed by using webmail as described in the previous two points.
    7 - Other than the regular Apple updates the Mail app is the same client I have been using since I got my new Mac last October. I didn’t appear to have any problems until about a month ago and have made no changes to settings etc.
    8 - When I do attempt to send e-mails to my wife or friend, I get the usual whooshing sound and a progress bar to show that the mail has been sent. The outbox is empty and the mail appears in the sent box, but never arrives to its destination. No error messages or e-mail bounce backs, nothing.
    9 - Downloaded and installed Thunderbird, all the problems seem to go away – I can now send and receive e-mails from both my wife and friend.
    It’s a bit weird that Apple Mail seems to have taken an aversion to sending mail to some particular e-mail addresses. Unless someone can explain what is going on here, I think that this is a serious problem. As I’ve mentioned, there is no hint that Apple Mail is not sending e-mail, as far as I was concerned e-mails were leaving my Mac. Has anyone experienced something similar? Is there an easy fix?

    I just did a quick test in InDesign CC and my one worked. Maybe you should delete the button and redo it.
    By the way on a slightly different matter, do you know that to enable users to complete the form and store it on their computer using Acrobat Reader, you need to enable the form as follows:
    Open the form in Acrobat XI  and then:
    File > Save As Other > Reader Extended PDF > Enable More Tools (includes for fill-in & save). . . Your users will be able to fill in the form and save it (assuming they have the later versions of Acrobat Reader).
    Make sure you keep a copy of your original PDF with a different file name as once you've created a Reader Enabled PDF Form you can't change it.

  • Can't send even 1-member Mail group to SMTP server

    Using Mail 2.1.3, I can't send a group e-mail via my ISP, smtpauth.earthlink.net. This is true even when the group contains only one address, my own. The message is accepted if I expand the group.
    Earthlink's SMTP mail server says "message does not conform to RFC2822 standard".
    Apparently Earthlink is looking for something different from what Mail is sending it.
    I'd welcome suggestions of what I could do to make this work.

    To clarify: what exactly do you mean by "drag the Group to the BCC: field" ?
    If I open Address Book, select a group, and then drag to the BCC field _all the individual members_ of the group, the message is sent.
    But if I drag the name of the group, the message is not sent.

  • How to send sapmails to external mail systems

    Hi,
    how to send sapmails to external mail systems....
    like if we want to mail a purchase order from SAP System to *@yahaoo.com or @.com.
    TY.

    hi manish,
    u can do it.
    chk this .
    chk this code
    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.
    *& Form f_send_mail
    text
    --> p1 text
    <-- p2 text
    FORM f_send_mail .
    *store the vendor name, vendor email id , employee name and employee
    *email id in the internal table int_crb
    Creation of the document to be sent
    CLEAR doc_chng.
    REFRESH objpack.
    REFRESH objhead.
    REFRESH reclist.
    REFRESH objtxt.
    File Name
    doc_chng-obj_name = 'SHIPMENT'.
    Mail Subject
    CONCATENATE 'Shipment Document No.' int_crb_mail-shipdocnum
    'Cleared.'
    INTO doc_chng-obj_descr SEPARATED BY ' '.
    Mail Contents
    objtxt-line = 'Hi,'.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    CONCATENATE 'Shipment Document Number ' int_crb_mail-shipdocnum
    ' cleared for move.' INTO objtxt-line SEPARATED BY ' '.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    CLEAR objtxt.
    objtxt-line = 'Regards '.
    APPEND objtxt.
    objtxt-line = ' '.
    APPEND objtxt.
    objtxt-line = 'SAP '.
    APPEND objtxt.
    CLEAR objtxt.
    APPEND objtxt.
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN(
    objtxt ).
    Creation of the entry for the compressed document
    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.
    Completing the recipient list
    target recipent
    CLEAR reclist.
    reclist-receiver = int_crb_mail-empperid. "employee email ID
    "wf_empperid.
    reclist-express = 'X'.
    reclist-rec_type = 'U'.
    APPEND reclist.
    copy recipents
    CLEAR reclist.
    reclist-receiver = int_crb_mail-smtp_addr."vendor email id
    reclist-express = 'X'.
    reclist-rec_type = 'U'.
    reclist-copy = 'X'.
    APPEND reclist.
    Sending the document
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    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.
    COMMIT WORK.
    SUBMIT rsconn01
    WITH mode = 'INT'
    WITH output = ' '
    AND RETURN.
    ENDFORM. " f_send_mail
    for any clarifiaction pls mail me.
    pls reward points, if this helped u.
    regards,
    anversha.
    [email protected]

  • Send email on external email address using sap workflow

    Dear All,
    I wat to send email( on external email address) to all users on under one position in org unit using sap workflow.
    I have retrived all users under given postion using FM   'RH_OM_GET_HOLDER_OF_POSITION'.
    Please let me know how to get their email ids.
    Thanks & Regards
    Rajshree

    Hi Rajasree,
    You can get the email address by passing the PERNR of employee and read the infotype '0105' (communication) with subtype '0010'.
    DATA: lt_p0105 LIKE p0105 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'HR_READ_INFOTYPE'
       EXPORTING
    *   TCLAS                 = 'A'
        pernr                 = pernr
        infty                 = '0105'
        begda                 = sy-datum
        endda                 = sy-datum
    *   BYPASS_BUFFER         = ' '
    *   LEGACY_MODE           = ' '
    * IMPORTING
    *   SUBRC                 =
       TABLES
         infty_tab             = lt_p0105
      EXCEPTIONS
        infty_not_found       = 1
        OTHERS                = 2.
    IF sy-subrc <> 0.
    * Implement suitable error handling here
    ENDIF.
    READ TABLE lt_p0105 WITH KEY subty = '0010'.
    email = lt_p0105-usrid_long.
    Regards,
    Pipit

  • How can you use the same e-mail address for multiple ipads?

    I have two iPads.. an iPad and an ipad 2.  I registared my new ipad 2 and now my old ipad is will not let me log on and is telling me that my e-mail address is already in use.  how can you use the same e-mail address for multiple ipads?

    And by using the same Apple ID you can also share purchases.  If you have a different Apple ID for each iPhone then you can't share purchases.

  • Can I use my existing E-mail address to retrieve my password reset through security questions

    Can I use my existing E-mail address to retrieve my password reset through security questions instead of through E-mail. When I try retrieving my new Apple password through reset through security questions?  On the Apple id, it will not allow me to do so becasue I forgot my security answers to the question. I'm naming one or two of the wrong vechiles which is what the questions ask me for for security questions.
    For icloud do you reccommend that I keep that same E-mail address or create a new one for my iCloud mail aside from my G-mail address name?
    I asked support community for the very first time to reset my security questions and it wanted me to create a new user name for iCloud when I already have *****l for my original Apple id.
    <Email Edited By Host>

    TheresaEW,
    I’d recommend contacting Apple directly to resolve your security question issue.

  • Can't use Find My Friends on iPhone due to Apple ID not being verified. Can't do this as I can't access my .mac email any longer and I can not change the primary e-mail address for my Apple ID!

    Can't use Find My Friends on iPhone due to Apple ID not being verified.
    Can't do this as I can't access my .mac email any longer and I can not change the primary e-mail address for my Apple ID!
    So my options are:
    Create a new Apple ID, use that and lose all the apps I've purhcased with it (a fairly substantial amount)
    Somehow Migrate these purchases over to a new Apple ID
    Apple let me change the primary ID for the account
    Anyone else ran into this before?
    I've tried accessing the mail through a mail application using the correct server information, and trying both the old 6 character password and the one I had to change it too after they updated the security guidelines - neither work.
    Help would be greatly appreciated as I can see more services down the line not working without the address being verified!

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iDevice, then sign back in with the ID you wish to use.  When you do this you may find that the password for your old ID isn't accepted.  If this should happen, and if your old ID is an earlier version of your current ID, you need to temporarily recreate your old ID by going to https://appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Click edit next to the primary email account, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You should not need to verify the old email address.  You can now use your current password to turn off Find My iDevice on your device, even though it prompts you for the password for your old account ID. Then save any photo stream photos that you wish to keep to your camera roll.  When finished go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https://appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How can I restore my icloud e-mail address?

    How can I restore my iCloud e-mail address?

    You can't change and iCloud email account address once created.  You can either create a new iCloud account, or add an @icloud.com email alias address to the existing account, which will receive email in your existing iCloud inbox (more details here: http://help.apple.com/icloud/#/mm6b1a490a.
    If you would rather create a new account and keep your data, start by saving any photo stream photos on your phone that you want to keep to your camera roll (unless already there) by opening your my photo stream album, tapping Select, tapping the photos, tap the share icon (box with upward facing arrow), then tapping Save to Camera Roll.  If you are syncing notes with iCloud that you want to keep, you'll need to open each of your notes and email them to yourself so you can later copy and paste the text into new notes created in your new account.  Then go to Settings>iCloud, tap Delete Account, provide the password to turn off Find My iPhone and choose Keep on My iPhone when prompted.  Then sign back in with a different Apple ID to create your new account and choose Merge to upload your data.  When you turn Mail on you will be asked to create your new iCloud email address.  Type carefully as it cannot be changed later.

  • How can I create a new E-mail address for the Marketing Manager

    Hullo,
    how can I create a new E-mail address for the Marketing Manager (i.e. marketing professional role in SAP CRM) please.
    That when you go and create a new E-mail campaign you need to choose an E-mail form in addition to the E-mail address of the Marketing Manager.
    Kind Regards.

    Hi Alhussien
    Add it to his Position in the Organisational Model. Transaction PPOMA_CRM.
    Under there address section is an option to populate the email address.
    Regards
    Arden

Maybe you are looking for

  • How can I show an active page on menu?

    I am working in DW CS3 and using a Spry menu and want to be able to show the active page on the menu. Have looked at previous discussions but am still very confused. New to DW and not very code editing proficient. Please help.

  • Where do Drafts save to in Lion Mail V.5

    So on my Laptop I have Snow Leopard and I saved a draft in Mail v4.5. I go to my iMac Mail v5.0 with Lion and it doesn't a drafts area. So where did my draft actually save to? And what happens if I was using web mail on my own server to save a draft

  • The update server is not responding. error code u41m1c212

    Trying to update Photoshop cs 5.1 Extended and keep receiving error code u41m1c212. All help would be greatly appreciated.

  • How to acquire video from PCI TV tunner card in Labview

    Hello Guys, I am a new commer in this fourm and this is my first post. I am working on a project where i need to acquire analog video into labview 8.5 for this purpose i have a analog security camera and PCI TV tunner card (Manufactured by ASUS) and

  • Fix/Workaround for iCal 3/Yahoo Error?

    I'm running Mac OS X 10.5 and iCal 3.0.8.  This should work over CalDAV, but I'm getting an error. I tried following the instructions for connecting iCal to Yahoo! Calendar over CalDav (http://help.yahoo.com/kb/index?page=content&id=SLN3744 ) but the