USMM report showing some Background job, which not in SAP
Sir,
I took USMM report from SAP PRD system for audit purpose. Everything is fine , expect some background job. There showing some background job finish on 01.04.2013. But I don't find any background job in SM37 which showing finish in USMM report. Please suggest what to do. Following are the background Job..
0000 Measurement Extensions Finished on 01.04.2013 at 12:55:30
0001 ABAP Workbench Finished on 01.04.2013 at 12:55:44
0002 Mobile Engine Finished on 01.04.2013 at 12:55:24
0009 Activity Checks Finished on 01.04.2013 at 12:56:55
0100 mySAP Human Resources Finished on 01.04.2013 at 12:55:26
0101 SAP HR e-recruitment Finished on 01.04.2013 at 12:55:24
0200 mySAP Banking Finished on 01.04.2013 at 12:55:25
0250 Financial Services Loan Management Finished on 01.04.2013 at 12:55:25
0300 mySAP Healthcare Finished on 01.04.2013 at 12:55:25
0400 mySAP Utilities Finished on 01.04.2013 at 12:55:26
0500 mySAP Telecommunications Finished on 01.04.2013 at 12:55:26
0600 mySAP Insurance Finished on 01.04.2013 at 12:55:26
0700 mySAP Public Sector Finished on 01.04.2013 at 12:55:26
0730 mySAP Public Sector Campus Finished on 01.04.2013 at 12:55:26
0800 mySAP Oil & Gas Finished on 01.04.2013 at 12:55:26
0900 mySAP Engineering & Construction Finished on 01.04.2013 at 12:55:27
1000 mySAP Aerospace & Defense Finished on 01.04.2013 at 12:55:28
1100 mySAP Automotive Finished on 01.04.2013 at 12:55:28
1201 SAP Financial Supply Chain Management Finished on 01.04.2013 at 12:55:26
1215 SAP FSCM Credit Management Finished on 01.04.2013 at 12:55:27
1500 mySAP Retail Finished on 01.04.2013 at 12:55:26
1550 BI Accelerator Finished on 01.04.2013 at 12:55:27
2100 SAP Records Management Finished on 01.04.2013 at 12:55:28
2200 ICM Incentive and Commissions
Management
Finished on 01.04.2013 at 12:55:27
2320 SAP Exchange Infrastructure Finished on 01.04.2013 at 12:55:29
2600 SAP Exchange Infrastructure Adapter Finished on 01.04.2013 at 12:55:29
6000 mySAP Financials Real Estate Finished on 01.04.2013 at 12:55:28
7100 mySAP Financials Corporate Finance
Mgmt
Finished on 01.04.2013 at 12:55:28
7500 Third-Party CAD Integration Finished on 01.04.2013 at 12:55:29
7550 SAP Learning Solution Finished on 01.04.2013 at 12:55:30
8020 Recipe Management Finished on 01.04.2013 at 12:55:29
8030 Catch Weight Management Finished on 01.04.2013 at 12:55:28
8040 RBD Tool Finished on 01.04.2013 at 12:55:29
8050 Bex Broadcaster Finished on 01.04.2013 at 12:55:28
Thanks & Regards,
Nabin Chatterjee
Hi,
You will get the list of background jobs in SM37.
It seems that these jobs are not being scheduled by your user ID.
In username field use * and check on the desired job statuses and use the date from and to on which you want to see the jobs.
Screen shot is also attached for your reference.
Regards,
Siddharth Khandelwal
Similar Messages
-
Some background jobs not shown in SM37
Dear Friends,
Some of my background jobs are not shown or visible in SM37. But, it is available in TBTCO, TBTCP & TBTCS tables. These jobs are scheduled in daily basis. These tables having records for all days of missed jobs.
I dont know, why it is not comming in SM37. I tried in many search parameters in SM37 like prog. name, date and so on.
These missed background jobs are not comes in spooler (SP01) also.
Kindy, suggest me to find out the missed background jobs.
Thanks in advance
Regards,
Rajagopal
Chennai - INDIA.Hi rajagopalan,
Normally this should not happen. Make sure the following in sm37:
a. The start date is : 01.01.1800
b. The end date is : 31.12.9999
c. All the checkboxes (six checkboxes) are ticked.
d. username = your username
e. jobname = *
SM37 gets records from the view V_OP (containing TBTCO and TBTCP)
and filters for username using the field SDLUNAME.
So you can basically cross-check if the count is atleast correct or the jobs were of different user (fieldname in the view/table) etc. (From SM37, you can export to excel and check the count)
regards,
amit m. -
Please help apps. Crashing on 64 gb 4 gen touch. Run 5.0.1 I know the temp fix of logging in but want to fix report shows "low mmemory crash" which is not true
Why do you say "not true"? The 4G iPod only has 256 MB of memory and out of memoty errors are not uncommon with iOS 5.
memory is different that the 8, 32 ir 64 GB or storage on the 4G iPods.
To resolve double click the Home button and delete the apps from the mulitasking dock that you are not using and the power off and back on the iPod. You have to do that periodically. -
BACKGROUND JOB WAS NOT SCHEDULED/LOG FILE NOT YET GENERATED
Hello,
To generate the log report, /VIRSA/ZVFATBAK program is scheduled on hourly basis but some time report doesn't get generated and if we see the background job then it shows sucessfully finished.
If we see the maually the log report for FFID then below error message is displayed.
" BACKGROUND JOB WAS NOT SCHEDULED/LOG FILE NOT YET GENERATED"
Can anyone guide me to solve the issue.
Thanks in advance.
Best Regards,
Prashant DubeyHi,
once chk the status of the job by selecting that and check job status(cltr+shift_f12)
since it was periodically scheduled job there will be a RELEASED job after every active job..
so try to copy that into another job using copy option and give some new name which u have to remember...
the moment u copy u can find the same copied job in SCHEDULED status...
from here, try to run it again on hourly basis....
After copying the job u can unschedule the old released job to scheduled otherwise 2 will run at a time...
rgds, -
Run the Report as a Background job and Get the Output in Excel in Local PC
Hello Gurus,
I have one following requirement.
One should be able to run the report as a background job and it should be possible to get the report in Excel format, also when running the report in background. The excel report should have the same information and look as the current SAPreport.
Please provide some solution.
Any helpful answer get surely awarded.
Thanks a lot,
VarlanirGUI_* WS_* Function In Background, CSV Upload
GUI_* and WS_* function modules do not work in background
When scheduling a job in the background the appropriate statement to read in your file is OPEN DATASET, and the file must be on the file system that the SAP server can see.
At anytime, a user can switch of the Personal Computers even though the job is still running in the background. Therefore GUI_* and WS_* function modules are not designed to work in that way, as they need to access your personal computer file.
To choose the correct download method to used, you can check the value of SY-BATCH in your code,
if it is 'X' use OPEN DATASET and if it is ' ' use WS_UPLOAD.
*-- Open dataset for reading
DATA:
dsn(20) VALUE '/usr/test.dat',
rec(80).
OPEN DATASET dsn FOR INPUT IN TEXT MODE.
IF sy-subrc = 0.
DO.
READ DATASET dsn INTO rec.
IF sy-subrc <> 0.
EXIT.
ELSE.
WRITE / rec.
ENDIF.
ENDDO.
ENDIF.
CLOSE DATASET dsn.
*-- Open dataset for writing
DATA rec(80).
OPEN DATASET dsn FOR OUTPUT IN TEXT MODE.
TRANSFER rec TO '/usr/test.dat'.
CLOSE DATASET dsn.
What is the difference when we use upload, ws_upload, gui_upload function modules?
UPLOAD, WS_UPLOAD, GUI_UPLOAD, are used in BDC concepts. ie., Batch Data Communication.
Batch Data Conversion is a concept where user can transfer the Data from non SAP to SAP R/3. So , in these various Function Modules are used.
UPLOAD--- upload a file to the presentation server (PC)
WS_UPLOAD---- Load Files from the Presentation Server to Internal ABAP Tables.
WS means Work Station.
This is used upto SAP 4.6 version.
GUI_UPLOAD------- Replaces WS_UPLOAD. Upoad file from presentation server to the app server. From 4.7 SAP version it is replaced.
How to Upload csv file to SAP?
Common File Download Upload Questions:
How you upload the data from text file to sap internal table? From my knowledge its by upload or gui_upload.
How you download the data from sap internal table to text file?
How you upload the data from xls (excel) file to sap internal table how you download the data from sap internal table to xls(excel) file.
You can upload data from presentation server to an internal table using gui_upload. Use gui_download to download from internal table to flat file.
Use fm ALSM_EXCEL_TO_INTERNAL_TABLE to upload data frm excel.
Use function module GUI_UPLOAD
The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\test.csv'
FILETYPE = 'ASC'
TABLES
DATA_TAB = itab
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17. -
ABAP report to monitor Background Jobs (SM37)
Hi,
I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
1) All jobs which got cancelled based upon the hours field specified in the customizing table.
2)All jobs which are active till the current date.
Hope to receive your precious response!
Thanks
Mehar
Moderator message : Spec dumping not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 22, 2011 3:36 PMHi,
I need an ABAP report to monitor Background Jobs (SM37) which can monitor following things:
1) All jobs which got cancelled based upon the hours field specified in the customizing table.
2)All jobs which are active till the current date.
Hope to receive your precious response!
Thanks
Mehar
Moderator message : Spec dumping not allowed, search for available information. Thread locked.
Edited by: Vinod Kumar on Nov 22, 2011 3:36 PM -
SIDadm locked ??? by Background job! not sure...?
Hi Folks,
We are curretnly running on SAP SCM 5.0.
<SID>adm user is getting locked by Kernel(KNL).
As per the locked time of the user, it is losked around 10 PM by KNL and there are NO users in the system yet.
As per our understanding it looks like <SID>adm is getting locked by some background job.
Any help in solving this problem is appreciated.
ThanksHei ....
After passing immediate start in job_close.....
In SM37 i have
Status as : canceled.
have start time
have start date.
duration as 567
delay as 60 secs.
which is better that what i have done previously....Now i get the duration time, start date, start time.
How can i escape from "canceled"?
thanks -
Background Job is not running in KW
Hi All,
I have problem with background job.
I am working on Knowledge warehouse server.
And I am scheduling background job to upload contents.
But background job is not finishing at proper time.
And while displaying trace it is giving following error.
ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c 1251]
Please help me to resolve this.
Regards,
Payal patelHi Juan,
I have tried with process as well as instance restart.
It didn't help me.
Hi Santosh,
Following is the part of trace file (level -2).
First line shows error.
Tell me if you need any other log file.
L *** ERROR => BtcCleanUp: BtcLgAp-call failed (rc = 4) [btcjcntl.c 1251]
M read msgserver-list from MBUF
M ThSemRq (4, 1, 0, 0)
M ThSemRel (4, 1)
M ThSetBtcName: found batch server sapbl4_KW7_00
M ThScheduler2: server name: sapbl4_KW7_00
M ThISendMsg: send message (5) to server (wp) with name >sapbl4_KW7_00 <
M ThISndName: send to name: >sapbl4_KW7_00 <
M ThISend: (tm/type/info = 10/0x2000/0x0, mode_deleted=0)
M ThRqOutCheck: o.k.
M abap strategy ROLL / O.K.
M ThNewWpStat (type=0x2000, task_switch=0, inline_hold=0, hand_shake=0, debug=0, ..)
M ThNewWpStat: new state of T10/M0 = 0x3c
M ThISend: new wp stat: 0x0
M Adresse Offset Message by name (one way)
M -
M 06C60600 000000 00000000 05000000 255f4556 454e545f |........%_EVENT_|
M 06C60610 000016 53434845 44554c45 52202020 20202020 |SCHEDULER |
M -
M ThMkReq: send output to canceled mode
M make DISP owner of wp_ca_blk 180
M DpRqPutIntoQueue: put request into queue (reqtype 0, prio LOW, rq_id 19358)
M -OUT- sender_id WORK_PROCESS tid 10 wp_ca_blk 180 wp_id 10
M -OUT- action SEND_MSG_ONEWAY uid 11 appc_ca_blk -1 type NOWP
M -OUT- new_stat NO_CHANGE mode 0 len 268 rq_id 19358
M -OUT- forward DIA
M -OUT- req_info CANCELMODE MSG_WITH_REQ_BUF MSG_WITH_OH
M nihsl-getHostAddr: got hostname 'localhost' from operation system
M nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
M nihsl-getServNo: got servicename 'sapdp00' from operation system
M nihsi-getServNo: servicename 'sapdp00' = port 0C.80/3200
M NiIInitSocket: set default settings for socket 1196
M NiCreateHandle: state hdl 1 / socket 1196 NI_INITIAL
M NiIDgSend: init datagram send hdl 1 / socket 1196
M CPU byte order: little endian, reverse network, low val .. high val
M NiIDgSend: connect dgram to: host 127.0.0.1, port 0C.80/3200, fam 2 (low adr..high adr)
M NiIDgsend: sending on connected datagram-handle
M LOCK WP ca_blk 181
M ThResFree: free resources of U11 M0 I2 (normal mode, complete free) at level 3, errno=23, db_action=TH_DB_NO_ACTION, pooling=1
M ThResFree: reset spa state for user T10/U11/M0
M ThCallHooks: call hook >RtmClearSession< for event BEFORE_SESSION_CANCEL
M ThCallHooks: call hook >HttpClearSession< for event BEFORE_SESSION_CANCEL
M ThCallHooks: call hook >SpoolHandleHook< for event BEFORE_SESSION_CANCEL
M SosSearchAnchor: search anchor for 2
M PfStatDisconnect: disconnect statistics
M ThDealComm: del 1 cpic conn(s) of T10/U11/M0 (errno/deal_r2/free_level = 23/1/3)
M ThCPICFree: send DEAL to U11/M0
M ThICMDEAL (14030609, ..)
M ThCPIC: execute cpic func DEALLOCATE
M ThCPIC: last_ftype/last_timeout/last_requested_length/last_receive_data 1/-1/-1/0
M ThCPIC: allowed rq_type of T10/M0 = TH_APPC_RC_RQ
M ThConnectToLocGw: connect to local gateway
M GwConnectSapWp: connect to gateway >localhost< >sapgw00<
M nihsl-getHostAddr: found hostname 'localhost' in cache
M nihsi-getHostAddr: hostname 'localhost' = addr 127.0.0.1
M nihsl-getServNo: got servicename 'sapgw00' from operation system
M nihsi-getServNo: servicename 'sapgw00' = port 0C.E4/3300
M NiCreateHandle: state hdl 2 / socket -1 NI_INITIAL
M NiIBlockMode: switch off block-mode for hdl 2 / socket -1
M NiLowLevCon: connect to: host 127.0.0.1, port 0C.E4/3300, fam 2 (low adr..high adr)
M NiIInitSocket: set default settings for socket 1140
M NiISocket: hdl 2 got socket 1140
M NiPConnect: connect in progress
M SiPeekPendConn: connection of socket 1140 established
M NiLowLevCon: took local port 0E.51/3665
M nilh-localCheck: using local address list
M NiSetStat: state hdl 2 NI_CONNECTED
M NiIWrite: write 64, 1 packs, MESG_IO, hdl 2, data complete
M NiIPeek: peek successful for hdl 2 / socket 1140 (r)
M NiIRead: read 64, 2 packs, MESG_IO, hdl 2, data complete
M GwConnectSapWp: connect to gateway localhost / sapgw00 (pid = 6184) o.k.
M ThISend: (tm/type/info = 10/0x80/0x0, mode_deleted=0)
M ThRqOutCheck: o.k.
M abap strategy ROLL / O.K.
M ThNewWpStat (type=0x80, task_switch=0, inline_hold=0, hand_shake=0, debug=0, ..)
M ThNewWpStat: new state of T10/M0 = 0x3c
M ThISend: new wp stat: 0x0
Regards,
Payal Patel
Message was edited by:
Payal Patel -
Rule set import - Background job did not run
Hi,
I am setting up my CC 5.2 production system. I have downloaded from ruleset from the dev CC and imported it into production. However the background job generated did not run. I am implementing SAP note 999785 to fix this, but am wondering what should I do about the rule set? Do I need to delete the rule set and reimport it? As this background job did not run I notice that the permission rules did not generate.
Any advice is welcome.
ThanksHi,
as the backgorund job never ran and no rules were created, I can just reimport the ruleset and let the job run. I have tried this and the rules were created successfully -
Spy menu only showing some items and properties not available
I am having some issues with the spy menu. In order to try and fix my issues I built the menu from scratch again on one of my pages. Everything works now on that page and when I upload it to the server, it is all there.
However, when I then copy and paste the menu to all the other pages and upload the the server, the submenu doen't show anymore. When I go and troubleshoot it and highlight the menu in its entirety and click properties, no properties will show. On the working page, this ation delievers me a properties bar where I can + or - menu items. Why is this? As this must be why the submenu is not showing either?
The page where everything works is this (See sub menu under coaching clinics) http://www.golifecoaching.com.au/go-beyond-registration-test but on every other page on this website, this submenu disappears.
Can anyone help? I am tearing my hair out and don't fancy having to build the menu from scratch for every page. There has to be a better way.
I use CS4 and this is my menu;
<div id="navigation">
<!--MENU-->
<ul id="MenuBar2" class="MenuBarHorizontal">
<li><a href="index.html">Home</a> </li>
<li><a href="what-is-coaching.html">What is Coaching</a></li>
<li><a href="coaching-benefits.html">Coaching Benefits</a> </li>
<li><a href="do-you-need-a-life-coach.html">Do You Need a Life Coach</a></li>
<li><a href="about-go-life-coaching.html">About Go Life Coaching</a></li>
<li><a href="#" class="MenuBarItemSubmenu">Coaching Clinics</a>
<ul>
<li><a href="holdsworth.html">Coaching for Carers</a></li>
<li><a href="coachingclinic.html">The Coaching Clinic</a></li>
</ul>
</li>
<li><a href="contact-us.html">Contact Us</a></li>
<li><a href="http://www.golifecoaching.com.au/blog">Blog</a></li>
</ul>
<!--END MENU-->
JenThat is brilliant, that is exactly it! Thank you sooooo much for your suggestion. I am so relieved.
Yes a template would be best, but I am not sure how to do that, so I am left with doubling my work evertime I make a change on this site.
Thanks Jen
Date: Sat, 13 Aug 2011 16:43:59 -0600
From: [email protected]
To: [email protected]
Subject: Spy menu only showing some items and properties not available
Disclaimer: I am new to coding in general and this is my first attempt to help someone.
I think the properties bar with the + - has to do with the javascript coding that is generated when you create a new tag, and it is located near the bottom of the page just before the closing body tag.
looks something like this:
<script type="text/javascript">
var MenuBar2 = new Spry.Widget.MenuBar("MenuBar2", );
</script>
so dont forget to copy that over too. Also, check the CSS that is associated within each page and make sure they are all in the same style.
P.S. Have you considered using a template for the menu bar so you dont have to copy it over each time?
> -
my macbook pro shows some wifi networks but not mine. it comes up on other computers as well as my phone but will not show up on my wifi network options.
Direct you to the proper forum for MacBook :
MacBook Series Forums
https://discussions.apple.com/community/notebooks?view=discussions
https://discussions.apple.com/community/mac_os?view=discussions
http://www.apple.com/support/macbookpro -
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 -
Mails are not generated in background Jobs and not shown in SOST.
Dear All,
I have facing issue regarding to system mails. I want to send mails the various reports automatically from SAP System to different recipients. So I scheduled that reports at background and in their spool list recipient I have added distribution list.
But that mails are not generated, it is not shown in transaction SOST also. When I send mails manually it goes successfully to only our company domain recipients. But not other domains. How should I resolve this problem?
Please help me out.
Thanks in advance.
AmitHi Srihari,
I have checked the background jobs they showed it finished. Following logs are shown in job logs. Is problem is due to 3rd log??
18.03.2012 14:23:34 Job started 00 516 S
18.03.2012 14:23:34 Step 001 started (program RFITEMAP, variant PDC FARMAR, user ID DEVELOPER1) 00 550 S
18.03.2012 14:23:37 No items selected (see long text) MSITEM 033 I
18.03.2012 14:23:42 Spool request (number 0000026302) created without immediate output SY 355 S
18.03.2012 14:23:46 Job finished 00 517 S
When I saw further details of 3rd log it following message.
No items selected (see long text)
Message no. MSITEM033
Diagnosis
No line items meeting your selection criteria could
be for the following reasons:
1.) No corresponding items have been posted.
2.) You are not authorized to display this data.
3.) The items have already been archived.
Please help me out.
Thanks
Amit -
Background Job is not creating the List ID
Hello Experts,
I am scheduling a program as a Background Job. When I go and check the tables TBTCP & TBTCO, I see the List ID field (TBTCP-LISTIDENT or TBTCO-LISTIDENT) value as 0 .
Hence I am not able to get the Spool ID for this List.
Can anybody please let me know what is the problem?
Thanks a lot.Hi,
See, if this piece of code can help you.
data: sdate type sy-datum,
stime type sy-uzeit,
l_valid,
ls_params like pri_params,
l_jobcount like tbtcjob-jobcount,
l_jobname like tbtcjob-jobname.
start-of-selection.
Get Print Parameters
call function 'GET_PRINT_PARAMETERS'
exporting
no_dialog = 'X'
importing
valid = l_valid
out_parameters = ls_params.
Open Job
l_jobname = 'THIS_JOB'.
call function 'JOB_OPEN'
exporting
jobname = l_jobname
importing
jobcount = l_jobcount.
Submit report to job
submit <your_program_name
via job l_jobname
number l_jobcount
to sap-spool without spool dynpro
spool parameters ls_params
and return.
Kick job off 10 seconds from now.
sdate = sy-datum.
stime = sy-uzeit + 10.
Schedule and close job.
call function 'JOB_CLOSE'
exporting
jobcount = l_jobcount
jobname = l_jobname
sdlstrtdt = sdate
sdlstrttm = stime.
<REMOVED BY MODERATOR>
Edited by: Alvaro Tejada Galindo on Mar 3, 2008 11:09 AM -
Schedule report MM60 as background job and send out in Excel format
Hi there,
I would like to schedule a background job for report MM60, then send to the user in Excel format.
I know that we can enter the recipient in the job setting(SM36) but the report is send in HMTL format.
Is it possible to send in Excel format?
Thanks,
JaniceHi,
I think it's not possible from SM36 you better get help from ABAPer to get the require output.
Also visit below thread for same issue:
mail, output of spool as an excel attachment
Regards;
Maybe you are looking for
-
Content Tab: None of the fact tables are compatible with the query request
Hi All, **One thing I am not clear yet of all my years with OBIEE is working with the content tab in BMM.** I have made a rpd the joins in physical layer as shown below: https://picasaweb.google.com/114804305606242416264/OBIEEError#566305654511942853
-
How can I upload a file to the server where I save the Java Web Start Files
Hello, Does anyone knows how to upload a file to the directory where I save the JAR files through the Java Web Start program. Thanks you
-
Email Support: Pornographic Images
I have tried every filtering option available in "Mail Preferences" to eliminate unwanted pornographic images from my mailbox. (One option I'm using includes not allowing any email to load "Remote Content".) I'm not having any trouble keeping unwan
-
Excise base value Posted Incorrectly
Dear Expert, In our Client , the user have posted the incorrect Excise Base Value for particular material .Part II has already posted. We cannot cancelled the Excise invoice as the stock is already been consumed. Please Provide the solution for it
-
MB31 order cannot carry revenues
Hi all While doing MB31 i am getting following error message. Order 1000001 cannot carry revenues Message no. KO014 Diagnosis You have tried to post an order, which is not allowed to carry revenues, under a revenue element (or the system determined t