Smartform ---- email/fax
Hi All,
We have developed smartform from scratch in PDF. It will trigger from vt02n,The requirement is this generated PDF file should be send thru via email/fax.I want to know the code for this please send me the code and share some ideas.
<b>1. PDF & Mail</b>
You need to get the spool of smartform output and convert it to PDF using an FM & then send it as email.
Please refer following link for a sample program :
http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm
<b>2. Fax</b>
Use FM 'PRINT_TEXT' for FAX.
Pass parameters as follows :-
Exporting
DEVICE = 'TELEFAX' " For printing call the same FM again & Pass printer name
DIALOG = 'X' " To get the option of Print Preview along with the fax number on dialog box
HEADER = POPT
Importing
RESULT = PRES " of type ITCPP
Tables
LINE = ITAB_DATA.
POPT is structure of type ITCPO.
Populate following values in POPT :
POPT-TDNEWID = 'X'
POPT-TDIMMED = 'X'
POPT-TDLIFETIME = 8 "To keep 8 days in spool
POPT-TDTELENUM = <Fax Number> " Without country code
POPT-TELELAND = <Country> " Country code
Best regards,
Prashant Patil
Similar Messages
-
Print program for the smartform for selecting the output type (email/fax)
Hi All,
Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
can any body please let me know how to put the condition for selecting the desired output type ?
Thanks in advance
RahulHi
It is not the output type that has to be changed
it is the MEDIUM which you have to change and configure
for printout medium is 1
for FAX medium is 2
for MAIL it is 7.
so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
Reward points for useful Answers
Regards
Anji -
Send smartforms as fax and email
Hi SAP gurus,
Can you please tell me on how to send smartforms as fax and email?
I would really appreciate your help.
Thanks in advance.Hi,
Check the below link.
http://help.sap.com/saphelp_nw2004s/helpdata/en/a5/28d3b9d26211d4b646006094192fe3/content.htm
Thanks,
Sankar M -
Reg SMARTFORM emailing n fax options?
hi friends
i have to run my smartform in background mode and there is a requirement to fax and emailing
the output. how to make my form run in background , email n fax ?
thanks & regards
thirupai
Edited by: rafi md on Dec 20, 2008 1:32 PMHI
you may use the FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF' to convert the fom
into PDF.
But first to get the printed form from the spool, use FUNCTION
'RSPO_FIND_SPOOL_REQUESTS'.
Then you may send it to your PC, email, fax, etc by reading the record in
the lines of table IT_PDF_OUTPUT.
Note: You may also use program RSTXPDFT4 as a reference to get code
examples which uses different functions to perform the creation of PDFand
download the form to the PC,etc.
An example:
CALL FUNCTION 'RSPO_FIND_SPOOL_REQUESTS'
EXPORTING
RQOWNER = SY-UNAME
TABLES
SPOOLREQUESTS = SPOOL_REQUESTS.
READ TABLE SPOOL_REQUESTS INDEX 1.
GD_SPOOL_NR = SPOOL_REQUESTS-RQIDENT.
CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = GD_SPOOL_NR
NO_DIALOG = C_NO
IMPORTING
PDF_BYTECOUNT = GD_BYTECOUNT
PDF_SPOOLID = PDFSPOOLID
BTC_JOBNAME = JOBNAME
BTC_JOBCOUNT = JOBCOUNT
TABLES
PDF = IT_PDF_OUTPUT
EXCEPTIONS
ERR_NO_OTF_SPOOLJOB = 1
ERR_NO_SPOOLJOB = 2
ERR_NO_PERMISSION = 3
ERR_CONV_NOT_POSSIBLE = 4
ERR_BAD_DSTDEVICE = 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.
CHECK SY-SUBRC = 0.
Hope this will help send you in the right direction
Regards
Alok -
Problems when trying to send a smartform through fax
Hi,
Im currently confronting a problem when sending smartforms through fax to multiple recipients.
This is the scenario Im working on:
The client needs to be able to send a document, could be a PO or invoices, to diferent recipients at the same time. So far in case of purchase orders, we have been able to find the respective faxes and emails for each of the partner functions.
Functionality for email is working as desired but when sending faxes I have problems.
Reviewing the output through SOST I get all my receipients which are email and faxes. Emails are fine since it creates a PDF attachment with the order and all of its details.
For fax I get the same even though the paramenters are set for fax.
Here is my code if you could please help me here on this one.
SELECT lifn2 FROM EkPA into l_ekpa-lifn2
WHERE EBELN = a_EBELN.
APPEND l_EKPA.
ENDSELECT.
SELECT adrnr
FROM lfa1
INTO itab-q_adrnr
FOR ALL ENTRIES IN l_ekpa WHERE lifnr = l_ekpa-lifn2.
APPEND itab.
ENDSELECT.
*& End of partner address
*& Selection of Address or Fax number from ADR3 & ADR6 according to ADRNR
*& Nato
IF sy-subrc EQ 0.
loop at itab.
SELECT SINGLE smtp_addr INTO (itab-q_mail)
from adr6 where addrnumber = itab-q_adrnr and flg_nouse eq space.
IF itab-q_mail ne Space.
Move 'U' to itab-q_typ2(1).
Move 'X' to itab-q_express(1).
Move 'EXT' to itab-XOBJT.
ENdIF.
SELECT SINGLE FAXNR_LONG INTO (itab-q_fax)
SELECT SINGLE country FAX_NUMBER INTO (itab-q_cty, itab-q_fax )
from adr3 where addrnumber = itab-q_adrnr and flg_nouse eq space.
If itab-q_fax ne space.
Move 'F' to itab-q_typ(1).
Move 'TELEFAX' to itab-q_com.
Endif.
Modify itab.
endloop.
*& END of ITAB
CLEAR : DOC_CHNG.
REFRESH LINES.
IF NAST-NACHA eq '7'.
* Fill both the fax & email Receiver lists
clear: reclist, reclist2.
refresh: reclist, reclist2.
*& loop table itab to update receipient list in table Reclist
*& Nato
loop at itab.
IF not itab-q_typ is initial.
concatenate itab-q_cty itab-q_fax into reclist2-RECNAM separated by space. "FAX NUMBER
move itab-q_fax to reclist2-receiver. "FAX NUMBER
*&>>>>>>>>>>>>>>>>>>>new entry for testing nato 080206<<<<<<<<<<<&
move itab-q_cty to RECLIST2-COUNTRY. "Country Code
move itab-q_fax to Reclist2-FAX. "Fax number
*&>>>>>>>>>>>>>>ENd of entry<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<&
move itab-q_typ to REClist2-REC_TYPE. "Communication type for fax
move itab-q_EXPRESS to Express. "comment for testing
move itab-q_com to REClist2-COM_TYPE.
Move 'X' to reclist2-NOTIF_DEL.
Move 'TELEFAX' to reclist2-SNDART. "TYPE OF DEVICE
Move a_ebeln to sood-OBJDES. "new addition for testing nato
append Reclist2.
endif.
IF not itab-q_typ2 is initial.
move itab-q_mail to REclist-receiver. "SMT ADDRESS
move itab-q_typ2 to REClist-REC_TYPE.
move itab-q_EXPRESS to REClist-express.
move 'X' to reclist-TO_ANSWER.
Move a_ebeln to sood-OBJDES. "new addition for testing nato
move itab-q_com to REClist-COM_TYPE. "comment for testing only
append Reclist.
Endif.
move reclist-receiver to address.
endLoop.
*& END OF RECipient
ENDIF.
DOC_CHNG-OBJ_DESCR = nast-objky.
ELSE.
IF RECLIST IS INITIAL.
LOOP AT reclist INTO RECIPIENT . " This logic might get commented or deleted. Nato 08/01/06
ENDLOOP.
ENDIF.
DOC_CHNG-OBJ_DESCR = L_TITLE.
ENDIF.
IF RECLIST[] IS INITIAL.
MESSAGE E573(VE) RAISING RECEIVER_NOT_FOUND.
ENDIF.
*& New entry to determine path according to communication
*& type
*& If comm type eq U follow convert_otf
*& then Read text, finaly send API
*& If comm type eq F follow path to "Convert OTF & FAX
*& Nato 080106
REFRESH : HOTFDATA, LT_SOLIX, OBJBIN.
LOOP AT JOB_OUTPUT_INFO-OTFDATA INTO HOTFDATA.
APPEND HOTFDATA.
ENDLOOP.
*& Prepare content to be converted to PDF format
*& nato
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
FORMAT = 'PDF'
MAX_LINEWIDTH = 132
IMPORTING
BIN_FILESIZE = DOC_SIZE
BIN_FILE = LD_BINFILE
TABLES
OTF = HOTFDATA
LINES = HTLINE
EXCEPTIONS
ERR_MAX_LINEWIDTH = 1
ERR_FORMAT = 2
ERR_CONV_NOT_POSSIBLE = 3
OTHERS = 4.
*& new entry just for test today 080306
*&nato
*endif.
*&--end of entry--
I = 0.
N = XSTRLEN( LD_BINFILE ).
WHILE I < N.
LT_SOLIX-LINE = LD_BINFILE+I.
APPEND LT_SOLIX.
I = I + 255.
ENDWHILE.
*& end of convertion pdf
LOOP AT LT_SOLIX INTO WA_SOLIX.
CLEAR WA_SOLI.
ASSIGN WA_SOLI TO <PTR_HEX> CASTING.
MOVE WA_SOLIX TO <PTR_HEX>.
APPEND WA_SOLI TO OBJBIN.
ENDLOOP.
*& Prepare send mail
CLEAR : NAME, DOCNAME.
REFRESH : OBJTXT, OBJPACK.
CONCATENATE NAST-KAPPL NAST-KSCHL INTO NAME.
CONDENSE NAME.
IF NAST-NACHA NE '7'.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'STAM'
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = 'OCS'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDIF.
CONCATENATE NAST-OBJKY '.PDF' INTO DOCNAME .
CONDENSE DOCNAME.
*endif. "temp nato -080406
if reclist-rec_type eq 'U'.
DOC_CHNG-OBJ_NAME = 'Delivery'.
LOOP AT LINES.
OBJTXT = LINES-TDLINE.
APPEND OBJTXT.
ENDLOOP.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
IF TAB_LINES > 0.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
ENDIF.
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.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = DOCNAME.
APPEND OBJHEAD.
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 = 'Delivery'.
OBJPACK-OBJ_DESCR = NAST-OBJKY.
OBJPACK-OBJ_DESCR = A_EBELN.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK.
break nhernandez.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = ' '
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = 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.
MESSAGE E081(ZGLO) WITH SY-SUBRC RAISING MAIL_SENDING_ERROR.
ENDIF.
endif.
AM I missing something?Hi Nat,
You can check this link which shows how to use the PRINT_TEXT for sending fax.
http://www.sap-img.com/abap/sending-fax-from-abap.htm
Also you can check these
Smartforms
Sending Smartforms through Fax
Sending SMARTFORM output to FAX gateway
How to fax a smartform?
/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp
ftp
Cheers
VJ -
Send Purchasing Documents via email/fax to vendor
Hi all,
I have a customer requirement wherein Purchasing documents such as RFQ, PO etc need to be sent to vendors via email/fax. To cater to the customer's form requirements, we developed smartforms instead of using the standard MM purchasing smartforms. To call these smartforms in the print programs, we copied the standard print program SAPFM06P and commented out the function module ME_PRINT_PO in the routine ENTRY_NEU and added the our own code to call the custom smartform. The custom code segment in the print program is attached for reference.
Now, when we are trying to generate messages for the purchasing documents using output type External Send, the custom program does not pick up the email address maintained in the vendor master and instead picks up email address maintained in RFQ or PO initiator's user profile. We have made the required configuration for SCOT and SOST tcodes.
We tested the same scenario requirement using the standard print program and got the desired results i.e. the print program picked up the email address maintained in the vendor master. But with this approach, we cannot use our custom smartform.
Any help in this matter will be appreciated.
Regards,
SaadHi Biju !
Thanks for the response but I think you missed the point here. I am using different output types for RFQ and PO as well as different custom smart forms and we are using the same custom print program to generate output for both.
The issue is with the print program and not the output type as I mentioned that I have already got this thing working on our IDES using the standard print program and standard forms.
Tomas Talpa's response seems to be helpful. I'll get my technical consultant to amend the code accordingly and see if it works.
Regards,
SaaD Karim Mallick. -
Configuration to send the smartform through fax
Hi,
I have used CONVERT_OTF_AND_FAX and SO_OBJECT_SEND FM's to send the smartform through fax.After executing SO_OBJECT_SEND function module,I am getting sy-subrc alue as 9(OBJECT_NOT_SEND).I am able to send the document through fax.But when I click on display in SOST transaction it is just printing the output of the smartform.It is not coming in PDF format.
The code looks fine.I think there is some problem with confuration settings.Is there any configuration to be done to send the smartform output through fax?
Please reply.
Regards,
HemaHi,
Actually,my requirement is to send the smartform output through email with medium 'external send'.I have done some coding for that.it is working fine and I am able to send the smartform through email and open the attachment in PDF format.
But if the email id of the recipient is not present then the smartform output has to be sent through fax with the same medium 'external send'.
So I have done some coding to send the smartform through fax when the email id is not present.
I am able to send the output of smartform through fax.But when I clicked on display in SOST transaction,it is not coming in PDF format.It is coming in RAW format.
Is it possible to send the smartform output through fax with medium 'external send'?
Regards,
Hema -
Doubt in smarform email/fax
Hi All,
Actually I have developed smartform runnning from the standard transaction like vf02 ,vt02n etc..using Nast strucutre.
But now the requirement is we need to run the smartfrom from SE38. That too pgm is already there but we need to put the functionality for email/fax.
Can any one please send the prgoram how we need to do
whether we need to populate the mail_sender & mail_recipient objects in the smartform FM.
whether this FM can be used or not
WFMC_PREPARE_SMART_FORM
Please send the some sample programs.hi Arun,
here by i am attaching a link which can help you to send the form as PDF to mail.
analyse the code and use similar type of function modules what ever u want.unfortunatly i lost program what i have did for the same problem so i am sending a link which helped me in making the program.
http://sapdev.co.uk/reporting/rep_spooltopdf.htm
odnt confuse with all the code.take neceesary code.and leave the remaining.
reward me if helpful.
your piont is valuable for me.
thanks,
gupta pullipudi
Edited by: gupta pullipudi on Apr 15, 2008 6:42 PM -
Running a ALV Report in bakcground and sending it to Email/FAX
Hi,
I am designing a ALV report to send a email/fax/Printer which has to be run in background or foreground according to selection screen inputs.
I am doing the following
1. After generating ALV report, converting it to pdf
2. Sending Email or Fax or Print from selection screen value.
3. after that scheduling in background using JOB_OPEN and JOB_SUBMIT FM's.
Can I use SO_DOCUMENT_SEND_API1 FM for both Email and Fax.
When I schedule the report in the background using JOB_OPEN, at which point I have to code it inside the report. Is it after I generate the ALV Report and Email sending code or before it..
ThanksHi
How did you end up doing the emailing? I have the same task..... -
Error in sending smartform as fax
Hi everyone,
I am trying to send a smartform through Fax, and i am getting the following error;
Cannot process message in node, parameters cannot be converted
Message no. XS821
Diagnosis
The message cannot be processed in the node as parameters such as 'Send
time' or 'Priority' cannot be converted. It is possible that entire
parameters such as 'Recipient list' or 'Packet list' are missing.
System Response
Processing was terminated.
SAP system additional information (error number, if available):
MRSUM
Additional information of the node used (in the system language of the
node)
Can you guys please help me solving this problem?
Thanking you,
Kind regards,
I have changed my code several times, using different functions to send the fax and i am getting the same error message each time.
Please find below the piece of code i am using to send the fax.
DATA:GT_MAIL_LINES TYPE STANDARD TABLE OF soli.
data: gs_mail_lines TYPE soli.
DATA: ls_object_hd TYPE sood1,
ls_receivers TYPE soos1,
lt_receivers TYPE STANDARD TABLE OF soos1,
l_lines TYPE i,
ls_sadrfd TYPE sadrfd.
CLEAR: ls_object_hd, ls_receivers.
REFRESH lt_receivers.
ls_object_hd-objla = sy-langu.
ls_object_hd-objnam = 'NOTE'.
ls_object_hd-objdes = 'Fax subject line in here'.
"Calculate size of table
DESCRIBE TABLE gt_mail_lines LINES l_lines.
READ TABLE gt_mail_lines INDEX l_lines INTO gs_mail_lines.
ls_object_hd-objlen = ( l_lines - 1 ) * 255 + STRLEN( gs_mail_lines ).
"Set Fax control structure
"Fax number in structure must have no leading zero
"as this is added by SAPOffice from the country code
ls_sadrfd-rec_fax = '4421844
ls_sadrfd-rec_street = 'Addr'.
ls_sadrfd-rec_town = 'Addr'.
ls_sadrfd-rec_name1 = 'Name'.
ls_sadrfd-rec_state = 'MU'.
ls_sadrfd-form_langu = 'EN'.
ls_sadrfd-fax_form = 'Z_FAX_COVER'.
ls_sadrfd-send_comp = 'USER'
ls_sadrfd-send_immi = 'X'.
ls_sadrfd-send_nam = sy-uname.
ls_sadrfd-send_date = sy-datum.
ls_sadrfd-send_time = sy-uzeit.
"Convert Receiver information to char field
CALL FUNCTION 'C147_WORKAREA_TO_CHARFIELD'
EXPORTING
I_WORKAREA = ls_sadrfd
IMPORTING
E_CHARFIELD = ls_receivers-recextnam.
ls_receivers-recesc = 'F'.
ls_receivers-mailstatus = 'E'.
ls_receivers-sndart = 'FAX'.
ls_receivers-sndpri = '1'.
APPEND ls_receivers TO lt_receivers.
"Send fax
CALL FUNCTION 'SO_OBJECT_SEND'
EXPORTING
object_hd_change = ls_object_hd
object_type = 'RAW'
owner = sy-uname
originator_type = 'B'
TABLES
objcont = gt_mail_lines
receivers = lt_receivers
EXCEPTIONS
OTHERS = 01.
break buantoch.
"The function doesn't commit so we must
"do it if successful.
IF sy-subrc = 0.
COMMIT WORK AND WAIT.
ELSE.
WRITE: / 'Fax failed RAISE ERROR '(012).
ENDIF.Hi,
Then, you can test the FAX fuctionality like:
go to System->Short Message->give a test message,give recipient as the FAX number,type as FAX->Shift+F8 the see if it works... else only SCOT errors will be there...
See:
http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
Also see:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4b4fa090-0201-0010-d3b7-b233296d95ff
Regards,
Renjith Michael. -
Managing Email/Fax "Reception notifications" in SAP R/3
Hi SAP devs,
one of my clients is interested in creating a Workflow for PS in SAP R/3 4.6C that will automate the sending of eMails and Faxs when certain activities (in networks via CN22) are confirmed. The process is as follows: The activity is confirmed via CN22 and then an eMail or Fax (depending on the partner) is sent to the partner. The Workflow then goes on "stand-by" and waits for a confirmation of reception for that eMail/Fax. If after 2 business days no confirmation was received, a workitem is sent the the SAP Inbox of a group. I wanted to know if there is any technology currently available in R/3 that permits the reception of the confirmation and determins which WF the confirmation is for.
Thanks for your help
PS: sorry if it's not really clear, I tried to translate it as best I could from french.Just to add some clarification to my problem, the sending of eMail/Fax part using the WF I have no problems with, but the reception of the confirmation notification (that the eMail was read by the user or the fax was received by the target fax) is the part we are not sure about. Basically, there can be about 150 WFs on stand-by each waiting for a notification and when one is received, how can the correct WF be told that a notification was received. This is my issue, not the WF process part.
I hope this is clearer about my issue.
Thanks for the help -
ERS Output email/fax to different ID (CONSNUMBER) in vendor master
Hi Guru,
I am just wondering if there is a way to change the ERS output to different email/fax ID than the default one in vendor master.
As a default in SAP, the Purchasing documents ie. PO, RFQ and ERS outputs will be sent to default emial/fax (of course when we set it up to send via fax = 2 or email = 5). The problem here is that SAP will pick up default email/fax in vendor master, however, our business would like to have an ability to send ERS outputs to different email/fax ID (CONSNUMBER). Currently it is only sent to FLGDEFAULT address.
If we change the default, it will change all other documents as well. We only want to differentiate ERS output and leave other docs (PO, RFQ) to use default setting.
Is there any enhancement spot or exit that can help achieve this?
Please advise.
Cheers
BJHi All,
Found where to put our codes in to cater for this requirement ==>LMRMNF01 - Form Routines for SAPLMRMN - Logistics IV: Message Control. It works wonder. Hope that will help others.
Thanks. -
Problem while sending Smartform through Fax
Hi Folks,
I am sending a Smartform through fax by setting the essential Control Parameters and Output Options while calling the function module of the Smartform.
In SOST I get the status message 710(Message transferred to node FAX(...) ) and later in around 20 minutes the message 812(No delivery to FAX(.......fax no) ) occurs for some requests.
Only few requests are sent successfully by the same program and same O/P Type and shows the status message 701(Delivered to FAX (................)).
There is no much time difference between those requests while creating.
Do you know what could be the problem?
Can you help me in solving the issue?may it be that in those cases where it doesnt work, that you got no fax number?
Since it works soemtimes, it seems there are no errors, but rather in some cases some important info is missing, fax number may be one of thsoe important info in a FAX scenario. -
Send Smartform Email via Action Profile
Hello,
We have an Action Profile with a few actisn athat a workign perfectly. I have added a new action to send smartform via email when the the transaction is saved.
The Action profile is set upfor object type BUS2000115(Quotation) with the context class of CL_DOC_CONTEXT_CRM_ORDER.
I have set up the Smartform Email action processing as follows:
Permitted processign type fo Action - Smartform Email
Mail Settings:
Form Name YC3_SF_CRM_COMM_QUOTATION_V7
Processing Class CL_CRM_BP_UM_PROCESSING_PPF
Processing Method UM_EXEC_SMART_FORM
Archive Mode Mail only
there is no schedule or start condition as it is not required.
When I Save the Quotation nothing is getting triggered. If in the Quotation I Preview output and select 'Email Quotation; I get the message 'Smartform Error'. Is there a way to debug the message further ? I'm assuming this is the SAP standard method of achieving Smartform email as Pdf attachment, are some steps that I have missed ?
Regards
ChanThe Processing class and Processing Method seem to be incorrect.
Use the below;
Processing Class : CL_DOC_PROCESSING_CRM_ORDER
Processing Method: CRM_ORDER_EXEC_SMART_FORM
You can always refer to standard action profile for Quotations to see what SAP has delivered. -
Automated email to buyer, when email/FAX fail to vendor for a PO
Hi All,
If an email/FAX failed to transmit to the vendor for a PO, will there be a way (method) to give an email notification in buyer's inbox ??
Please provide details.
Thanks!!
Vivek.Issue resolved
Thanks !!
Vivek
Maybe you are looking for
-
Hello, I am using Vista 32bit plugged into a WRT54G (with updated firmware) and a second PC (XP) wirelessly connecting. About every two hours I cannot connect to the internet or router using the wired Vista machine. The only way I can reconnect is t
-
Status code value after calling the method cl_http_client= receive
Hi, I am sending a query string to 3rd party via outbound http. Now one of the methods needed in this case is CL_HTTP_CLIENT=>RECEIVE . This method has got 3 exceptions such as communication failure etc. If this method has sy-subrc 0 what does this
-
How to get FF to remember bookmark folders
how do I make FF 'remember'the last used folder in bookmarks. Say I book mark a film into movies folder and then want to bookmark another film, how can i get the folder called movies to open again until changed
-
How to apply a fixpack to DB2 v9 (LUW)?
We find some OSS notes but they are not step-by-step instructions. Could anybody share their detailed procedure? Point guaranteed. Thanks!
-
Why do i keep getting a "plug in failure" in hulu plus?
Everytime hulu plus stops to play an add I'm getting a message that says "Plug in failure." When it first happened I just hit refresh, and the ads continued. Now I can't even start a show! What do I do??