Problems Emailing a report via SSRS
Hi all,
I have a problem where I am unsing SQL Server Reporting Services (SSRS) to generate an email report
however the display format when using a SSRS table looks to replace a column entry with a carriage return
and also is not using all the screen realestate - it has a large spaced area on the right. I have even tried concatinating the field into 1 field
and displaying only 1 field on the report but in this can it only using half the screen and the space on the right is still the same...
can anyone shread some insight on where I could look next.
Thanks
Hi all,
I have a problem where I am unsing SQL Server Reporting Services (SSRS) to generate an email report
however the display format when using a SSRS table looks to replace a column entry with a carriage return
and also is not using all the screen realestate - it has a large spaced area on the right. I have even tried concatinating the field into 1 field
and displaying only 1 field on the report but in this can it only using half the screen and the space on the right is still the same...
can anyone shread some insight on where I could look next.
Thanks
Similar Messages
-
Use a dynamic list of email addresses to email a report via Business Objects Server 11
Post Author: wolfgang666
CA Forum: General
I use Business Objects Server version 11 to distribute reports via email but was asked if there was a way to only send the reports to those people listed in the report (which changes daily) instead of the entire distribution list. I can create a list of email addresses as a variable within the report but can't find any way to pass it to the Business Objects server "To:" field located in the destination screen. I would expect to see some option for sending to some value located in the report but alas no such option is evident. This seems like a feature the product should be capable of doing as it is so basic. Any other way to do this that anybody can think of? Any help is greatly appreciated. Thanks.
Matt FrazierHi Alan,
The simplest thing would be to simply use the Import Wizard to create a BIAR file and then back up the required CR's and instances to the BIAR file. So for instance you would use the "Import Folders and Objects" option. So the source system would be the system you are decomissioning and the Destination would be the BIAR file. Once that is done you can use the BIAR file to import the report content into another system in the future.
<<Text removed>>
Kind regards,
John
Edited by: Matt on Oct 10, 2011 10:20 AM -
Problem about showing report via Portal after modifying BWReports.css
Hi folks,
I use BEx 3.X.
I wanna make title of table column to be shown in the center of table cell.
So, I modify class SAPBEXstdItem in BWReports.css, and I changed text-align of SAPBEXstdItem into 'center'.
I run the report via Web Application Designer (SAP BW 3.x).
the title is located in the center of table cell.
However, I run the report via Portal, the title is still located on the left of table cell.
I don't know why.
Could you help me to solve the issue?
Thanks in advance.I can't find wad link here.
Do you mean BEx Web Application Query String?
My BEx Web Application Query String is sap-language=<Request.Language>&bsplanguage=EN&cmd=ldoc&TEMPLATE_ID=ZXJP_C04_WT0110
Edited by: Xiaodong Ji on Nov 14, 2008 4:53 AM -
Running OP Manager reports via SSRS
I am trying to run reports from SQL Server Reporting Services (SSRS), Can you please advise what values I put in the text boxes. I had put in the values as below and got an error
"The value provided for the report parameter
'EndDate_OffsetValue' is not valid for its type"
Start Date Base = Sunday
Start Date Offset Type = Week
Start Date Offset = -1
End date Base = Saturday
End Date Offset Type = Week
End date Offset = -1
Time Zone = GMT +2
Week Days = Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday
I have not been given access to the OP Manager console hence I cant run the report from there.
Please advise.Hi,
Would you please try another value such as "1","0", and check the result.
In addition, this issue is really SQL related, please also post on the SQL forum.
Regards, Yan Li -
Best approach for batch mode generation of large report via SSRS
I have revised this question now that I've determined that we *will* be using the Enterprise edition of SQL Server 2012.
I have a report (that I will deploy to an SSRS 2012 server) which can vary greatly in size. When the report is expected to be small (which we can determine ahead of time by means that are not relevant to this post), it will be rendered by a .NET 4.5 web
application using a ReportViewer control (in remote mode).
When the report will be large, we want the web app to "trigger" the report server to generate the report and deposit it as a PDF file or Excel file in a folder on a file share, and then send an e-mail notification to a configured user. Because
the reports can be very large, I would prefer not to stream them to the web app and from there to the file share. We have experienced browser timeouts in the past, and so I would prefer to have the SSRS server deposit the generated report directly to the file
share.
About 8 parameters have to be passed to the stored procedure which serves as the report’s data source.
The database where the stored procedure resides will soon be upgraded to SQL Server 2012.
I am fairly new to reporting services and wanted to ask what approach would be best suited for accomplishing the above-stated goals.
From what I've read so far, I know that one possible approach would be to use data-driven subscriptions but the question then becomes: after inserting report parameters into the subscription table, how does my web app trigger report generation?
Also, I want to deposit the report in a file share and send an e-mail notification to the user. Do I have to create two subscriptions? There is a configuration option when setting up e-mail notification to embed a hyperlink in the e-mail rather than actually
include the report in the message. If I select this option, do I give up the ability to specify the destination folder?@JoeSchmoe115: Thanks for your suggestion. Using a web service or WCF service would still mean dealing with potential timeouts for very large reports (granted you can adjust those timeouts).
I think an approach using a console app could work, but rather than having the web app spawn it, an alternative would be to do the following: (1) have the web app insert report generation requests (including all necessary report parameters) into
a database table, and (2) have a console app, periodically invoked by Windows Task Scheduler, which reads that database table and then uses the SSRS API as you describe to generate the report, save the byte stream to a file, and finally send
the e-mail notification to the user.
mkedwards
What you've described will work but saving report generation requests in separate table may not be necessary. I don't have much experience with web services but can they just spawn C# console app with needed parameters and exit without waiting for console
app to complete?
The positive side of using database to store report generation requests is that you would have complete log of all requests. Your console app can then update database with completion status. -
Render and Email SSRS reports via SOAP/Web Services
Hi all
Running SQL Server 2008 R2 RTM and wondering if the ReportExecution2005.asmx web service can be used to render AND email a report all within the web service (ie. Not wanting to render the report and then having to email it manually). Since RS has the capability
to email via report manager schedule, wondering if this can be achieved programmatically.
GeorgeHi George,
In Reporting Services, it supports us to use ReportExecution2005 web service to render a report as MHTML or other formats. And we can use ReportingService2010 web service to subscribe and delivery report. The Reporting Services Execution
Web service allows developers to programmatically process and render reports from a report server.
The ReportingService2010 Web service allows developers to programmatically create a subscription in the report server database.
To process a specific report and render it in the specified format, we can use the “Render” method in the ReportExecutionService. To create a subscription, we can use “CreateSubscription” method in ReportingService2010.
References:
Report Server Web Service Methods
ReportingService2010.CreateSubscription Method
ReportExecutionService.Render Method
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
JAN 4, 2012
As of the Upgrade to Lion,. 2007 I-Mac - the Email portion, .. DOES NOT allow a Video Clips to be sent via the Email
as the I-Photo is not supported by Video Clips ( Previous Leopard )
No problem clip and drag via Quick Time Pro to the email and select the Attchment size to send. . Depending on the
Size of the Video Clip .. Now Lion only Export's 1 size, . only and as a result . . teh File is TOO Large and
Will NOT send via E-Mail ???
Between the Issue of the Lion, and Email issues , and the Upgrade of I-Touch to 5.1 from 4.2.1
as my Photo Size is Huge .. 70,000 + photos in the Computer. . and was 40,000 in the I - Touch .. .
The New I-Touch too will not Load the same as Previously used on either my 16 GB or 32 GB Unit . .
No Help . .. so far, .. as a Apple user since 1996 .. I have Never experieanced such frustration ???
( any one have some help if similar experiances ? thank you )JAN 4, 2012
As of the Upgrade to Lion,. 2007 I-Mac - the Email portion, .. DOES NOT allow a Video Clips to be sent via the Email
as the I-Photo is not supported by Video Clips ( Previous Leopard )
No problem clip and drag via Quick Time Pro to the email and select the Attchment size to send. . Depending on the
Size of the Video Clip .. Now Lion only Export's 1 size, . only and as a result . . teh File is TOO Large and
Will NOT send via E-Mail ???
Between the Issue of the Lion, and Email issues , and the Upgrade of I-Touch to 5.1 from 4.2.1
as my Photo Size is Huge .. 70,000 + photos in the Computer. . and was 40,000 in the I - Touch .. .
The New I-Touch too will not Load the same as Previously used on either my 16 GB or 32 GB Unit . .
No Help . .. so far, .. as a Apple user since 1996 .. I have Never experieanced such frustration ???
( any one have some help if similar experiances ? thank you ) -
How to email reports via SMTP server FORMS AND REPORTS 6i and databse 8i
Dear All,
through reports builder reports are build but i need to email reports via SMTP server is it possible in 6i are not?if yes the how please rep asapIf it will be a scheduled report, you can create a batch file to run report with reqd parameters and generate it's pdf in a oracle directory.
Then schedule the batch file on oracle database pc, (thru task scheduler if OS is windows),
Then a email procedure will be required which will pick up the pdf from oracle directory, attach it and send mail.
Even the email procedure can be scheduled thru oracle job, but the OS batch schedule time and Oracle Job time should be handled as some gap will be needed between the two.
As for the email smtp procedure with attachments, you can find one in this forum or try googling it.
Regards,
Amol -
Problem with complete task via email
Hello,
I have problem with complete task via email. I found this blog very useful (http://blogs.adobe.com/ADEP/2010/11/how-to-complete-a-task-via-email-using-reply-to-comple te.html), but...
I set up everything as it’s written in blog mentioned above. When a task is assigned to me, I received an email notification with actions (accept, deny). After that I replied with action “accept”. Then I received email with subject “Errors from LiveCycle ES”:
LiveCycle ES has tried to process your request and encountered the following error:
com.adobe.pof.POFRuntimeException: Transaction is not active: tx=TransactionImple ; – nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple )
This response to your original email
Subject:RE:Task Assignment – Process: Test/Email_Test. Task 76 has been assigned to you.
Date Sent:Thursday, October 24, 2011 1:17 PM
Body:accept
DO-NOT-DELETE: MTMhMzE0ITMyOA==!
Attachments:
In log appeared this following error:
Caused by: ALC-DSC-215-000: com.adobe.idp.dsc.DSCRuntimeException: None of the Auth Provider could authenticate the user. Authentication Failed
at com.adobe.livecycle.notification.TaskNotificationServiceImpl.processEmailComplete(TaskNot ificationServiceImpl.java:1157)
Can you me please? I have no idea what to do to succesfully complete task via email endpoint. Thanks
Jan PetrlaHi Diana, thanks for your reply.
You're probably right about 2 different error messages.
To the 1st one: I'm sure that status task is Assigned (to me). I received an email and I also reply on that email.
To error log: I found out that error log appears when I enable email endpoint on Complete Task service. But I managed to solve this problem. I set wrong user. Now I have here the same user as is written in login-config.xml so log seems to be ok.
So I created new task and tried to complete it via email. Now I receive email with another error:
LiveCycle ES has tried to process your request and encountered the following error:
com.adobe.idp.dsc.provider.service.email.impl.EmailProviderException: Error getting user context
This response to your original email
Subject:RE:Task Assignment - Process: WorkFlowClient/Test. Task 92 has been assigned to you.
Date Sent:Thursday, October 27, 2011 3:05 PM
Body:Complete
DO-NOT-DELETE: MTIxMSExNjAzITIwMTE=!
Attachments:
And to the last point: email endpoint is set up with TestPOP3@mydomain and user receiving email has jpetrla@mydomain. I use Lotus Notes as email client, I tried another account with gmail, but the result was same.
Now I really don't know to do...
Jan -
Problem in Sending email from Reports Queue Manager
Hi
I am getting problem in sending email from reports queue manager.
It says that error in logging to mail server.
If any body knows the sol then pl help me out.
thanksHi
I am getting problem in sending email from reports queue manager.
It says that error in logging to mail server.
If any body knows the sol then pl help me out.
thanks -
Send report Via Email in HTML format
hi,
i am using forms 6.0
I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
Waiting 4 ur reply.
Thanx in advance.
Zahid Raj.Zahid,
reports6i sends mails where the Report itself is attached as a file in the format you specified. The support for sending a report as part of the HTML mail body is provided in Reports9i.
Frank -
hi,
i am using forms 6.0
I want to send my report Via Email to an email address in HTML Farmat.i want to set destination property at run time retriving from database. (mean without giving any runtime parameter manually)Plz tell me how i can do that i am working in windows environment.
Waiting 4 ur reply.
Thanx in advance.
Zahid Raj.Hi Zahid
From Forms 6.0, you need to call Reports using standard SRW.Run_Product call. Please refer to the product document for other SRw calls which can be used for Forms/Reports integration. In this SRW call, you need to sent the runtime argument to Reports. In your case, write a pl/sql code which would set the destype=mail, desformat=html and desname set to the email address for reciever which you would be fetching from DB in Forms application. And then send these arguments in the SRW call to run the Reports.
Thanks
Rohit
Thanks
Rohit -
Need to send my ALV report via Email.
hi
I have this ALV report. I know I can go up to the toolbar and email the report manually to the user. But I am looking for a code to do that automatically. meaning When I run the report in the selection screen i will provide the email address and the report after its ran it should also email that (when its done manually it sends the attachment as an PDF, which i have no problem with) report as PDF.
Please help me with the code i need to use..
I tried with the following but the program crashes
CALL FUNCTION 'RFC_MAIL' DESTINATION 'LOCAL_EXEC'
EXPORTING USER = '[email protected]'
TABLES MAIL = REC.You can output the report to a spool and then convert the spool to PDF using standard FM <b>CONVERT_ABAPSPOOLJOB_2_PDF</b>. Then use FM <b>SO_DOCUMENT_SEND_API1</b> to attach the pdf data in an outgoing email.
Here is the sample codes:
*& Report ZEMAILPDF *
*& Converts spool request into PDF document and emails it to *
*& recipicant. *
*& Execution *
*& This program can be run in background or online and a spool request *
*& will still be created *
REPORT zemailpdf.
PARAMETER: p_email1 LIKE somlreci1-receiver
DEFAULT '[email protected]',
p_sender LIKE somlreci1-receiver
DEFAULT ''[email protected]'',
p_delspl AS CHECKBOX,
p_online no-display.
*DATA DECLARATION
DATA: gd_recsize TYPE i.
* Spool IDs
TYPES: BEGIN OF t_tbtcp.
INCLUDE STRUCTURE tbtcp.
TYPES: END OF t_tbtcp.
DATA: it_tbtcp TYPE STANDARD TABLE OF t_tbtcp INITIAL SIZE 0,
wa_tbtcp TYPE t_tbtcp.
* Job Runtime Parameters
DATA: gd_eventid LIKE tbtcm-eventid,
gd_eventparm LIKE tbtcm-eventparm,
gd_external_program_active LIKE tbtcm-xpgactive,
gd_jobcount LIKE tbtcm-jobcount,
gd_jobname LIKE tbtcm-jobname,
gd_stepcount LIKE tbtcm-stepcount,
gd_error TYPE sy-subrc,
gd_reciever TYPE sy-subrc.
DATA: w_recsize TYPE i,
w_spool_nr like sy-spono.
* %_print LIKE pri_params.
DATA: gd_subject LIKE sodocchgi1-obj_descr,
it_mess_bod LIKE solisti1 OCCURS 0 WITH HEADER LINE,
it_mess_att LIKE solisti1 OCCURS 0 WITH HEADER LINE,
gd_sender_type LIKE soextreci1-adr_typ,
gd_attachment_desc TYPE so_obj_nam,
gd_attachment_name TYPE so_obj_des.
* Spool to PDF conversions
DATA: gd_spool_nr LIKE tsp01-rqident,
gd_destination LIKE rlgrap-filename,
gd_bytecount LIKE tst01-dsize,
gd_buffer TYPE string.
* Binary store for PDF
DATA: BEGIN OF it_pdf_output OCCURS 0.
INCLUDE STRUCTURE tline.
DATA: END OF it_pdf_output.
CONSTANTS: c_dev LIKE sy-sysid VALUE 'DEV',
c_no(1) TYPE c VALUE ' ',
c_device(4) TYPE c VALUE 'LOCL'.
*START-OF-SELECTION.
START-OF-SELECTION.
* Write statement to represent report output. Spool request is created
* if write statement is executed in background. This could also be an
* ALV grid which would be converted to PDF without any extra effort
WRITE 'Hello World'.
new-page.
commit work.
new-page print off.
If p_online = 'X'.
* Processing performed when program calls itself when run online
gd_spool_nr = sy-spono.
EXPORT gd_spool_nr TO MEMORY ID 'SPOOLTOPDF'.
EXIT.
endif.
IF sy-batch EQ 'X'.
PERFORM get_job_details.
PERFORM obtain_spool_id.
ELSE.
gd_spool_nr = sy-spono.
* If executed online, it submits a program to perform the write statements
* instructing it to create a spool request, this could be another program
* which just performs the write statements and then exports sy-spono
* to memory. But in this example it calls itself passing X to parameter
* p_online, which takes it down an alternative procesing path.
submit ZSPOOLTOPDF2
with p_online = 'X'
to sap-spool
spool parameters %_print
* archive parameters %_print
without spool dynpro
and return.
ENDIF.
* Get spool id from program called above
IMPORT gd_spool_nr FROM MEMORY ID 'SPOOLTOPDF'.
PERFORM convert_spool_to_pdf.
PERFORM process_email.
if p_delspl EQ 'X'.
PERFORM delete_spool.
endif.
IF sy-sysid = c_dev.
wait up to 5 seconds.
SUBMIT rsconn01 WITH mode = 'INT'
WITH output = 'X'
AND RETURN.
ENDIF.
* FORM obtain_spool_id *
FORM obtain_spool_id.
CHECK NOT ( gd_jobname IS INITIAL ).
CHECK NOT ( gd_jobcount IS INITIAL ).
SELECT * FROM tbtcp
INTO TABLE it_tbtcp
WHERE jobname = gd_jobname
AND jobcount = gd_jobcount
AND stepcount = gd_stepcount
AND listident <> '0000000000'
ORDER BY jobname
jobcount
stepcount.
READ TABLE it_tbtcp INTO wa_tbtcp INDEX 1.
IF sy-subrc = 0.
message s004(zdd) with gd_spool_nr.
gd_spool_nr = wa_tbtcp-listident.
MESSAGE s004(zdd) WITH gd_spool_nr.
ELSE.
MESSAGE s005(zdd).
ENDIF.
ENDFORM.
* FORM get_job_details *
FORM get_job_details.
* Get current job details
CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
IMPORTING
eventid = gd_eventid
eventparm = gd_eventparm
external_program_active = gd_external_program_active
jobcount = gd_jobcount
jobname = gd_jobname
stepcount = gd_stepcount
EXCEPTIONS
no_runtime_info = 1
OTHERS = 2.
ENDFORM.
* FORM convert_spool_to_pdf *
FORM convert_spool_to_pdf.
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
src_spoolid = gd_spool_nr
no_dialog = c_no
dst_device = c_device
IMPORTING
pdf_bytecount = gd_bytecount
TABLES
pdf = it_pdf_output
EXCEPTIONS
err_no_abap_spooljob = 1
err_no_spooljob = 2
err_no_permission = 3
err_conv_not_possible = 4
err_bad_destdevice = 5
user_cancelled = 6
err_spoolerror = 7
err_temseerror = 8
err_btcjob_open_failed = 9
err_btcjob_submit_failed = 10
err_btcjob_close_failed = 11
OTHERS = 12.
CHECK sy-subrc = 0.
* Transfer the 132-long strings to 255-long strings
LOOP AT it_pdf_output.
TRANSLATE it_pdf_output USING ' ~'.
CONCATENATE gd_buffer it_pdf_output INTO gd_buffer.
ENDLOOP.
TRANSLATE gd_buffer USING '~ '.
DO.
it_mess_att = gd_buffer.
APPEND it_mess_att.
SHIFT gd_buffer LEFT BY 255 PLACES.
IF gd_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
ENDFORM.
* FORM process_email *
FORM process_email.
DESCRIBE TABLE it_mess_att LINES gd_recsize.
CHECK gd_recsize > 0.
PERFORM send_email USING p_email1.
* perform send_email using p_email2.
ENDFORM.
* FORM send_email *
* --> p_email *
FORM send_email USING p_email.
CHECK NOT ( p_email IS INITIAL ).
REFRESH it_mess_bod.
* Default subject matter
gd_subject = 'Subject'.
gd_attachment_desc = 'Attachname'.
* CONCATENATE 'attach_name' ' ' INTO gd_attachment_name.
it_mess_bod = 'Message Body text, line 1'.
APPEND it_mess_bod.
it_mess_bod = 'Message Body text, line 2...'.
APPEND it_mess_bod.
* If no sender specified - default blank
IF p_sender EQ space.
gd_sender_type = space.
ELSE.
gd_sender_type = 'INT'.
ENDIF.
* Send file by email as .xls speadsheet
PERFORM send_file_as_email_attachment
tables it_mess_bod
it_mess_att
using p_email
'Example .xls documnet attachment'
'PDF'
gd_attachment_name
gd_attachment_desc
p_sender
gd_sender_type
changing gd_error
gd_reciever.
ENDFORM.
* FORM delete_spool *
FORM delete_spool.
DATA: ld_spool_nr TYPE tsp01_sp0r-rqid_char.
ld_spool_nr = gd_spool_nr.
CHECK p_delspl <> c_no.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
spoolid = ld_spool_nr.
ENDFORM.
*& Form SEND_FILE_AS_EMAIL_ATTACHMENT
* Send email
FORM send_file_as_email_attachment tables it_message
it_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.
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.
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[] = it_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.
<i><b>**** Points are always welcome ****</b></i> -
Alternative to posting problem reports via OSS?
Sometimes I find problems with SAP software, like the RFC library, that I'd like to be able to report, however I'm not always in a position to do so, as I may not be working at a client site at the time (and it would not be appropriate to log the problem under their installation).
What is needed, IMO, is a way to log these problems without the formality surrounding OSS and SAPnet. I imagine this would be important too for those coming into SAP for the first time from the Java side.
Perhaps the easiest way would be to mark a forum posting as a problem report, similar to the way it can be marked as a question. This would then allow for highlighting to forum members from SAP who could decide whether the problem warranted escalation.
Cheers,
ScottHi Scott,
i agree. There should be a possibility to create a linkage between OSS notes and SDN postings in some cases, because (besides or in addition what you've already said):
1. Problems which are reported to OSS might already have been resolved in SDN and vice versa. A common knowledge repository would be very helpful for both parties, i guess. In my opinion it's easier (and cheaper) to <b>verify</b> a possible solution published already in SDN than finding/creating a new one for OSS.
2. IMHO it's probable that a steadily increasing number of "productive versions users" of arbitrary SAP software components will start to post problems and possible bugs at the SDN forums in the near future. It's absolutely ok to redirect them to the OSS, since this is the official place to report and handle such issues.
But it should be possible for example to add a link referring the "SDN problem thread" to the customer message(s). The support team could then post the SAP notes number as a reply to the thread as soon as a solution is available. Otherwise, if people aren't gentle enough to return to the forums and publish the problem solution, it's not easy to find the official answer, since nobody knows how to search for the corresponding note to get reliable search results. If the problem description of the note doesn't repeat parts of the question text in SDN, you are lost.
3. Resulting from 2., more and more "information leaks" will arise in the SDN forums. But i dare to argue that people will return asking the same question(s) over and over again, if there's enough interest, until "somebody" is lucky enough to find the solution in the OSS and post the notes number. Why not "automate" this?
Just to clarify:
I do <b>not</b> want to have the OSS team bypassed, this is definitely wrong from my point of view.
Cheers,
Stefan -
Error to send a report via mail with BI Publisher
Hello,
I am working with BIP 10.1.3.4 over Windows Server 2003 Standard Edition, and I would like to send a report via mail.
I added one Email server navigation via Admin>Delivery Configuration > Email with the server name and host.
Then Send report via Email, got error.
oracle.apps.xdo.service.delivery.DeliveryException: oracle.apps.xdo.delivery.DeliveryException: smtp
at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:228)
at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1190)
at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:478)
at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
Caused by: oracle.apps.xdo.delivery.DeliveryException: smtp
at oracle.apps.xdo.delivery.smtp.SMTPDeliveryRequestHandler.submitRequest(Unknown Source)
at oracle.apps.xdo.delivery.AbstractDeliveryRequest.submit(Unknown Source)
at oracle.apps.xdo.service.delivery.impl.DeliveryServiceImpl.deliverToEmail(DeliveryServiceImpl.java:222)
... 4 more
Caused by: javax.mail.NoSuchProviderException: smtp
at javax.mail.Session.getService(Session.java:764)
at javax.mail.Session.getTransport(Session.java:689)
at javax.mail.Session.getTransport(Session.java:632)
at javax.mail.Session.getTransport(Session.java:612)
... 7 more
I have followed this SR, and I applied the solution, but it isn't solved the issue (ID: 1072742.1)
https://support.oracle.com/CSP/ui/flash.html#tab=KBHome%28page=KBHome&id=%28%29%29,%28page=KBNavigator&id=%28from=BOOKMARK&viewingMode=1143&bmDocTitle=BI%20Publisher%20With%20JDE%20Fails%20To%20Send%20Email,%20Error:%20javax.mail.NoSuchProviderException:&bmDocID=1072742.1&bmDocType=PROBLEM&bmDocDsrc=KB%29%29
Regards,
Mónica.Hi Christian.
You could put the lines of your list in a table of type SOLISTI1 and then use the function module SO_NEW_DOCUMENT_SEND_API1 to send the content of this table. You have to fill the table RECEIVERS with the address you want to send the report to.
Hope that helps,
Timo.
Maybe you are looking for
-
How to print directly from Windows7 desktop on Officejet 5745 without emailing the printer
Successfully installed HP 5745 and set up eprint on Dell Ispiron 3847 running Windows 7 Professional. How do you print a document or email on desktop directly from the printer without emailing it to the printer's email? Prior Windows XP printing by
-
Will reinstalling itumes delet all my music?!?
My sister went through our computer last week and deleted some of her own files off of our computer because she was leaving for college and got a new laptop. when i try to open itunes it says "Itunes cannot run because some of its required files are
-
Adobe Flash Player. I keep getting " An ActionScript error has occurred: TypeERror: Error#1009: Cannot access a property or method of a null object reference. at ramp_usa_fla:: Main Timeline/frame 1 [ ] " I've downloaded Adobe FlashP
-
Indesign export pdf used preset include comment
Is there a way including the summary of the used preset as comment within the exported pdf? Within Acrobat Distiller you have an option called "save adobe pdf settings inside pdf file", is there also such an option available in Indesign? As a receive
-
Hi, Can anybody please give a list of all services which must be up, and the order of starting them, needed for PORTAL. I have tried different services but i cannot find the good combination. Regards, Joshua