To download the print format and mail it on giving a range of customers
Hai
i have a smartform attached program to a report.
my selection screen contains only customer number (in range) and sales office code.
on executing the program will generate a printfile file for each customers.
i posted this question already and got the reply but the selection screen has only one parameter called p_mail(where u pass the address straight away).but i need the pdf format to get splitted for each and every customers and to mail them automatically.
where to write the coding for fetching the email addressess of the customers and how to loop it in order to send for all the customers automaticlly.
how to pass the parameters in the function module.
please explain to me clearly.i am in need of help.
this is the program i got for sending one mail.i get confused as how this will work for the range of customers.somebody please solve me this problem.kindly tell me where to do the changes
REPORT ztest_smartform.
DATA:it_nfal TYPE nfal OCCURS 0 WITH HEADER LINE.
DATA:fm_name TYPE rs38l_fnam.
DATA:ssfctrlop TYPE ssfctrlop.
DATA:ssfcompop TYPE ssfcompop.
DATA:it_otf_data TYPE ssfcrescl.
DATA:it_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE.
DATA:bin_filesize TYPE i.
DATA:it_pdfdata TYPE TABLE OF tline.
DATA:it_pdf TYPE TABLE OF solisti1.
" Mail related declarations
"Variables
DATA :
g_sent_to_all TYPE sonv-flag,
g_tab_lines TYPE i.
"Types
TYPES:
t_document_data TYPE sodocchgi1,
t_packing_list TYPE sopcklsti1,
t_attachment TYPE solisti1,
t_body_msg TYPE solisti1,
t_receivers TYPE somlreci1,
t_pdf TYPE tline.
"Workareas
DATA :
w_document_data TYPE t_document_data,
w_packing_list TYPE t_packing_list,
w_attachment TYPE t_attachment,
w_body_msg TYPE t_body_msg,
w_receivers TYPE t_receivers,
w_pdf TYPE t_pdf.
"Internal Tables
DATA :
i_document_data TYPE STANDARD TABLE OF t_document_data,
i_packing_list TYPE STANDARD TABLE OF t_packing_list,
i_attachment TYPE STANDARD TABLE OF t_attachment,
i_body_msg TYPE STANDARD TABLE OF t_body_msg,
i_receivers TYPE STANDARD TABLE OF t_receivers,
i_pdf TYPE STANDARD TABLE OF t_pdf.
PARAMETERS p_mail type char120.
*START-OF-SELECTION.
START-OF-SELECTION.
"select data
SELECT * FROM nfal INTO TABLE it_nfal UP TO 10 ROWS.
ssfctrlop-no_dialog = 'X'.
ssfctrlop-preview = 'X'.
ssfctrlop-getotf = 'X'.
ssfcompop-tddest = 'LP01'.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:31 AM in response to: amalrose Reply
from above
"Get Function module name for given smartform
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST_SMARTFORM'
IMPORTING
fm_name = fm_name.
"Call Smartform function module.
CALL FUNCTION fm_name
EXPORTING
control_parameters = ssfctrlop
output_options = ssfcompop
IMPORTING
job_output_info = it_otf_data
TABLES
it_nfal = it_nfal.
***********appending the otf data into the final table*********************
it_otf_final[] = it_otf_data-otfdata[].
converting OTF data into pdf data**************************
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
IMPORTING
bin_filesize = bin_filesize
bin_file =
TABLES
otf = it_otf_final
lines = it_pdfdata[]
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
err_bad_otf = 4
OTHERS = 5.
To send data as email attachment, we need to have a table of SOLISTI1.
This table contains line size of 255 characters. Below function module
does the trick of changing the table from X character sized lines into
any given Y character sized lines.
REFRESH it_pdf[].
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
line_width_dst = '255'
TABLES
content_in = it_pdfdata[]
content_out = it_pdf[]
EXCEPTIONS
err_line_width_src_too_long = 1
err_line_width_dst_too_long = 2
err_conv_failed = 3
OTHERS = 4.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
Continued
Venkat.O
Posts: 1,036
Registered: 12/2/05
Forum Points: 1,782
Re: to down load the print format to pdf and sent the data thru the mail
Posted: Jul 15, 2009 7:32 AM in response to: amalrose Reply
from above
"Subject of the mail.
w_document_data-obj_name = 'MAIL_TO_HEAD'.
w_document_data-obj_descr = 'Regarding Mail Program by SAP ABAP'.
"Body of the mail
w_body_msg = 'This is body of mail msg.'.
APPEND w_body_msg TO i_body_msg.
CLEAR w_body_msg.
"Write Packing List for Body
DESCRIBE TABLE i_body_msg LINES g_tab_lines.
w_packing_list-head_start = 1.
w_packing_list-head_num = 0.
w_packing_list-body_start = 1.
w_packing_list-body_num = g_tab_lines.
w_packing_list-doc_type = 'RAW'.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Write Packing List for Attachment
w_packing_list-transf_bin = 'X'.
w_packing_list-head_start = 1.
w_packing_list-head_num = 1.
w_packing_list-body_start = 1.
DESCRIBE TABLE it_pdf LINES w_packing_list-body_num.
w_packing_list-doc_type = 'PDF'.
w_packing_list-obj_descr = 'PDF Attachment'.
w_packing_list-obj_name = 'PDF_ATTACHMENT'.
w_packing_list-doc_size = w_packing_list-body_num * 255.
APPEND w_packing_list TO i_packing_list.
CLEAR w_packing_list.
"Fill the document data and get size of attachment
w_document_data-obj_langu = sy-langu.
READ TABLE it_pdf INTO w_pdf INDEX g_tab_lines.
w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_attachment ).
"Receivers List.
w_receivers-rec_type = 'U'."Internet address
w_receivers-receiver = p_mail.
w_receivers-com_type = 'INT'.
w_receivers-notif_del = 'X'.
w_receivers-notif_ndel = 'X'.
APPEND w_receivers TO i_receivers .
CLEAR:w_receivers.
"Function module to send mail to Recipients
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_document_data
put_in_outbox = 'X'
commit_work = 'X'
IMPORTING
sent_to_all = g_sent_to_all
TABLES
packing_list = i_packing_list
contents_bin = it_pdf
contents_txt = i_body_msg
receivers = i_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.
IF sy-subrc = 0 .
MESSAGE i303(me) WITH 'Mail has been Successfully Sent.'.
ENDIF.
ENDIF.
Here:
http://www.adobe.com/cfusion/tdrc/index.cfm?product=photoshop_elements&loc=en
Was it deactivated on the old computer? If not, you may need to contact Adobe support by clicking on "Chat"
Serial number and activation support
Similar Messages
-
My Mozzilla crashed: "We're Sorry....Firefox had a problem..." I download the new version and it is still giving me the crash report.
I tried to loading in "safe mode" but I still could not open Firefox.
I never received a crash i.d.It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
* Help > Troubleshooting Information > Profile Directory: Open Containing Folder
If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
See:
* http://kb.mozillazine.org/Session_Restore -
I am a teacher and accidentally rented a movie twice. Once in HD and it told me I could not project it over my promethean board. So I rented it in the regular format and I had problems downloading it. Could I get a refund or at least a credit?
You can try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
-
Convert spool in the text format and send mail
Hi All
Can anyone tell me
how to convert the spool into the text format and send that in email as an attachment..
Points will be rewarded
URGENTHi,
Read spool using FM RSPO_RETURN_ABAP_SPOOLJOB
CALL FUNCTION 'RSPO_RETURN_ABAP_SPOOLJOB'
EXPORTING
rqident = v_rqident "Spool Number
FIRST_LINE = 1
LAST_LINE =
TABLES
buffer = i_spool "Internal table output
You will get spool in internal table and then its your game, play the way you want.
Regards,
Mandeep -
i downloaded the iPhoto update and now it won't open the library on my external hard drive telling me it is locked (which it isn't) what do i do?
What version of iPhoto?
What format is the disk? -
my computer crashed, how do i download the digital format of adobe photoshop elements (I have the cd version, redemption code and serial #) to my new computer which does not have a cd drive
if you follow all 7 steps you can dl a trial here: http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm l
and activate with your serial.
if you have a problem dl'g, you didn't follow all 7 steps. the most common error involves failing to meticulously follow steps 1,2 and/or 3 (which adds a cookie to your system enabling you to download the correct version from adobe.com). -
When I try to print from a web page using Firefox, the page usually does not print in the correct format and I always get extra blank pages. Usually the first page that comes out it blank. I'm using a HP d135 All-in-one printer. This problem does not happen when I use Explorer. Does anyone have a fix for this printing problem? Thanks for any help you can provide.
== This happened ==
Every time Firefox opened
== I loaded Windows 7@paddyv, Welcome to the Community!
You should have the option in the program you're printing from, to change the page order. Check the settings in the program.
If you cannot find the options, please let me know which program and operating system you're running and I will have a look in to this for you.
Best wishes
R a i n b o w 7000I work on behalf of HP
Click the “Kudos Thumbs Up" at the bottom of this post to say
“Thanks” for helping!
Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution! -
I have a Sony Alpha a6000 and I took some photos in the raw format and tried to check them
I have a Sony Alpha a6000 and I took some photos in the raw format and tried to check them out in Photoshop but got a error saying that camera raw was out of date with my new camera. Even after updating my Photoshop CS 5 extended with camera raw 6.7 I beleive the exact wording was "camera not supported by the current version of Camera Raw"
Is there another version of Camera raw I can download that will allow this or is my camera just too new for the version of photoshop I have?
ThanksAdobe’s camera support list suggests you need ACR 8.4 or newer:
https://helpx.adobe.com/creative-suite/kb/camera-raw-plug-supported-cameras.html
Your camera is several years newer than the last ACR plug-in CS5 will host.
If you’re not quite sure you want to spend the money for a new PS, then you can download and use the free DNG Converter 8.4 or newer to make DNGs from the ARW files and those DNGs will have enough new information embedded in them for an older ACR plug-in to work with. Of course this is more cumbersome than opening the files natively in PS-CC with the newest ACR plug-in.
The most obvious thing would be to subscribe to the CC Photography Plan and get the current versions of both LR and PS-CC for $10/month. There is a minimum OS requirement of 10.7 or Win 7 currently and maybe 10.8/Win7 for LR6—not sure about the next PS version because Adobe hasn’t publically said as far as I know.
One thing you haven’t seen using only PS-CS5/ACR6.x is that CS6/ACR7 or newer, there is a new toning model that seems superior for most images. -
cannon 8800F not working with OS X yosemite 10.10.1 . I have downloaded the latest drivers and firmware from Canon. I called Canon for support and went through all the checks , but, still my iMac did not see the scanner. Any new ideas?
Have you done any of the following?
http://support.apple.com/kb/PH18614 OS X Yosemite: Reset the printing system
Repaired permissions & restarted your comp after the installations of the drivers?
Sometimes, installing the GIMP drivers help with printing issues: http://gimp-print.sourceforge.net/MacOSX.php
What to do when you can't print
=============
not working with OS X yosemite 10.10.1
Per your profile
Mac OS X (10.7.3)
Conflicting info: Please update/correct your profile so that you can receive the correct troubleshooting suggestions. This will assist the users in trying to help you. Thank you. -
I have an epson T50 shared network, which is connected to a computer that runs on Windows 7 64-bit. The 10 days Apple has updated the printer drive and since then has been trying to print the following message: / Library/Printers/EPSON/InkjetPrinter2/Filter/rastertoescpII.app/Contents/MacOS/ rastertoescpII failed.
What should I do?The first thing you should do is re-write your post to make it a bit more understandable. I got you have an Epson printer connected to your PC, however after that your post doesn't make any sense. Are you attempting to print from your iMac, if so then you need to download and install Bonjour for Windows on your Windows machine. Then set Windows so it has printer sharing turned on and then on the iMac simply follow Apple's instructions for adding a printer.
http://support.apple.com/kb/DL999
http://support.apple.com/kb/HT4670 -
I have an Imac running snow leopard and have recently installed a cannon i-sensys lbp7750Cdn printer since then I can't get the printer working and the air port has lost the DNS servers; if it ever had them!!! but it dose not look happy and it is telling me so. Can any one help please?
Snow Leopard breaks quite a few drivers - my Canon exhibited the same problem.
I eventually found updated drivers on the Canon website. You can try that with the HP, but if the all-in-one is more than a year or so old, don't hold your breath.
You can also try Software Update to see if it will offer new drivers, or failing that go to the Support Downloads site and search for HP updates.
In fact there's a new one for HP at the top of the list just now.
You may not necessarily want the latest one, though - check the specs to see if your model is covered; if not, search for the previous update etc. -
Why is it that at times my ipad does't download the entire item in mail just the title?
why is it that at times my ipad does't download the entire item in mail at times just the title? Yet on the listing of mail I have received there is 3 lines of content and none on the item itself. Furthermore when i look on my macbook pro the entire mail item has been downloaded. This happens only on occasion. I then try to download mail again and nothing happens and I make certain my internet is working. Why should I get more content in the listing of mail I have received then in the mail item itself? Thank you
Try closing the Mail app completely and see if it works properly when you re-open the app : from the home screen (i.e. not with the Mail app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Mail app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
If that doesn't work also do a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot. -
I upgraded to OS X10.9.4 and now my Cannon MX 860 scanner will not work. The printer works. I downloaded the new driver and still no luck. Please help!
Open Print & Scan preferences. Select the printer in the sidebar list and click on the Delete [-] button. CTRL- or RIGHT-click in the sidebar area and select Reset Print System from the context menu. Re-Add the printer by clicking on the Add [+] button, select your printer from the little browser that opens, select the proper driver if it isn't set automatically, then click on the Add button. See if it now works.
Oh, be sure you install the new driver you downloaded.
BTW, you don't have a PowerMac as shown in your profile. PowerMacs were tower machines that ran PPC processors, not Intel processors. You really should correct that information in your profile. -
Use the default format and partition step to format disk0 partition 1 in multiple disks sutiation
As we know,we need to disable the default format and partition step in ts to let mdt deploy os on C and leave the other partitions stay safe when there is only one disk on pc,and the way of installing operation system is logical drive letter store in a varible.
But what if there are 2 disks on pc,and for a record the disk 0 is always the OS disk,don't need to confirmed this.How can we modify the format and partition step to format only C on disk0 under this condition?then lead the mdt to do the rest deployment
by itself.
ThanksYou are pushing up against the design limits of MDT, and the more complex and/or arbitrary the disk configuration the harder it is for MDT to perform installations.
If you want to maintain the *existing* disk configuration, and just update the OS present, then the recommended course of action is to run MDT from *within* the OS (cscript.exe
\\server\deploymentshare$\scripts\litetouch.vbs), not from WinPE. When you do this, it's called a "refresh" scenario. MDT can capture the user files via USMT, and it knows which
partitions to use, because it's launched from within the OS itself.
Disabling the default Format and Partition step has other unintended consequences.
Keith Garner - Principal Consultant [owner] -
http://DeploymentLive.com -
i have the adobe cloud 9.99/ month photography package i downloaded lightroom 5.4, it told me it was a trial version, and i'm now at the end of the trial and it won't let me download the full version and i don't have a serial number. also, when i click buy, i get an error message saying, "application not found."
There are two different LR’s, one with a serial-number licensing and one with a CC-signin license.
You should uninstall the serial-number LR you have installed, then
Quit the CC Desktop application,
Restart the CC Desktop application—this will rescan what you have installed and not see LR,
LR will now be on the CC Desktiop apps list, so install that.
Maybe you are looking for
-
How to use LOOP(Until) step in a Workflow
Hi, How to use LOOP(Until) step in a Workflow? What are the steps involved in using the step LOOP(Until).
-
Why does my chart build as a white box rather than a line in slideshow?
In creating a line chart, no matter which master theme I use, whenever I select "wipe" as my build, it looks great in the build preview window, but when I view play slideshow, a white box replaces my chart. Sure, I could use other build options, but
-
Multiple authorizations?
I'm buying my son a new MacBook Pro on which he will have his own Apple ID and iTunes account. However I also want to copy some of my purchased music to his new machine for him to enjoy. My understanding is that, to do this, I would need to authorise
-
Reduce Budget for Plant Maintenance Order without PS
Dear All, Request help for reducing the budget of an Plant Maintenance Order. Overall budget for order is Rs. 1,00,00,000 and want to reduce the same to Rs. 46,00,000. Actual Consumption of budget is Rs.24,00,000. I tried reducing the order through K
-
Hi Does anyone have any idea how to integrate SAP BI with IBM Tivoli. Our client wants to monitor all the error and alerts to be sent to IBM tivoli. IBM tivoli will be the central server to monitor SAP related errors and alerts. If anyone knows any i