Sending of email triggered in a background job ends with error.
Hello all,
I have created a API which triggers mail to a distribution list using class CL_BCS. When i execute this API in foreground it works fine and the mails are triggered.
However i am calling this API in a report which will scheduled as a background job in my application and this job executes for some 5 to 6 hours and after that i trigger the mail. However at this point the job gets cancelled due to an abort message raised in
one of the CL_BCS methods.
The method is cl_cam_address_bcs=>create_internet_address which is called in my API and internally this calls many other methods. The abort meessage is thrown from the method instantiate_imp_class of class CL_EXIT_MASTER.
The ST22 log reads like this:
Runtime Errors: LOAD_SWITCHSTATES_MISMATCH
Short text: Current switch statuses are incompatible with program switch statuses.
What happened?
The current switch statuses that are read for the execution of the
program "CL_IM_CVI_ADDRESS_UPD_IMPL====CP" are incompatible with the switch
statuses with which the
program "CL_IM_CVI_ADDRESS_UPD_IMPL====CP" was generated at the time
20090902114544.
Any advice would be greatly helpful.
Warm Regards,
Naveen M
Hi!
How you determine sender (method set_sender) ? if you use current user, when it runs on background use a backgorund user and it maybe can not determine an email.
Try force a sender (harcode your user for test when sy-batch eq 'X')
If it works, you need to determine the user to be used on jobs to solve this problem.
I hope it helps
Regards!!!!
Similar Messages
-
Scheduled TMS_ # TMS_TP_IMPORT background jobs fail with error code 0232
Is anyone else having the problem we've just encountered since upgrading to ECC 6.0 and CRM 2007, where once setting up the automatic import ALL background jobs, to have all of the Transport Change Requests imported into the Q-Prod testing systems automatically, fail after several successful runs?
After setting up the automatic import background job to run every 15 minutes, the first few run successfully (importing any transports as it should), then the transports stop being imported.
The background jobs continue to run, but have the following in the job log overviews CRM 2007 - "Could not start transport control program tp". R\3 ECC 6.0 - "Transport control program tp ended with error code 0232".
Only by deleting the background job and recreating it (or manually importing) from STMS, can the transports continue to be imported. Although I have noticed that there are multiple tp.exe processes started, which need to be deleted before the STMS and TMS Background jobs work again.
The:
DB is SQL Server 2005
disp+work is at version 7000.150.14.48855
R3Trans is at version 7000.149.14.47907
tp is at version 7000.144.14.39594
Any suggestions on how to cure this for good?Thanks All
FYI
SAP first suggested the following notes: 19466, 1150361, and to add a Startup profile parameter rfc/use_gwstart = 1. Which was only partially successful.
I guess it had more to do with RFC processes hanging than it did with the tp, which was fixed in a later kernel patch level.
I've upgraded the kernel to the latest (70000.181.0.0) and my problem was fixed.
Ken -
Background Job cancelling with error Data does not match the job definition
Dear Team,
Background Job is getting cancelled when I run a Job on periodically but the same Job is executing perfectly when I run it manually(repeat scheduling) .
Let me describe the problem clearly.
We have a program which picks up files from an FTP server and posts the documents into SAP. We are scheduling this program as a background Job daily. This Job is running perfectly if the files contain no data. But if the file contains data the JOb is getting cancelled with the following messages.
And also the same Job is getting executed perfectly when repeat scheduling is done ( even for files with data).
Time Message text Message class Message no. Message type
03:46:08 Job PREPAID_OCT_APPS2_11: Data does not match the job definition; job terminated BD 078 E
03:46:08 Job cancelled after system exception ERROR_MESSAGE 00 564 A
Please help me in resolving this issue.
Thanks in advance,
Sai.hi,
If you have any GUI function modules used in the program of job
you cannot run it in background mode. -
My mother used to be the bill payer on my iTunes account so now every time I send an email from my iCloud account it sent with her name, how can I change the settings so emails are sent from myself?
I've changed the bill payer to myself but it stills says on emails that I sent that its from my mother.In order for the "From" field to show you options on the "from" addresses available, you must set them up in the Preferences > Accounts first.
I can't show you a screen shot of the from field because I currently only have one account, so the from address used is the default. However, when I had more than one, then options will show up in your compose/reply window.
You'd need to add an account here: -
OIM - Reconciliation jobs fail with Error: OPERATIONS_ERROR
Hi,
after integrating OIM with OAM for Fusion Apps provisioning (11.1.3), LDAP Reconciliation jobs fail with error OPERATIONS_ERROR.
Connection to LDAP looks OK, new users created in OIM are synchronized to LDAP, just Reconciliation jobs fail:
<May 1, 2012 10:00:50 AM CEST> <Error> <oracle.iam.platform.entitymgr.provider.ldap> <IAM-0042016> <An error occurred while getting the change log from LDAP - {0}
javax.naming.NamingException: Error: OPERATIONS_ERROR
Virtualization Session closed [Root exception is oracle.ods.virtualization.service.VirtualizationException: Virtualization Session closed]
at oracle.ods.virtualization.jndi.OVDUtil.mapErrorCode(OVDUtil.java:200)
at oracle.ods.virtualization.jndi.OVDContext.search(OVDContext.java:439)
at oracle.ods.virtualization.jndi.OVDContext.search(OVDContext.java:329)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at oracle.iam.platform.entitymgr.provider.ldap.LDAPUtil.search(LDAPUtil.java:1049)
at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.getChangelogResults(LDAPDataProvider.java:1531)
at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.deltaDetect(LDAPDataProvider.java:1488)
at oracle.iam.ldapsync.scheduletasks.user.LDAPUserChangesReconTask.execute(LDAPUserChangesReconTask.java:152)
at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:145)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:196)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused By: oracle.ods.virtualization.service.VirtualizationException: Virtualization Session closed
at oracle.ods.virtualization.service.DefaultVirtualizationSession.checkActiveAndIncrementOp(DefaultVirtualizationSession.java:425)
at oracle.ods.virtualization.service.DefaultVirtualizationSession.search(DefaultVirtualizationSession.java:183)
at oracle.ods.virtualization.jndi.OVDContext.search(OVDContext.java:429)
at oracle.ods.virtualization.jndi.OVDContext.search(OVDContext.java:329)
at javax.naming.directory.InitialDirContext.search(InitialDirContext.java:248)
at oracle.iam.platform.entitymgr.provider.ldap.LDAPDataProvider.deltaDetect(LDAPDataProvider.java:1488)
at oracle.iam.ldapsync.scheduletasks.user.LDAPUserChangesReconTask.execute(LDAPUserChangesReconTask.java:152)
at oracle.iam.scheduler.vo.TaskSupport.executeJob(TaskSupport.java:146)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.iam.scheduler.impl.quartz.QuartzJob.execute(QuartzJob.java:198)
at org.quartz.core.JobRunShell.run(JobRunShell.java:203)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
===
Reconciliation worked before integrating OIM with OAM.
Any ideas what could be wrong - or how to investigate this issue?
Thanks
DanielOVD changelog adapter was OK, but OVD URL was missing in the IT resource.
Reconciliation works now.
Thanks for pointing me to correct direction.
Daniel -
Job failed with error tempdb is not available
HI All,
Backup job failed with error 'Unable to determine if the owner () of job backup_all_user_db_full has server access (reason: The log for database 'tempdb' is not available. [SQLSTATE HY000] (Error 9001)).'
I checked in errorlog
LogWriter: Operating system error 1784(The supplied user buffer is not valid for the requested operation.) encountered.
Write error during log flush. Shutting down server
2014-09-09 07:46:25.90 spid52 Error: 9001, Severity: 21, State: 1
2014-09-09 07:46:25.90 spid52 The log for database 'tempdb' is not available..
2014-09-09 07:46:25.92 spid51 Error: 9001, Severity: 21, State: 1
Can anyone suggest to why it is happeningFrom the error message, it looks like the drive on which the tempdb log file is residing is having issues.
Please involve your storage admin to look into the disk subsystem -
Email multiple spools from background job - SM36 using Spool List recipient
I create a background job using Spool List Recipient to email me the reports. The program that I scheduled to run creates 2 spools. When the spools are sent via email, only the last spool is sent.
Please advise on how I can get the 2 spools sent via email.i would not use the Spool List recipient from Job and use the function RSPO_SPOOLJOB_TO_OFFICE in your Program instead.
tell me if it helps.
Regards,
Laurent -
Background job finished but Error sending data
Dear all,
report is running in my prod server . once this report completed sapuser get mail . when i check the job status it shows
Job started
Step 001 started (program GP4CF9U420G825I4P7DU8XY49WH, variant CUSTOMEROUTSTD, user ID S2K_BASIS)
Spool request (number 0000012259) created without immediate output
Error sending data (4)
Job finished
one more clarity i required
this report should goes to 4 SAP users . how can i configure this report to 4 sapusers
kindly suggest me> Step 001 started (program GP4CF9U420G825I4P7DU8XY49WH, variant CUSTOMEROUTSTD, user ID S2K_BASIS)
> Spool request (number 0000012259) created without immediate output
> Error sending data (4)
I'd check SCOT/SOST for any errors. Also check the syslog (SM21).
> this report should goes to 4 SAP users . how can i configure this report to 4 sapusers
Create a distribution list (SAPoffice-Inbox - environment - distribution list) and enter that as addresse for the output.
Markus -
Background Job Terminating with Signal 4 received by operating system
Hi ,
There is a zee ABAP program which is working fine in foreground but the same was not working at BACKGROUND when I shedule the job with the same zee ABAP program. the job is terminating with "Job also cancelled due to process termination. See the system log" But the same was worked previous at background too, there are no changes to the program too.The problem was with only this zee ABAP program for remaining are all working fine.
St22:
An SAP System process was terminated by an operating system signal.
Possible reasons for this are:
1. Internal SAP System error.
2. Process was terminated externally (by the system administrator).
Last error logged in SAP kernel
Information on where termination occurred
The termination occurred in the ABAP/4 program "ZSDUZ980" in
"ADD_NO_ACTIVITY_RECORDS".
The main program was "ZSDUZ980".
The termination occurred in line 1174
of the source code of program "ZSDUZ980" (when calling the editor 11740).
The program "ZSDUZ980" was started as a background job.
Component............ "Taskhandler"
Place................ "SAP-Server witco-10_NCQ_00 on host witco-10 (wp 1)"
Version.............. 1
Error code........... 11
Error text........... "ThSigHandler: signal"
Description.......... " "
System call.......... " "
Module............... "thxxhead.c"
Line................. 7209
The error reported by the operating system is:
Error number..... " "
Error text....... " "
System Environment
SAP Release.............. "31I"
Operating system......... "AIX"
Database type............ "ORACLE"
SAP kernel............... "31I"
SAP database version..... "31I"
Thanks
SambiHi Mark,
Thanks for the reply,
Below are the memory details in our system, according to the Notes you send to me, They have set it as it is.
abap/heap_area_dia 188743680
abap/heap_area_nondia 400556032
abap/heap_area_total 838860800
abap/heaplimit 25165824
The same Zprogram was worked before in the BAckground, But from last week it stop working. But there are no chages happen to this zee ABAP program.
Thanks
Sambi -
Send email notification when a concurrent request completes with Error
{color:#0000ff}I need to setup the system such that when a concurrent request completes with the status "Error", generate/send email notification to an application user. Please advice if you know how to configure the system to accomplish this.
Note: If the concurrent request completes with status "Normal" or "Warning", do not send/generate email notification to the application user.
Thanks.
{color}We do what amOx does. I made a concurrent program that calls a sql script, and emails me of errored jobs. It is more convenient than logging in each day. I ran this twice daily, and the sql checks for the previous 12 hour time slice (ie - twice a day run).
..colin -
Background job finishes but error Error While Updating Material into Standard SAP5678
Dear
we run background job which finishes successfully but when we sqw logs it shows
Error While Updating Material into Standard SAP5678
Kindly share the reasons
RegardsThis is an ERP Upgrade space and you should consider raising threads in the right space for prompt replies. Next time consider using SAP NetWeaver Administrator space for issues like these. Also you should consider closing your previous thread with the correct answer for future reference.
What I see is a custom job. You should check what the job does and also the trace file of the work process and the consult with the application team or the developer for more information. Unfortunately with that screenshot there is nothing much we can advice you.
Regards
RB -
Background Job assigment with variant in SM37 , for Textfile uploading
Dear all,
Im using the BAPI_PO_CHANGE to update the existing schedule dates in Purchase Orders,
for this the po's , item, schedules, delivery dates(Need to update) from a Textfile into the internal table
and passing that data to bapi function module, it works fi9 in foreground and the output is a classical report
with Corresponding messages through RETURN.
i need the same to run in background with a variant, but after assigning the background job in SM36,
i found that the job assigned got CANCELLED in SM37.
I hope everything is clear, so kindly revert back with solution.
Regards,
Niranjan.GHi,
You should understand that background job will be executed in application server and there will be no gui or access to presentation server available.
You should upload your file to application server through tcode CG3Z.
See F1 help for OPEN DATASET / Search SCN for sample codes for OPEN DATASET.
You should change the code so that it can be run in both modes using the system variable SY-BATCH.
If it is space use GUI_UPLOAD, if it is X use OPEN DATASET.
Regards
Karthik D -
Background Job Scheduling with variants in IS - Public sector
Hi,
We run auto write off using scheduled job activity (SM37 -Program : RFKK_MA_SCHEDULER). There is an variant containing Main Transactions that needs to be included / excluded for write off.
The variant values are changed / updated with additional main transactions and when we run the batch jobs the new variant values are not getting picked or used. If we run the program independently i.e FP04M and use the variant, the new variant values are being handled.
I am not sure what is missing in the SM37 background job that is defined though the variant values are runtime parameters and should have automatically be used after it undergoes modification in the next job exeuction.
Kindly provide your feedback.
Thanks & Regards
Bala
P.S. : I Have posted this query in IS forum too.Hi,
You should understand that background job will be executed in application server and there will be no gui or access to presentation server available.
You should upload your file to application server through tcode CG3Z.
See F1 help for OPEN DATASET / Search SCN for sample codes for OPEN DATASET.
You should change the code so that it can be run in both modes using the system variable SY-BATCH.
If it is space use GUI_UPLOAD, if it is X use OPEN DATASET.
Regards
Karthik D -
Background jobs failing with ABAP/4 processor: RFC_CONVERSION_FIELD
Hi Guru's,
Below are the backgroud jobs failing with runtime Error " ABAP/4 processor: RFC_CONVERSION_FIELD" in solution manager system (solution manager 3.0,SR2). Not sure why all these jobs failing with this dump on of sudden. i haven't made any changes to the system in the recent past.
BTC_CMS_COLLECTOR
SAP_APPLICATION_STAT_COLLECTOR
SESS_Y000001806_COLL_TRANS
ABAp Dump says that
Conversion error between two character sets
What happened?
Conversion error "ab_rfccon" from character set 4103 to character set 1100.
When executing a remote function call a conversion error occurred. This
occurred when receiving or sending the data. The conversion error can
only appear, when the data is transferred from a Unicode system to a
non-Unicode system.
Could some one please share some information if any one experienced the issue. Please note that all of our ECC systems are uni-code systems.
Thanks & Regards,
Vinod.Hi Vinod
Just try to understand the purpose of these jobs and may be these Notes will help you
Note 814707 - Troubleshooting for RFC connections Unicode/non-Unicode
Note 647495 - RFC for Unicode ./. non-Unicode Connections
Note 1361970 - Conversion problems during RFC communication -
Background job failing with license check error
Hi Experts
In our ERP 6.0 system ,all the background jobs are failing with license check error.
Have checked the license in SLICENSE and the license is fine.
There is no warning while users are loggign in ,but when any background job is runing its failing with error
Job started
Logon not possible (error in license check)
Job cancelled after system exception ERROR_MESSAGE
Also performed the license test which is failing
F:\usr\sap\XX1\SYS\exe\uc\NTAMD64>saplicense -test pf=F:\usr\sap\XX1\SYS\profile
\XX1_DVEBMGS00_host_xx
Protocol saplicense test:
Read sapsytem name
ok, sapsytem name = XX1
Read message server host
ok, host = hostname
Read message server service port
ok, service port = sapmsXX1
Connect to message server
ok, connect done
Read hardware key from message server
ok, got hardware key
Detach from message server
ok, detached
Check hardware key
ok, hardware key = T0343073854
Connect to database
ok, connected
Check license
ok, check done
Disconnect database
ok, database disconnected
test result: license test failed
LICENSE system: XX1 hardware key: T0343073854 expiration_date:
installation no: key:
userlimit: 0 productid: R3_BASIS
system-nr:
license expired ***
Please suggest how to troubleshoot.
Regards
Ajay@Michael
In SLICENSe the Hardware key field is not BLUE or BLACK and its showing the exact hardware key which i can see at OS level with saplicense -get command.
@Jagadish
Note is good refrence, i reiinstalled the Digitally signed license with saplikey command and it was successful.
But still the license test is failing at OS Level..below is the command prompt output.
===================================================================
F:\usr\sap\XX1\SYS\exe\uc\NTAMD64>saplikey -install C:\license_script_XX.txt pf
=F:\usr\sap\XX\SYS\profile\XX_DVEBMGS00_mngsez148079
SAP License Key Administration - Copyright (C) 2003 SAP AG
2 SAP license key(s) successfully installed.
F:\usr\sap\XX\SYS\exe\uc\NTAMD64>saplicense -test pf=F:\usr\sap\XX1\SYS\profile
\MD1_DVEBMGS00_mngsez148079
Protocol saplicense test:
Read sapsytem name
ok, sapsytem name = XX1
Read message server host
ok, host = host
Read message server service port
ok, service port = sapmsXX1
Connect to message server
ok, connect done
Read hardware key from message server
ok, got hardware key
Detach from message server
ok, detached
Check hardware key
ok, hardware key = T0343073854
Connect to database
ok, connected
Check license
ok, check done
Disconnect database
ok, database disconnected
test result: license test failed
LICENSE system: XX1 hardware key: T0343073854 expiration_date:
installation no: key:
userlimit: 0 productid: R3_BASIS
system-nr:
license expired ***
============================================================
@Juan
The hardware key was changed and we requested a new license with new hardware key,system was runing fine for couple of weeks with all background jiobs for SPAM./SAINT Ok .We performed EHP4 on this system.
But now this issue is here,so i guess we should troubleshoot.
Please let me know any other pointers.
Regards
Ajay
PS In SLICENSE new installed license is fine and all users can login.
Maybe you are looking for
-
I set Firefox as default browser, and now IE is gone. How do I get it back?
I downloaded the current version of Foxfire and set it as my default browser. I need to apply for work and many companies only support IE. I clicked on IE and only Foxfire opens on that icon. I can't find my IE, my bookmarks there are gone and I can'
-
Lost Preview monitor in log & Transfer
Hi, I'm logging footage in Log & Transfer and have lost my preview monitor. All footage is there.Can anyone help? Jeff
-
to all it is worth the £9 to upgrade to the latest iPhoto version from v08?
-
Spellingscontrole in nederlands
is er ook spellingscontrole in het nederlands verkrijgbaar
-
Avi.file and playback resolution
hi, i am trying to do some editing of footage recorded on a digital camera and saved to pen drives.i have downloaded them ok but about 70% of the files are distorted on playback,exactly like playing back thumbnails on a larger screen.the files appear