Mail sent thru background job doesnt have all pages in attachment
Hi Experts,
We developed a program where the output is triggered by calling a smart form. We schedule a background job and we updated the mail address in Spool list recipent. After succesfull execution of job we checked the spool it is around 30 pages but the attachement in the mail has only 3 pages. we are not sure where the exact problem is. Can any one help us in this regard so that we can able to check and fix this issue. Thanks.
Hi
To check whether mail is generated you can create dynamic break-point with SAAB transaction.
Using this transaction you create a memory area for your jobs where you can load any data value of your report..
Probably something goes wrong with COMMIT of Mail Function module system.
Hope to help..
Similar Messages
-
Trigger mail for cancelled background jobs scheduled using SM37
Dear Experts,
My requirement is to trigger email whenever a job gets cancelled in background.
For this I have already tried creating a workflow using BO BPJOB for event ABORTED.
But for some reason the event is never getting triggered.
I tested executing the workflow from tcode SWDD, it was running successfully, which means that there is no issue with my workflow.
Now I want to resolve the above issue OR
I want to raise the event manually from the program through some BADI or Exit.
But I didn't find any BADI or Exit for tcode SM37. Can anybody let me know if any.Hi,
Please refer the below links.
Workflow- Background job fail
Re: Send mail when job fails
Regards
GK.
Moderator message: please do not post just links without any further explanations.
Edited by: Thomas Zloch on Sep 20, 2010 11:53 AM -
The lotus mail about the Background Job status
Hi ,
I have a requirement where SAP users want the status of the background job in their lotus mail.The problem is job takes run for more than 15-20 hours and some times gets failed too.Whichever is the status , they want the update. The job is run daily in the night.So can not be done in the same program. Writng different program to check and send the mail can be an option.
But My question would be
1.Is there SAP standard funtionality /progarm to send the job log (not the spool) in the mail?
Thanks in advance.Hi,
You can run another job in background which can monitor this original program. I would die and schedule itself in an hour for next status. the logic goes this way.
1) The original Z program call the Z job monitor prog with jobname.
2) The Z job monitor prog checks the status of job and will send a status mail on finished or cancelled.
3) if the job is still active, the z job monitor prog will schedule itself for after an hour to check the status again.
thus steps 2 & 3 would be in loop till the original z prog finishes or gets cancelled.
Regards,
Nirmal -
Reg: Error in Mail sending through background job in SCOT
Hello experts,
I am trying to schedule a background job through SCOT so as to send the mails present in SOST.
The job is running but it is giving error as "Invalid status for recipient" in SOST.
But when I am sending it directly from SOST it is delivered without any errors. The email address is maintained correctly and SMTP settings are also correct as while sending it directly from SOST it reaches the required recipient without any error.
This error is observed only through background job. I am using program RSCONN01 with variant SAP&CONNECTINT in background job.
Kindly suggest why I am getting the error "Invalid status for recipient" in background job.
Thanks & Regards
Meraz
+91 8894522860I am getting the exact same issue.
were you able to fix this in the last 3 weeks?
thanks. -
Mail configuration and background job scheduling for ST22 Data
Experts,
I want to know how can i schedule a background job in SAP to extract data from ST22 and send a automated mail for the same?
Any help will be appreciated, Thanks!!!
Regards,
Vinit PagariaYou don't need to do that, simply configure CCMS (RZ20) to send you an alert via mail when a dump occurs.
Read,
http://help.sap.com/saphelp_nw04/helpdata/EN/90/4e313f8815d036e10000000a114084/frameset.htm
Regards
Juan -
my old computer crashed a while ago, before i was able to transfer my music to my new mac.....i have all the music on my ipod but im worried that ill lose all my music when i sync it with the itunes and new music. i know the purchased items will get transferred but im worried about losing all the other music?
Follwo these instructions to not lose anything
Syncing to a "New" Computer or replacing a "crashed" Hard Drive: Apple Support Communities -
We have reports that are generated using Sql Server Reporting Services 2008 R2 and are distributed to users by email as a PDF attachment. This worked fine in iOS 7 but ever since users have updated to iOS 8 the single page PDF is missing even though it has the paper clip icon indicating there is an attachment with the email. If the PDF is multiple pages then the PDF icon would appear but there seems to be a problem with the single page pdf that is embedded on the mail app in iOS 8.
We've recreated this issue creating a test report and sent it to iPads that have iOS 7, iOS 8 using different models of iPads (2, 3, 4) and the ones that have iOS 7 work fine. Only the ones that have iOS 8 have this issue. Also tried changing the format of the file to a PNG, TIFF and again the same results on the iPads with iOS 7 display it correctly. Another test we did was send the PDF to our personal email and open it on our home iPads we were not able to see the single page PDF on iOS 8. Looking at the headers of the email I can see the that the Content-Type is multipart/mixed. When the original is forwarded to oneself on the iPad the attachment is included but the Content-Type is application/ms-tnef.Can you check your email headers, I have also noticed this for reports that are generated using Sql Server Reporting Services 2008 R2. It could to be due to the Content-ID header I believe.
As a single page attachment on iPad will try and display inline, the Content_ID header is possibly affecting this and showing a small blank square as the image instead. Although this isn't defined as inline within the Content-Disposition header and will appear as an attachment on Outlook. -
Mail not being sent for background job spool
Hello All,
I have created a back ground job by adding a mail id in the spool receipient list. The job has finished successfully and spool is created but the mail has not been sent I have checked SOST transaction and no mail has been sent to this mail id.
This is only happening for some jobs other jobs are able to successfully send the spool as mails to the mail id's mentioned in spool receipient list.
I would like to know why this is happening only for some jobs and how can I check the whether mail has been generated or not.
Your replies will be greatly appreciated.
Thankyou,
RanjanHi
To check whether mail is generated you can create dynamic break-point with SAAB transaction.
Using this transaction you create a memory area for your jobs where you can load any data value of your report..
Probably something goes wrong with COMMIT of Mail Function module system.
Hope to help.. -
Subject in the mail sent through Batch Job
Hi,
We have a batch job which is running daily.
Consumer wants the output of the batch job (spool request) in mail. We generally send the mail from batch job by filling the mail id in "Title field".. there is some third party involved in managing spool requests..
But now consumer wants to send the mail with a subject line filled..
I could not find any field or option in SM36 where i can fill in the subject..
Please help. Now we are getting the subject as user id + spool request + system number.Check the below Code.
DATA: NUMBYTES TYPE TST01-DSIZE,
PDFSPOOLID TYPE TSP01-RQIDENT.
DATA: BEGIN OF PDFDATA OCCURS 0.
INCLUDE STRUCTURE TLINE.
DATA: END OF PDFDATA.
DATA: G1_LINES_TXT TYPE I.
DATA : L_DOCUMENT_DATA TYPE SODOCCHGI1,
T_PACKING_LIST TYPE STANDARD TABLE OF SOPCKLSTI1,
W_OBJHEAD TYPE SOLI_TAB,
T_OBJBIN TYPE STANDARD TABLE OF SOLISTI1,
T_OBJTXT TYPE STANDARD TABLE OF SOLISTI1,
LW_PACKING_LIST TYPE SOPCKLSTI1,
L_LINES TYPE I,
W_RECEIVER TYPE SOMLRECI1,
T_RECEIVER TYPE STANDARD TABLE OF SOMLRECI1.
DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: OBJHEAD LIKE SOLISTI1 OCCURS 1 WITH HEADER LINE.
DATA: OBJBIN LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE.
DATA: DOC_CHNG LIKE SODOCCHGI1.
DATA: TAB_LINES LIKE SY-TABIX.
*...Read the Spool request number generated.
SELECT MAX( RQIDENT ) INTO G_SPOOL_NUM
FROM TSP01
WHERE RQCLIENT = SY-MANDT AND
RQOWNER = SY-UNAME.
*....Convert Spool to PDF
CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF'
EXPORTING
SRC_SPOOLID = G_SPOOL_NUM
NO_DIALOG = 'X'
DST_DEVICE = G_PDEST
IMPORTING
PDF_BYTECOUNT = NUMBYTES
TABLES
PDF = PDFDATA
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.
*...Convert 132 char to 255 char
LOOP AT PDFDATA.
TRANSLATE PDFDATA USING ' ~'.
CONCATENATE GD_BUFFER PDFDATA 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.
Creating the document attachment
LOOP AT IT_MESS_ATT.
OBJBIN = IT_MESS_ATT.
APPEND OBJBIN.
CLEAR: OBJBIN,
IT_MESS_ATT.
ENDLOOP.
Creating the document to be sent
DOC_CHNG-OBJ_NAME = 'IG Balance'.
*.....Subject of the email.
CONCATENATE 'Intragroup Confirmation from AoO: ' P_ZAOO INTO DOC_CHNG-OBJ_DESCR.
DOC_CHNG-OBJ_DESCR = 'Intragroup Confirmation from AoO '.
*...Body of the email
OBJTXT = 'Please find attached a summary and details '.
APPEND OBJTXT.
OBJTXT = 'Any queries regarding the attached should be addressed to the contact names on the Report.'.
APPEND OBJTXT.
DESCRIBE TABLE OBJTXT LINES TAB_LINES.
READ TABLE OBJTXT INDEX TAB_LINES.
DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
Creating the entry for the compressed document
CLEAR OBJPACK-TRANSF_BIN.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 0.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'RAW'.
APPEND OBJPACK.
DESCRIBE TABLE OBJBIN LINES TAB_LINES.
OBJHEAD = 'Balace.PDF'. APPEND OBJHEAD.
Creating the entry for the compressed attachment
OBJPACK-TRANSF_BIN = 'X'.
OBJPACK-HEAD_START = 1.
OBJPACK-HEAD_NUM = 1.
OBJPACK-BODY_START = 1.
OBJPACK-BODY_NUM = TAB_LINES.
OBJPACK-DOC_TYPE = 'PDF'.
OBJPACK-OBJ_NAME = 'ATTACHMENT'.
OBJPACK-OBJ_DESCR = 'Balance Report'.
OBJPACK-DOC_SIZE = TAB_LINES * 255.
APPEND OBJPACK..
Entering names in the distribution list
DATA: L_CNT TYPE I.
LOOP AT T_EMAIL INTO W_EMAIL.
IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
RECLIST-REC_TYPE = 'U'.
L_CNT = L_CNT + 1.
ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
RECLIST-REC_TYPE = 'U'.
L_CNT = L_CNT + 1.
ENDIF.
APPEND RECLIST.
CLEAR: RECLIST,
W_EMAIL.
ENDLOOP.
SELECT SINGLE ZAOO
ZCONTACT1
ZCONTACT2 FROM ZFI_MT_RPTRMAP INTO W_EMAIL
WHERE ZAOO EQ P_ZAOO.
IF W_EMAIL-ZCONTACT1 IS NOT INITIAL.
RECLIST-RECEIVER = W_EMAIL-ZCONTACT1.
RECLIST-REC_TYPE = 'U'.
L_CNT = L_CNT + 1.
APPEND RECLIST.
ELSEIF W_EMAIL-ZCONTACT2 IS NOT INITIAL.
RECLIST-RECEIVER = W_EMAIL-ZCONTACT2.
RECLIST-REC_TYPE = 'U'.
L_CNT = L_CNT + 1.
APPEND RECLIST.
ENDIF.
Sending the document
IF L_CNT > 0.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
DOCUMENT_DATA = DOC_CHNG
PUT_IN_OUTBOX = 'X'
COMMIT_WORK = 'X'
TABLES
PACKING_LIST = OBJPACK
OBJECT_HEADER = OBJHEAD
CONTENTS_BIN = OBJBIN
CONTENTS_TXT = OBJTXT
RECEIVERS = RECLIST
EXCEPTIONS
TOO_MANY_RECEIVERS = 1
DOCUMENT_NOT_SENT = 2
OPERATION_NO_AUTHORIZATION = 4
OTHERS = 99.
CASE SY-SUBRC.
WHEN 0.
WRITE 'Email sent successfully'.
WHEN 1.
WRITE: / 'no authorization to send to the specified number of recipients!'.
WHEN 2.
WRITE: / 'document could not be sent to any of the recipients!'.
WHEN 4.
WRITE: / 'no authorization to send !'.
WHEN OTHERS.
WRITE: / 'error occurred during sending !'.
ENDCASE.
ELSE.
MESSAGE S000 WITH TEXT-018.
STOP.
ENDIF.
*...Delete Spool Request.
DATA: SPOOLID TYPE TSP01_SP0R-RQID_CHAR.
SPOOLID = G_SPOOL_NUM.
CALL FUNCTION 'RSPO_R_RDELETE_SPOOLREQ'
EXPORTING
SPOOLID = SPOOLID
IMPORTING
RC =
STATUS =
ERROR_MESSAGE = -
Search for mail in Outlook 2013 does not have all emails in result.
Hi, we have a user that tries to search for a sertain mail in her mailbox, and when she searches, a few mail comes up, but the one she knows is there, and that fits the search pattern, is not listed in the results.
We have tried to reindex the database the user was on, we have moved her to another database, and none of these have given us the result we want.
We have also removed the checkmark in "Search" in Outlook for "Improve search speed by limiting the number of results shown".
If she does the same search in OWA or Outlook 2010, the result is as expected, but in Outlook 2013, it is not.
Has anyone experienced this, and if so, what could be done to solve it?
Google(Bing) produces very little results that are relevant to this for me.
Hope someone here has an answer :)
Regards
Tore MelbergHi,
I'm marking the reply as answer as there has been no update for a couple of days.
If you come back to find it doesn't work for you, please reply to us and unmark the answer.
Best Regards,
Steve Fan
Forum Support
Come back and mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback on our support, please click
here -
I have Notes in my Yahoo email account. Some of the pages disappear or could not be found in iphone or ipad, though they are still inside my yahoo Notes
How to make sure that all my Yahoo Notes pages appear in iphone and ipad all the timeI had the exact same issue!! Seriously p*ssed me off when I checked out my ITunes purchased items (via my computer) and noticed that most of the additional tracks listed on my IPhone playlist was listed there too. However, I never authorized any purchases!! (I have actually written Apple Support asking for a full refund of all tracks listed on my purchased list)
Be careful when you swipe your finger to the left/right on those "additional" tracks on your IPhone playlist... I'm pretty sure that the cloud symbol is an option to download or automatically buy those tracks.
Solution for the problem:
1 - go to your IPhone settings
2 - choose "iTunes & App Store"
3 - go to "Show All" & "Music"
4 - turn off "Music" by moving the bar to the left (it should be a white color once you turn it off)
Should solve your problem :~) -
Why the itunes store on iphone doesnt have all the songs?
My computer doesnt work but in the itunes store not all the songs come out why is this?
Hi Chaaparrita,
I don't relate your last with the fact that you marked your question answered. iTunes content shouldn't be different whatever support you are using to access (iOS, Mac, PC). Only the store homepages is different depending if you access from an iPad, PC or iPhone.
But doing a search should gives you the same result. Could you name the album you don't find on your iOS device with the country you are in? -
??
Nothing should be lost.
Connect to iTunes on the computer you usually Sync with and “ Check for Updates “...
If an Update Appears Install it... if not... you are up to date for your particular Device...
See the Using iTunes Section Here...
How to update your iPhone, iPad, or iPod touch
NOTE:
The 2nd Gen iPod Touch can only go to 4.2.1 -
In IE the page can either be set to 100% or whatever you wish, and once set future pages open up displayed the same way. With FF every time I open a page I have to hit ctrl+ about 3 or 4 times to get it to fill the screen
I have tried changing the default font to 16 with a min of 16 and not letting the page decide etc. I am sure that this has been asked before, but I have not used FF in several years.
ThanksThere are some add-ons that can be used to change the zoom level on all sites, for example:
* NoSquint - https://addons.mozilla.org/firefox/addon/nosquint/
* Default FullZoom Level - https://addons.mozilla.org/firefox/addon/default-fullzoom-level/ -
I have a main menu widget that says 'Services' then below that a group of pages thats relate to this - I want the word 'Services' to stay highlighted when Im on each page but it only is for the main one.
This is the default behavior as the one which is active will only be highlighted. Menu item is linked with page url , so if the page url is used in browser then active state will highlight that menu item.
Thanks,
Sanjit
Maybe you are looking for
-
Outbound ECS XSD does not contain UNB Segment.
Hello All, We are implementing B2B scenario of converting CUSDEC-D96B ECS file to XML file using B2B. The XML file is getting generated successfully in B2B_IN_Queue but it doesnot contain the UNB header segment element in XML. The structure of the ou
-
Reporting scenario . Need extractor information
Hi We have some reporting requirement from client to get the correct vendor evaluation report. In addition with standard vendor score , Client is also interested to see below score and values ? Could you please help me , how can i extract below value
-
hi guys, There is a request to custom VKM1 by taking out the menu,button and check box. And user wants additional field to be included in the report output. Im able to copy ZRVKRED01, ZRVKRED02 and all include. However Im having problem to find ho
-
Can't use my stored applications
hi..i've Nokia E63 and i've updated it's software the programmes that i've installed before on my memory card i found it on the application mannager but i can't use it so how can i use it? arsany aziz
-
Ipod songs n IPOD but no longer in my computer...
Ok, My hard drive crashed on my laptop and had to get a new one. Result: I lost everything I had in ITUNES but all my songs are in my IPOD. Is there a way to download what I have in my IPOD in mynew pc or itunes? I dont want to loose them