BI_PROCESS_TRIGGER event job in released status ONLY

HI ALL,
I WANT TO TRIGGAR PC TWICE IN DAY 5 PM AND 2AM.
1.I CTEATED EVENT IN SM62 (ZSDPC_EVENT)
2.I CTEATED SE 38 PROGRAM (zsdpp_pc_event_program )LIKE BELOW
REPORT  zsdpp_pc_event_program.
DATA: gv_time TYPE sy-uzeit,
      eventid TYPE btceventid.
gv_time = sy-uzeit.
eventid = 'ZSDPC_EVENT'.
IF ( gv_time GE '170000' AND gv_time LE '170000' )
   OR ( gv_time EQ '020000' AND gv_time LE '200000' ).
  CALL METHOD cl_batch_event=>raise
    EXPORTING
      i_eventid                      = eventid
    EXCEPTIONS
      excpt_raise_failed             = 1
      excpt_server_accepts_no_events = 2
      excpt_raise_forbidden          = 3
      excpt_unknown_event            = 4
      excpt_no_authority             = 5
      OTHERS                         = 6.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
ENDIF.
3.I SPECIFIED AFTER EVENT IN MANAIN VARIANT .ACTIVATED AND SCHEDULED PC
4. THEN RUNE THIS PRORGAM IN SM36
BUT MY PROBLEM IS IN SM37 JOB BI_PROCESS_TRIGGER event job in released status ONLY
please guide me if i am wrong .
REGARDS,
KP

It is supposed to be in Released status.
The BI_PROCESS_TRIGGER job is scheduled to run based upon the event being triggered (from your ABAP program).  The only thing this job does is trigger the event that runs the next process in your process chain.  If you set up the Start variant in your PC to schedule "After Event" and you set the periodic flag, then after the BI_PROCESS_TRIGGER job finishes, it will reschedule itself.  So, there will always be a BI_PROCESS_TRIGGER job in a Released status.
Again, the BI_PROCESS_TRIGGER job does not run the entire chain.  It only triggers the next processes in your chain.
Does this help?
PS.  Are there any BI_PROCESS_TRIGGER jobs in a Complete status?  If not, then there is an issue with your ABAP program.
Edited by: Geo on May 4, 2009 11:13 AM

