Send invoice by email
Hi All,
We have a requirement to send invoices by email.
The user will be able to control by providing transaction number and email ids of addressees (if not the email ids need to be picked from customer details). Based on the input, the invoice should be dynamically generated and pdf generated. The pdf should have the company logo.
We have xml publisher on the instance and i read that it would be the better option to use xml bursting to send a batch of invoices.
Can anyone help or guide to any article which can give a step by step process for the report generation, publisher part and the bursting.
Thanks in advance,
Mahesh
Issue caused by custom program.
Similar Messages
-
How to send invoice through email with output type RD00?
What are the configuration settings to send invoices through email with output type RD00?
Hi,
Please go through the following links:
[E-mail|Email Configuration Settings]
[e-mail|Re: EMAIL BILLING DOCUMENT TO CUSTOMER THROUGH SEND MAIL OPTION IN VF02]
After triggering the output,goto T.Code SOST and process it.
So that e-mail will be triggered immediately.
You can use External send/EDI/simple mail for this.
Regards,
Krishna. -
Hi,
I would like to send invoices as email. I try but I receive a bad html mail with minimal invoice header.
How can I send my invoice as mail ?
I'm 2004A (6.70.190) SP:00 PL:31
regards.
Sending invoice by emailHi Alessandro
Unfortunatly it just makes one big jpeg and there is no setting to say how you would like the ouput. Also the quality of the output is very bad...print it and you'll see. I have the same problem. If you use the ald it actually gives you an option of if you would like pdf, tiff,etc and is very good quality. But SAP is ending there relationship with the company that made the ald. another option is you install a pdf converter/driver. Basically you say print to this driver and it then makes a pdf file. Good quality. The one i have will even ask if you want to mail, if yes it will place it in outlook mail message automatically and it's for FREE.
Hope this helps -
Send Invoice by email using email address of partner function
Hi everybody,
I am facing a problem with sending invoices by email. In particular I have created in customizing a new partner function of type contact person, namely "email address recipient". This partner function is used to get the correct email address which is different from the one stored in customer master data.
The problem is that when i print the messagge, the email address used is exactly the one of the customer master data and not the one stored in the partner function "email address recipient".
Example:
customer xxx email address yyy,
for xxx it is defined a partner function email address recipient zzz with email jjj.
The invoice message is always sent to yyy.
Do you have any suggestions to solve this issue?
Thanks,Issue caused by custom program.
-
Send invoice (copies) to multiple email address
Hi,
Is it possible to send invoice(copies) to multiple email address? how?
Understand that we can maintain multiple email add for a customer. Example if 5 email add has been maintained for customer A, let say if I need to email 1 original invoice to email add 1 and email the other 2 copies invoice to email add 2 & 3 , how do I select the email add 1, 2 & 3 from the customer under the OUTPUT of change invoice (VF02) when we only input the customer code under Partner?
Appreciate your inputs on the above.Hi,
I think it is possible to send invoice copies to multiple email addresses using comma in between them.
Regards,
Sarosh -
Is there any easy way to send free invoice via email without my credit info
Is there any easy way to send free invoice via email without my credit info?
Depends upon what you mean by 'it failed'. If it's that you are getting a message to contact iTunes Support then no, you will have to contact them (the 48 hours should be the maximum time that it takes for them to reply).
-
Invoice via email to external sender with partner function
Hello all,
sending an invoice via email to the recipient address that's in the customer master is working fine in our system. Now we want the invoice to be sent to one of our employees and we did the following settings:
- Created a personnel number in the HR module and assigned this number to the SAP user ID of the employee.
- Created a partner function ( Transaction OPSPAR1) with partner type ER - Personnel number. Is this the correct partner type?
- Added new partner function in customer master and assigned personnel number of employee.
- In output section of the invoice, we added output type, selected medium = external send, assigned new partner function and partner=personnel number.
After issuing output, a message comes up that output could not be issued.
Any suggestions? Am I missing something?
Thanks
AnneDear Anne,
Have you maintained Recipient field with User Id of employee in the condition record Communication detail screen.
If not maintained maintain Recipient field with User Id of employee then try.
I hope this will help you,
Regards,
Murali. -
Send Invoice to multiple user via email.
Hi,
We are using the output type external send. But the standard PO process will send email to only 1 recipient. The email will be taken from the customer master where email is flagged as Standard.
Is there any other way (or any user exit) to send invoice to a multiple recipient (TO and COPY-TO) maintained in customer master?
Appreciate your input.
ThanksHi Kiran
If you have output type maintained in your system and you want to send it to multiple people then all you have to do is include the partner functions in the output type in transaction NACE or V/30. The system will automatically copy the email addresses from the partner profiles and mail will be sent...
I hope it helps.
Though if it a certain set of ppl that the mail has to be sent to every time a PO is raised then you will have to take the help of your ABAPer. -
How to send invoice to external email
Hi All,
Can anyone help me with the detail steps to configure settings so i can send invoice to the customer in their mail id.
Message was edited by: Monosij BagchiHai Monosij Bagchi
Go through the following Link
http://www.sapgenie.com/its/email.htm
Thanks & Regards
Sreenivasulu P -
Sending AR Customer Statements & Invoices by Email
We currently upgrading to R12 and have a requirement to find out if its possible to email customer Statements and invoices via email. We need the email to work for batch printing and individual printing. Is there any option avaliable in R12 that can be used to enable this functionality? Any suggestion are welcome and are appreciated.
Thanks in advance.Thanks a lot Gareth.
So will have to do some customizations. We were wondering if we can do it without making any code changes, seems not.
This certainly is a good solution and it will give us the functionality even though we have to added some code changes I think its better then buying third party extensions. I also went through your blog and you have some very good technical information on Oracle Apps. Thank you for doing this good work. -
Send output through email to multiple recipients
HI Friends,
We are using the output type external send. But the standard PO process will send email to only 1 recipient. The email will be taken from the customer master where email is flagged as Standard.
Is there any other way (or any user exit) to send invoice to a multiple recipient (TO and COPY-TO) maintained in customer master?
Appreciate your input.
thanks in advance
Govind.Hi,
Have you tried the following func module in Print prog:
SO_NEW_DOCUMENT_ATT_SEND_API1
Ashvender -
Send output through email to multipul Recipients
We are using the output type external send. But the standard PO process will send email to only 1 recipient. The email will be taken from the customer master where email is flagged as Standard.
Is there any other way (or any user exit) to send invoice to a multiple recipient (TO and COPY-TO) maintained in customer master?
Appreciate your input.
any inputs for my issue??
thanks in advance
siva
Message was edited by:
siva narayanaHi,
Have you tried the following func module in Print prog:
SO_NEW_DOCUMENT_ATT_SEND_API1
Ashvender -
How do I send invoices to a different account?
Hi, how do I forward invoice emails to my accountant without changing our primary account email?
You can not send invoice to other Email by itself as the invoice can be generated & printed from the Email ID it has been purchased & registered.
Regrads
Rajshree -
Sending excel as email attachment
Hi All,
I am getting truncated with the header only upto 255 char length , and the field contents are ok more than 255 length it s taking.
I am using it_attach type standard table of solisti1 with header line.
the report code is given below
**& Report ZPBILL_INT1 **
REPORT zpbill_int1 .
*Declaration of type-pools.
TYPE-POOLS slis.
D A T A **
TABLES: zbill_inphdr,
zbill_inpdtl.
TYPES: BEGIN OF t_zbill_ipdtl,
cusnr TYPE zbill_inpdtl-cusnr,
svsnr TYPE zbill_inpdtl-svsnr,
revnr TYPE zbill_inpdtl-revnr,
sysnr TYPE zbill_inpdtl-sysnr,
sdate TYPE zbill_inpdtl-sdate,
filnm TYPE zbill_inpdtl-filnm,
zlsch TYPE zbill_inpdtl-zlsch,
clrfe TYPE zbill_inpdtl-clrfe,
revds TYPE zbill_inpdtl-revds,
prind TYPE zbill_inpdtl-prind,
svsds TYPE zbill_inpdtl-svsds,
quant TYPE zbill_inpdtl-quant,
adate TYPE zbill_inpdtl-adate,
trdat TYPE zbill_inpdtl-trdat,
mdate TYPE zbill_inpdtl-mdate,
trdval type zbill_inpdtl-trdval,*
exrate TYPE zbill_inpdtl-exrate,
birate TYPE zbill_inpdtl-birate,
cusds1 TYPE zbill_inpdtl-cusds1,
cusds2 TYPE zbill_inpdtl-cusds2,
cusstr TYPE zbill_inpdtl-cusstr,
cuspc TYPE zbill_inpdtl-cuspc,
cuscity TYPE zbill_inpdtl-cuscity,
cusctry TYPE zbill_inpdtl-cusctry ,
rect TYPE zbill_inpdtl-rect,
invno TYPE zbill_inpdtl-invno,
ldate TYPE zbill_inpdtl-ldate,
conty TYPE zbill_inpdtl-conty,
edate TYPE zbill_inpdtl-edate,
custa TYPE zbill_inpdtl-custa,
currc TYPE zbill_inpdtl-currc,
warrt TYPE zbill_inpdtl-warrt,
indrp TYPE zbill_inpdtl-indrp,
textc TYPE zbill_inpdtl-textc,
gstr TYPE zbill_inpdtl-gstr,
clrds TYPE zbill_inpdtl-clrds,
commty TYPE zbill_inpdtl-commty,
commyr TYPE zbill_inpdtl-commyr,
commmt TYPE zbill_inpdtl-commmt,
commop TYPE zbill_inpdtl-commop,
eposdoc TYPE zbill_inpdtl-eposdoc,
custp TYPE zbill_inpdtl-custp,
END OF t_zbill_ipdtl.
DATA: it_zbill TYPE STANDARD TABLE OF t_zbill_ipdtl
INITIAL SIZE 0.
ALV Data declaration.*
DATA : v_repid LIKE sy-repid.
ALV Function Module Variables*
DATA: gs_layout TYPE slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user TYPE slis_exit_by_user.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv,
gs_print TYPE slis_print_alv,
gt_events TYPE slis_t_event,
gt_list_top_of_page TYPE slis_t_listheader,
g_status_set TYPE slis_formname VALUE 'PF_STATUS_SET',
g_user_command TYPE slis_formname VALUE 'USER_COMMAND',
g_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
g_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST',
g_end_of_list TYPE slis_formname VALUE 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
DATA : gr_layout_bck TYPE slis_layout_alv.
DATA : wa_zbill TYPE t_zbill_ipdtl.
*Email related declarations
DATA: it_message TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
WITH HEADER LINE.
*DATA: it_attach TYPE STANDARD TABLE OF solisti1 INITIAL SIZE 0
*WITH HEADER LINE.
DATA: it_attach TYPE STANDARD TABLE OF SOMLRECI1 INITIAL SIZE 0
WITH HEADER LINE.
DATA: t_packing_list LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
t_contents LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_receivers LIKE somlreci1 OCCURS 0 WITH HEADER LINE,
*t_attachment LIKE solisti1 OCCURS 0 WITH HEADER LINE,
t_attachment LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
t_object_header LIKE solisti1 OCCURS 0 WITH HEADER LINE,
w_cnt TYPE i,
w_sent_all(1) TYPE c,
w_doc_data LIKE sodocchgi1,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
*DATA IT_HEADER TYPE STANDARD TABLE OF SOLIX INITIAL SIZE 0 WITH
*HEADER LINE.
*data : begin of it_header occurs 0,
header(1023) type C,*
end of it_header.*
S E L E C T I O N S **
SELECTION-SCREEN BEGIN OF BLOCK b01 WITH FRAME TITLE text-b01.
SELECT-OPTIONS: s_cusnr FOR zbill_inpdtl-cusnr,
s_svsnr FOR zbill_inpdtl-svsnr,
s_revnr FOR zbill_inpdtl-revnr,
s_sysnr FOR zbill_inpdtl-sysnr,
s_sdate FOR zbill_inpdtl-sdate,
s_filnm FOR zbill_inpdtl-filnm,
s_prind for zbill_inpdtl-prind.
PARAMETERS: p_test AS CHECKBOX,
p_email AS CHECKBOX.
SELECTION-SCREEN END OF BLOCK b01.
*PARAMETERS: p_email TYPE somlreci1-receiver
Initialization **
INITIALIZATION.
v_repid = sy-repid.
start-of-selection **
START-OF-SELECTION.
PERFORM data_retrieval.
IF p_test = '' AND P_EMAIL = ''.
MESSAGE S038(ZMBILLING).
ELSEIF P_TEST = 'X'.
display the data in the form of ALV*
PERFORM display_data.
ELSEIF P_EMAIL = 'X'.
*Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*Populate message body text
PERFORM populate_email_message_body.
*Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
TABLES it_message it_attach USING p_email
'Billing Details list'
'XLS'
'filename'
CHANGING gd_error
gd_reciever.
*Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
ENDIF.
*& Form data_retrieval
text*
FORM data_retrieval.
SELECT revnr sysnr sdate filnm cusnr
svsnr zlsch clrfe revds prind svsds
quant adate trdat mdate exrate
birate cusds1 cusds2 cusstr
cuspc cuscity cusctry rect
invno ldate conty edate custa
currc warrt indrp textc
gstr clrds commty commyr commmt
commop eposdoc custp
INTO CORRESPONDING FIELDS OF TABLE it_zbill FROM zbill_inpdtl
WHERE cusnr IN s_cusnr
AND svsnr IN s_svsnr
AND revnr IN s_revnr
AND sysnr IN s_sysnr
AND sdate IN s_sdate
AND filnm IN s_filnm
and prind in s_prind.
ENDFORM. " DATA_RETRIEVAL
**& Form build_xls_data_table
text*
FORM build_xls_data_table.
DATA: ld_store(50) TYPE c. "Leading zeros
DATA: wa_zbill-quant(20),
wa_zbill-custa(20),
wa_zbill-gstr(20).
wa_zbill-mxamt(20).*
*If you have Unicode check active in program attributes thnen you will
*need to declare constants as follows
CLASS cl_abap_char_utilities DEFINITION LOAD.
CONSTANTS:
con_tab TYPE c VALUE cl_abap_char_utilities=>horizontal_tab,
con_cret TYPE c VALUE cl_abap_char_utilities=>cr_lf.
CONCATENATE 'Customer code' 'Service Number' 'Revenue Type' 'Source
System Code' 'Date Source' 'File Name' 'Payment Code' 'Single Char Flag'
'Revenue Description' 'Processing Indicator' 'Service Description'
'Order Quantity' 'Date of Adustment' 'Trade Date' 'Mos Date'
'ExchangeRate' 'Billing Rate' 'Customer Name1' 'Customer name2'
'Customer adress' 'Customer postalcode' 'Customer city'
'Customer country' 'Billing amt without GST' 'GST Payable'
'Receipt number' 'Invoice Number' 'Listing Period'
'Contract Type' 'Entry date' 'Custody Code' 'Currency Code'
'Name of Warrant' 'Rights issue' 'No Of copies'
'GST Rate' 'Clearing Fee' 'Commodity type'
'Commodity year' 'Commodity month' 'Commodity Option Tpye'
'Quantity Transacted' 'Amendment Quantity' 'EPOS DOC type'
'Customer Type'
INTO IT_ATTACH SEPARATED BY con_tab.
CONCATENATE con_cret IT_ATTACH INTO IT_ATTACH.
*CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_zbill INTO wa_zbill.
CONCATENATE wa_zbill-cusnr wa_zbill-svsnr wa_zbill-revnr
wa_zbill-sysnr wa_zbill-sdate wa_zbill-filnm wa_zbill-zlsch
wa_zbill-clrfe wa_zbill-revds wa_zbill-prind wa_zbill-svsds
wa_zbill-quant wa_zbill-adate wa_zbill-trdat wa_zbill-mdate
wa_zbill-exrate wa_zbill-birate wa_zbill-cusds1 wa_zbill-cusds2
wa_zbill-cusstr wa_zbill-cuspc wa_zbill-cuscity wa_zbill-cusctry
wa_zbill-rect wa_zbill-invno wa_zbill-ldate wa_zbill-conty
wa_zbill-edate wa_zbill-custa wa_zbill-currc wa_zbill-warrt
wa_zbill-indrp wa_zbill-textc wa_zbill-gstr wa_zbill-clrds
wa_zbill-commty wa_zbill-commyr wa_zbill-commmt wa_zbill-commop
wa_zbill-eposdoc wa_zbill-custp
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
it_header = it_attach .*
*append it_header.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
***& Form SEND_FILE_AS_EMAIL_ATTACHMENT
FORM send_file_as_email_attachment TABLES pit_message
pit_attach
USING p_email
p_mtitle
p_format
p_filename
p_attdescription
p_sender_address
p_sender_addres_type
CHANGING p_error
p_reciever.
DATA: ld_error TYPE sy-subrc,
ld_reciever TYPE sy-subrc,
ld_mtitle LIKE sodocchgi1-obj_descr,
ld_email LIKE somlreci1-receiver,
ld_format TYPE so_obj_tp ,
ld_attdescription TYPE so_obj_nam ,
ld_attfilename TYPE so_obj_des ,
ld_sender_address LIKE soextreci1-receiver,
ld_sender_address_type LIKE soextreci1-adr_typ,
ld_receiver LIKE sy-subrc.
ld_email = p_email.
ld_mtitle = p_mtitle.
ld_format = p_format.
ld_attdescription = p_attdescription.
ld_attfilename = p_filename.
ld_sender_address = p_sender_address.
ld_sender_address_type = p_sender_addres_type.
*ld_sender_address = SY-UNAME.
ld_sender_address_type = 'SMTP'.*
*fill the document data.
w_doc_data-doc_size = 1.
*populate the subject/generic message attributes
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle .
w_doc_data-sensitivty = 'F'.
*Fill the document data and get size of attachment
CLEAR w_doc_data.
READ TABLE it_attach INDEX w_cnt.
w_doc_data-doc_size =
*( w_cnt - 1 ) * 255 + STRLEN( it_attach ).*
w_doc_data-obj_langu = sy-langu.
w_doc_data-obj_name = 'SAPRPT'.
w_doc_data-obj_descr = ld_mtitle.
w_doc_data-OBJ_NAME = ld_attfilename.
w_doc_data-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment = it_attach.
t_attachment[] = it_attach[] .
t_attachment = it_header.*
t_attachment[] = it_header[] .*
*Describe the body of the message
CLEAR t_packing_list.
REFRESH t_packing_list.
t_packing_list-transf_bin = space.
t_packing_list-head_start = 1.
t_packing_list-head_num = 0.
t_packing_list-body_start = 1.
DESCRIBE TABLE it_message LINES t_packing_list-body_num.
t_packing_list-doc_type = 'RAW'.
APPEND t_packing_list.
*CREATE attachment notification
t_packing_list-transf_bin = 'X'.
t_packing_list-head_start = 1.
t_packing_list-head_num = 1.
t_packing_list-body_start = 1.
DESCRIBE TABLE t_attachment LINES t_packing_list-body_num.
t_packing_list-doc_type = ld_format.
t_packing_list-obj_descr = ld_attdescription.
t_packing_list-obj_name = ld_attfilename.
*t_packing_list-doc_size = t_packing_list-body_num * 255.*
APPEND t_packing_list.
*Add the recipients email address
CLEAR t_receivers.
REFRESH t_receivers.
t_receivers-receiver = ld_email.*
t_receivers-rec_type = 'U'.
t_receivers-com_type = 'INT'.
t_receivers-notif_del = 'X'.
t_receivers-notif_ndel = 'X'.
APPEND t_receivers.
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = w_doc_data
put_in_outbox = 'X'
sender_address = ld_sender_address
sender_address_type = ld_sender_address_type
commit_work = 'X'
IMPORTING
sent_to_all = w_sent_all
TABLES
packing_list = t_packing_list
contents_bin = t_attachment
contents_txt = it_message
receivers = t_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
*Populate zerror return code
ld_error = sy-subrc.
*Populate zreceiver return code
LOOP AT t_receivers.
ld_receiver = t_receivers-retrn_code.
ENDLOOP.
ENDFORM. "build_xls_data_table
regards
subbaHi ,
i'm saying check the field doc_size, umcomment it .change 255--->1025 .
w_doc_data-doc_size =
**( w_cnt - 1 ) * 255 + STRLEN( it_attach ).**
**t_packing_list-doc_size = t_packing_list-body_num * 255.**
for more details , check the documentation.
regards
Prabhu -
HI ,
I am working on invoice approval workflow as when new invoice is created then it should go to sales dept. for approval and once they approve it then it should be forwaded to customer.
But the problem is that i have to send invoice as attachment to sales dept. using workflows for approval. I dont know how to send it as attachment using workflows as their is nothing in output message for invoice bcoz that will come once it is approved from sales dept.
please help me on this.
Thanks,
rahulHi
U can also create a custom method in your Business Object and in that u can use the Function Module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send the email with an attachment.
Please google to find examples as to how to use the above FM.
Check this link as well
http://www.sap-img.com/fu016.htm
Regards
Neeraj
Maybe you are looking for
-
Differences between Oracle 8i for a UNIX Platform and a Linux Platform
I want to know the differences between Oracle 8i for a UNIX Platform and Oracle 8i for a Linux Platform. And which platform is better? Thanks
-
Why we do not need sender agreement for Mail and SOAP adapter
Hi SDN, I know, we do not need sender agreement for IDOC ,HTTP,XI adapters. As these three adapters will run in Integration engine of the abap stack. <b>In our scenario if sender is other than IDOC or HTTP or XI .</b> By Refering Sivamni's blog. <b>
-
Print with a black border to show page "edge"?
I'm printing a letter size document from illustrator at 50% size. All pages have a white background so I would like to have the document print with a black rule/ border around it so I can tell what it will look like. Is there a way to do this without
-
I have a 16GB iPad 2, and under usage it says over 11GB is used. But when I totaled the space that all the apps, photos, and videos took, it was only about 4GB. No music or movies are being stored. How do I clear this extra spa
-
Aperture 3 slows down to a crawl
I'm running the trial version on my 2.16Gb iMac with 3Gb of RAM, and plenty of free hard drive space. I've imported only about 100 RAW files and it works well for a while but soon slows down to a crawl and my entire system just comes to a halt. Any s