Smartform mail
Hi,
I am sending the smartform as mail content using the CRM_ISA_AUCTION_SMART_FORM method present in class CL_DOC_PROCESSING_CRM_ORDER.
I have a standard text displayed in smartform. In this i am using smartstyle and paragraph format in which i have declared tabs.
In the output the tabs are not working.
Best Regards,
Azaz.
Hi Azaz,
exactly, If I use CRM_ISA_AUCTION_SMART_FORM method for sending a smartform by email, when I receive it I realise that all table designs and smartstyles are lost.
In that way, I wonder if you have found out how to fix this problem.
Thanks above all.
Similar Messages
-
Prob in PO smartform mail sending
Dear all,
We are facing prob at the time of PO smartform mail sending.
Issue is if in vendor master if in general tab there is option to mantain mail id.
if i keep blank than mail is not going this is right.
but our requirement is if in general tab email is not maintained than also we have to check in contact person tab in vendor master
there is tab called partners details if mail id maintained in partners than mail should shoot.
Thanks in advanced.
Laxman Sankhla.Hi,
Just find an exit and populate the mail id based on your logic,
or if you are using WF just chip your logic in one activity.
Regards
Bikas -
Smartform Mail -DOCUMENT_NOT_SENT Exception
Hi ,
We are using the FM - SO_NEW_DOCUMENT_ATT_SEND_API1 to send a smartform mail with PDF attachement, we are able to acheive this in the Developement system, where as in Quality system this FM is raising exception DOCUMENT_NOT_SENT (sy-subrc = 2).
The same code exists in both the systems, I read in SDN that the SU01 settings should be checked, I checked it and made it similar to the developement system.
Can anyone let me what may be the root cause of the issue ?
Thanks in advance.Hi Jay,
Thanks for your quick reply.
commit_work = 'X' is in the code in both the systems.
Logged off and logged in again for SU01 settings to be effective.
But still the same exception. -
Can anyone please let me know how to set the value of JOB_OUTPUT_INFO-OUTPUTDONE to 'X' in the class CL_SF_MAIL_PPF.
My requirement is to avoid error mesage in logs of transaction CRMD_ORDER which is triggering a smartform mail, if I change the value of JOB_OUTPUT_INFO-OUTPUTDONE to 'X' while debugging, I am not getting the error message in the logs.
Mail is triggerred with PDF, there is no issue in the mail, except the above issue.
Please let me know how to set the above mentioned field to 'X' programatically. Point ll be awarded.
Thanks in Advance.
Edited by: Mohana Vijayan on Oct 9, 2009 4:27 PMREPORT ZSMF_MAIL_PROGRAM.
DATA: OUTPUT_OPTIONS TYPE SSFCOMPOP,
CONTROL_PARAMETERS TYPE SSFCTRLOP,
OUTPUT_DATA TYPE SSFCRESCL.
DATA: FILESIZE TYPE I.
DATA:FM_NAME TYPE RS38L_FNAM.
DATA LT_OTFDATA LIKE ITCOO OCCURS 1000 WITH HEADER LINE.
DATA LT_PDFDATA LIKE TLINE OCCURS 100 WITH HEADER LINE.
DATA:LT_PDF LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA:LW_PDF LIKE LINE OF LT_PDF.
DATA:LW_PDFDATA LIKE LINE OF LT_PDFDATA.
DATA:LS_JOB_INFO TYPE TABLE OF SSFCRESCL WITH HEADER LINE.
DATA:LT_MESSAGE TYPE TABLE OF SOLISTI1 WITH HEADER LINE.
DATA: DOCU_DATA LIKE SODOCCHGI1 OCCURS 0 WITH HEADER LINE.
DATA PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
DATA OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA REAL_RECIPIENTS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.
DATA CONTENTS_TXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA CONTENTS_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA PACKING_LIST_TXT LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
DATA OBJECT_HEADER_TXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA OBJECT_HEADER_ATT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
DATA PACKING_LIST_ATT LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
DATA: W_EMAIL(1215) TYPE C.
DATA:PSUBJECT(90) TYPE C.
DATA: LD_FORMAT TYPE SO_OBJ_TP ,
LD_ATTDESCRIPTION TYPE SO_OBJ_NAM ,
LD_ATTFILENAME TYPE SO_OBJ_DES .
*Calling the Smartform.
Get Email id from ztab_email table.
select single email_id from ztab_email
into w_email.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'Z_CONTD_DEBT_FORM'
IMPORTING
FM_NAME = FM_NAME
EXCEPTIONS
NO_FORM = 1
NO_FUNCTION_MODULE = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
ENDIF.
CONTROL_PARAMETERS-DEVICE = 'MAIL'.
CONTROL_PARAMETERS-NO_DIALOG = 'X'.
CONTROL_PARAMETERS-GETOTF = 'X'.
CONTROL_PARAMETERS-PREVIEW = SPACE.
OUTPUT_OPTIONS-TDTITLE = SY-TITLE.
OUTPUT_OPTIONS-TDNEWID = 'X'.
OUTPUT_OPTIONS-TDNOPREV = 'X'.
OUTPUT_OPTIONS-TDDELETE = 'X'.
CALL FUNCTION FM_NAME
EXPORTING
CONTROL_PARAMETERS = CONTROL_PARAMETERS
OUTPUT_OPTIONS = OUTPUT_OPTIONS
USER_SETTINGS = SPACE
IMPORTING
JOB_OUTPUT_INFO = OUTPUT_DATA
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 4
OTHERS = 5.
OUTPUT_DATA-OUTPUTDONE = 'X'.
*Convert to PDF Format.
CLEAR LT_PDFDATA.
REFRESH LT_PDFDATA.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = '132'
IMPORTING
BIN_FILESIZE = FILESIZE
TABLES
OTF = OUTPUT_DATA-OTFDATA
LINES = LT_PDFDATA
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
ERR_BAD_OTF = 4
OTHERS = 5.
IF SY-SUBRC <> 0.
ENDIF.
REFRESH LT_PDF[].
*Convert 132 line sized internal table into 255 line sized internal table.
CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
EXPORTING
LINE_WIDTH_DST = '255'
TABLES
CONTENT_IN = LT_PDFDATA[]
CONTENT_OUT = LT_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.
ENDIF.
Sending it as an Email Attachment.
LD_FORMAT = 'PDF'.
LD_ATTDESCRIPTION = 'CONTESTED'.
LD_ATTFILENAME = 'TEST_FILE'.
CLEAR REAL_RECIPIENTS.
REFRESH REAL_RECIPIENTS.
REAL_RECIPIENTS-REC_TYPE = 'U'.
REAL_RECIPIENTS-COM_TYPE = 'INT'.
REAL_RECIPIENTS-NOTIF_DEL = 'X'.
REAL_RECIPIENTS-NOTIF_NDEL = 'X'.
REAL_RECIPIENTS-RECEIVER = W_EMAIL.
APPEND REAL_RECIPIENTS.
CLEAR PACKING_LIST.
REFRESH PACKING_LIST.
*Describe the body of the message
PACKING_LIST-TRANSF_BIN = ' '."""""""""""""" CHANGE IT FROM 'X' TO ' ' """""""""""""
PACKING_LIST-HEAD_START = 1.
PACKING_LIST-HEAD_NUM = 0.
PACKING_LIST-BODY_START = 1.
PACKING_LIST-BODY_NUM = 1.
PACKING_LIST-DOC_TYPE = 'RAW'.
APPEND PACKING_LIST.
PACKING_LIST-TRANSF_BIN = 'X'.
PACKING_LIST-HEAD_START = 1.
PACKING_LIST-HEAD_NUM = 1.
PACKING_LIST-BODY_START = 1.
DESCRIBE TABLE LT_PDF LINES PACKING_LIST-BODY_NUM.
PACKING_LIST-DOC_TYPE = LD_FORMAT.
PACKING_LIST-OBJ_DESCR = LD_ATTDESCRIPTION.
PACKING_LIST-OBJ_NAME = LD_ATTFILENAME.
PACKING_LIST-DOC_SIZE = PACKING_LIST-BODY_NUM * 255.
APPEND PACKING_LIST.
*Populate the subject/generic message attributes
DOCU_DATA-DOC_SIZE = 1.
DOCU_DATA-OBJ_LANGU = SY-LANGU.
DOCU_DATA-OBJ_NAME = 'SAPRPT'.
DOCU_DATA-OBJ_DESCR = PSUBJECT.
DOCU_DATA-SENSITIVTY = 'F'.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOCU_DATA
SENDER_ADDRESS_TYPE = 'INT'
COMMIT_WORK = 'X'
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = V_SENDER
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
PACKING_LIST = PACKING_LIST
OBJECT_HEADER = OBJECT_HEADER
CONTENTS_BIN = LT_PDF
CONTENTS_TXT = CONTENTS
RECEIVERS = REAL_RECIPIENTS
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
ENDIF. -
Smartform Mail Sending via Action profile
Hi,
we have a big problem, because our sended emails going into customers spam filter. We hava SAP CRM 5.0 and we send the emails via action profile.
For that we use the standard for sending smartforms via action profile. Follwing problems are occured:
1) email recipient is fill only in the cc field, not in the to field of an email
2) the subjet ist the sam as the dcument name
3) the emial is sended without text only whith attachment
So my question are:
how can i customize that the email is wirtten in the to field and how i can change the subject of this mail.
Is ist possible to add a text to the email? Maybe not, but than we could add a disclaimer in the mail hub - so my firts questions are more importent for me.
Thank you for your help
StefanHi,
To manipulate the subject Refer Note 895550 - Name of Smart Form used as e-mail subject
Im not sure why the email recipient is in CC instead of To. Please check your Action settings. How are you determining the recipient? if it's by partner function, it should automatically be filled in To field.
Smartforms can be sent either as Text or pdf attachment. This is controlled globally in SMTP settings in SCOT. I believe you can choose attachment option and also add some text by manipulating the Action class.
HOpe this helps.
Shaik -
Smartforms Mail by Business Communications Interface
Hi,
According to the documentation in SAP library on SmartForms, you should be able mail a smartform as PDF, directly from the generated function module. For that, you have to set the CONTROL_PARAMETERS-DEVICE = 'MAIL'. Then you need to create recipient, sender and application BOR ID's and pass these to parameters MAIL_RECIPIENT, MAIL_SENDER and MAIL_APPL_OBJ. I have no experience with BOR objects, and I think something goes wrong at that point.
The SAP Library refers to sample code, in report RSSOKIF2. I have copied this code, and modified a little, to be able to send to an e-mail address, only changing the recipient type to 'U', and moving the e-mail address to the AddressString parameter.
This doesn't work. Does anyone have any working code to send smartforms to an e-mail address USING THE BUSINESS COMMUNICATIONS INTERFACE ?
I know how to send e-mail with PDF attachment. I am trying to find out how to use the BOR objects technique.Hello Peter,
I did also follow this example but it was from the book - "SAP Smart Forms" by Werner Hertleif and Christoph Wacheter. Chapter 10 has a nice exaple that you can follow. You have to copy some of the source code from the back of the book's appendix. I wa not able to get it to work initially. I found that it was necessary to issue the commit work command if you are sending via external (internet) e-mail. It seemed to me that the commit work was not necessary if you just send to an internal sap user e-mail address.
Also be sure that you have set up the e-mail address for your current user in the SU01 user maintenance. -
Tbale layout in smartform mail
Hi Experts,
I am sending SMARTFORM as a mail.I am able to send the mail perfectly.But in my smartform table is there.In the mail Table content is displaying but the table layout is missing.I want my smartform as a Boody of the mail not as a PDF or any type of attchment.Please can anybody give me the solution for this.Please.
I will reward you more points.
Thanks,
Swapna.Hi,
Try This below Sample code,
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline WITH HEADER LINE,
i_receivers TYPE TABLE OF somlreci1 WITH HEADER LINE,
i_record LIKE solisti1 OCCURS 0 WITH HEADER LINE,
Objects to send mail.
i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
i_objtxt LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_objbin LIKE solisti1 OCCURS 0 WITH HEADER LINE,
i_reclist LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
Work Area declarations
wa_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
wa_doc_chng TYPE sodocchgi1,
w_data TYPE sodocchgi1,
wa_buffer TYPE string, "To convert from 132 to 255
Variables declarations
v_form_name TYPE rs38l_fnam,
v_len_in LIKE sood-objlen,
v_len_out LIKE sood-objlen,
v_len_outn TYPE i,
v_lines_txt TYPE i,
v_lines_bin TYPE i.
DATA : t_bsid TYPE STANDARD TABLE OF zfr_efl_evcda_letter WITH HEADER LINE.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZFR_EFL_SCHEM_COMPLN_LETTER'
IMPORTING
fm_name = v_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION v_form_name
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
user_settings = 'X'
IMPORTING
job_output_info = w_return
TABLES
t_zfr_efl_evcda = t_bsid[]
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.
i_otf[] = w_return-otfdata[].
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
Fehlerhandling
IF sy-subrc <> 0.
ENDIF.
LOOP AT i_tline.
TRANSLATE i_tline USING '~'.
CONCATENATE wa_buffer i_tline INTO wa_buffer.
ENDLOOP.
TRANSLATE wa_buffer USING '~'.
DO.
i_record = wa_buffer.
APPEND i_record.
SHIFT wa_buffer LEFT BY 255 PLACES.
IF wa_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH:
i_reclist,
i_objtxt,
i_objbin,
i_objpack.
CLEAR wa_objhead.
i_objbin[] = i_record[].
i_objtxt = 'test with pdf-Attachment'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'smartform'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'smartform'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
0.1. Main Text
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt )
CLEAR i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
0.1. Attachment
(pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
Länge des Attachment ermitteln
DESCRIBE TABLE i_objbin LINES v_lines_bin.
READ TABLE i_objbin INDEX v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'smart'.
i_objpack-obj_descr = 'test'.
APPEND i_objpack.
CLEAR i_reclist.
i_reclist-receiver = 'Mail ID'. " Give U Mail ID
i_reclist-rec_type = 'U'.
APPEND i_reclist.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
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.
Reward if useful...
Thanks,
Durai.V -
Hi all : )
I generated a Smartform with Table and Bold text. When the Form will send trough SCOT Transaction, the Mail received will not show any Table lines or Text in Bold Style.
Someone know why ? Thanks a lot.hi
check manually whether the conversioon is happening properly or not
if u receive mail then check whether the font size is small or some sily issues
still if u get blank then u might use some other logic to send the form through mail.
Regards,
Venkat. -
Smartform mail format(PDF) dropped by spam detector
Hi,
When we are firing mails from t-code CRMD_ORDER in CRM,in scenarios like sales order creation, etc.,mail is triggered as a PDF attachment to the partner's email ID .
But at present this PDF attachment is treated as SPAM by spam scan software and it's dropped by the mail server.
After some diagnosis , we found that any mail which has an attachment and no content in the body of the mail, is treated as spam and being dropped.
All the mails are generated through customized action profile.
Now we need to add some content to the body of the mail to overcome this problem.
Please suggest.
Regards,
DebHello Luiz,
actually there are only a few steps to do:
Just call transaction SCOT and doubleclick your SMTP node. Click on the "set"-Button behind the supported address type "internet". Choose "PDF" as output format for SAPforms.
By the way. You can also generate a PDF-File from a Spool with report RSTXPDFT4.
I hope this will help you.
Bye
Frank -
Hai all,
i m able to convert sf op to pdf format bt nt able to send mail.
i checked su01 n scot for internet option also..
i used the code given in dis forum 2 send mail with pdf as attachment bt failed..
is rfc r gateway checking required if so guide me with the steps..
thanks in advance.Hi,
Use following piece of code to send mail:
*For sending email
DATA:
i_otf type standard table of itcoo ,"OCCURS 0 WITH HEADER LINE,
i_tline type table of tline with header line,
i_receivers type standard table of somlreci1 ,
i_record type table of solisti1 initial size 0 with header line,
Objects to send mail.
i_objpack type table of sopcklsti1 initial size 0 with header line,
i_objtxt type table of solisti1 initial size 0 with header line,
i_objbin type table of solisti1 initial size 0 with header line,
i_reclist type table of somlreci1 initial size 0 with header line,
Work Area declarations
wa_objhead type soli_tab,
w_ctrlop type ssfctrlop,
w_compop type ssfcompop,
w_return type ssfcrescl,
wa_doc_chng type sodocchgi1,
wa_buffer type string, "To convert from 132 to 255
Variables declarations
v_len_in like sood-objlen,
v_lines_txt type i,
v_lines_bin type i.
clear v_len_in.
i_otf] = w_return-otfdata[.
clear v_len_in.
call function 'CONVERT_OTF'
exporting
format = 'PDF'
max_linewidth = 132
importing
bin_filesize = v_len_in
tables
otf = i_otf
lines = i_tline
exceptions
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
others = 4.
if sy-subrc eq 0.
loop at i_tline.
translate i_tline using '~'.
concatenate wa_buffer i_tline into wa_buffer.
endloop.
translate wa_buffer using '~'.
do.
i_record = wa_buffer.
append i_record.
shift wa_buffer left by 255 places.
if wa_buffer is initial.
exit.
endif.
enddo.
Attachment
refresh: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear wa_objhead.
i_objbin] = i_record[.
Create Message Body Title and Description
i_objtxt = 'PFA are the Service Entry Sheet details.'.
append i_objtxt.
append initial line to i_objtxt.
describe table i_objtxt lines v_lines_txt.
read table i_objtxt index v_lines_txt.
wa_doc_chng-obj_name = 'Service Entry Sheet '.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
concatenate 'Service Entry Sheet' nast-objky(10) into wa_doc_chng-obj_descr separated by space.
Main Text
clear i_objpack-transf_bin.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_txt.
i_objpack-doc_type = 'RAW'.
append i_objpack.
Attachment (pdf-Attachment)
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 0.
i_objpack-body_start = 1.
describe table i_objbin lines v_lines_bin.
read table i_objbin index v_lines_bin.
i_objpack-doc_size = v_lines_bin * 255 .
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'smart'.
i_objpack-obj_descr = 'Service Entry Sheet '.
append i_objpack.
Get email id .
clear i_reclist.
i_reclist-receiver = '[email protected]'. "email address
i_reclist-rec_type = 'U'.
append i_reclist.
if i_reclist[] is not initial.
call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
exporting
document_data = wa_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
tables
packing_list = i_objpack
object_header = wa_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist
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.
Error When Sending the File
retcode = sy-subrc.
perform protocol_update1 .
endif.
endif.
else.
Error When generating the File
retcode = sy-subrc.
"perform protocol_update .
endif.
Then go to SCOT and check
let me know if there are any issues
Reward if u find it useful
Regards
Arun T -
Problem with smartform print preview.
Hi Experts,
i have an rare problem i have requirement of sending PO smartform mail as pdf ,and the smartform is configued to nace, and the tcode is me23n.
we checked it in development server everything went on well,and mail was sent without any error, after moving object to quality,
we tested in the same process as in development, instead of mail 'Print preview' button was popped up.
is it something to do with NACE config or to do with my code ?Hi Prakash,
As Mohit said default printer is not yet set for your user in QAL and on print preview screen output device field is mandatory that is why the pop up for print preview is coming.
follow path given by Mohit and I think the pop up will not come again.
Regards,
Siddhesh Satghare. -
Need to trigger e-mail on a particular action in CRMD_ORDER t-code
Hi Experts,
My requirement is , I need to send an E-mail to differant receipents based on status.
To be more elobarative , on an user status in CRMD_ORDER i need to send e-mail to Branch Manager of that particular sales office .
I need to send the document number.
I knew few badis in CRM , which ofocurse i have not tried coz if there is anyway directly by work flow , I would like to go for that.
If not , can i submit a report which generated e-mail from CRM_ORDERADM_h_badi or order_save .
Pls Help meHi Ramesh,
You need to have branch manager as the one of the partner function of your transaction type.(assign the partner function to your partner determination procedure of your trasaction )
In your action details you maintain the partner function as partner dependant and give the new partnerfunction (ie branch manager)
For the action you maitain the processing types as smartform mail and give your smartform name, processing class and processing method.
Go to conditions open your action profile and activate the new action created.
Give the start condition as status equals to your new status on which you want to send the email.
To get the document number on the email you need to do coding in the smart form which is assigned to your action.
Let me know if you have any queries on this.
Reward points if it helps.
Regards,
Madhu -
HI
we have the scenario like , we create the quotation in CRM and after creation we release the quotation , after release at the time of saving the document , system has to trigger a mail to the customer that is quotation printout .
So for sending quotation printout , what is the standard smartform i have to use and assign to the action "Smartform mail". and also from the activity transaction say suppose we are creating Meeting activity and i maintain the list of attendees in the Meeting activity transaction (attendee also a partner function) and i will assign list of employees as a attendees in the meeting trasaction and i have to trigger a mail or some alert to the list of attendees whom i maintained in that particular transaction as " Meeting is going to held on ....................date Etc.,)Hi Marthanda,
You can try using Actions to meet this requirement.
Check the BO event getting triggered when you save the document after releasing the quotation.
Check this in SWEL t-code.
Now create an Action which should trigger when this event is triggered in the system.
You can attach a smartform at an output of this ACtion, which can be used to send mail to the customer.
Hope this helps!
Regards,
Saumya -
BAR CODES in smartforms - conversion problems to PDF
Hello,
I have a problem. Have a look at the following points and see what I have done:
1. I generated several different system bar codes using SM73
2. I added those system bar codes to a smartformstyle
3. and built a smartform using smartformstyle of system-bar codes.
4. then I made some examples of bar codes in the smartform as text.
5. next I sent this smartform via email as an pdf attachment using smartform mail functionality.
6. shocking - all bar codes in the pdf-file are not readable. You can see that there is a barcode placed, but all barcodes looks like the same.
Has somebody got a idea on what is going on here?
I already had a look at OSS Notes 430887 and 645158.
Greetings
danielHi,
Please can you have a look at Sap OSS Note 197177.
Regards,
Sudheer. -
Send smartforms via email using action profiles
hi,
i am trying to send smartforms via email using action profiles and i would like to know if anyone has any document or know any steps to do the same. i have created the smartform and i created the action in an action profile. i selected the option "Smartforms Mail". and i have mentioned my smartform in it.
I have previously worked with action profiles to trigger workflows which sent a mail. That was relatively easier as i could mention that the mail be sent to my mailbox. But in the smartforms option, i dont know how to give the instruction that it be sent to my mailbox.. is there any place i can set it? The action is not person dependant and is done whenever saving a document.
Please guide.
Thanks,
NishaHi Nisha,
As u worked on Action profiles, i recommend u use action profile with permitted Process type as Smart Forms Mail to send the mails which contains the data in Smartform u created.
Use below mail setting
Form Name (u r ZSmartform)
Processing Class CL_DOC_PROCESSING_CRM_ORDER
Processing Method CRM_ACTIVITY_EXEC_SMART_FORM
Archive Mode 1 Mail only User
In Action definition details u can mentioned the Processing time, Partner dependent for action to who u want to send the mail, further in action condition using schedule and start condition u can set the criteria to mail trigger.
Hope it'll help u.
Regards,
Dipesh.
Maybe you are looking for
-
Dear All WebLogic Guru, Need your help about the error in our WebLogic Apps Server. Below is the related logs. Hope to hear from you soon. ======== Log snippet: ======== [15:48:02 ] [INFO] [NumberFormatException in TimesheetAddHandler:] null [delegat
-
Hello - When I stream Netflix from my Ipad, I only received black and white TV reception?? Any thoughts why? Thank you, Jackiedd
-
I have a question. I am working with the special ledger in FICO module. When I do a report with the society characteristic in the General Data Selection, I get my report well with my accountable account and its description. <b>Example 1....</b> Accou
-
Compliance Calibrator Issue with Backend system
Hi Experts, We have situation where we are unable to run any risk analysis from CC to our backend system. The error we are getting is " Can not execute BAPI USERLIST, Invalid value in OPTION field of value table for IN itab operator" and the RFC ID i
-
How to run the program continously...
i want to run my java program continously... i heard that by implement the thread we can run program continously... can any body give me sample code on thread which runs continously.... thanks alot kareem