Similar Messages

  • Stop Scheduled job which has no jobs in released status

    Hello
    I need to stop some back ground jobs, but in Sm37 i m not able to see any jobs in released status or scheduled status to cancel these job,the job are set to run in a frequency of 2 days
    please let me know
    Thanks
    Praveen

    Event triggered jobs can be configured in SAP directly ,,,
    checkout this link below
    http://help.sap.com/saphelp_45b/helpdata/en/fa/096e44543b11d1898e0000e8322d00/frameset.htm
    Else you can use any SAP supported 3rd party tool for job scheduling
    like Tivoli or any other tool
    http://help.sap.com/saphelp_nw70/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    http://www.sap-press.de/download/dateien/1102/sappress_job_scheduling.pdf
    Hope this will help you
    Cheers
    dEE

  • Background job in Released status and does not run. What is the problem?

    Hi Experts,
        I ran a ABAP report as a background job. But when I see the job status in SM37 I found that it is "Released" but the job does not run further, It remains in "Released" state. I have given the correct variant and start condition "immediate" . Moreover there is no spool and log as well.
    The ABAP report runs fine in forground. It used to run in background few days back.
    What could be the problem? Kindly help!
    Thanks
    Gopal

    Hi Bob,
        But I checked after 2 days still the job status is in Released state.  There were some other jobs that ran successfully. So atleast after two days I hope the job should have run. I can't even delete it. What shall I do?
    Thanks
    Gopal

  • Scheduled jobs are in released state only

    Dear Experts,
    we shedule jobs in background periodically. But for a particular time, all scheduled jobs are in released state only. Please suggest what might be the issue. Even some SAP std jobs have have not started.

    Hi Raghavendra,
    Have you checked enough BTC work process available in your SAP system.
    Use SM65 transaction,goto =>Additional Tests ;check mark "Determine work process status" and "Determine no of jobs in queue"
    and see the test results for any problems.
    Best Regards,
    Shyam Dontamsetty

  • Event based scheduler job - 2 events at the same time only 1 run

    Hi,
    i converted our dbms_job - jobs to the newer package dbms_scheduler.
    It is a 10.2.0.4 patch 23(8609347) database on an windows server 2003 R2 Enterprise x64 Edition SP2.
    The Jobs(about 130) are nothing special ... only some statistics, matview-refreshes and so on.
    For the notification of failed jobs and jobs which run over the max_run_duration i downloaded and installed the job notification package.
    The jobs are assigned to different departments and the corresponding developer teams in our company.
    I created a notification job for each department and if a job fails we (the database administrators) and the corresponding deverlopers will be informed.
    Now i ascertained that only 1 email will be send if 2 jobs of the same department fails at the same time.
    The emailer-jobs are auto-generated by the job notification package. I only modified them to look after all jobs of special department and not only after one job. (--> event_condition ... object_name LIKE 'XXX%')
    example for dba-jobs(copy of the script output of TOAD):
    SYS.DBMS_SCHEDULER.CREATE_JOB
           job_name        => 'DBA_JOBS_EMAILER'
          ,start_date      => NULL
          ,event_condition => tab.user_data.object_name LIKE ''DBA%'' AND tab.user_data.event_type in (''JOB_FAILED'',''JOB_OVER_MAX_DUR'')'
          ,queue_spec      => 'SYS.SCHEDULER$_EVENT_QUEUE, JOB_FAILED_AGENT'
          ,end_date        => NULL
          ,program_name    => 'SYS.EMAIL_NOTIFICATION_PROGRAM'
          ,comments        => 'Auto-generated job to send email alerts for jobs "DBA%"'
        );I thought that a queue is used to manage all events from the scheduler jobs. So i made a test with 2 dba jobs and simulated a failure at the same time but i received only one mail.
    So what is happend with the second event? I looked for the events in the qtab(SCHEDULER$_EVENT_QTAB) which belongs to the event queue(SYS.SCHEDULER$_EVENT_QUEUE) and no event was missing.
    So i think the emailer job has to run 2 times.
    Is anyone able to explain or to find my mistake?
    I know that the easiest way is to create one emailer job for each normal job but i think this is a little bit costly because all the arguments are the same for one department.
    Thanks & Regards

    Thanks for your fast answer.
    You are right with the "enabled => TRUE;" part and i only forgot to post it.
    So the Job is enabled (otherwise it would not send any mail). Because it is sending one mail i think it is also not necessary to hand over a job_type.
    Additionally the job starts a program ... so it is right to set the job_type='STORED_PROCEDURE' isn't it?
    And also right ... i already added the agent as subscriber to the queue.
    Anyway i think the whole thing do what it have to do. So in my oppinion there are no big mistakes in creating the job or at adding the subscriber.
    There are also no problem in raising the events by itself and enqueue them in the scheduler event queue.
    There is only a problem when 2 jobs fails (or run out ouf max duration) at exactly the same time.
    If i understand it right:
    The agent/subscriber will find the "JOB_FAILED"-event for the first Job in the queue and starts the emailer Job.
    The agent will also find the "JOB_FAILED"-event for the second Job and wants to start the emailer Job again.
    I don't know if this is really the problem but perhaps the emailer-job can not be started in consequence of the second event because ist is already running.
    I also don't know if this is a mistake of the agent or of the emailer-job by itself.
    I only want that it runs two times (one run for each event). I my case it also doesn't matter which email is send at first.

  • Digital Signature only Release Status with 3(Approver) Signer

    Hello SDN Folks
    I have done all the basic settings for Digital Signature which is sawn in following link
    http://wiki.sdn.sap.com/wiki/display/PLM/Digitalsignaturein+DMS
    it is work  fine with 1 RE (Release) status and 1 Signer
    We have in process to implement Digital Signature with only two Status
    our scenario is
    Document Creator  Create Document With Status CR
    Document Approver Approve Document With Status RE
    now we have scenario that For 1 Document we have 3 Approver and 3 approver must digitally sign on DIR
    our status is
    only   CR(create)---->RE(release)
    so how i can attached 3 digital signer  with only 1 RE(Release) Status
    is it possible to go with 3 digital signer with only 1 RE (Release) Status ????
    Regards
    Tushar Dave

    Hi Tushar,
    Your requirement of utilizing 3 different approvers for a single 'Release' status in a document type/s can be addressed via the approach proposed below:
    1.Define 3 individual authorization groups
    2.Define 3 individual signatures
    3.Define a common signature strategy
    4.Assign the above 3 individual signatures to the common signature strategy
    5.Define the signature sequence(the order in which the 3 approvers must approve)
    6.Define users and restrictions(signature assigned to relevant approvers/users)
    7.For the document type in question for the 'Release' status,assign the above signature strategy and test.
    For more detailed information on using digital signature effectively,refer the below link
    http://help.sap.com/saphelp_470/helpdata/en/9f/857f3a1c7b11d294d200a0c92f024a/frameset.htm
    Regards,
    Pradeepkumar Haragoldavar

  • BOM STATUS only released for costing

    Dear gurus ,
    i need create a BOM STATUS only for CK11N ( COSTING) but when a created the new BOM STATUS whit only the flag "released for costing" but when i run the CK11N
    the system don't find the bom .
    Are there the other customzing setting?
    Thanks a lot
    Daniele Pistilli
    PP TEAM

    HI
    Check with BOM usage 6 for your requirement.also check in OKKN for your costing variant and qty structure  control> BOM application> selection Id for your BOM
    Regards
    Anupam Sharma

  • How to get informed when PO / Contract changed to ordered / released status

    Hi,
    I am working on a program which sends SRM PO and Contract data to a non-SAP system, one of the requirements is to send SRM data immediately after PO / Contract's status changed to Ordered / Released ( workflow is used here ).
    I tried to used BBP_DOC_CHANGE_BADI, but noticed throuhg debugger that the last time this BADI get called, I still didn't see Ordered / Released status in the Status table.
    Is any way to know status change for PO / Contract ?
    Thanks a lot,
    Wayne Liu

    Hello Wayne,
    Solution 1:
    You can use the SRM Alert Mangament to know when a contract was released, specifically the following events RELEASED_AGAIN
    RELEASED_NEWLY.
    Check IMG Cross-Application Basic Settings-> Event and Event Schema for Alert Management
    For PO I could not find a similar event, but there is a APPROVAL_PROCESS_DOC_APPROVED event which can be used if the PO was approved after ordering.
    In any case you can create your own events and event handlers using the SRM Alert Management BAdi BBP_ALERTING.
    Solution 2: Only for Contracts
    You can use the existing Distribution mechanism to distribute contracts to Non-SAP systems.
    Distribution of contracts is triggered whenever significant changes are done to the Contract (like Release, Lock, Unlock).
    Implement function module NOR3_CTR_TRANSFER for this purpose.
    Edited by: Sushil Kumar on Mar 22, 2010 9:41 AM

  • How to maintain SAP Release status in table COTPL

    Hi All,
    We have upgraded our system from ECC EHP4 TO ECC EHP 5. Now our SAP Release is 702 but in table COTPL
    still the SAP Release status is 701 becuase of which there is error in some of our sap jobs.
    Request you all to help us. How we can maintained SAP Release in table COTPL?
    Thanks

    Hi,
    You can try using priority field in the rule. Please check this.
    Priority for Responsibilities
    If you are using responsibilities for role resolution in Workflow, you can provide individual responsibilities with priorities.
    Example: There are various responsibilities for a standard role for processing orders, grouped, for example according to order value (one responsibility for orders up to a certain value, another for orders with a greater order value).
    Assuming that orders for a particular customer are always to be processed with the same responsibility (and therefore by the same agent), you can access it via another responsibility with a higher priority that contains the customer name as the only criterion. The responsibility (-ies) with lower priority, and therefore the order value, is then no longer taken into account during agent determination.
    Use only numeric values here, and note that, logically, the responsibility with the highest numberic value in this field has the highest priority.
    Procedure
    1. Sequence Priority of Objects
    In Create mode, assign a priority to the objects you wish to rank.
    To do so, assign an alphanumeric value (1, 2, 3... or A, B, C...) to each object.
    In Change mode, overwrite the value in the field.
    2. Priority When Defining Evaluation Paths
    In the Priority field, enter the priority or priorities for objects that should be considered in evaluation paths. Enter "*" if you want to have no restriction.
    3. Priority for Responsibilities
    Maintain the priority directly in the detail screen for the responsibility or in the overview screen for the responsibilities for the rule. Note that you must use numeric values here. On the overview screen, the system sorts the responsibilities in descending order of priority.
    Hope this helps.
    Feel free to revert back.
    -=-Ragu

  • Disable snmp trap link-status only on access ports?

    Hello,
    I am searching for a way to disable the snmp trap link-status only on access ports.
    The problem is that we have a lot of new devices which have no port scheme, so I can't say that everytime the router uplink on a switch is on port X or Y.
    So I have to figure out where my uplinks to routers, accesspoints or other switches are and set all other ports to
    no snmp trap link-status
    no logging event link-status
    spanning-tree portfast
    Campus Manager knows the uplinks between the devices, but there is no way to perform such a change, right?
    The next problem is, that there is nothing configured on the ports, so I can't search for a string by using compliance check in RME.
    Is there any posibility to get the topology informations from CM together with the configuration feature from RME?
    Thanks a lot!
    Sven

    Hello,
    thanks for your reply.
    I thought of something like you wrote...
    There is a best practice report for disabling cdp on access ports.
    Creating this report for a switch and click on "fix" the CM will configure the command "no cdp enable" on every access port.
    So I will have a difference between uplinks and access ports.
    The problem with that solution is, that I can't fix all my switches with one job.
    And with >1000 switches it is not really possible to click every device.
    Any further advice?
    Thanks!
    Sven

  • How to schedule a job Monday thru Friday only

    How can I schedule a job Monday thru Friday only?  I tried to use a Factory Calendar but we do not have any M-F calendars setup.  If I need to create a new factory calendar, how can I create on without any holidays?
    Thanks.
    Ryan

    Hi
    see this
    Create a Variant for the Program and
    Schedule JOB in background:
    Go to SM36 create a Job
    enter Program and Variant for that program in STEP..
    click on Start Condition
    Click on DATE and TIME enter date scheduled Start and END times
    click on Period Values
    Click on HOURLY/WEEKLY etc
    CLick on RESTRICTIONS also to use further criteria.
    so your job will be scheduled and run as per your requirement.
    and in SM37 Transaction check the status of that JOB
    Check this link for scheduling jobs..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Regards
    Anji

  • Include the Content Released status flag in default WC data control

    Hi,
    We have integrated custom webcenter portal application with UCM for documents integration. The integration was done using default data control.When we change the document which is getting displayed in the portal from UCM and check it into the system, wokflow gets triggered properly and the content status shows review status. But when we access the document in the portal, at that point of time new document is visible even though the content is still not released from the system.
    Can anyone of you let me know how to include the released status of the content in the default data control so that we can avoid this situation
    Regards,
    Boopathy

    First of all, I think this is more a question to WebCenter Portal, because it is how WebCenter Portal components are written.
    Another thing is, that this is probably 'works as designed' and there might be good reasons for that. Since PS3, WebCenter (Portal) exposes some of UCM's functionality, among them ability to approve items in a workflow. This is the reason why it makes a good sense that items are available. Of course, they should be available only to approvers; also unapproved items should not appear if an item is displayed via Content Presenter (compare to a document published on a website via WCM). If you found such a behaviour, please, report it to MetaLink as it might be a bug.

  • Terminating Event in PO Release Workflow. Workitem is not terminating

    Hi WF Experts,
                            I have done Purchase Order Release Workflow with 10 level release With 2 days dead line. Since standard release supports only 8 level release i have opted for Role Resolution Via User Exit 9 . and i am picking release codes from ztable.
    I was working fine till now.But suddenly end users are facing problem that workitem is not terminating even after they have released the PO.
    What could be the issue what is the terminating event for PO Release workitem.
    Please suggest me how to resolve this issue.
    Regards,
    Hari

    Hi Hari,
    Please check if the following links helps:
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/sap%252bworkflow%252bevents
    http://help.sap.com/saphelp_nw04/helpdata/en/c5/e4b590453d11d189430000e829fbbd/frameset.htm
    Hope this helps!
    Regards,
    Saumya

  • ME_PROCESS_PO_CUST method PROCESS_HEADER to reset release status of doc

    Hi Everyone,
    I have read lots of threads regarding the implementation of BAdI ME_PROCESS_PO_CUST. However, I could not find one which fits our requirement which is the resetting/ restart of the release status of a PO whenever a released/approved PO has been changed not only in the quantity field but also in the other details of the document.
    I believe that the method to be used in this sense is the PROCESS_HEADER. Would you know any logic which could help me restart an already released PO document whenever any changes have been made to the document?
    Kindly send your recommendations.
    Thanks and regards,
    Reymar

    Hi,
    I used this code:
    CALL METHOD im_header->get_data
    RECEIVING
    re_data =  lmpoheader.
    IF lmpoheader-frgke = 1 AND
        lmpoheader-frgzu IS NOT INITIAL.
    lmpoheader-frgke = 2.
    lmpoheader-frgzu = ''.
    CALL METHOD im_header->set_data
    EXPORTING
    im_data = lmpoheader.
    ENDIF.
    After saving the PO document, the fields FRGKE and FRGZU were not changed. When I debugged the code, the values of the fields were changed. I just don't know if the last CALL METHOD has been properly executed so that IM_DATA may contain the changed values.
    Thank you and regards,
    RE
    Edited by: Reymar Ellazo on Apr 21, 2009 6:19 PM

  • Cash Management : PO release status in Liquidty Forecast Report

    Hi,
    Can anybody know how to setting :
    PO only links to Liquidity Report in TR-CM (FF7B)  only if PO has been release completely ?
    Thanks

    Hi,
    You can the desired report through t/code: ME2L / ME2M , after executing the report go the change layout & select the Release code / release status field. Release staus field will be appear like , if first release is done , the status will come as X or if second release done, the it will come XX.  And from release indicator field , you can get the code release code .
    Regards,
    Raghunath

Maybe you are looking for