Job triggered by event created with BP_EVENT_RAISE

Hello,
in the exit for sales orders we trigger one event to call one program using FM BP_EVENT_RAISE. We have one job that starts after this event is created and looking with SM37 the job is still released under this condition (as is also in table BTCEVTJOB). The event is created correctly and the process has been working fine until a couple of days ago. I create new sales orders and see that this FM is still called, but the job does not start.
I am trying to track the created events with transaction SWEL, but it does not work. How can I check that the event is being created and processed? any other transactions or programs to check this?
Thanks.

hi,
as per my experience, in some user-exit you cannot call the BP_RAISE_EVENT ( or the method of the static class CL_BATCH_EVENT->RAISE ) . Even if the event is define correctly and the job is scheduled correctly the bapi call has no effect on event rasing and job is still in released status. 
You can try to create a job having the needed steps and directly executed .( JOB_OPEN, submit 'your_program',  JOB_CLOSED ).... .. so i suggest to create a custom FM that execute this work .( JOB_OPEN, submit 'your_program',  JOB_CLOSED )  and call it into the user exit..
Hope this can be a good input for you.
Best regards luigi.
Edited by: luigi la motta on Jun 14, 2010 4:14 PM

Similar Messages

  • Syncing Events Created with iPhone Not an Option?

    Okay, I've read as many discussion threads as my eyes can handle and have tried several solutions suggested to no avail. I am using Windows Vista and Outlook 2007 but was very recently using Windows XP Pro and Outlook 2003. The same problem applies to both environments.
    While I've had no problem syncing contacts and calendars from my computer to the iPhone, I cannot go the other direction. The selection box beside the phrases "Put new events (or contacts) created on this iPhone into the group (or calendar)," which is then followed but what should be a drop down menu, appears gray and is unselectable. I figured it was some simple preference setting in either Outlook or the iPhone that was causing the problem and found my way to the discussions to seek the remedy. Once here, I find myself overwhelmed and wondering if I now need a computer engineering degree to prevent missed appointments or the need for double entry. Please help a poor, technically challenged individual not regret the decision to by this phone!!

    I'm guessing that perhaps the reason the option to "Put new Contacts/Events created on iPhone" is not available is that I only have one calendar/group (Outlook) available on my computer. That is also why it defaults to "All Contacts" and "All Calendars"
    Evidently the actual syncing from the iPhone to the computer is unrelated to the availability of these options. At least that appears to be true in my case. I was actually able to get mine to work using the information in the article posted by someone else and available at
    http://docs.info.apple.com/article.html?artnum=305845
    It seems the step regarding "Removing all other Third Party Add Ins" did the trick. I just didn't think it worked initially since the options on the Info tab did not change.
    Hope that helps! Thanks to all for the input. B

  • Bathc Job Triggered by Event

    Hi All,
    I have a program which updates the product allocation. What i want to happen is the ability to set up a batch job based on an event. This event will be a change in certain fields in customer master like sale district, sales group, sales office etc. Is this scenario possibel? If yes, then how can i implement this?
    Thanks in advance!
    Jim

    Hey,
    Raising the event in the user exit might be a bit risky as the job will be triggered even if the update task fails.
    I would suggest using workflow to meet your requirement. Switch on the event trace using SWELS and change the customer. Check the event trace using SWEL and then use the events, if any to start a workflow task.
    This workflow task should have the logic to create the event which will fire the job OR You could also write the logic to start the job in the workflow task.
    Business object related to customer are
    KNA1       Customer            
    KNB1       Company code customer
    KNVV       Customer sales area 
    If SWEL does not display any events then you might have to create a custom event for one of the above objects and trigger this event using change documents.
    -Kiran

  • KNA1.CREATED with Event based on Change Documents -- No Receiver

    Good morning experts,
    I set up a subtype of Object KNA1 ZKNA1 with 2 events CREATED and CHANGED, KNA1 is delegated to ZKNA1.
    Additionally, I set up two ansynchronous methods "CREATEASYNCHRON" and "CHANGEASYNCHRONE" in ZKNA1, both are a simple CALL TRANSACTION, these methods should be terminated by the two mentioned events.
    I added 2 entries in TA SWEC for triggering the both events when change documents are posted --> works fine, everytime I create or change a customer the systems creates the linked event, the event container is filled with the customer number.
    Afterwards, I set up 2 standard tasks for the two mentioned methods with terminating event CREATED and CHANGED,  the Instance Linkage was done in TA SWEINST and is active.
    My problem now is that the event is triggered correctly, but the tasks are not getting terminated, the event trace also tells me that that there would be no event receiver entered.
    Can you tell me what I did wrong? I made this for a lot of other workflows before and everything worked fine, so I don't understand what's the problem...
    Thanks for your support!

    Hi,
    I am not sure if this will work...
    Simulate 1 event using SWUO...
    Under Potential tasks to be terminated... find your task ... right click-> Event Linkage -> Select "Event Linkage activated" ...
    and try once more ....
    Regards
    Gautam

  • Create background job triggered by another job

    Hi experts,
    I want to run FCHU in background everytime I finished run F110.
    I'm thinking to use background job creation SM36 - triggered by job. But the problem is, job created from F110 the job name is not fixed.
    Please anyone can give better idea ??
    Thanks,
    Melissa

    Hi melissa,
    The suggestion given by Prem is perfectly Ok.
    I would suggest you to create an event  by sm62 and then create an event triggered  background job which will run the FCHU in Back ground.
    So you need to get an enhancement point in F110 and put the code of triggering the event .
    If there is no enhancement  then you can create a program which will call the Transaction F110 by using CALL TRANSACTION statement and after F110 processing the control will get back to your program and you can write a code for triggering the event by using the FM SWE_EVENT_CREATE.
    I hope this will help you

  • How create mail alert without triggering the event.

    1.     SR 3-4924626351: How create mail alert without triggering the event.
    We wanted to send alert mail every 10 days or 15 days or 1 month to a reporting manager of Opportunity Owner with details of that Opportunity. I don’t want to use any triggering of event like the Following. When new opportunity is created When modified Opportunity is saved etc.

    Raju,
    If you don't want to use the triggering event, you will have to do this manually.
    Manually:
    - Create a Web Link on the SR with and embed the mailto: function with the receivers email and subject and body embedded in the url (you can find this link on Google)
    - When this link is clicked, an email window will open with all the details you provide, and you can click the send button to send the email.
    - You will have to do this manually every 10-15 days or whatever is the duration
    Auto:
    - Create a time based workflow on a new Opportunity Created event
    - create a action to send an email notification to the concerned person (details in the workflow properties)
    - This workflow will auto send an email every 10-15 days to the opportunity Manager.
    The time based workflow is the best option I see. Do you see any issue/ concerns with auto generated emails?
    Hope this helps!
    Royston

  • Custom Event - Issues with triggering

    Hi Experts,
    I've developed one workflow for travel management. The flow is as below.
    1. Whenever expense report is created, workflow will get triggered
    2. If the expense report requires receipts, workflow will be waiting for the receipts attachment. After attaching the receipts workflow will move further for approval process. For this I've created one custom event, which will be triggered from enhance spot (OA_BADI_LINK) implementation when receipts are attached
    3. I'm using the custom event created and wait step to hold the workflow till the event get triggered
    4. If receipts are required and not attached for 2 days, workflow will be terminated
    It was working fine in development server. After transporting the all related objects to testing server, in testing server the workflow was not moving further even after attaching the receipts. I wanted to check whether the custom event is getting triggered or not, while attaching the receipts. For this, I've requested admin team to switch on the event trace (SWELS) in testing server. After switching on the event trace, my workflow is working fine. I mean, the workflow is moving further whenever receipts are attached.
    I'm with no clue, why it was not working before activating the event trace and why it is working after that.
    Can any one help me in finding out the cause?
    Thanks in Advance,
    Siva Sankar.

    Hi Shital,
    Thanks for ur reply.
    Standard event that is maintained in SWE2 was getting triggered and workflow was getting started. But, the custom event that is getting triggered from enhancement was not working properly.
    What settings admin do using SWEQADM tcode?
    Thanks,
    Siva Sankar.

  • Can position be created with out creating Job..

    Hi Experts,
    A simple question but quite complicated.
    Can position be created with out creating the job. ( yes it will give the warning and create).
    Here my actual question comes, what is the need of creating the Job. when we can create position without job in general Scenario.
    Is it compulsory to create job whenever we create position.
    Your replies are highly appreciated.
    Thanks in advance.
    Regards,
    Dollly

    Hi Dolly,
    I definitely aggree with what guru Sikindar mentions.
    One more point:
    SAP advises to create separate positions for each of the employees in your organizational structure.
    For example, there may be a hundred "Engineer" positions in your company (with codes: 50000001, 50000002, ... 50000100).
    At this point, when you're asked to take a report of all of the "Engineer"s in your company, then you need to enter all these position codes into the selection screen : Nearly impossible scenario!
    However, if you had linked all of these positions to a single job named "Engineer" and numbered "50000000", then you would be able to find all the positions linked to this job and all the employees holding these positions by entering a single object ID and evaluation path in the selection screen of a particular report.
    Regards,
    Dilek

  • Time zone compatability problem with timed event created on iOS and pushed to Windows7 Outlook calendar for sharing

    Hi, I am in Jerusalem time zone. My Windows7 LAPTOP time zone is set to it (UTC+02:00 Jerusalem). My iPhone5 and iPad are both "Set Automatically" (ON)  to Jerusalem. When I create any new event in my outlook on my Laptop it's generated with the Jerusalem time zone and pushed properly via iCloud to my iPhone and iPad. However when I create a new timed event on either my iPhone or iPad. or even in iCloud calendar (in a browser) the event is pushed to outlook on my Laptop in a "Beirut" time zone. Now that both Jerusalem and Beirut are on the same time zone (UTC + 02:00) it doesn't create any problem (though I prefer to see that the pushed events are indeed in Jerusalem time zone and not Beirut...). However, at and around day time saving change days there are problems of events created on iOS devices or even in iCloud (using browser) and pushed to outlook at the wrong times (1 hour earlier or later, depends on the change direction in Jerusalem time...) with a Beirut time stamp.
    How can I resolve this problem and make sure all timed events, created on iOS devices at a Jerusalem time zone, appear as such after pushed via iCloud to my windows7 Outlook calendatr?  Thanks!

    I also have this issue (iPhone 5).  Outlook needs to be configured properly in that timezone option needs to be selected.  Which is challenging enough.
    However the bigger issue for me is that when I open the ICN file:
    1.  I have no way to accept decline etc.
    2.  When the event is populating the calendar in the wrong time I can neither cut and paste nor select and move.  It is totally static.
    So for every meeting request I have to ensure it populates the right time as per my time zone. and if it doesnt i have to manually enter a second meeting 'X' hours earlier/later depending on which time zone the meeting was generated in.
    I spoke to Apple.  Their solution is make sure Outlook is properly configured.  Fine...but good luck.  I need a work around that is Apple based.  Because this *****.
    They said they would send to the development team.  I am not holding my breath.

  • Events created on iphone over a week into the future do not sync with mac

    Hello,
    I have the following problem: whenever I create an event on iCal on the iPhone (2.2.1 3G), this newly created event sync backs fine to iCal on my mac (macbook running 10.5.6), as long as it occurs within 7 days into the future. Any events that lie more than 7 days into the future will not sync back from my iphone to the mac.
    Example: today is 3/3. Any events create on the phone for 3/3, 3/4 ... 3/9 WILL sync back to ical on my mac. Events for 3/12 do NOT sync. Events for 3/10 8am did sync, but 11pm did not. Forget about your dental appt 6 months from now. As if there is some arbitrary "7 day in the future" cutoff.
    I called phone support, thinking there may be a hidden setting or so that I overlooked, and that was utterly useless. The Apple rep suggested to look in the app store for an application that might fix this. "Besides", he said, "nobody creates events more than 7 days in the future". ***?
    Looks like a bug to me, but maybe I overlooked something.
    Can anybody confirm this behavior?
    Is there any setting that I can try?
    Any procedure that I should try?
    ny other suggestions?
    Thanks much!
    Erik

    Before i began syncing calendar events over the air with my MobileMe/former .Mac account, I synced contact info direct with iCal on my Mac via the iTunes sync process. I had no problem syncing events created more than 7 days in the future with the direct sync with iCal on my Mac, and I don't have this problem syncing calendar events over the air with my MM account.
    I believe there is a setting under the Info tab for your iPhone sync preferences for syncing calendar events. I no longer have this available for my iPhone sync preferences since I'm syncing calendar events over the air with my MM account. I know the setting includes an option for syncing events in the past, but I don't recall if it included an option for syncing events in the future. There should be a setting for syncing all events. Is this selected?
    There is also a setting on the iPhone for syncing all events, or events 2 weeks back, or 3 months back, but nothing for limiting syncing events in the future such as limiting this within the next 7 days.

  • Events created on my iPhone 5 calendar are no longer syncing with iCal.

    Events created on my iPhone 5 calendar are no longer syncing with iCal on my Macbook Pro (Lion OSX). It works fine the other way around.
    I can't understand why, and cannot find a solution. Please help!

    You can no longer sync via iTunes. That method of sync was removed (and the 1000+ post thread is arguments over things tangientally related to that).
    You need to sync via other means than iTunes, then.
    One option is to use iCloud. If you sign into iCloud on all your devices, and then make sure your calendars are in the "iCloud" section on your devices, they should sync.
    If you don't want to use iCloud, you could use Google calendars, they operate much the same way (but may be less reliable).
    Or if you use Exchange for work, you could sync that way.
    Or if none of those are acceptable, you could install OS X Server and set up the calendar server on your local network and use it to sync. This is fairly straightforward "for setting up a UNIX calendar server" but it's not trivial and beyond the scope of a forum post to explain it all

  • Event CREATED is not triggered for objects of type USER

    Dear all,
    I'm currently configuring a workflow, which should be started when new user account is created. I took event CREATE for object type USER as a start event, but the workflow does not start, when I create new user account via transaction code SU01. If I test workflow in SWUS, everything works fine. I checked the event trace, but it shows no records for events triggered when I use SU01 and create a user.
    Could you please advise how I can activate triggering of this event without using ABAP-developed event trigger?
    Thank you in advance.

    but here the requirement is to trigger workflow after the user account is created in the system.
    One more way to trigger a workflow is by the messages output. I mean when a user account is created successfully then a message will displayed on the screen let say User ABC created Successfully right so, when ever this message is raised then you can start the workflow by using this message. this can be done by using the txn SWUY
    1. Open SWUY txn.
    2. Click on Continue  and in the next screen give the area as the message class name from which the message is getting triggered and its number in the field Message and click on continue.
    3. Then it will open the PFTC txn mention the description and click on the workflow builder button and design the workflow as per you requirement.
    and once this is done , so when ever the message from the above mentioned message class is raised at that time your workflow will also be started.
    In this way I hope you can reduce your development time , searching for the right BADI or User exit and implementing the code and testing..
    Here in the above txn all you have to make sure that from which message class the message is getting displayed once the user is created successfully, I suggest you a way is you create a dummy user and once the dummy user is created succeffully system will display the message right?, so just double click on the message at the bottom of the screen this will let you knwo what is the message class and number it is using. and once you know tyr to approach the above steps....

  • Calendar events created on the BlackBerry before first sync are not synced with iCal

    Hi all,
    I’m helping my uncle regarding problems and requests he has about his BlackBerry Bold 9000. One request he had is to be able to synchronize the calendar with iCal (he has a Mac). I thought this was a simple task, but it eventually appeared to be a nightmare. I spent several hours before finally giving up.
    This is the situation:
    His BlackBerry’s calendar is full of events (past and future). iCal is empty. We would simply like to see all his BlackBerry’s events in iCal. We’re using BlackBerry Desktop Manager (last version as of 2010-02-25).
    The first synchronization didn't changed anything. Events created after that, either in iCal or on the BlackBerry, appeared correctly on the other side after re-syncing.
    Searching in the Knowledge Base and on this forum, I found KB13330 and KB19621. Do you think it is linked to this last issue?
    I made a backup of the BlackBerry before doing any testing, and started over everything several times. I even cleaned all iCal and SyncServices data (and also tested with a new empty account on his Mac), but it didn’t change anything.

    I have not signed up for or used i-cloud and do not believe I've entered anything via i-could (at least not on purpose :-) ).  I either enter an event in the calendar (i-calendar version 6.8--came on the laptop) OR into the calendar program on the i-phone 5 and then sync--I expect the event to then show up in the proper location on both devices--this is the way it has worked flawlessly with the MacBook Pro and i-phone 4 for a long time.
    The operating system of the laptop is: 10.8.4 and the iphone 5 is: 6.1.4.  I believe both are current; I frequently search for updates and install them regularly.
    Thanks for your time to assist me.  Our tech "guy" is also stumped by this--a long time Apple product user and very knowledgeable "techie."

  • What are the selections when defining a job triggered by an event?

    I use SM36 by defining a job triggered by an event. I click "Start conditions" button, then click "After event" button and place the event name.  I wonder if I would have to continue to click the button "Immediate" button and save it?  or just save it without clicking the "Immediate" button?
    Thanks and this question is urgent!

    Hi!
    No you only save and after define the step!
    If you click Immediate, your job start immediatelly and not after event.
    Max

  • Workflow issue with BUS2001 and event CREATED

    Hi friends,
    could anyone of you give me a piece of advise on the following topic ?
    I need to use the event CREATED of BOR BUS2001 (project definition) as a starting event of a workflow.
    I activated linkage (transaction SWETYPV,
    switched on Switch Event Trace (transaction SWELS).
    I succesfully tried to create this event using transaction SWUE, receiver was started,
    I created project definition by transaction CJ20N, then project definition was succesfully saved, without any error, but no event appeared in Display Event Trace (transaction SWEL). I use another events (material, document, purchase, ...) as starting events of workflows without any problem. System: R/3 4.7, WAS 620.
    Can you tell me where I have made a mistake or what I have neglected ?
    Many thanks in advance.
    BR
    Jan

    Jan,
    I was trying to post this same issue which I faced recently with SAP 4.6C and found your question. Unfortunately no body had answered so far.
    Did you try raising an OSS message?
    Suresh R

Maybe you are looking for