F110 - Sending mail to factor (Vendor)
Hi all,
During the payment campaign (F110) I want that Vendor and factor (associated to the previous vendor) receive an email with letters.
Vendor and factor have email adress on view communication (master data) but only when I go to SOST only the Vendor received email (I do not know if a letter was attached to this email). Then in both cases definitions are sames...
How can we customize this?
Thanks for your help!
David
Check this thread.. email payment advice notes
also check following notes..
1033893
1296960
836169
When you will copy the standard function module you will have a choice to write your own ABAP code which to make system send email advice to factor..
Regards,
Sayujya
Similar Messages
-
Convert sap script to pdf and send mail before close_form
hi experts,
I am converting a sap script to PDF and then sending that pdf to vendor mail ids.
I am getting the Data for the conversion of pdf From close_form.But it contains the data for all the vendors . But i have to Send the mail to the specific vendors.For ex if my script output has 5 sheets each with different vendors . I have to send 1 sheet as a pdf mail for that particular vendor. so,1 sheet each for 5 differrent vendors . But the data i get from close_form is the data for all the 5 vendors. How to split the data ?. can any one help me on this issue.
with thanks in advance,
syedHi,
Change your driver program so that it calls the script n no of times .. and every time send mail to particular vendor ..
Loop at vendors.
call the form ...
send mail ...
endloop ...
Regards,
Srini. -
Convertion of Smart form to pdf and sending mail to vendor for PO
Hello all,
I have modified a standard PO Smartform and running it through ME23N.
In this i have to convert it to a pdf file and then send it through mail to the vendor.
I have found out FMs'CONVERT_OTF'and
'SO_NEW_DOCUMENT_ATT_SEND_API1'
to convert it and send mail. But can u tell me how to go about using it.
As i am using a standard program do i have to copy this prog to zprog and then call the fm out there. I am not sure.
Thanks
SalilHi,
Here is the sample code.If you find this as useful,kindly reward points by clicking the star on the left of reply.
Internal Table declarations
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
w_objhead TYPE soli_tab,
w_ctrlop TYPE ssfctrlop,
w_compop TYPE ssfcompop,
w_return TYPE ssfcrescl,
w_doc_chng typE sodocchgi1,
w_data TYPE sodocchgi1,
w_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.
call function 'SSF_FUNCTION_MODULE_NAME'
exporting
formname = 'ZZZ_TEST2'
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
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.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Convert PDF from 132 to 255.
LOOP AT i_tline.
Replacing space by ~
TRANSLATE i_tline USING ' ~'.
CONCATENATE w_buffer i_tline INTO w_buffer.
ENDLOOP.
Replacing ~ by space
TRANSLATE w_buffer USING '~ '.
DO.
i_record = w_buffer.
Appending 255 characters as a record
APPEND i_record.
SHIFT w_buffer LEFT BY 255 PLACES.
IF w_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Refresh: i_reclist,
i_objtxt,
i_objbin,
i_objpack.
clear w_objhead.
Object with PDF.
i_objbin[] = i_record[].
DESCRIBE TABLE i_objbin LINES v_lines_bin.
Object with main text of the mail.
i_objtxt = 'Find attached the output of the smart form.'.
APPEND i_objtxt.
i_objtxt = 'Regards,'.
APPEND i_objtxt.
i_objtxt = 'J.Jayanthi'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
Document information.
w_doc_chng-obj_name = 'Smartform'.
w_doc_chng-expiry_dat = sy-datum + 10.
w_doc_chng-obj_descr = 'Smart form output'.
w_doc_chng-sensitivty = 'F'. "Functional object
w_doc_chng-doc_size = v_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
i_objpack-head_start = 1.
Number of lines of an object header in object packet
i_objpack-head_num = 0.
Start line of object contents in an object packet
i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
i_objpack-body_num = v_lines_txt.
Code for document class
i_objpack-doc_type = 'RAW'.
APPEND i_objpack.
Packing as PDF.
i_objpack-transf_bin = 'X'.
i_objpack-head_start = 1.
i_objpack-head_num = 1.
i_objpack-body_start = 1.
i_objpack-body_num = v_lines_bin.
i_objpack-doc_type = 'PDF'.
i_objpack-obj_name = 'Smartform'.
CONCATENATE 'Smartform_output' '.pdf'
INTO i_objpack-obj_descr.
i_objpack-doc_size = v_lines_bin * 255.
APPEND i_objpack.
Document information.
CLEAR i_reclist.
e-mail receivers.
i_reclist-receiver = '[email protected]'.
i_reclist-express = 'X'.
i_reclist-rec_type = 'U'. "Internet address
APPEND i_reclist.
Sending mail.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_hex = 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.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Send a mail to the vendor at the time of approval with the attachment of PO
Hi all,
I want to send a mail to the vendor at the time of approval by attaching the pdf of that particular PO.
How can I achieve this?
I know the User Exit where the code should be written.
But I want the solution for attaching the PDF of PO at the time of approval.
Please help me in this regard.
Edited by: vinil kumar aturi on Mar 16, 2009 7:52 AMHi,
Try Following Code to Send mail as PDF Attachment
In this
Smart form Name : ZSMART_MM_003
This will send mail to EMAIL ADDRESS SPECIFIED IN VENDOR MASTER FK03
This code is written for ME23n so we used nast-objky(10) for purchase order no you may replace it with your purchase order no
and smart form name with your smart form name
*-- Send Mail---
*-- Function Module Call to get Customer Address (Email)--
DATA: VENDOR TYPE ELIFN,
ADDRNO TYPE ADRNR.
DATA: atab-mail TYPE STRING.
SELECT SINGLE LIFNR FROM EKKO INTO VENDOR WHERE EBELN = nast-objky(10).
SELECT SINGLE ADRNR FROM LFA1 INTO ADDRNO WHERE LIFNR = VENDOR.
TYPE-POOLS: szadr.
DATA adr_kompl TYPE szadr_addr1_complete.
DATA adr1 TYPE szadr_addr1_line.
DATA adtel TYPE szadr_adtel_line.
DATA admail TYPE szadr_adsmtp_line.
DATA adfax TYPE szadr_adfax_line.
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
addrnumber = ADDRNO
IMPORTING
addr1_complete = adr_kompl
EXCEPTIONS
parameter_error = 1
address_not_exist = 2
internal_error = 3
wrong_access_to_archive = 4
OTHERS = 5.
Mail
LOOP AT adr_kompl-adsmtp_tab INTO admail.
MOVE admail-adsmtp-smtp_addr TO atab-mail.
ENDLOOP.
if sy-subrc = 0.
DATA: FILENAME TYPE STRING.
CONCATENATE 'PurchaseOrder' nast-objky INTO FILENAME SEPARATED BY '-'.
DATA: MESSAGELINE1 TYPE STRING,
MESSAGELINE2 TYPE STRING.
CONCATENATE 'Do you want to send ' FILENAME ' through E-mail to' into MESSAGELINE1.
CONCATENATE atab-mail '?' into MESSAGELINE2.
data: answer TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM_STEP'
EXPORTING
defaultoption = 'N'
textline1 = MESSAGELINE1
textline2 = MESSAGELINE2
titel = ' '
start_column = 35
start_row = 10
IMPORTING
answer = answer.
IF answer EQ 'J' OR answer EQ 'Y'.
Code to find Contact person
DATA: CONTACT TYPE EVERK.
SELECT SINGLE VERKF FROM EKKO INTO CONTACT WHERE EBELN = nast-objky(10).
Internal Table declarations
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 : s_control_parameters TYPE ssfctrlop,
s_output_options TYPE ssfcompop.
s_control_parameters-getotf = 'X'.
s_control_parameters-no_dialog = 'X'.
s_control_parameters-preview = 'X'.
s_output_options-tdnoprint = 'X'.
s_output_options-tdimmed = ''.
s_output_options-tddest = 'LP01'. "Spool: Output device
s_output_options-tdreceiver = sy-uname.
s_output_options-tdcover = ''.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZSMART_MM_003'
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 = s_control_parameters
OUTPUT_OPTIONS = s_output_options
USER_SETTINGS = ''
nast = nast
WA_ADDRESS = WA_ADDRESS
IMPORTING
JOB_OUTPUT_INFO = W_RETURN
TABLES
addtel = it_addtel
addsmtp = it_addsmtp
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.
Convert SMartform to pdf
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.
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[].
Create Message Body Title and Description
I_OBJTXT = 'Sir, '.
APPEND I_OBJTXT.
I_OBJTXT = ''.
APPEND I_OBJTXT.
I_OBJTXT = 'Please Find Attached '.
APPEND I_OBJTXT.
I_OBJTXT = FILENAME.
APPEND I_OBJTXT.
I_OBJTXT = 'For your reference'.
APPEND I_OBJTXT.
I_OBJTXT = ''.
APPEND I_OBJTXT.
I_OBJTXT = 'Regards'.
APPEND I_OBJTXT.
I_OBJTXT = CONTACT.
APPEND I_OBJTXT.
*Mail Subject
DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
READ TABLE I_OBJTXT INDEX V_LINES_TXT.
WA_DOC_CHNG-OBJ_NAME = 'Purchase Order'.
WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
WA_DOC_CHNG-OBJ_DESCR = 'Purchase Order'.
WA_DOC_CHNG-SENSITIVTY = 'F'.
WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
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 = FILENAME.
APPEND I_OBJPACK.
CLEAR I_RECLIST.
I_RECLIST-RECEIVER = atab-mail.
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.
IF SY-SUBRC <> 0.
WRITE:/ 'Error When Sending the File', SY-SUBRC.
ELSE.
WRITE:/ 'Mail sent'.
ENDIF.
Regards
Nausal -
Can any one tell me how to send one PO to mutilple mail ids in vendor maste
Hi Experts,
Can any one tell me how to send one PO as a mail to multiple vendors who are all maintained in my vendor master record
Suppose I have 3 mail ids in my Vendor master record and I created a PO with that vendor, will that PO goes to all the three mail ids maintained in the vendor master record or only to one ?
Inorder to send to multiple mail ids, Do we need to do any configure any thing in SPRO settings functionally, if so where we have to maintain?
Or shall an Abaper needs to maintain a code for that.?
Please suggest me, I would appreciate your feed back.
Best Regards,
SairamGo to XK02 enter the vendor code
go to the communication tab
Email will be there press the ---> button
you can add many Emails in the list.
Please ensure that the message output is configured by
the SAP BASIS team
No need of any configuration
G.Ganesh Kumar -
Sends mail to vendor as well as generates spool
Hi All,
1)I am triggering PO for output type ZNEU for external send option(transmission medium is 5).it sends mail to vendor as well as generates spool.
I want to stop spool generation.
2) Also i can debug the driver program while i click on print preview buttion in ME22n but i can't debug the driver program while i trigger the output type although i use /h and update debugging
Could you please help me out.
Thanks
MSIHi,
I need to send a mail to inbox of an user and external mail id of the same user.
Can I achieve this through a single send mail step?,
First Check as Mentioned by Arghadip Kar , if not working follow the below method.
1) Through the FM "SO_NEW_DOCUMENT_ATT_SEND_API1" you can send.
2) You have to write a Program and Using the above FM you have send the mail.
3) Refer this [Link|https://wiki.sdn.sap.com/wiki/x/nYKdAw]
Regards,
Surjith -
Convertion of Smart form to pdf and sending mail to vendor for Invoice
Hi All...
now I am getting the output form of Invoice by the T-code VF02
here Im using Zreport & Zform...
my requirment is to convert smartform output to PDF and send as an e-mail attachment on my Existing report
where I use the FM - CONVERT_OTF_2_PDF ..
here my code
REPORT yinvoice_is.
TABLES: vbrk,vbrp, vbak, vbap, vbkd .
DATA : it_vbap TYPE STANDARD TABLE OF vbap WITH HEADER LINE ,
it_vbrk LIKE STANDARD TABLE OF vbrk with header line,
it_vbkd TYPE STANDARD TABLE OF vbkd WITH HEADER LINE ,
it_vbrp TYPE STANDARD TABLE OF vbrp WITH HEADER LINE ,
it_vbrp1 TYPE STANDARD TABLE OF vbrp WITH HEADER LINE ,
it_vbfa TYPE STANDARD TABLE OF vbfa WITH HEADER LINE ,
it_adrc1 TYPE STANDARD TABLE OF adrc WITH HEADER LINE,
it_adrc2 TYPE STANDARD TABLE OF adrc WITH HEADER LINE.
DATA: sum TYPE vbrp-kzwi5.
DATA: v_vkbur TYPE vkbur,
v_adrnr1 TYPE adrnr,
v_adrnr2 TYPE adrnr,
v_vbelv TYPE vbelv,
v_delch TYPE vbeln,
v_bstkd TYPE bstkd,
v_kdmat TYPE kdmat,
v_kwert TYPE kwert.
DATA : fm_name TYPE rs38l_fnam.
PARAMETER p_inv_no LIKE vbrk-vbeln OBLIGATORY .
Selecting Data
SELECT VBELN
ERDAT
VKORG
KUNRG
STCEG
NETWR
MWSBK
KNUMV
KUNAG
REGIO
FROM vbrk
INTO CORRESPONDING FIELDS OF TABLE it_vbrk
WHERE vbeln = p_inv_no .
SELECT matnr
kzwi1
kzwi2
kzwi3
kzwi4
kzwi5
netwr
mwsbp
meins
fklmg
arktx
FROM vbrp
INTO CORRESPONDING FIELDS OF TABLE it_vbrp
WHERE vbeln = p_inv_no .
Selecting Sales Order No.
SELECT SINGLE vbelv
FROM vbfa
INTO v_vbelv
WHERE vbeln = p_inv_no
AND vbtyp_v = 'C'.
IF sy-subrc = 0.
Selecting Delivery Challan...
SELECT SINGLE vbeln
FROM vbfa
INTO v_delch
WHERE vbelv = v_vbelv
AND vbtyp_n = 'J'.
SELECT SINGLE bstkd
FROM vbkd
INTO v_bstkd
WHERE vbeln = v_vbelv .
SELECT matnr kdmat
FROM vbap
INTO CORRESPONDING FIELDS OF TABLE it_vbap
WHERE vbeln = v_vbelv.
ENDIF.
READ TABLE it_vbrk INDEX 1.
IF sy-subrc = 0.
SELECT SINGLE kwert
FROM konv
INTO v_kwert
WHERE knumv = iT_vbrk-knumv
AND kschl = 'HD00'.
ENDIF.
Selecting From Address
SELECT SINGLE vkbur
FROM vbak
INTO v_vkbur
WHERE vbeln = v_vbelv.
IF sy-subrc = 0.
SELECT SINGLE adrnr
FROM tvbur
INTO v_adrnr1
WHERE vkbur = v_vkbur.
IF sy-subrc = 0.
SELECT SINGLE *
FROM adrc
INTO CORRESPONDING FIELDS OF it_adrc1
WHERE addrnumber = v_adrnr1.
APPEND it_adrc1.
ENDIF.
ENDIF.
APPEND it_adrc.
Selecting TO Address
SELECT SINGLE adrnr
FROM vbpa
INTO v_adrnr2
WHERE vbeln = p_inv_no
AND parvw = 'RE'.
IF sy-subrc = 0.
SELECT SINGLE *
FROM adrc
INTO CORRESPONDING FIELDS OF it_adrc2
WHERE addrnumber = v_adrnr2.
APPEND it_adrc2.
ENDIF.
Calling Function Module
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'YINVOICE_IS'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = fm_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.
Calling Function Module
CALL FUNCTION fm_name
*'/1BCDWB/SF00000496'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
i_vbelv = v_vbelv
i_bstkd = v_bstkd
i_kdmat = v_kdmat
i_kwert = v_kwert
i_delch = v_delch
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
TABLES
it_vbrk = it_vbrk
it_vbrp = it_vbrp
it_vbap = it_vbap
it_adrc1 = it_adrc1
it_adrc2 = it_adrc2
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.
ENDFORM. "ENTRYhi,
use this code..
DATA: i_otf TYPE itcoo OCCURS 0 WITH HEADER LINE,
i_tline TYPE TABLE OF tline 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,
Variables declarations
v_len_in LIKE sood-objlen, "#EC NEEDED
v_lines_txt TYPE i,
v_lines_bin TYPE i,
Work Area declarations
w_ctrlop TYPE ssfctrlop,
w_return TYPE ssfcrescl,
w_compop TYPE ssfcompop,
wa_objhead TYPE soli_tab,
wa_doc_chng TYPE sodocchgi1,
wa_buffer TYPE string. "To convert from 132 to 255
Put a IF ELSE condition whether u want form output or E-mail output..
if it is a E-mail.. then call a small Sub-routine within your program..
FORM f_email .
w_ctrlop-getotf = 'X'.
w_ctrlop-no_dialog = 'X'.
w_compop-tdnoprev = 'X'.
CALL FUNCTION fnam
EXPORTING
control_parameters = w_ctrlop
output_options = w_compop
nast = nast
v_tcode = v_tcode
IMPORTING
job_output_info = w_return
TABLES
it_vbdkr = it_tvbdkr[]
it_vbdpr = tvbdpr[]
it_zglentitycode = it_zglentitycode[]
it_vttk = it_vttk[]
it_kna1 = it_kna1[]
it_t005 = it_t005[]
it_adrc = it_adrc[]
it_ekpo = it_ekpo[]
it_ekko = it_ekko[]
it_vbrp = it_vbrp[]
it_mara = it_mara[]
it_vbrk = it_vbrk[]
it_likp = it_likp[]
it_vttp = it_vttp[]
it_t001 = it_t001[]
it_zlogdely = it_zlogdely[]
it_prod = it_prod[]
it_lineitems = it_lineitems[]
it_tvzbt = it_tvzbt[]
it_t173t = it_t173t[]
it_t005t = it_t005t[]
it_zplant = it_zplant[]
it_stxbitmaps = it_stxbitmaps[]
it_prod_desc = it_prod_desc[].
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[].
*Converting the OFT format data to PDf format
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = v_len_in
TABLES
otf = i_otf
lines = i_tline.
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 = 'COMMERCIAL INVOICE'.
APPEND i_objtxt.
DESCRIBE TABLE i_objtxt LINES v_lines_txt.
READ TABLE i_objtxt INDEX v_lines_txt.
wa_doc_chng-obj_name = 'COMMERCIAL INVOICE'.
wa_doc_chng-expiry_dat = sy-datum + 10.
wa_doc_chng-obj_descr = 'COMMERCIAL INVOICE'.
wa_doc_chng-sensitivty = 'F'.
wa_doc_chng-doc_size = v_lines_txt * 255.
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 = 'COMMERCIAL INVOICE'.
i_objpack-obj_descr = 'COMMERCIAL INVOICE'.
APPEND i_objpack.
IF it_adr6[] IS NOT INITIAL.
LOOP AT it_adr6 INTO wa_adr6.
CLEAR i_reclist.
i_reclist-receiver = wa_adr6-smtp_addr.
i_reclist-rec_type = 'U'.
i_reclist-com_type = 'INT'.
APPEND i_reclist.
ENDLOOP.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = wa_doc_chng
put_in_outbox = 'X'
TABLES
packing_list = i_objpack
object_header = wa_objhead
contents_bin = i_objbin
contents_txt = i_objtxt
receivers = i_reclist.
ENDIF.
ENDFORM. " f_email
regards
vijay -
Sender mail adapter sending xml attachment comes with .bin
Hi all,
I have the following scenario: Sender Mail >> RFC
As I can receive multiples attachments I´m using payload swap bean and adapter module to get all attachments together in the first attachment.
In most cases is working very well, but in some cases the xml attachment is coming as a ".bin".
The same mail with this wrong format, when it´s been forwarded, comes with the right xml file so I can figure that is the mail format sent by vendor.
I tried to simulate this error myself and I could observe that when I change the message format from html to plain text in my outlook I get the same error, the attachments comes as .bin
Does anyone know how can I receive those mails in the right format?
Thanks for your help!
VanessaHi Ravi, thanks for your help.
I have configured:
TRANSFORM > swap.keyName > Content-Disposition
TRANSFORM > swap.keyName > Content-Description
TRANSFORM > swap.keyName > attachment;filename="MailAttachment-1.xml"
TRANSFORM > swap.keyName > MailAttachment-1
When the mail comes as html format is working fine, but not working when comes as plain text.
Any Idea?
Regards
Vanessa
Edited by: Vanessa Balsanelli Zocaratto on Nov 25, 2009 5:10 PM -
hi experts,
i have a requirement to send mail to an external as well as sap user.
the mail goes to the sap user but for the external user the sy-subrc returned is 69.
i am using SO_DOCUMENT_SEND_API1 FM.
Please guide me.
i am using fm generated from smartform to get otfdata.
Thank you.
my code is as below:
*& Report ZRND_RFKQST00_SMART_MAIL_SR
REPORT ZSEND_CORRESPONDENCE.
*& Parameter declarations
PARAMETERS: P_LIFNR TYPE LFA1-LIFNR.
*& Declarations of structure
TYPES:BEGIN OF GS_LFA1,
PSTLZ TYPE LFA1-PSTLZ,
STRAS TYPE LFA1-STRAS,
ADRNR TYPE LFA1-ADRNR,
LIFNR TYPE LFA1-LIFNR,
END OF GS_LFA1.
*& Declarations of internal table
DATA: GT_LFA1 TYPE TABLE OF GS_LFA1,
GS_LFA1 TYPE GS_LFA1.
*& Declarations of variable
DATA:FILENAME TYPE RS38L_FNAM.
DATA: MY_CONTROL_PARS TYPE SSFCTRLOP. "For CONTROL_PARAMETERS
DATA: MY_OUTPUT_INFO TYPE SSFCRESCL. "For JOB_OUTPUT_INFO
DATA: PDFDATA TYPE TABLE OF TLINE.
DATA: DUP_PDFDATA TYPE TABLE OF TLINE.
DATA: WA_PDFDATA TYPE TLINE.
DATA : GD_BUFFER TYPE STRING.
*& Start of selection
START-OF-SELECTION.
PERFORM 1000_SEL_LFA1.
PERFORM 2000_FUNCTIONMOD.
END-OF-SELECTION.
*& Form 1000_SEL_LFA1
Select vendor details from table LFA1
FORM 1000_SEL_LFA1 .
SELECT SINGLE PSTLZ
STRAS
ADRNR
LIFNR
FROM LFA1
INTO GS_LFA1
WHERE LIFNR = P_LIFNR.
ENDFORM. " 1000_SEL_LFA1
*& Form 2000_FUNCTIONMOD
Dynamic selection of function module name of the SMARTFORM
FORM 2000_FUNCTIONMOD .
DATA: T_DOCS TYPE TABLE OF DOCS,
PDFDATA TYPE TABLE OF TLINE,
F_SIZE TYPE I,
OTFDATA TYPE TABLE OF ITCOO,
GT_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
GS_TLINE TYPE TLINE,
GT_DOCS TYPE TABLE OF DOCS,
BIN_FILE TYPE I,
GS_DOCUMENT_DATA TYPE SODOCCHGI1,
GT_DOCUMENT_DATA TYPE TABLE OF SODOCCHGI1,
GT_OBJTEXT TYPE TABLE OF SOLISTI1,
GS_OBJTEXT TYPE SOLISTI1,
GS_RECEIVER TYPE SOMLRECI1,
GT_RECEIVER TYPE TABLE OF SOMLRECI1,
GS_OBJTXT TYPE SOLISTI1,
GS_PACKLIST TYPE SOPCKLSTI1,
GT_PACKLIST TYPE TABLE OF SOPCKLSTI1,
TAB_LINES TYPE I,
MAILBIN TYPE TABLE OF SOLISTI1 WITH HEADER LINE,
GT_OUTBIN TYPE TABLE OF SOLISTI1 WITH HEADER LINE,
MAILHEAD TYPE TABLE OF SOLISTI1 WITH HEADER LINE,
GD_BUFFER TYPE STRING.
MY_CONTROL_PARS-NO_DIALOG = 'X'.
MY_CONTROL_PARS-GETOTF = 'X'.
*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
FORMNAME = 'ZRND_RFKQST00_SMARTFORM'
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
FM_NAME = FILENAME
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.
*CALL FUNCTION FILENAME
EXPORTING
WA_LFA1 = GS_LFA1.
CALL FUNCTION '/1BCDWB/SF00000226'
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS = MY_CONTROL_PARS
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
WA_LFA1 = GS_LFA1
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO = MY_OUTPUT_INFO " DATA IN OTFDATA
JOB_OUTPUT_OPTIONS =
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.
CALL FUNCTION 'CONVERT_OTF_2_PDF'
EXPORTING
USE_OTF_MC_CMD = 'X'
ARCHIVE_INDEX =
IMPORTING
BIN_FILESIZE =
TABLES
OTF = MY_OUTPUT_INFO-OTFDATA
DOCTAB_ARCHIVE = T_DOCS
LINES = GT_TLINE
EXCEPTIONS
ERR_CONV_NOT_POSSIBLE = 1
ERR_OTF_MC_NOENDMARKER = 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.
text in the body
GS_OBJTEXT-LINE = 'correspondence'.
APPEND GS_OBJTEXT TO GT_OBJTEXT.
CLEAR GS_OBJTEXT.
DESCRIBE TABLE GT_OBJTEXT LINES TAB_LINES.
READ TABLE GT_OBJTEXT INDEX TAB_LINES INTO GS_OBJTEXT.
GS_DOCUMENT_DATA-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( GS_OBJTEXT ).
receiver
*gs_receiver-REC_TYPE = 'U'.
*gs_receiver-RECEIVER = '[email protected]'.
*append gs_receiver to gt_receiver.
*clear gs_receiver.
GS_RECEIVER-REC_TYPE = 'B'.
GS_RECEIVER-RECEIVER = SY-UNAME.
APPEND GS_RECEIVER TO GT_RECEIVER.
clear gs_receiver.
GS_RECEIVER-REC_TYPE = 'U'.
GS_RECEIVER-RECEIVER = '[email protected]'.
APPEND GS_RECEIVER TO GT_RECEIVER.
document data
GS_DOCUMENT_DATA-OBJ_NAME = 'correspondence'.
GS_DOCUMENT_DATA-OBJ_DESCR = 'Correspondence'.
APPEND GS_DOCUMENT_DATA TO GT_DOCUMENT_DATA.
packing list
DESCRIBE TABLE GT_OBJTEXT LINES TAB_LINES.
CLEAR GS_PACKLIST-TRANSF_BIN.
GS_PACKLIST-HEAD_START = 1.
GS_PACKLIST-HEAD_NUM = 0.
GS_PACKLIST-BODY_START = 1.
GS_PACKLIST-BODY_NUM = TAB_LINES.
GS_PACKLIST-DOC_TYPE = 'RAW'.
*gs_packlist-DOC_SIZE = TAB_LINES * 255.
APPEND GS_PACKLIST TO GT_PACKLIST.
LOOP AT GT_TLINE." INTO WA_PDFDATA.
TRANSLATE GT_TLINE USING ' ~'.
CONCATENATE GD_BUFFER GT_TLINE INTO GD_BUFFER.
ENDLOOP.
TRANSLATE GD_BUFFER USING '~ '.
DO.
GT_OUTBIN = GD_BUFFER.
APPEND GT_OUTBIN.
SHIFT GD_BUFFER LEFT BY 255 PLACES.
IF GD_BUFFER IS INITIAL.
EXIT.
ENDIF.
ENDDO.
DESCRIBE TABLE GT_OUTBIN LINES TAB_LINES.
GS_PACKLIST-TRANSF_BIN = 'X'.
GS_PACKLIST-HEAD_START = 1.
GS_PACKLIST-HEAD_NUM = 1.
GS_PACKLIST-BODY_START = 1.
GS_PACKLIST-BODY_NUM = TAB_LINES.
GS_PACKLIST-DOC_TYPE = 'PDF'.
GS_PACKLIST-OBJ_NAME = 'TEXT1'.
GS_PACKLIST-OBJ_DESCR = 'Subject'.
GS_PACKLIST-DOC_SIZE = TAB_LINES * 255.
APPEND GS_PACKLIST TO GT_PACKLIST.
*MAILHEAD-TXT = 'TEST.TXT'.
*APPEND MAILHEAD.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
DOCUMENT_DATA = GS_DOCUMENT_DATA
PUT_IN_OUTBOX = 'X'
SENDER_ADDRESS = SY-UNAME
SENDER_ADDRESS_TYPE = 'B'
COMMIT_WORK = 'X'
IMPORTING
SENT_TO_ALL =
NEW_OBJECT_ID =
SENDER_ID =
TABLES
PACKING_LIST = GT_PACKLIST
OBJECT_HEADER = MAILHEAD
CONTENTS_BIN = GT_OUTBIN
CONTENTS_TXT = GT_OBJTEXT
CONTENTS_HEX =
OBJECT_PARA =
OBJECT_PARB =
RECEIVERS = GT_RECEIVER
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 ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LOOP AT gt_receiver into gs_receiver.
IF gs_receiver-RETRN_CODE = 0.
WRITE 'sent successfully'.
ELSE.
WRITE 'not sent'.
ENDIF.
ENDLOOP.
ENDFORM. "2000_FUNCTIONMODHi,
Check this link
http://www.geocities.com/rmtiwari/main.html?http://www.geocities.com/rmtiwari/Resources/MySolutions/Dev/Codes/Report/Z_RMTIWARI_SEND_SPOOL_MAIL_ATT.html
Asvhen -
Sending Production Plan to Vendor / Supplier
Dear Sir
Ours is a production unit (assembly line) we use lot of components. So I want to know is it possible to send plan directly to Vendor by E-mail from SAP.
Thanks & Regards
VishalHi Vishal,
Sending out Production Plan to Vendors by email is possible but given nature of dataset involved (not documents in form of Production Orders) it may not be a very feasible option. Instead either develop a report to extract relevant Production Plan data and send it out as email.
But better look at Supply Chain Collaboration applications like SNC Supply Network Collaboration that has Outsourced Manufacturing processes catering to these kind of supplier / vendor collaboration requirements.
Hope this helps.
Somnath -
Problem in sending mail thru SAP.
Hi All
I have typical problem in sending Purchase order thru mail to vendor.
We are sending Purchase Order to our vendor thru mail and copy of purchase order as attachment in pdf file.
I am sending Purchase Order number 45XXXX01, vendor is getting something else say 45XXXX03. But when I checked the same in outbox in SAP business workplace then it is found correct i.e. Purchase Order number 45XXXX01 but when vendor open his attachment then he is found Purchase Order number 45XXXX03.
Following FMu2019s are used in y-program to send mail.
CONVERT_OTF u2013 To convert into pdf.
SO_DOCUMENT_SEND_API1 u2013 To send mail.
I do not understand why it is happening.
Kindly suggest something to overcome this.
Regards,
Rajesh VasudevaHey do as follow
1 > When you send the mail , after running ur program , you furst open the sent data from SOST or SCOTT etc. and see is it a correct data.
2 > Try sending the mail to urself , also try to mention ur id along with vendors Id and see what do u get also same time check what r u sending.
Hopefully it will give you some idea.
Regards,
Uma Dave -
Hi Experts
I am Converting smartform into PDF and send mail to the mailid mentioned in the vendor master.
Upto PDF conversion its working fine, sending mail is the problem here, am getting value for sy-subrc is '2'.
Iam attaching the code below, please suggest me what could be the reason for the error.
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.
write:/ 'Error When Sending the File', sy-subrc.
else.
write:/ 'Mail sent'.
endif.
Thanks in advance
regards
RajaHI,
Check this link..http://docs.google.com/Doc?id=dfv2hmgs_0fm22tggx&hl=en
Check you have correctly populated packing_list table.
[Smartform as a PDF to Mail id |https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/smartformasaPDFtoMailid] -
Can Adobe Reader 9.4+ send mail?
Sorry to cross post, but I couldn't figure out how to move my post from the "Adobe Reader" forum to the "Adobe Reader for Unix" forum.
The last version of Adobe Reader we had that allowed us to send mail through the envelope icon from Adobe Reader was acroread 9.3.2.
When we installed an update, 9.4, the SendMail item no longer showed in the list from Edit->Preferences.
Does anyone know why? Thank you.
We are using Debian Linux 5.0.8 and Adobe Reader either standing alone or in a plugin from the Mozilla Firefox browser version 11.thank you for your suggestions, this is what I did....I downloaded adobe readers 10.1.2 , 9.5, and 8.3. I first tried installing reader 10, it got to 52.21% installed, then froze/ locked up.
I shut off the computer and restarted it, tried to remove the program so that I could fully install it, but received the following message:
This patch package could not be opened. Verify that the patch package exists and that you can access it, or contact the application vendor to verify that this is a valid windows installer patch package.
I then went to my program files and deleted all the adobe reader files.
I then attempted to install reader 10, it got about half way , and instead of locking up or freezing it restarted as if there was a power surge.
I tried again, and it froze/ locked up at 52.21%
I then attempted to install reader 8 but received this message: Setup has detected that you already have a more functional product installed. Setup will now terminate.
I then tried installing reader 9.5it got to about 53% and restarted itself as if there was a power surge, again I then gave up and did a system restore.
[private information removed] -
How to use SSFCTRLOP-DEVICE = 'MAIL'. in smartform to send mail
There are parameter in smartform interface called
MAIL_RECIPIENT = GWA_RECIPIENT
MAIL_SENDER = GWA_SENDER
I want to use them to send mail.
I have set my device type = 'MAIL' But I am getting error email address, is not valid . i.e. it is taking blank email address where as i have mention email address in
GWA_RECIPIENT-OBJKEY = <Emailaddress>
is there any other parameter i have to sent..
I wont want to go via long route of converting smartform into OTF or into PDF, whereas i think smartform interface itself is capable of sending contains as emails.
Regards
--AL.Hi VL,
You can't simply assign the email address to GWA_RECIPIENT-OBJKEY.
Inorder to use the standard smartform interface to sent the smartform via mail, the partner details need to be maintained in SAP. Say for example if you want to sent a PO to a vendor via email, the email address need to be maintained in XK01/02 transaction for that vendor in the address view.
Before calling the smart form function module, you need to populate the receipent data, with function module WFMC_PREPARE_SMART_FORM. If you give the address number and land, it will populate the receipent data.
See the report RLB_INVOICE (form set_print_param).
Regards,
Maddy. -
Dear All,
Inspite of maintained all the details correctly to send PO via e-mail it is still going to mail request, which I need to go to T.code: SCOT to send the mail.
Kindly tell where i need to configure so that as soon as I click send e-mail it should directly go to vendor E-mail with out executing SCOT T.code.
Rgds
SriniHi,
Every outgoing mail will be routed through SCOT as it is one responsible for sending mail outside. You cann schedule the scot evry 10 or 15 min so that it will automatically send mail out. there is option of scheduling this in scot.
Maybe you are looking for
-
Sales Order No profitability segment!! Account assignment error!!!
Dear Experts We are running an MTO(make to order) scenario! First we create an contract in the system!Then we create sales order with reference to this contract! And when the sales order is sent to the planning department! They use TCODE:CO08 create
-
Digital Signatures and Coldfusion
I want to add a digital signature field (3 to be exact) to a PDF file that I generate via coldfusion (via the cfdocument tag), OR use a form built in livecycle that once it is signed by the first person, the only allowable changes to the form are the
-
Java is safe, and UNIX viruses do not exist.
Hi! Its me Ronillo. Is it true that java cannot be the source of virus? Java is cross platform right? So, java can be the the medium to carry virus and spread it? I dont know if its okay to open a topic like this one, so Im sorry cause I really dont
-
ITunes freezes after playing or ripping a disc
I'm having big trouble with iTunes. Every time I play or rip a CD, iTunes freezes if I try to eject the disc or close down iTunes. Everything else works fine up to the point when I try to close iTunes and the whole PC locks up and I have to re-boot.
-
When importing no clips appear
although the DV plays through the iMovie main viewer as usual, using the iMovie controls and so no footage is imported. I've been using this set up (Panasonic NVGS15) for a while and have had no problems but since I've installed Tiger and iLife and g