How to send a report to corresponding client from the SSRS Report
Hi Friends,
I have one requirement, I have multiple clients information in the report based on the Input client parameter it will show in the report.
I want to schedule the report. I need to send a report only with the corresponding client information to relevant mail id.
Example:
Client Name : Ajay
I need to send a report only about Ajay information to his mail id.
How we can achieve this ?? Please help..
Thanks in Advance..
Regards,
LuckyAbdul
Hi LuckyAbdul,
If we want to send a report only with the corresponding client information to relevant mail id, we should add a parameter in the report to filter the relevant customer information. And we also need to add the recipient email id in the report, so that we
can delivery the report to all the customers.
I find there is another thread with the same issue posted by you, and I have already post a detail reply about this issue, you can refer to it with the link below:
http://social.technet.microsoft.com/Forums/en-US/91e9a516-48a0-4a67-83fc-70228ca10367/how-to-pass-parameters-in-data-driven-subscription-in-ssrs?forum
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Similar Messages
-
How do I restore a chart I deleted from the Summary Report?
I inadvertently deleted a question from the Summary Report by clicking the little trash can icon and I'd like to get it back. To clarify: the question is still there on the form; I'm just looking to restore the chart on the report.
Thanks!Nope. Macjack's suggestion didn't worked - it's what I tried before coming here.
I realise I could simply recreate the Smart Search folder, but as indicated - I'm having difficulty recreating the exact same results - it had several conditions to it, and I'm not having much luck with repeating the effect. If nothing comes up - I'll have no choice - but still hoping someone knows of a plain and simple option.... -
How to send an email with an attachment to the customers email address.
Hi friends,
How to send an email with an attachment to the customers email address.
the attachment will be in doc format.
Having an Header
the data which i am sending must be in a TABLE format
with 5 columns.
and each column must have a column heading
Please guide me.
Thanks in Advance,
Ganesh.*& Report ZEMAIL_ATTACH *
*& Example of sending external email via SAPCONNECT *
REPORT ZEMAIL_ATTACH .
TABLES: ekko.
PARAMETERS: p_email TYPE somlreci1-receiver .
*Here get the values of mail from the table adn6 for the customer address.
TYPES: BEGIN OF t_ekpo,
ebeln TYPE ekpo-ebeln,
ebelp TYPE ekpo-ebelp,
aedat TYPE ekpo-aedat,
matnr TYPE ekpo-matnr,
END OF t_ekpo.
DATA: it_ekpo TYPE STANDARD TABLE OF t_ekpo INITIAL SIZE 0,
wa_ekpo TYPE t_ekpo.
TYPES: BEGIN OF t_charekpo,
ebeln(10) TYPE c,
ebelp(5) TYPE c,
aedat(8) TYPE c,
matnr(18) TYPE c,
END OF t_charekpo.
DATA: wa_charekpo TYPE t_charekpo.
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: 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_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.
*START_OF_SELECTION
START-OF-SELECTION.
Retrieve sample data from table ekpo
PERFORM data_retrieval.
Populate table with detaisl to be entered into .xls file
PERFORM build_xls_data_table.
*END-OF-SELECTION
END-OF-SELECTION.
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
'Example .xls documnet attachment'
'DOC'
'filename'
changing gd_error
gd_reciever.
Instructs mail send program for SAPCONNECT to send email(rsconn01)
PERFORM initiate_mail_execute_program.
*& Form DATA_RETRIEVAL
Retrieve data form EKPO table and populate itab it_ekko
FORM data_retrieval.
SELECT ebeln ebelp aedat matnr
UP TO 10 ROWS
FROM ekpo
INTO TABLE it_ekpo.
ENDFORM. " DATA_RETRIEVAL
*& Form BUILD_XLS_DATA_TABLE
Build data table for .xls document
FORM build_xls_data_table.
CONSTANTS: con_cret TYPE x VALUE '0D', "OK for non Unicode
con_tab TYPE x VALUE '09'. "OK for non Unicode
*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 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
LOOP AT it_ekpo INTO wa_charekpo.
CONCATENATE wa_charekpo-ebeln wa_charekpo-ebelp
wa_charekpo-aedat wa_charekpo-matnr
INTO it_attach SEPARATED BY con_tab.
CONCATENATE con_cret it_attach INTO it_attach.
APPEND it_attach.
ENDLOOP.
ENDFORM. " BUILD_XLS_DATA_TABLE
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
Send email
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.
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-sensitivty = 'F'.
CLEAR t_attachment.
REFRESH t_attachment.
t_attachment[] = pit_attach[].
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.
*& Form INITIATE_MAIL_EXECUTE_PROGRAM
Instructs mail send program for SAPCONNECT to send email.
FORM initiate_mail_execute_program.
WAIT UP TO 2 SECONDS.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDFORM. " INITIATE_MAIL_EXECUTE_PROGRAM
*& Form POPULATE_EMAIL_MESSAGE_BODY
Populate message body text
form populate_email_message_body.
REFRESH it_message.
it_message = 'Please find attached a list test ekpo records'.
APPEND it_message.
endform. " POPULATE_EMAIL_MESSAGE_BODY
regards,
venkat. -
How to send a mail with HTML body from Oracle
Hi Team,
Can somebody guide me how to send a mail with HTML body from oracle.
Here is the piece of code i am trying to send a mail.
procedure SEND_MAIL is
cursor c_1 is select * from table_name;
l_mail_id varchar2(40);
-- ls_mailhost VARCHAR2(64) := Mailhost;
ls_from VARCHAR2(64) := ‘[email protected]’
ls_subject VARCHAR2(200);
ls_to VARCHAR2(64);
l_mail_conn UTL_SMTP.connection;
ls_left_menu_name VARCHAR2(64);
ll_emp_num number(8);
begin
for i in c_1 loop
begin
l_mail_conn := UTL_SMTP.OPEN_CONNECTION('IP');
UTL_SMTP.HELO(l_mail_conn, 'IP');
UTL_SMTP.MAIL(l_mail_conn, LS_FROM);
UTL_SMTP.RCPT(L_mail_conn, LS_TO);
UTL_SMTP.DATA(l_mail_conn,'From: ' ||ls_from || utl_tcp.crlf ||
'To: ' ||ls_to || utl_tcp.crlf ||
'Subject: ' ||ls_subject|| utl_tcp.crlf);
UTL_SMTP.QUIT(l_mail_conn);
exception
when no_data_found then
null;
when others then
RAISE_APPLICATION_ERROR(-20000, 'Failed to send mail due to the following error: ' || sqlerrm);
end;
end loop;
end;
ThnxHi Nicolas!
Have you tried to set "Output Format" for "RAW Text" to HTM in SCOT.
If HTM is missing in your dropdown-list, you could check out table SXCONVERT2. Copy the line with category T/format TXT, and change the format from TXT to HTM. The existing function
SX_OBJECT_CONVERT__T.TXT does not need to be changed. Now you should be able to choose HTM in SCOT. You will probably need som HTML-tags in your text to make it look good.
Hope this helps!
Regards
Geir -
How to send a Mail purchase order automaticaly from ME22N
How to send a Mail purchase order automaticaly from ME22N
Hi,
First create an entry via NACE with medium = 5 ( External send ) with all other details same as normal print option. Now ensure that vendor master of the po has got the external e-mail id of the vendor. Now go to ME22n in mesages create a message with medium = 5 ( External Send ). Go to communication method, key in Communication strategy.Go to Further date & against Despatch time pick up option 4 viz. Send immeidately while saving an application. Now once you press the save button it will be sent to the address maintained in the vendor master of the vendor of the PO. Please note you require some basic settings from BASIS side as well.
I hope this helps,
You may also refer to the SAP note 191470.
Regards
Raju Chitale -
How to use a charctersic as a keyfigure in the BEx report
How to use a charctersic as a keyfigure in the BEx report?
Hi chandra:
Please take a look at the document below.
"How to... Calculate with Attributes"
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc?quicklink=index&overridelayout=true
Regards,
Francisco Milán. -
How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap
Hello Experts,
I am working Document management system(CV01,cv02n,cv03n,cv04n)...
I want to send the documents from one SAP system to Other SAP system
Using ALE/Idocs....
Please Help on this any sample programs....or function module....
Thanks
PreethiHello,
Please refer to the thread:
How To send DMS(Documents cv01,cv03n,cv04n) from one sap system to othersap
Best Regards, Murugesh AS -
How to send print through your phone away from your neighbour hood
how to send print through your phone away from your neighbour hood
Hi there, I'm not exactly sure what your specific question is but it sounds like your inquiring about remote printing i.e. being able to print to a printer that's not on your local network. HP's ePrint solution allows you to do this and here's a link to find out more about the solution https://h30495.www3.hp.com/help/about.
Hope this information is useful and post back if you've more questions. Best of luck.
If my reply helped you, feel free to click on the Kudos button (hover over the "thumbs up").
If my reply solved your problem please click on the Accepted Solution button so other Forum users may benefit from viewing the post.
I am an HP employee. -
How to print out multilingual reports from the main report using Xliff temp
Hi all,
How to print out multilingual reports from the main report using Xliff temp?
When I want main report call subtemplate and finish xliff tranlation
<?for-each@section:INVOICE?><?end for-each?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if trx_number = 142 call Finnish translation and if trx_number =144,
call English translation.
<?for-each@section:INVOICE?><?end for-each?>
<?if:TRX_NUMBER=’142’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
<?if: TRX_NUMBER=’144’?>
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
<?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
<?end if?>
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Does anybody know what could be wrong?
BR
KariThanks Amit,
I have two layout, main-layout and sub-layout
Main layout call subtemplate
I have registered layout and xliff-file
Main template
Localized Templates
File Name Language Territory
XXNS_INVOICE_MAIN.rtf English
SUB template
Localized Templates
File Name Language Territory
XXNS_INVOICE_SUB.rtf English
Translatable Template
File Name Language Territory
XXNS_INVOICE_SUB.rtf English United States
Available Translations
Language Territory Progress
English Finland Complete
If main report call subtemplate and finish xliff tranlation
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
Prints out fine with Finnish translation
But if I want in main program to check what language is used e.g.
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
.....end if;
if....
<?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
.....end if;
Prints out always in English and never the Finnish translation.
Program goes fine to if branch but does not print out Finnish
Do you it's set up problem or program problem
BR
Kari -
How to remove business area from the Hyperion report
Hi All,
Kindly tell me the steps required to remove the business area from the Hyperion report.
Regards,
Ajays
-
How can i run application client from the command prompt ?
Hi,
I'm new to java & EJB. so can any body tell me the command to run the application client from the command prompt. Here is the code to print hello world:
/* Remote interface */
public interface Hello extends javax.ejb.EJBObject
public String hello() throws java.rmi.RemoteException;
/* Home interface */
public interface HelloHome extends javax.ejb.EJBHome
Hello create() throws java.rmi.RemoteException, javax.ejb.CreateException;
/* Stateless session bean class */
public class HelloBean implements javax.ejb.SessionBean
private javax.ejb.SessionContext ctx;
public void ejbCreate(){
System.out.println("ejbcreate()");
public void ejbRemove(){
System.out.println("ejbRemove()");
public void ejbActivate(){
System.out.println("ejbActivate()");
public void ejbPassivate(){
System.out.println("ejbejbPassivate()");
public void setSessionContext(javax.ejb.SessionContext ctx){
this.ctx=ctx;
public String hello(){
System.out.println("hello()");
return "Hello, world!";
/*Client class */
import javax.naming.Context;
import javax.naming.InitialContext;
import java.util.Properties;
public class HelloClient
public static void main(String[] args) throws Exception{
Properties props=System.getProperties();
Context ctx=new InitialContext(props);
Object obj=ctx.lookup("HelloHome");
HelloHome home=(HelloHome)javax.rmi.PortableRemoteObject.narrow(obj,HelloHome.class);
Hello hello=home.create();
System.out.println(hello.hello());
hello.remove();
I have stored .java files in c:\ejb
I have successfully created the .class files using javac command in the following directory :
c:\ejb
I have also created Helloworld.ear file in c:\ejb using sun application server which contains the following files:
ejb-jar-ic.jar
app-client-ic.jar
sun-j2ee-ri.project
application.xml
sun-application.xml
Manifest.mf
But the problem is that i'm not able to run the HelloWorld.class file successfully from the command prompt. So please suggest me the comand.
Thanx in advance.
Best regards,
PankajHi
You can run this code from the command prompt in the same way as you run any other simple java program. The only thing is you need to set the Home and Local interfaces in the classpath.And obviously if u had deployed the bean in ur app server container, then its all over.
And one more thing is that u need to set the provider URL in the InitialContext created in the client program.
Thanks
Arun B -
Report 2 returning data from previously ran report 1 - Plus/Viewer
Hello,
We have an issue running through discoverer viewer and plus.
If you run the first report with a parameter for the year with this returns the correct data. However if you run report after the first with year 09-10, the 08-09 data is returned again from the previous report
It doesn't matter which order you run them i.e. if you run the 09-10 first and then the 08-09 the 09-10 data is returned.
The reports work fine when run in Discoverer Desktop.
When 2nd report is run after first it returns the data that appears in the first. This Does not happen on Disco Desktop. The SQL from the reports also runs correctly in TOAD.
Metalink notes suggest turning of the Webcache but this is not turned on in either apps tiers
I have also recreated both reports and this has not made a difference either.
Regards
RachaelHi,
Even with webcache turned off Discoverer holds the results of the last run from plus/viewer in the application server and will return these results unless an explicit refresh is entered. Normally, if different parameters are entered this is recognised and the report is re-run. I don't know how you are running your report but for some reason it is not recognising the new parameters and returning the last result set. A refresh should return the correct results.
Rod West -
Get data in a subreport based on a shared variable from the main report.
Goodd morning,
My question/problem is how to manage this scenario.
I am transfering 2 shared variables (pereiod from /period To, ) from the main report to a subreport and now i would like to get data in this subreport based on these 2 variables...
The problem is that i can not find the shared one in select expert icon...
Could anyone point me to solve this issue?
Thks for any help.
Jose Marin
Crystal Report XI SR3Hello Jos,
I recommend to post this query to the [Crystal Reports Design|SAP Crystal Reports; forum.
This forum is dedicated to topics related to the creation and design of Crystal Report documents. This includes topics such as database connectivity, parameters and parameter prompting, report formulas, record selection formulas, charting, sorting, grouping, totaling, printing, and exporting but also installation and registering.
It is monitored by qualified technicians and you will get a faster response there.
Also, all Crystal Reports Design queries remain in one place and thus can be easily searched in one place.
Best regards,
Falk -
I Created a power view in Excel 2013 and uploaded to my Power BI for o365 site.
But when i click on my excel file it opens in browser,After that i click on File tab its showing me two option
1. Save a Copy
2.Download a copy
When i click on save a copy its showing me an warning below
Features that are not supported by Excel in the browser and interactive reports will be removed from the saved copy.
Continue with Save?
If i continue saving it only saves an excel files with data only not the power view which i want to save with applied filters.
Please help me for thisJust to clarify, when you hit the option of Save As Copy, the whole experience goes into a "read-write" mode in Excel services, which currently doesn't support authoring, just consumption of PowerView sheets.
Two mitigations that come to mind:
1. Download the copy (as Brad suggests), rename the file and upload.
2. Use the send to option of SharePoint online, give the file the right target document library (can be the same as source) and rename the file:
GALROY -
How to call WCF method from the SSRS 2008 ?
I am developing the SSRS report and wanted to consume the one method call of the WCF service. Suppose I have a service Url like http:\\localhost\2014\security.svc and
wanted to consumestring
Encrypt(string data) method from that service. Now I know how to use XML and Web service as the data source. I don't want
that what I want is to call the web service to get the some values encrypted on the report so I can use the expression to set the encrypted values for the some fields. In case of confusion feel free to leave a comment. Any help would be great .See this
Blog post.
Andy Tauber
Data Architect
The Vancouver Clinic
Website | LinkedIn
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and "Vote as Helpful" on posts that help you. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
Backing up macbook pro to time capsule for first time via ethernet
I set up a new 2T Time Capsule / Airport, let it run overnight, only about half way backed up. I deleted first backup file, and want to do the backup via ethernet. How do I do this?
-
Hi, I am new programmer and have been assigned the task of replacing an old system with a new one . The old system was done using Access 97 VBA. Both the backend(database) and the frontend ( in Access VBA). It is basically a database system which, re
-
Form - Perform and ABAP coding
Hi: I have a requirement to get vendor address from database and print on the form. I could print only one field only Name1, but not details like Street or country Etc are not getting printed. Even if we pass multiple variables as input and putput va
-
I Am Using iphone 5 black 16 gb with problem of battery expansion in a year.?
i Am Using iphone 5 black 16 gb with problem of battery expansion in a year.?
-
O365 federation for testing purposes
hello, could i set up federated trust from my on premisse infrastructure to o365 (using adfs and dyrsync and localy issuated certificate) just for testing purposes , and after test period i would just brake the trust. Could that have any circumstance