How to create an email of a SAPscript formular
Hello,
I like to create an email of a sapscript formular. I have read a lot about function modules CONVERT_OTF_2_PDF and SO_NEW_DOCUMENT_ATT_SEND_API1. Does anybody have a sample program ???
Is it necessary to convert to PDF or is it possible to convert to a word document too ??
Regards,
GJ van Holland
Hai G.J Van
Go through the following Code
REPORT ZRICH_0003.
DATA: ITCPO LIKE ITCPO,
TAB_LINES LIKE SY-TABIX.
Variables for EMAIL functionality
DATA: MAILDATA LIKE SODOCCHGI1.
DATA: MAILPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: MAILHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: MAILBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: MAILREC LIKE SOMLREC90 OCCURS 0 WITH HEADER LINE.
DATA: SOLISTI1 LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
PERFORM SEND_FORM_VIA_EMAIL.
FORM SEND_FORM_VIA_EMAIL *
FORM SEND_FORM_VIA_EMAIL.
CLEAR: MAILDATA, MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
REFRESH: MAILTXT, MAILBIN, MAILPACK, MAILHEAD, MAILREC.
Creation of the document to be sent File Name
MAILDATA-OBJ_NAME = 'TEST'.
Mail Subject
MAILDATA-OBJ_DESCR = 'Subject'.
Mail Contents
MAILTXT-LINE = 'Here is your file'.
APPEND MAILTXT.
Prepare Packing List
PERFORM PREPARE_PACKING_LIST.
Set recipient - email address here!!!
MAILREC-RECEIVER = '[email protected]'.
MAILREC-REC_TYPE = 'U'.
APPEND MAILREC.
Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = MAILDATA
PUT_IN_OUTBOX = ' '
TABLES
PACKING_LIST = MAILPACK
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = MAILBIN
CONTENTS_TXT = MAILTXT
RECEIVERS = MAILREC
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
ENDFORM.
Form PREPARE_PACKING_LIST
FORM PREPARE_PACKING_LIST.
CLEAR: MAILPACK, MAILBIN, MAILHEAD.
REFRESH: MAILPACK, MAILBIN, MAILHEAD.
DESCRIBE TABLE MAILTXT LINES TAB_LINES.
READ TABLE MAILTXT INDEX TAB_LINES.
MAILDATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( MAILTXT ).
Creation of the entry for the compressed document
CLEAR MAILPACK-TRANSF_BIN.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 0.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'RAW'.
APPEND MAILPACK.
Creation of the document attachment
This form gets the OTF code from the SAPscript form.
If you already have your OTF code, I believe that you may
be able to skip this form. just do the following code, looping thru
your SOLISTI1 and updating MAILBIN.
PERFORM GET_OTF_CODE.
LOOP AT SOLISTI1.
MOVE-CORRESPONDING SOLISTI1 TO MAILBIN.
APPEND MAILBIN.
ENDLOOP.
DESCRIBE TABLE MAILBIN LINES TAB_LINES.
MAILHEAD = 'TEST.OTF'.
APPEND MAILHEAD.
Creation of the entry for the compressed attachment
MAILPACK-TRANSF_BIN = 'X'.
MAILPACK-HEAD_START = 1.
MAILPACK-HEAD_NUM = 1.
MAILPACK-BODY_START = 1.
MAILPACK-BODY_NUM = TAB_LINES.
MAILPACK-DOC_TYPE = 'OTF'.
MAILPACK-OBJ_NAME = 'TEST'.
MAILPACK-OBJ_DESCR = 'Subject'.
MAILPACK-DOC_SIZE = TAB_LINES * 255.
APPEND MAILPACK.
ENDFORM.
Form GET_OTF_CODE
FORM GET_OTF_CODE.
DATA: BEGIN OF OTF OCCURS 0.
INCLUDE STRUCTURE ITCOO .
DATA: END OF OTF.
DATA: ITCPO LIKE ITCPO.
DATA: ITCPP LIKE ITCPP.
CLEAR ITCPO.
ITCPO-TDGETOTF = 'X'.
Start writing OTF code
CALL FUNCTION 'OPEN_FORM'
EXPORTING
FORM = 'ZTEST_FORM'
LANGUAGE = SY-LANGU
OPTIONS = ITCPO
DIALOG = ' '
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'START_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
Close up Form and get OTF code
CALL FUNCTION 'END_FORM'
EXCEPTIONS
ERROR_MESSAGE = 01
OTHERS = 02.
MOVE-CORRESPONDING ITCPO TO ITCPP.
CALL FUNCTION 'CLOSE_FORM'
IMPORTING
RESULT = ITCPP
TABLES
OTFDATA = OTF
EXCEPTIONS
OTHERS = 1.
Move OTF code to structure SOLI form email
CLEAR SOLISTI1. REFRESH SOLISTI1.
LOOP AT OTF.
SOLISTI1-LINE = OTF.
APPEND SOLISTI1.
ENDLOOP.
ENDFORM.
Thanks & regards
Sreenivasulu P
Similar Messages
-
BB apps is not working, how to create BB email add? please help
BB apps is not working, how to create BB email add? please help
If none of the blackberry apps are working and you are unable to setup an email address..... have you got a Blackberry Data Plan active on your account?
-
Hi,<o:p></o:p>
I have task to create remainder email notification 3 days before by comparing with End
date (my list item) so i created one calculated column in the list as remainder date by using that remainder date
i created, but my project manager told me create same remainder notification work flow without create that remainder date i tried to write calculation in work flow
but it is not working if any one knows how to do this please help me<o:p></o:p>
Thanking you,<o:p></o:p>
ArunDarly <o:p></o:p>Hi,
For reminder type requirements, I tend to use the ‘Information Management Policy’ SPD method as described in
this blog article by Laura Rogers (it’s for MOSS and WSS but works in SP2010 also).
This method avoids the use of calculated columns; rather the workflow does the calculation and outputs information into a ‘reminder’ field. Also, I don’t like the idea of ‘paused workflows’, so this method works for me.
Cheers
Matt -
How to create an email blast HTML
Ok, I have a couple of my clients emails who I have given me permission to send them an email HTML blast with my specials. How can create one using dreamweaver and send it thru my mac mail program?
I know how to make basic html websites like this one http://www.nrgdesigngroup.com/ I just need to know how to send it with Images thru an email.
thanksHi
Here's how I do it:
Create your page as normal, remembering that emails can't contain any flashy stuff like Flash or Javascript (or even animated GIFs sometimes).
Upload the images to your web server (MobileMe/.Mac space will do if you don't have your own) and that they are linked as such in your <img src>es.
To be sure that all can read it (sometimes email programmes have trouble with HTML messages) place a copy of the html on the server too and link to it at the top of the page with something like "If you're having trouble viewing this, please click here".
Preview your page in Safari then select Mail Contents Of This Page from the File menu. This will open a new email in Mail with the HTML embedded in it.
Voila!
Hope that helps
Peter -
How to create an email distribution list?
How do you create an email distribution list
This is what I do and it works!
1. Create a new contact in iCloud (iCloud.com) or from your iPhone or iPad.
2. The company name field is your distribution name.
3. In one email field type in or paste in all the email addresses you want in the format as listed below. That's open double quotes follow by person's name close double quotes. Open greater than sign e-mail close greater then sign. Each additional entry follow by a comma. Last entry you don't need to.
"first lastName"<[email protected]>,
I would suggest do this in Note (on the iPad) or somewhere you can see your entres. Then paste them to the email field.
Good luck! Hope this helps.
Tuan
Long Beach CA -
How to create an email account??
Hi,
How to create a new email account by using Java program.
I'm able to send and receive the mails to and from an
existing account by using JavaMail.
But I dont know how to create an account.
Please help me...
thanks in advancehi,
I also have the same problem.
I m very confused about how to create mail accounts.
My mail server is using linux.
Can u plz help/guide/suggest me on "how can i add facility of new mail account creation like yahoo mail / hotmail....??? "
-- what programming language/scripting language i should use which is secure also.
Plz help me.
Any type of help will be greatly useful to me.
Thnk u very much. -
How to create an email inbox?
Hey everyone,
I am in the middle of a project but i seem to have come to a roadblock. I am in need of a way to create an email inbox in flex, but I am fresh out of ideas of how to do this, and I can't seem to find any documentation about how to do this. Do any of you have ideas or know of a source to learn how to do this? All help is greatly appreciated!Mainly I am struggling with how to even start. I figured I would use a dataGrid to display the emails, but how to retrieve and update them I do not know. I am currently using Augie Marcellos email script to send the email, but would change it based on the inbox settings to use my mail server. Any ideas?
-
How to create an email list server solution with java
hi all
I would like to create a email list service with java.
(when I say email list service, I mean , you send email and everyone who subscribes to the list receives the email automatically or the email is held in a queue for approval )
this solution would have to be integrated with the emailing standards .
Could someone share with me how one would create a list service with java and how it would work with the email and pick it up ?
stephenor if there is an open source solution please let me know
stephen -
How to create trusted emails in java
Hey guys, I need to create trusted emails with java using 509 certifications, can anyone tell me how can i do this or perhaps give me some direction?
Thanks on advance.Hi,
what is a textbox, a JTextField? What is the datasource?
Here are a few links to give you a better start this time:
[Forums FAQ|http://wikis.sun.com/display/SunForums/Forums.sun.com+FAQ]
[Getting started|http://wikis.sun.com/display/SunForums/Tips]
And very important:
[How to ask smart questions|http://catb.org/~esr/faqs/smart-questions.html] -
How to create multipme email draft throught Adobe email send function
Hi there,
I have a question about drafting few emails at ones.
I can have multiple drafts when I creating new emails from outlook. No problem.
But if I creating email through Adobe reader or Foxit pdf, it is locked to one draft only. Error message is " Outlook can't do this because a dialog box is open. Please close it and try again." But there is no dialog box, there is just a new email
draft.
I can't add a picture here, so I'll explain how to get the error step by step.
1. Open the Adobe Reader > open a pdf file > click file > send email > Outlook email draft should pops up.
2. Open the FoxitPdf reader > open a pdf file > click Share button > click email.
3. Should see an dialog box about a dialog box.
My question is how can I unlock it?Hi,
I did reproduce this problem on my machine, with both products you mentioned. It seems like the Outlook program is locked when we send the .pdf file from the applications to Outlook Draft. However, when I did the same with a Word document, the issue didn't
occur, so I think it's how the two products work, we can do little to change this.
As a workaround, creating a new message and dragging the .pdf files to the new message won't cause the problem.
Regards,
Melon Chen
TechNet Community Support -
I Want to use Mac mail as my business mail. But how do I create an email address like [email protected] instead of [email protected]?
Aliases can only be something @icloud.com. If you want a different domain (the part after the '@') you will either have to create an account with another ISP, or if you want to use a specific domain name, such as your own, buy a domain from one of the many providers (it's not particularly expensive). This usually comes with an email service. You can't use iCloud email with another domain.
If you create an email account with another provider or a domain name provider, you can simply enter the details in Mail to set it up there as a separate account - iCloud is independent of this, and you can have both in Mail (indeed as many separate accounts as you like). -
How to create another email address for my Wife?
I might be over thinking this but how do I create another email address for my wife? I can't find where to do that? I found the alias email but not just a regular email. Please help someone:)
Thanks so much,
ScottHello Scott.
If this is in reference to creating a .Mac email only account for your wife, you don't so this via the Mail program. This is done via webmail access for your .Mac account preferences.
An .Mac account alias is free but an alias address cannot be accessed as a separate account because an alias isn't an account.
A .Mac email only account cost $10 per year and can be accessed as separate account. -
How to create a page format at sapscript?
Hi all,
Please help me in creating a page format for sapscript.
Thanks.Hi Deniz,
Page format Specifies the format in which the form needs to be printed. E.g. Dina4, US Letter etc. The page format is determined from spool administration table with transaction SPAD.
When u create new SAP Script from SE71 , u get 2 tabs- adminstrative data and basic settings.
when u select Basic settings tab , u have options to set page format.
DINA4 is the very common page format we generally use.
REWARD IF USEFUL
thanks and regards
suma sailaja pvn -
How to create an email "leave a reply" section
I need to know how to create somthing like the "leave a reply" section from this link.
http://www.magpress.com/blog/introducing-adobe-edge-web-fonts-alternat ive-to-google-web-fontsI need to know how to create somthing like the "leave a reply" section from this link.
http://www.magpress.com/blog/introducing-adobe-edge-web-fonts-alternat ive-to-google-web-fonts -
How to create am email subscribe form with EA?
I know how to create the input elements, but how I create the form element directly in EA?
Thanks. I have it working now.
One problem working with most e-mail list providers is that the response, when someone subscribe to a list, is anew html page that replaces the one you have. In most cases that is not an issue, but if you want to keep the flow in your page it is.
The typical way to solve the problem is by not using the default forms, but by creating one that works through a PHP or other server side script that can receive a response that can handle anyway you want on the fron end.
Since I am trying to see what can I do without depending in particular sewrver side code, that was not an option for me.
The way I solved was dynamically creating an iframe inside EA so the response html page will be restricted to that area, which I can manipualte from EA.
Maybe you are looking for
-
Upgrading external hard drive to OSX 10.8.5
I purchased a 27 inch iMac in 2011 and within a year, decided to update the original terabyte sata drive with an SSD. I kept the old drive, which had OSX 10.7.2. I'm about to get rid of it, but wanted to keep the old drive and possibly use it to
-
How to set value from LOV only as a default reference not enforce validate check?
In jdev 11.1.2.3, By creating List of Value(LOV) for an attribute of a VO, I can get default value for the current VO's attribute from the lookup table, but it will also enforce a validate check for that value. If I input a value which is not in the
-
Sound not working for non-apple Programs/plugins
I can't seem to get any sound out of flash based websites, excel (when saving for example), or several other apps. Quake 3, and itunes still work perfectly fine. Also, since this happened, quicktime video playback is very choppy (stopping for up to 1
-
Icloud manage storage link not working on my iphone 4s
I need to manage my icloud storage, but the manage storage link on my iphone is not working. When I click on it, nothing happens. Can anyone help with this problem? I don't want to buy more storage if I can turn off some of my apps in icloud. Has any
-
No Progress Screen Indicator Volume * Brightness
While pressing Volume Button or Light Button, Sound and Brighness increase but there is no screen display of both, I loaded all drives properly. Please help me. Model No. 2530-A56 Z60