CL_GUI_CHART_ENGINE Graph As Email in Background
Hi All,
I am using CL_GUI_CHART_ENGINE class to display multiple graphs with custom container using splitter method ,when i am running it in foreground everything is fine i can print/save graphs seperatly.
If i use docking container to display CL_GUI_CHART_ENGINE will it run in background ?
My main problem is to send email with both graphs.
Is it possible to send email in background? if Yes please suggest a way.
As i have gone through many threads and i could'nt find the right way to do this.
Looking for some suggestions..
Thanks,
Pavan
Hi,
Have you consider using SVG ?
http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
Regards.
From here:
http://bost.ocks.org/mike/bar/2/
Code:
<!DOCTYPE html>
<style>
.chart rect {
fill: steelblue;
.chart text {
fill: white;
font: 10px sans-serif;
text-anchor: end;
</style>
<svg class="chart" width="420" height="120">
<g transform="translate(0,0)">
<rect width="40" height="19"></rect>
<text x="37" y="9.5" dy=".35em">4</text>
</g>
<g transform="translate(0,20)">
<rect width="80" height="19"></rect>
<text x="77" y="9.5" dy=".35em">8</text>
</g>
<g transform="translate(0,40)">
<rect width="150" height="19"></rect>
<text x="147" y="9.5" dy=".35em">15</text>
</g>
<g transform="translate(0,60)">
<rect width="160" height="19"></rect>
<text x="157" y="9.5" dy=".35em">16</text>
</g>
<g transform="translate(0,80)">
<rect width="230" height="19"></rect>
<text x="227" y="9.5" dy=".35em">23</text>
</g>
<g transform="translate(0,100)">
<rect width="420" height="19"></rect>
<text x="417" y="9.5" dy=".35em">42</text>
</g>
</svg>
Result:
Similar Messages
-
CUP: Email Reminder background job problem
Hi All,
I have been experiencing a problem in CUP for Email Reminder background job. The job is always in "BUSY" status. It is not in "Available" status as others! Can somebody help me on this?
Regards,
FaisalHi!
Don't worry Faisal,
We have the same problem, but with escalation job. The message was opened in the 19th of May this year, but it's still in process. At the begining consultants suggested us to upgrade our system with the latest SP, but it doesn't work. We are on the latest SP with all patches but the problem persists. Of cource, we met all requirements for job planning, and performance suggested by different SAP specialist - nothing is changed.
I think it would be better if you write the message directly to SAP hotline. You are not alone
Regards,
Artem -
When sharing an email the background like corkboard is not there- just black background shows. How do I fix this?
Check, if the backgrounds are installed correctly in the system library.
Compare with your other two apples
The corkboard pattern and other backgrounds should be found in
/Library/Application Support/iPhoto/Themes/Shared/Backgrounds/
/Library/Application Support/iPhoto/Themes/Assets/Email/
/Library/Application Support/iPhoto/Themes/Assets/Shared/Backgrounds/Cork/corktile.jpg
To quickly open these folders select the complete line above, ctrl-click it (or right-click) and select "Services" from the pop-up menu. Then select "Open".
Inspect the folder that opens and compare with your other mac, if all files are there and if the permissions are set correctly. Restore from your other mac, if necessary or reinstall iPhoto to restore.
If all folders are there and missing theme files are not the problem, post back.
Regards
Léonie -
SAP Mail: how to find program generating Email in background
Hi all specialists
We have a lot of programs generating Email in background.
Question: for a specific Email (found in sost) how is it possible to find the program Id that have issued the Email?
In SOST, i find only the logon Id.
I thank you for your help.Hi Jean-Claude, this is the SAP BusinessObjects Explorer forum so it's not the right place to post your question.
It's possible you are using SAP CRM?
try it here: SAP CRM: Webclient UI - Framework -
Convert spool to PDF and send Email in background
Hi Friends,
I would like to execute one of my programs in background.
Once I get the spool number of that program, I would like to convert into PDF format and send it as attachement to external mail address.Pl give your suggestions.
Regards
Elini.PHave also a look at the thread https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Re: Sending mail in PDF format in background
See also https://www.sdn.sap.com/sdn/collaboration.sdn?node=linkFnode6-1&contenttype=url&content=https://Sending by email attached documents
There is also this excellent weblog by Thomas Jung.
/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface -
ALV reports emailed in background job
Hi,
we have a background job that emails a report to some users. So far so good but the emailed result is a (not very nicely formated) txt file. Is there any way to specify the format of the output so that the report is emailed as a pdf or an html or and excel spreadsheet? Any would do.
Thanks in advance
Taniahi tania,
check this code mailing with XLS attachment.
report zxxx.
tables: ekko.
parameters: p_email type somlreci1-receiver
default '[email protected]'.
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'
'XLS'
'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 -
Abap report to send email in background
Hello,
This code works perfectly in foreground, but don't work in Background !!
DATA: out TYPE ole2_object,
outmail TYPE ole2_object.
CREATE OBJECT out 'Outlook.Application' .
CALL METHOD OF out 'CREATEITEM' = outmail
EXPORTING #1 = 0.
SET PROPERTY OF outmail 'TO' = '[email protected]'.
SET PROPERTY OF outmail 'SUBJECT' = 'Sending emails'.
SET PROPERTY OF outmail 'BODY' = 'this is how u do it using OLE'.
CALL METHOD OF outmail 'SEND'.
SET PROPERTY OF out 'Visible' = 1.
FREE OBJECT out.
Any Help...?OLE2 is microsoft interface and require a windows station/server to be executed, so not much usable in background.
So
Use tools like cl_bcs (use search tool to find many samples) to send mails
Configure link between SAP server and your mail server (e.g. Exchange) with transaction SCOT -> SAPconnect (BC-SRV-COM) - Administration - External Sending in the SAP System
Regards,
Raymond -
How to save ALV list and send listoutput as email in background process
Can anyone tell me if an ALV list report could be saved as LIST using 'LIST_TO_MEMORY' and then by using 'LIST_FROM_MEMORY' we need to read the list. If so How?
I don't want to use 'Submit....exporting list to memory and return' as then I have to trigger my program twice.
Finally with one program itself i want to get the listoutput and send the list output as an email to the customer in background.
I have gone through the forums and could see many of them facing the same problem, but could not find the solution in the forums.
Waiting for a reply
Santhoshiif you want to send mail with the same data as you display in ALV, you can use the same internal table,which you sent to ALV_LIST_DISPLAY function module.
take the email ids from the user on the selection-screen & use the below code to send mail to them.
call this FORM F_SEND_MAIL before you called the ALV function module.
FORM F_SEND_MAIL .
CLEAR WA_RECLIST.
REFRESH IT_RECLIST.
*-popualate email ids
*--Receipient 1
this receipient can be select-option from the selection screen. or can be hardcoded as below.
WA_RECLIST-RECEIVER = '[email protected]'.
WA_RECLIST-REC_TYPE = C_U.
WA_RECLIST-EXPRESS = C_X.
*--append receiver table
APPEND WA_RECLIST TO IT_RECLIST.
CLEAR : WA_RECLIST.
*--Receipient 2
WA_RECLIST-RECEIVER = '[email protected]'.
WA_RECLIST-REC_TYPE = C_U.
WA_RECLIST-EXPRESS = C_X.
*-append receiver table
APPEND WA_RECLIST TO IT_RECLIST.
CLEAR : WA_RECLIST.
*--populate document attributes
CLEAR: X_DOC_CHNG.
X_DOC_CHNG-OBJ_NAME = 'HEADING'.
CONCATENATE 'Japan BOL details for the delivery#'(003)
V_VBELN
INTO X_DOC_CHNG-OBJ_DESCR SEPARATED BY SPACE.
*-populate body text
CONCATENATE 'Japan BOL details for the Delivery#'(003)
CONCATENATE TEXT-003
V_VBELN
',is attached'
INTO WA_OBJTXT SEPARATED BY SPACE.
APPEND WA_OBJTXT TO IT_OBJTXT.
*---- Append Date and Time into Body of email.
MOVE 'File is generated on'(004) TO V_INFO.
V_TIME = SY-UZEIT.
WRITE : SY-UZEIT TO V_TIME USING EDIT MASK '__:__:__'.
CONCATENATE V_TIME+0(2)
V_TIME+2(2)
V_TIME+4(2)
INTO
V_TIME2 SEPARATED BY ':'.
WRITE : sy-datum MM/DD/YYYY TO lv_date .
CONCATENATE SY-DATUM+4(2)
SY-DATUM+6(2)
SY-DATUM+0(4)
INTO V_DATE.
CONCATENATE V_INFO
V_DATE
'At'
V_TIME2
INTO V_INFO
SEPARATED BY SPACE.
WA_OBJTXT = V_INFO.
APPEND WA_OBJTXT TO IT_OBJTXT.
*-document size
CLEAR : V_TABLE_LINES.
DESCRIBE TABLE IT_OBJTXT LINES V_TABLE_LINES.
READ TABLE IT_OBJTXT INTO WA_OBJTXT INDEX V_TABLE_LINES.
X_DOC_CHNG-DOC_SIZE =
( V_TABLE_LINES - 1 ) * 255 + STRLEN( WA_OBJTXT ).
*-populate packing list for body text
CLEAR IT_OBJPACK-TRANSF_BIN.
WA_OBJPACK-HEAD_START = 1.
WA_OBJPACK-HEAD_NUM = 0.
WA_OBJPACK-BODY_START = 1.
WA_OBJPACK-BODY_NUM = V_TABLE_LINES.
WA_OBJPACK-DOC_TYPE = 'RAW'.
APPEND WA_OBJPACK TO IT_OBJPACK.
CLEAR WA_OBJPACK.
*--for attachment
*--add Internal table lines here, as attachment.
*--IT_FINAL IS THE internal table which you used to display the result as ALV output
loop at IT_FINAL.
CONCATENATE IT_FINAL-FIELD1
IT_FINAL-FIELD2
*--AND SO ON
INTO WA_OBJBIN.
APPEND WA_OBJBIN TO IT_OBJBIN.
CLEAR WA_OBJBIN.
ENDLOOP.
*-get total no.of lines of Object table(attachment)
CLEAR : V_TABLE_LINES.
DESCRIBE TABLE IT_OBJBIN LINES V_TABLE_LINES.
*-populate object header
CONCATENATE 'Delivery#'(005)
V_VBELN
SY-DATUM
V_TIME
INTO
WA_OBJHEAD SEPARATED BY SPACE.
APPEND WA_OBJHEAD TO IT_OBJHEAD.
CLEAR WA_OBJHEAD.
*-packing list for attachment
WA_OBJPACK-TRANSF_BIN = C_X.
WA_OBJPACK-HEAD_START = 1.
WA_OBJPACK-HEAD_NUM = 1.
WA_OBJPACK-BODY_START = 1.
WA_OBJPACK-BODY_NUM = V_TABLE_LINES .
WA_OBJPACK-DOC_TYPE = 'CSV' .
WA_OBJPACK-DOC_TYPE = 'RAW' .
WA_OBJPACK-OBJ_NAME = 'POTR'.
CONCATENATE 'Delivery details for '(005)
CONCATENATE TEXT-005
V_VBELN
SY-DATUM
V_TIME
'.CSV'
INTO
WA_OBJPACK-OBJ_DESCR SEPARATED BY SPACE.
BREAK-POINT.
WA_OBJPACK-DOC_SIZE = V_TABLE_LINES * 255.
APPEND WA_OBJPACK TO IT_OBJPACK.
CLEAR WA_OBJPACK.
*-Sending the document
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = X_DOC_CHNG
PUT_IN_OUTBOX = C_X
COMMIT_WORK = C_X
TABLES
PACKING_LIST = IT_OBJPACK
OBJECT_HEADER = IT_OBJHEAD
CONTENTS_BIN = IT_OBJBIN
CONTENTS_TXT = IT_OBJTXT
RECEIVERS = IT_RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
DOCUMENT_TYPE_NOT_EXIST = 3
OPERATION_NO_AUTHORIZATION = 4
PARAMETER_ERROR = 5
X_ERROR = 6
ENQUEUE_ERROR = 7
OTHERS = 8.
IF SY-SUBRC <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " F_SEND_MAIL
Regards
srikanth
added comments
Message was edited by: Srikanth Kidambi -
HTML Emails and background images in Dreamweaver
Hello. I created a HTML email in Dreamweaver. The original design came out of Indesign and had very specific background art. I removed all the text out of the Indesign and created a jpg. I took this jpg in Photoship and sliced and optimized it. I imported this HTML into Dreamweaver. Here I need to add in all the text (which is variable). I was originally thinking that you can only place background images with CSS. But I was told that you should not use CSS for HTML emails. So instead I left all the background art as normal images inside of a table. At this point I need to add text over these images. They only way I could figure out to do it was to add a div tag right over the image and type into there. This seemed to work fine but when I tested it in some emails all the div tags with text showed up under the table with images. This needed to display over. What is the best way to handle this issue? Thank you in advance.
MelanieSorry, but you cannot layer text over images in emails. Simplify your design or make an image with text on it in Photoshop. Use absolute URLs to images on your web server. And give people who can't see graphics and HTML pages in their email client a link to the HTML page on your web server.
How to Code HTML Emails
http://www.sitepoint.com/article/code-html-email-newsletters/
Chart showing how various email clients handle CSS.
http://www.campaignmonitor.com/css/
Download some HTML Email Templates from the links below to get started.
Mail Chimp
http://www.mailchimp.com/resources/html_email_templates/
Constant Contact
http://www.constantcontact.com/email-marketing/html-email-templates/index.jsp
Nancy O.
Alt-Web Design & Publishing
Web | Graphics | Print | Media Specialists
www.alt-web.com/
www.twitter.com/altweb
www.alt-web.blogspot.com -
Printing graph plot only no background graph
Hi
I can able to print total graph ok.
But i want to print graph plot only no backgroung.
how can i do it.
Regards,
hariCheck the attached example (created in LabVIEW 9.0f3).
I am not allergic to Kudos, in fact I love Kudos.
Make your LabVIEW experience more CONVENIENT.
Attachments:
Example.vi 13 KB -
PLEASE Help with HTML code for email background image...
Hi there!
i have a background image that I want to pop into an html email widget for the email's background... here is the web link I created in Photoshop: file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/tileabl e-metal-textures-2.html
If anyone could please help me out that would be AWESOME! I've attached pics of the background & I'm using Infusionsoft email builder which allows for HTML widgets. I have a code that I use for my landing pages & webforms which works, tried that but no dice!
Any help would be much appreciated - I'm an html newbie!
Here is the code that I use for landing pages & works great, tried it for the email & it was a fail:
<style>
#mainContent .background, {
background: url('file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html') no-repeat center center fixed;
background-size: cover;
</style>
<script src="file:///C:/Users/Rachel/Desktop/iMuse%20Clients/LeadMachine360/Email%20Signatures/ti leable-metal-textures-2.html">
</script>
<script>
jQuery(document).ready(
function(){
jQuery(' table.bodyContainer').removeAttr('bgcolor');
</script>
thanks in advance!
MuseNot sure what you expect. Your URL is absolute and pointing to a local file resource. It's not a proper relative HTML link. Beyond that it's toatlly unclear how you actually plan to load your image and where they are hosted, so nobody can tell you anything. Either way, there is an obviously painful lack of understanding of even the most basic web techniques, so the best advise anyone would give you is to spend some time with a web search and actualyl learn some of that stuff...
Mylenium -
Auto email of vendor analysis to vendors
Dear All,
I have the requirement of development of vendor analysis report to be send to the concern vendors at the every end of the
month through background program.
Pl suggest is there any possibility of triggering e mail through background in standard SAP.
Regards,
AnilDear Gajesh,
Thank you very Much.......
we dont have SAP B/W and portals. Apart from this is it possible by any alternate way?
I am also trying through ABAP development, but before conclude to that i want to know the std SAP functionalities.
for triggering email in background which will send the MCVE report to the concern vendors.
If you have any idea apart from the one which u shared then pl suggest.
Thanks & Regards,
Anil -
Can Impersonalized form be attached to an email notification
Hi All,
I have a requirement where a filled in offline form should be sent (emailed) to a user.
I have created an Impersonalized form which triggers a process. I have mapped the Interactive form field to attachment field of the email (Send an email in background with attachment) callable object in the process.
When the form is submitted, I get an email with an attachment but it is an xml file.
Is there anyway to get the actual submitted Impersonalized form (PDF) as an attachment?
Version:
Adobe Live Cycle Desinger 8.0
Netweaver 2004s SP15
Thank you,
Vasuhi,
select the submit by email button in ur form
select the event : click language : javascript
and use the following code there
event.target.submitForm();
so wen u click the submit by email button the form will be sent to uraddres @ yyy .com as a pdf attachment
Regards
Jay -
Backgroung job and sending via email
Hi All
We have started sending reports via email by background processing of jobs. Back ground job was defined in SM36. By giving ABAP program name, variant, state date / time, periodic daily, spool to distribution list ( distribution list have list of emails to which report is to be send. All the reports are got correctly. But now there is a issue a second mail is received after some time for the same jobs with no content in the report. In SM36 i have checked duplication of job but found non
Can any body please explain why is it occurring
With Regards
ArunCheck TCode SCOT to see what is being sent.
Also see your ABAP/BASIS teams
PeteA -
Hi All,
My requirement is to convert the alv output to an excel and send it to email in background processing.
Am creating the headers through the field cat headings as the headings are dynamic.
And the item data through the output internal table of ALV.
My issue is always the second row's first column is taking spaces in the start because of this the data starts getting truncated.
Am using a tab delimter to seprate 2 fields and at the end of a row am using line breaker cl_abap_char_utilities=>cr_lf.
the below is how am filling the packing lists.
Fill Packing List For body
lw_packing_list-transf_bin = space.
lw_packing_list-head_start = 1.
lw_packing_list-head_num = 0.
lw_packing_list-body_start = 1.
DESCRIBE TABLE lt_message LINES lw_packing_list-body_num.
lw_packing_list-doc_type = 'RAW'.
APPEND lw_packing_list TO lt_packing_list.
clear lw_packing_list.
Fill the fields of the packing_list for creating the attachment:
lw_packing_list-transf_bin = lc_x.
lw_packing_list-head_start = 1.
lw_packing_list-head_num = 1.
lw_packing_list-body_start = 1.
DESCRIBE TABLE t_attach LINES lw_packing_list-body_num.
lw_packing_list-doc_type = lv_format.
lw_packing_list-obj_descr = lv_attdesc.
lw_packing_list-doc_size = lw_packing_list-body_num * 255.
APPEND lw_packing_list TO lt_packing_list.
Fill the mail recipient list
lw_reclist-rec_type = 'U'.
lw_reclist-com_type = 'INT'.
LOOP AT t_recipient_list INTO w_recipient_list.
lw_reclist-receiver = w_recipient_list-ZSMTP_ADR.
APPEND lw_reclist TO lt_reclist.
ENDLOOP.
I have surfed the google and SDN but could not find any solution to my problem Please help guys..Hi,
go to se38-->enter program name BCS_EXAMPLE_7
and see the sample code to send XLS attachment...
in this program it shows how to send the internal table or ALV report data into excel mail attachment
Prabhudas
Maybe you are looking for
-
Some keys are not working on my laptop
Hello, i am new here and this is my first question. I bought HP Laptop G4-1200TX from a local dealer 2 years ago. It worked fine till last year when i ,manually, upgrade its window from win7 home basic to win7 premuim and then to win7 ultimate. Afte
-
Multiselect values in "current values" on form load
Hi, I have a multi select field for 30 roles in the form. Now, i want 28 roles to appear on the right hand side (current Roles) on form load and the rest 2 to appear under available Roles. How can i do this? Please let me know. Thanks,
-
Identify if a particular user is authenticated locally in Apps 11i/R12
Hi, How to identify if a particular user is authenticated locally in Apps 11i/R12 or against OID? I think FND_USER TABLE. Thanks
-
what are the business process in plant maintenance. what are oraganisational level inside sap-pm.
-
Installation of IAS 10.1.3 on window server.
Dear All, I am trying to install IAS 10.1.3 on window server 2008 . But when I run the setup it give the error " The version of this file is not compatible with the version of window you are running" Is it possible to install IAS 10.1.3 on window ser