How to put mail body while sending Payment Advice Note by mail
Hi,
I am sending payment advice form through mail using the BTE 2040.
Everything is fine and mail is coming properly but mail does not have any body line. It just contains the PDF as an attachment.
I want to put mail body in that. I have just copied the Script, I have not copied the driver program.
E.g
Hello,
Please find the payment advice note as an attachment.
Kindly advice how to put mail body in that mail, is there any BTE through which we can put the mail body?
Kindly help.
Regards
Sachin Yadav
Hi,
I am sending payment advice form through mail using the BTE 2040.
Everything is fine and mail is coming properly but mail does not have any body line. It just contains the PDF as an attachment.
I want to put mail body in that. I have just copied the Script, I have not copied the driver program.
E.g
Hello,
Please find the payment advice note as an attachment.
Kindly advice how to put mail body in that mail, is there any BTE through which we can put the mail body?
Kindly help.
Regards
Sachin Yadav
Similar Messages
-
Sending Payment Advices Via E-mail or Fax
SAP Gururs,
We recently implemented ACH payment method, we are sending ACH payment advices via e-mail or fax. However the need to maintain various e-mails or a combination of e-mail and fax is necessary.
Example #1
I have 2 e-mail address one for our purchase department and the other for the vendor I only want the vendor to receive payment advices, the other e-mail is use to send other information to vendor. How do I control this type of scenario.
Example #2,
I have a fax number and E-mail, but vendor wants payment advice to be send via fax and not e-mail. I did this testing by selecting the "Do Use Communication for e-mail" but I still got an e-mail and not a fax.
Example # 3,
I have various fax numbers 1 use for payment advices, the other to send other information to other users to the vendor such as matrixes, price disputes etc. how can I control this.
Does any one has any additional information on these topics I will truly appreciate.Hello,
Go to transaction code FIBF
Settings ==> Process Modules ==> ... of an SAP Application
Process: 00002040
Ctr: Blank
Appl.: FI-FI
Function Module: SAMPLE_PROCESS_00002040
You can copy the function module to "Z" function module and modify it accordingly. Then you can use your customized FM here.
This triggers an email of payment advice, provided if you have maintained Email Address in the Vendor Master "Address" Tab and the Standard Communication Method is "INT - Email"
You can see the email that is being triggered / delivered in transaction code SOST.
To deliver the emails settings in SCOT are being completed by Basis consultants and the gateways must have been opened. Except production environment, normally the gateways are closed in development or QA environment in order to avoid sending wrong payment advices outside.
Thanks,
Ravi -
To send Payment advice note as Email to vendor
Hi
I like to know how can we send the payment advice note created after F110 run to be send as email to the vendor?
your help would be appreciated a lot
regards
auroHi Arvind,
Check out the following link
Re: f110 payment advice
Assign points if useful
Regards
Genie -
Create hyperlink for reply to in mail body while sending email.
Hi All,
We have a requirement where we need to create an hyperlink for reply to in the mail body.
We have implemented entire functionality using CL_BCS classes and everything is working fine.
Only problem we have is when we give document type as HTM instead of RAW then entire formatting of mail body gets disturbed although we get the hyperlink.
Is there any way where we can send the mail in html format using CL_BCS,CL_DOCUMENT_BCS ?
KR Jaideep,Hi ,
Please find the code below I am using to make the hyperlink. Do I need to fill the entire mail body using HTML Tags ? If yes, then I guess it will increase the complexity of program as the mail content will vary from one mail to another depending upon whether different invoice documents have text maintained in them.
lwa_text = '<html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '<body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = text-012.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
CONCATENATE '<a href="mailto:'
lv_receiver
'">'
lv_receiver
'</a>'
INTO lwa_text.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</body>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
lwa_text = '</html>'.
APPEND lwa_text TO li_text.
CLEAR lwa_text.
TRY.
CALL METHOD cl_document_bcs=>create_from_text
EXPORTING
i_text = li_text
i_documenttype = 'HTM'
i_subject = 'Test for hyperlink'
i_importance = '1'
i_sensitivity = 'P'
RECEIVING
result = lref_document_bcs.
CATCH cx_document_bcs .
ENDTRY. -
Payment advice note to vendors thru e mail
Guys,
After executing F110, system generates the payment advices.I updated the master reocrd of vendor with a test email id , system is sending payment advices to this mail id,as its our internal server mail id.But when I update vendor record with some other external mail address, the system displays the msg.below.and cannot send thru mail.Please suggest.
XS826 Cannot process message, no route from to
F0387 Advice note for pymt 5000 2000000405 will be printed; dispatch via e-mail not poss.
Regards
ShaunHi shaun,
Payment advice is transfer to the external sytem. It means we need conectivity between 2 systems. I need to configure EDI settings. You need to contact the ABAPer and Basis consultant for your configuration.
Regards
Odaiah Pelley -
Payment advice notes by email (change in sender id) and body
Hi experts ,
I am trying to change the sender name and body of the mail that is send by mail.does this code work i called SO_NEW_DOCUMENT_ATT_SEND_API1 in Z_PAN_EMAIL_00002040.
look in the code and also tell me me does this work out. can some one tell me what is the 'SAPoffice' in this code. (ls_document_data-obj_name = 'SAPoffice'.) in fill document data part.
FUNCTION Z_PAN_EMAIL_00002040.
""Local interface:
*" IMPORTING
*" REFERENCE(I_REGUH) LIKE REGUH STRUCTURE REGUH
*" CHANGING
*" REFERENCE(C_FINAA) LIKE FINAA STRUCTURE FINAA
data: zadrnr like adr6-addrnumber,
zsmtp_addr like adr6-smtp_addr,
zremark like adrt-remark,
begin of zcon occurs 0,
zadrnr like adr6-addrnumber,
zconnumber like adr6-consnumber,
zsmtp_addr like adr6-smtp_addr,
end of zcon.
refresh zcon.
select single adrnr into zadrnr from lfa1 where
lifnr = i_reguh-lifnr.
if sy-subrc = 0.
select addrnumber consnumber smtp_addr into table zcon
from adr6 where addrnumber = zadrnr.
endif.
loop at zcon.
clear zremark.
select single REMARK INTO ZREMARK FROM ADRT
where addrnumber = zcon-zadrnr
and consnumber = zcon-zconnumber.
TRANSLATE zREMARK TO UPPER CASE.
if sy-subrc = 0 and zremark = 'REMIT'.
zsmtp_addr = zcon-zsmtp_addr.
exit.
endif.
endloop.
IF zsmtp_addr <> ' '.
search zsmtp_addr for 'britishcouncil' .
if sy-subrc <> 0.
code modified to check if sy-subrc = 0.
C_FINAA-NACHA = 'I'.
CODE MODIFIED AS PER SAP NOTE 1033893 .
C_FINAA-NAMEP = 'Testname'.
internet address of partner company clerk has been changed by pradeep akula as per requirements.
C_FINAA-INTAD = zsmtp_addr.
C_FINAA-FORNR = 'Z_F110_IN_AVIS2'.
this zzmail_sender_addrr and zzmail_body_text did not work in testing.
C_FINAA-ZZMAIL_BODY_TEXT = 'This is a test body text'.
C_FINAA-ZZMAIL_BODY_TEXT = 'Payment Advice Notes attached, please do not discard this message .All vendors should please add their company name'.
endif.
ENDIF.
code changes done by pradeep akula for Body of mail .
CLASS cl_abap_char_utilities DEFINITION LOAD.
TYPES: t_solisti1 TYPE TABLE OF solisti1,
t_sopcklsti1 TYPE TABLE OF sopcklsti1,
t_somlreci1 TYPE TABLE OF somlreci1.
DATA: lt_content TYPE t_solisti1,
lt_packing_list TYPE t_sopcklsti1,
lt_header TYPE t_solisti1,
ls_document_data TYPE sodocchgi1,
l_subject TYPE solisti1-line,
l_content_lines TYPE i,
lt_receiver TYPE t_somlreci1,
l_address TYPE adr6-smtp_addr,
l_new_object_id TYPE sofolenti1-object_id,
l_sent_to_all TYPE sy-binpt,
l_msg_text TYPE string,
l_rc TYPE sy-subrc,
l_user TYPE sy-uname.
DATA: l_crlf(2) TYPE c.
DATA: BEGIN OF crlf,
x(1) TYPE x VALUE '0D',
y(1) TYPE x VALUE '0A',
END OF crlf.
l_crlf = cl_abap_char_utilities=>cr_lf.
receiver address
DATA: ls_receiver TYPE somlreci1.
ls_receiver-receiver = zsmtp_addr.
receiver address type (internet address)
ls_receiver-rec_type = 'U'.
communication type (send via internet)
ls_receiver-com_type = 'INT'.
APPEND ls_receiver TO lt_receiver.
SAP name: used for the shortcut to the inbox (optional)
l_user = p_user.
l_user = ' '.
mail subject
l_subject = p_subj.
DATA: ls_content TYPE solisti1,
ls_header TYPE solisti1.
fill the document data.
READ TABLE lt_content INDEX l_content_lines INTO ls_content.
ls_document_data-doc_size =
( l_content_lines - 1 ) * 255 + STRLEN( ls_content ).
ls_document_data-obj_name = 'SAPoffice'.
ls_document_data-obj_descr = 'Test mail form payment advice its working'.
ls_document_data-obj_prio = 5.
ls_document_data-priority = 5.
fill data of mail
DATA: ls_packing_list TYPE sopcklsti1.
update the packing list.
ls_packing_list-transf_bin = ' '.
ls_packing_list-body_start = 1.
ls_packing_list-body_num = l_content_lines.
ls_packing_list-doc_type = 'RAW'.
APPEND ls_packing_list TO lt_packing_list.
ls_header-line = 'Test header - Vish'.
append ls_header to lt_header.
ls_content-line = 'Test mail form payment advice what you want to print here'.
append ls_content to lt_content.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_document_data
commit_work = 'X'
IMPORTING
sent_to_all = l_sent_to_all
new_object_id = l_new_object_id
TABLES
packing_list = lt_packing_list
object_header = lt_header
contents_txt = lt_content
receivers = lt_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.
keep error message
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO l_msg_text.
ENDIF.
endfunction.Hi Pradeep,
you can change the sender, when you change the system-field SY-UNAME before calling FM SO_NEW_DOCUMENT_ATT_SEND_API1.
REPORT Z_TEST_SEND_MAIL.
h_uname must be a SAP-UserId.
sy-uname = h_uname.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
I tried it and it was successfull. -
Send Payment Advice via Fax & E-mail
Hi,
We would like to send Payment Advices to vendors via Fax & E-mail.
We have put the e-mail and the fax number in the company code specific data of the vendor (i.e. accounting clerk's data) and we have configured the Payment Advice form.
When we make a payment run and select many vendors, we want to be able to:
- send the payment advice for vendor 1, 2 & 3 by fax
- send the payment advice for vendor 4, 5 & 6 by e-mail
The issue is that only 1 PDF is created with the payment advices of all these vendors.
When we want to send it via Fax or e-mail, it will be rejected, because there are different fax numbers/e-mail addresses in 1 PDF document.
Is it possible in a payment run to generate 1 Payment Advice per vendor?
Thank you for your feedback.
Kind regards,
LindaHello,
I would like to check
OBY6 - Make sure you have not ticked "No foreign currency exchange rate differences"
OB09 - Make sure sufficient accounts are maintained for account determination with loss and gain accounts.
OBA1 - Check your account determination for different keys
OBYY - Check your account determination in OBYY (probably this must have covered in OBA1)
check also in the configuration in case if have maintained any maximum % rate for foreign exchange differences per company code / per currency.
I would also recommend you to go through
Note 582987 - FB05: Translation postings with missing Customizing
Note 1041579 - Error F5 063 when transferring invoice to accounting
Regards,
Ravi -
Sender in payment advice notes Via Email
Hi, All,
Is there any body know how to set up an specific sender in payment advice notes Via Email? Sounds like the e-mail-address of the sender always corresponds to the current user. Is there any way to set it as a pre defined email address? Thanks.
MeiyingHi,
If you want to have the same E-mail address given on the form, then I can advise.
The one e-mail address can be put in the address detail field or the heather as a fix text,
so the same will be displayed to them every time.
We had the same problem and this was the easiest way to get it done.
Maybe this helps to you.
Good luck!
Regards,
Endre -
Vendor payment advice by e mail
In Vendor master,under General data address tab, in e mail tab we need to specidy email ID of respective person so as to enable him to get payment advice by email.
However,if more than one person intends to receive such payment advice by e mail,how can you configure this ?Hello,
I would suggest to create a group mail for it so that you include different persons in that group.
To elaborate if you want to send payment advice to the below persons:
person1@testmail
person2@testmail
person3@testmail
you create a group mail <with the help of your sys admin>
groupperson@testmail,assign this mail to vendor master data....mails would go to multiple persons in the group.
Hope this helps
Rgds
Rajendra -
Send payment advice by email. SAMPLE_PROCESS_00002040 / 50
Dear all,
we using the BT FM SAMPLE_PROCESS_00002040 for sending emails in PDF form to email addresses of the vendor. We are able to create the entry in SOST and send it by email.
Now we have two additional requirements:
1. We want to use the email address on Correspondence Tab LFB1-INTAD - Clrk's internet instead of the email adress of the general date (SZA1_D0100-SMTP_ADDR) because the e-mail address in the general data is already used for logistic correspondence.
2. We want to create the email and additionally the printout. Can we realize this in the coppy of SAMPLE_PROCESS_00002040 or SAMPLE_PROCESS_00002050 and how?
I would appreciate all possible ideas and suggestions please
cheers
DetlefThis is for the email sending in the 2040 BTE function:
* This function module is used for BTE 00002040 to send payment
* advice notifications via e-mail for EFTs.
TYPE-POOLS SZADR.
DATA: LS_ADDR1_COMPLETE TYPE SZADR_ADDR1_COMPLETE,
LS_ADSMTP_LINE TYPE SZADR_ADSMTP_LINE.
* Default - Print payment advice
* Default layout in config is Z_CHK_ADVICE_LZ for checks
C_FINAA-NACHA = '1'.
* Check for vendor payment and wire transaction
CHECK: I_REGUH-LIFNR NE SPACE,
I_REGUH-RZAWE EQ 'T'.
* Switch to the EFT advice
C_FINAA-FORNR = 'Z_EFT_ADVICE'.
* Check that address number is available
CHECK I_REGUH-ZADNR NE SPACE.
* Read complete address of vendor/customer
CALL FUNCTION 'ADDR_GET_COMPLETE'
EXPORTING
ADDRNUMBER = I_REGUH-ZADNR
IMPORTING
ADDR1_COMPLETE = LS_ADDR1_COMPLETE
EXCEPTIONS
OTHERS = 4.
CHECK SY-SUBRC EQ 0.
* Check that e-mail address is available
LOOP AT LS_ADDR1_COMPLETE-ADSMTP_TAB INTO LS_ADSMTP_LINE
WHERE ADSMTP-SMTP_ADDR NE SPACE
AND ADSMTP-REMARK EQ 'EFT'.
EXIT.
ENDLOOP.
CHECK SY-SUBRC EQ 0.
* Choose message type 'I'nternet and fill email address
C_FINAA-NACHA = 'I'.
C_FINAA-INTAD = LS_ADSMTP_LINE-ADSMTP-SMTP_ADDR.
BTE 2050 controls the output format, but since you can only specify one output medium, I'm not sure you can get it to print the spool immediately and still email the PDF. You might try setting the 'print immediately' indicator in the BTE, but I don't think it will work (though I haven't tried it or checked the code). If it doesn't, the email'd spools wil still be available so you can use a post-processing step to print them out. -
Problem in sending Payment Advice to multiple vendors...
Hi,
We have requirement that payment advice need to be send to vendor and one distribution list.
we have implemented the BTE 2040 and in that i am concatenation the vendor with the distribution list to the c_finaa-intad in BTE 2040 by giving space in between the email ids.
but when i am sending like this the mail is not going , when i tried to send with one email id . its working fine with me.
i am using RFFOAVIS_FPAYM to send the payment list.
Please help if you know any solution..
Thanks,
Suresh.Hi Suresh,
Check the Note 1033893 - Payt advice note by mail: Introductory text w/ attachment.
It contains the required details for Different systems -
Why do some of the e-mails a friend sends me go into bulk mail?
Why do some of the e-mails a friend sends me go into bulk mail?
It has to do with how your mail client sees the mails. Some addresses get flagged, other times they trigger other alerts, such as sending out too many at once, or having sent out spam in the past (perhaps innocently with their addresses spoofed) Other times topics can trigger the spam filters or key words.
-
Auto Mail to Vendors for payment advices
Hello All,
I am trying to set up automatic mail with payment advices note sent to vendors by the system when we run F110 program.I found out that can be achieved by Business transaction event BTE -00002040 in fucntion module.But where to assign this BTE in config? and what other steps are needed to generate auto mail delivery to vendors.Do I need to do somethignin FBZP too? Please suggest.
Regards
ShaunHI,
I am facing the same
Please update the answer if you solved it
Thanks
Prakash -
How to put condition for one date range should not interfear with another ?
hi friends,
how to put condition for one date range should not interfear with another date range.
my data base table has two fields
from date
to date.
when we enter the date range in the data base , new date range means from date and to date should not interfear.
can anybody help me.
thanks &Regards,
Revanth
Edited by: rk.kolisetty on Jul 1, 2010 7:18 PMDo it the SAP way....
First entry...from is today, to is 99991231.
New dates entered, now we have two rows...:
from is original date to becomes yesterday.
From is today to is 99991231 -
Summry report for payment advice notes
Hi, All,
I have set up email payment advice notes. So if vendors have email addresses maintained, the process will sent out emaisl. Otherwise, it will print out. But after the process I only got the summary report for those printed ones. Those emailed out are not counted in. Is there any body know how to get summary report for emailed ones? Or how I can put printed and emailed ones together in the report? Thanks.
MeiyingHi Yang ,
im trying to figure out how to send Payment advice as email from F110.
can u tell me how you do this
Thanks
dave
Maybe you are looking for
-
Max number of entries in the variable input list (F4) of Bex Analyzer Query
Dear BW experts, When I run the Bex Analyzer query, it pops up the variable input screen. If I don't know the specific value of the variable, then I can click on the input help (F4) to get a list of available values. There is a max number of entries
-
hi help convert date April 26, 1904....August 12, 1979 to dd/mm/yyyy
-
AARRGGHH! Need help with QT and .avi
I recently switched from a G5 imac to an intel one. Like a moron, I did not note any of my settings, plug-in's, etc. On my G5, I had quicktime able to watch almost all avi's and Toast was able to convert them and burn them to DVD's. Any idea what plu
-
I am having problems downloading newly purchased music, message response is "An unknow error occurred (8003)". Does anyone know how to correct this error and enable downloading of music?
-
EDITING FULL HD 1920 X 1088 IN ADOBE PREMIERE
Hello!! I've been recording videos in full hd 1920 x 1088 at 24 fps...but at the time to configure the sequence settings in adobe premiere I got confused on what I should choose. Take a look at the image pasted: Solved! Go to Solution.