Collect message till particular point of Time in BPM

Hi,
I want to collect messages till particular point in time like till 6 oclock evening.
In deadline branch i have to use Expression and should give date and time.
What is the format of date and time if it is not coming in payload.
What is the difference between: Creating the step and Creating the process property.
Any help is apreciated.
Thanks and regards,
Satish

The date and time format will be the standard XSD date and time format
Date:
YYYY-MM-DD  or YYYY-MM-DDZ
Time:
HH:MM:SS or HH:MM:SS.x
But since your requirement is to collect the messages till 6pm everyday, I guess there is a problem with the mandatory date field.
Maybe you can use a datatype which holds the current time in a field and use the field as the loop variable.
- Kannan

Similar Messages

  • How to identify all jobs that were running at a particular point in time?

    TES 6.1.0.391
    From time to time, we have a need to identify all jobs that were running at a particular moment in time on a particular agent (we have about 800 agents)...eg "what was running ("Active") at 09:03:42 a.m. two days ago on agent XYZ?"
    I've used other job schedulers, and have written queries to extract that info, but I thought before I work on one for Tidal that I would ask the community....how are you getting this info?
    Any help is greatly appreciated, thanks.

    I had some time over the weekend and was able to come up with something of use.
    Please note that our repository is MSSQL
    select jobmst_prntname as ParentJobName,
    a.jobmst_prntid as ParentJobId,
    a.jobmst_id as JobId,
    a.jobdtl_id as JobDetailID,
    jobmst_name as JobName,
    b.owner_name as JobOwnerName,
    c.jobdtl_cmd as JobCommand,
    c.jobdtl_params as JobParameters,
    jobmst_lstchgtm as LastUpdateDate,
    d.nodlstmst_name as AgentListName
    ,[jobrun_status]
    ,[jobrun_duration]
    ,[jobrun_time] as starttime
    ,DATEADD(ss,jobrun_duration, jobrun_time) as endtime
    ,f.nodmst_name as AgentName
    ,[jobrun_owner]
    ,[jobrun_cmd]
    ,[jobrun_rundt]
    ,[jobrun_batch]
    ,[jobrun_params]
    ,[jobrun_launchtm]
    ,[jobrun_fullpath]
    from Admiral..jobmst a,
    Admiral.dbo.[owner] b,
    Admiral.dbo.jobdtl c,
    Admiral.dbo.nodlstms d,
    Admiral.dbo.jobrun e,
    [Admiral].[dbo].[nodmst] f
    where a.jobmst_owner=b.owner_id
    and a.jobdtl_id=c.jobdtl_id
    and c.nodlstmst_id=d.nodlstmst_id
    and e.jobmst_id=a.jobmst_id
    and e.nodmst_id=f.nodmst_id
    and jobmst_active='Y' --This condition shows only the active jobs
    and jobrun_rundt ='2014-01-26' --This is the job run date. If the job finishes the next day, that is what is going to be used.
    and f.nodmst_name = 'abc' --This is where you input your agent name
    Hope this helps!

  • BPM collects messages, and should terminate at a given time

    Hi,
    i'm trying to create a scenario where a business process collects messages. At a certain time each day this process must transform this messages into one message and terminate.
    (I used the BpmPatternCollectTime process as a template)
    My problem is:
    how to tell the deadline branch it should rais an exception every day at a given time, lets say 10pm?
    I already tried to configure this branch with "Reference Date/Time=Expression" and set date and time to 2008-10-04 14:30:00. But the process won't stop at this time.
    Any ideas?
    Thanks in advance,
    ms

    Hi,
    I am not sure if you could use this pattern for stopping at a given time?
    Maybe you could configure a report that sends a message every day at the given time to the PI and your process stops with receiving this message.
    Regards
    Patrick

  • BPm collect Message Check

    Hi,
    when i perform a check to standard BPM patterns BpmPatternCollectMessage. I get the following info am i wrong some where do any changes needed to be done.
    Container element stopmessage in step receive terminating message is initialized but not used
    Container element collectmessage in step *receive * message is initialized but not used...
    kindly help

    I did the above scenario as told.
    It is a bpm message dependent scenario. It keeps collecting messages till a particular message is received.
    I more or less used the message dependent pattern given in SAP BASIS.
    The data types are as follows.
    Dt_In
         Name
         OverallID
    Dt_In
         Name
        OverallID
    1 to 1 mapping
    I used the OverallId for correlation. The receive step inside the infinte loop collects the messages with OverallID '1' while the receive step below collects messages with OverallId '2'.
    In the container elements i defined 2 separate message interfaces. One for OverallID '1' and the other for OverallID '2.  The 2 message interfaces have the same Message type. Only values will be different.
    For the parallel fork step i have given end condition OverallID = 2.
    When i execute the scenario the messages are all comingin a queue. The status is wait for event.
    What could be the problem?
    Thanks
    Edited by: pratichi chauhan on Sep 24, 2008 2:46 PM

  • Structuring a Business Area for Reporting Periods and Points in Time

    Dear all,
    I'm in the process of designing my first business area for discoverer.
    The database is for people staying in accommodation over various periods.
    (Anything from individual days to periods of 15 years!!)
    The reports I'm producing fall into two categories:
    (a) Reports on periods of time such as:
    Accomodation days during a year broken down by Region
    Trend of accommodation days per month during a two year period
    (b) Reports on a particular point in time such as:
    Number of people in accommodation on a particular day
    I'm trying to work out how to structure the business area.
    If I think about requirement (a), I'm inclined to create a view which
    splits up periods into one month chunks (the smallest period I think I need).
    By this I mean having a view which gives me a row for every month for which any period of accommodation is active. This makes reporting on a monthly basis fairly easy.
    If I think about (b), I'm inclined to create a view which leaves the accommodation periods as single rows and then calculate a boolean field which indicates whether that accomodation is active on the date in question.
    It seems that these two requirements need different structures in the business area. Maybe it's best to create two folders which draw on the two different views.
    Any thought would be appreciated.
    Regards
    Suhada

    Hi,
    As you would probably expect, it all depends on your requirement and the table design.
    You can create a date hierarchy in Discoverer that contains the day, month, year levels and this will make it easy to create reports with totals aggregated at these levels.
    However, if your table contains, for example, the start and end dates when people move in and out of accommodation, then you will need to have a period table so that you can report on the months between the start and end dates. The period table will list all past and future months and you can join this to your data to obtain totals for all the periods.
    If you need to have reports that display zeros or nulls for periods where there is no data, then you will need to outer join your data with a period table.
    The decision on whether to use views or folders and joins in the EUL depends on the complexity of your data model. If you need to join many tables together to produce a single report, then you should consider putting some or all the joins into database views.
    Hope that helps,
    Rod West

  • AR Customer Balances as of any point in time

    Does anyone have a script/package to calculate customer balances in AR as of a particular point in time? I know Oracle does it on the fly using the historical information but I was hoping that I didn't have to re-invent the wheel.
    Thanks

    Having same problem.

  • BPM Collect Message dependent AND time dependent

    Hi
    I have a IDOC to file scenario where I have to collect all the IDOC until I receive a stop IDOC.
    Once the End collect IDOC is received I have to do a n:1 transformation and write the file to the FTP.
    The problem is, at times the IDOC which is suppose to end the collect loop gets stuck in ECC R3 system.
    So Im wondering If I can do something like say, we have two options inside BPM both time dependent and message dependent.
    In this case which ever comes first (the Stop/END IDOC or the Time say 3 mins) will end the collect process.
    Can anyone pls suggest will it work and if so what are the additional steps I have to introduce in the BPM.
    Pls advice.
    Right Now these are the steps in the BPM Collect Message dependent.
    1. Block (I have used correlation)
    2. Fork inside the block
    3. Fork branch one has a look with end condition as 1=1; then a receive step and a container operation inside the loop.
    4. Fork branch two receives the end collect idoc.
    5. Transform step outside the block.
    6. Send step.
    Thanks
    Prasanna

    Hi Abhishek/ Raj
    Thanks!!
    I have done the changes let me confirm after testing it once. In the mean time I have one more question regarding the same BPM, as I have mentioned in the first post, the BPM contains the 6 steps mentioned but the the 6th step is inside another block (Block2).
    The steps 1 to 4 are inside Block1.
    The step 5 ie the transformation step (n:1) is in between the Blocks ie not inside any block (hope im not confusing).
    The second block is for sending the file to the FTP and based on the acknowledgement (transport level) I have to send an email.
    So Block2 already contains a deadline branch, it is to wait for the positive acknowledgement for say 3 mins and send the error email if incase we dont get positive ack within the time limit.
    My doubt is,
    1. Is it the only way (having two block and two wait steps) to achieve this.
        (one block for collecting and one block for ack)
    2. Is there any way I can have a single Block in the BPM insted of two. If so what are the steps.
        Having single block, Will improve anything??
    Thanks
    Prasanna

  • Collecting Records till some time

    Hi all
    we are collecting vendor records from multiple legacy system and bundling to one idoc and sending it to SAP and also we need to collect vendors till certail period or until we receive next vendor record with same acount group. we are using BPM for this
    How to achieve the above condition of collecting vendor record till some time or till we receive next vendor record using BPM?
    Regards
    Bhasker

    Hi,
    please have a look at this example scenarios:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm
    Regards
    Patrick

  • Regarding collecting messages until you get particular payload

    Hi All,
    I am having below requirement,
      I am getting several messages from source, i need to collect all the messages, until i get TRAILER message
    Condition is " COLLECT THE PAYLOAD UNTILL YOU GET DTS IN PAYLOAD(TRAILER)". so we need to collect header message and data messages untill you get trailer message.
    message1(Header message which contains DHS)like below  
        20090604034447338isc                 DHS64    500d3100033d705050258002f86300
    message2(data message which contains DDS) like below
               20090604034447338isc                 DDS64    50031s000337050502580d0286300
               20090604034447338isc                 DDS64    5003100033705050d25800286300
    Message3(data message) like below
               20090604034447338isc                 DDS64    500310003370505025800286300
               20090604034447338isc                 DDS64    500310003370505025800286300
               20090604034447338isc                 DDS64    5003100033d7050502580f0286300
    Message4(trailer which contains DTS) like below 
               20090604034447338isc                 DTS64    500310003370505025800286300
    So 4th message contains 3 charcters DTS, now i need to end the collecting messages in loop and need to send the collected messages to target.
    Presently i am using PI7.1 which contains some patters to use as XPath for end condition purpose. I am using Contains Patter(CP) in loop end condition. according to my understanding the collection in loop has to end when it find DTS in message. but it is not working. Please share you ideas whether Contains Patterns suitable for my requirement
    or not and is there any other better approach for this requirement?
    Thanks & Regards,
    Madhusudhan

    Hi,
    Thanks for your valuable reply,
    As you told i implemeted the logic for loop end condition like below
    Value CP 'DTS'
    Value is condition variable in xpath according to PI7.1.
    Now according to above xpath, if DTS found in payload at any place. The loop has to end, but now even there is no DTS in payload the loop is getting complete and messages are going to target.
    Thanks,
    Madhu
    Edited by: Madhusudana Reddy on Aug 5, 2009 9:13 PM
    Edited by: Madhusudana Reddy on Aug 5, 2009 9:24 PM
    Edited by: Madhusudana Reddy on Aug 5, 2009 9:25 PM

  • Migration status at any point of time

    Hello to All,
    I am running a migration scripts (which are actually a procedures) to pick the data from the source table to target
    table.
    My requirement is to find out the migration status at any point of time.Is there any way to do it?
    Please help.
    Best regards,
    Pavan

    Hi Pavan,
    Does your source table have columns to store the status, error message?
    In general, stage tables should have a status and error message column which are updated by the migration script with the status of that particular record.
    You can check these columns to get the status.
    For eg
    select status, error_message, count(*)
    from you_table
    group by status, error_message;The above script will give the number of records Successfully processed, errored during migration.
    Regards
    Imran

  • Problem in performing multiple Point-In-Time Database Recovery using RMAN

    Hello Experts,
    I am getting an error while performing database point in time recovery multiple times using RMAN. Details are as follows :-
    Environment:
    Oracle 11g, ASM,
    Database DiskGroups : DG_DATA (Data files), DG_ARCH(Archive logs), DG_REDO(Redo logs Control file).
    Snapshot DiskGroups :
    Snapshot1 (taken at 9 am): SNAP1_DATA, SNAP1_ARCH, +SNAP1_REDO
    Snapshot2 (taken at 10 am): SNAP2_DATA, SNAP2_ARCH, +SNAP2_REDO
    Steps performed for point in time recovery:
    1. Restore control file from snapshot 2.
         RMAN> RESTORE CONTROLFILE from '+SNAP2_REDO/orcl/CONTROLFILE/Current.256.777398261';
    2. For 2nd recovery, reset incarnation of database to snapshot 2 incarnation (Say 2).
    3. Catalog data files from snapshot 1.
    4. Catalog archive logs from snapshot 2.
    5. Perform point in time recovery till given time.
         STARTUP MOUNT;
         RUN {
              SQL "ALTER SESSION SET NLS_DATE_FORMAT = ''dd-mon-yyyy hh24:mi:ss''";
              SET UNTIL TIME "06-mar-2013 09:30:00";
              RESTORE DATABASE;
              RECOVER DATABASE;
              ALTER DATABASE OPEN RESETLOGS;
    Results:
    Recovery 1: At 10.30 am, I performed first point in time recovery till 9:30 am, it was successful. Database incarnation was raised from *2* to *3*.
    Recovery 2: At 11:10 am, I performed another point in time recovery till 9:45 am, while doing it I reset the incarnation of DB to *2*, it failed with following error :-
    Starting recover at 28-FEB-13
    using channel ORA_DISK_1
    starting media recovery
    media recovery failed
    RMAN-00571: ===========================================================
    RMAN-00569: =============== ERROR MESSAGE STACK FOLLOWS ===============
    RMAN-00571: ===========================================================
    RMAN-03002: failure of recover command at 03/06/2013 11:10:57
    ORA-00283: recovery session canceled due to errors
    RMAN-11003: failure during parse/execution of SQL statement: alter database recover if needed
    start until time 'MAR 06 2013 09:45:00'
    ORA-00283: recovery session canceled due to errors
    ORA-00313: open failed for members of log group 1 of thread 1
    ORA-00312: online log 1 thread 1: '+DG_REDO/orcl/onlinelog/group_1.257.807150859'
    ORA-17503: ksfdopn:2 Failed to open file +DG_REDO/orcl/onlinelog/group_1.257.807150859
    ORA-15012: ASM file '+DG_REDO/orcl/onlinelog/group_1.257.807150859' does not exist
    Doubts:
    1. Why did recovery failed 2nd time, but not 1st time and why is RMAN looking for online redo log group_1.257.807150859 in 2nd recovery ?
    3. I tried restoring control file from AutoBackup, in that case both 1st and 2nd recovery succeeded.
    However for this to work, I always need to keep the AutoBackup feature enabled.
    How reliable is control file AutoBackup ? Is there any alternative to using AutoBackup, can I restore control file from snapshot backup only ?
    4. If I restore control file from AutoBackup, then from what point of time/SCN does RMAN restores the control file ?
    Please help me out in this issue.
    Thanks.

    992748 wrote:
    Hello experts,
    I'm little newbie to RMAN recovery. Please help me in these doubts:
    1. If I have datafiles, archive logs & control files backup, but current online REDO logs are lost, then can I perform incomplete database recovery ?yes, if you have backups of everything else
    2. Till what maximum time/scn can incomplete database recovery be performed ??Assuming the only thing lost is the redo logs, you can recover to the last scn in the last archivelog.
    3. What is role of online REDO logs in incomplete database recovery ? They provide the final redo changes - the ones that have not been written to archivelogs
    Are they required for incomplete recovery ?It depends on how much incomplete recovery you need to do.
    Think of all of your changes as a constant stream of redo information. As a redolog fills, it is copied to archive, then (eventually) reused. over time, your redo stream is in archivelog_1, continuing into archvivelog_2, then to 3, and eventually, when you get to the last archivelog, into the online redo. A recovery will start with the oldest necessary point in the redo stream and continue forward. Whether or not you need the online redo for a PIT recovery depends on how far forward you need to recover.
    But you should take every precaution to prevent loss of online redo logs .. starting with having multiple members in each redo group ... and keeping those multiple members on physically separate disks.

  • Receiving the error message while executing the Real Time DTP

    Hi,
    I am receiving the error message while executing the Real time DTP for Billing data.
    Error Message - Record filtered in advance as error records with the same key exist     RSM2     722
    When I check the logs below is the message I am able to see. Can someone suggest as how to proceed further.
    Diagnosis
    The existing DTP requires a serialized update because fields are updated
    non-commutatively during the processing run (for example, MOVE).
    Therefore all new data records that have the same semantic key as
    incorrect records that have not yet been corrected in earlier requests
    or earlier data packages of the same request, are filtered out after the
    extraction in a special step. In this way the system ensures that
    incorrect data records are not repeated for your changes, which may not
    contain errors themselves.
    System Response
    The data record is not updated but is written to an error stack.
    Procedure
    Procedure
    Correct all incorrect data records and update them using an error DTP.
    Procedure for System Administration
    I checked the error stack and corrected the entries and let me know as how to proceed further. I am unable to execute the Error DTP as its not allowing me to edit and has only display options.
    Regards,
    Ram

    Hi Arvindh,
    Its  write optimized DSO.. there is no option to generate SIDs.
    Hi Kiran,
    I checked the link u sent me. Here the main issue is..The function module is standard  and its not allowing me  to do enhancement  point..
    Any idea in using Badi's??
    Thanks all...

  • Need help with Backup Recovery using Rman - Point in Time.

    Hi all,
    I am trying to recover my database to a certain point in time. Here are the details below.
    Oracle database version is. 11G R1. on 2 Node RAC. OS is AIX.
    Database name is Sales.
    Due to a mistake by the Application team, the database is written over by bad data. Now I have to restore the database in to a point in time, where the database was good.
    For this, i took a whole (full) RMAN backup, everything, all the archivelog files and Controlfiles as well.
    After doing this, i dropped the entire database. So now everything is clean.
    Now i have to restore and recover the database to this point in time.. 03/16/2011 12:45:00
    Please guide.
    The backups are located at.. /backup/sales/rman/
    I am trying various things, but each time i get the msg..
    ORA-01507: database not mounted
    I understand.. the reason for this message is the controlfile does not exist.. as the database is in mount mode. But as i said.. i have dropped the database in order to proceed with entire restoration.
    But i have taken a whole backup.. which also includes the controlfiles + archivefiles.
    Please guide.. with proper steps and commands.

    Hi,
    Priror to start with restore and recovery - Try to restore the control file from backups "/backup/sales/rman/"
    Then further you can mount the db and further carry on with recovery (catalog the backups prior to recovery)
    - Pavan Kumar N

  • BPM collect message

    Hi All,
    I am doing a scenario for collecting messages using BPM, the objective was i need to collect the input messages and to be stored, when the message reaches 10, then it should deliver all these 10 messages to the target.
    for this, i have designed bpm with the
    1. Receiver Step
    2. Container Operation
    3. Transformation and Send.
    but i am getting the following error while activating
    Exptession must not return an multiline value
    Expression must return the interface type MI_OUT_A
    Expression must return the interface type MI_IN_A
    Container element var1 in step Receive1 is initialized but is not used.
    Here var1 is the abstract interface
    the datatype& message type  was DT_A and MT_A and the interfaces are MI_OUT_A and MI_IN_A.
    could anyone clarify regarding this issue..
    regards,
    Sai

    Hi,
    Check some links on BPM.
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    /people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    /people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps
    /people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c6d54e02
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37bec4706cc
    Regards,
    Phani
    Reward points if Helpful

  • Collect Messages using BPM

    Hi all,
            Am doing a collect message pattern using BPM. After collecting messages wen mapping is called its throwing exception. CAn you help me out in this. I ll explain.
    the input i give is :
    <Root>
           <Name> asd </name>
           <ID> A </ID>
    </Root>
    i sent thid message 5 times to BPM (using collect pattern).
    the stop message is of the format
    <Stop>
       <ID> A</ID>
    </Stop>
    wen i send this the collect block is exited and the flow comes  to a transformation step which does a n:1 mapping
    ie. in my mapping i add the source message type and changed its occurence to unbounded in messages Similarly in IM also i changed the occurence of source MI to unbounded. wen i test the message mapping with this
    <Root>
           <Name> asd </name>
           <ID> A </ID>
    </Root>
    as input it gives the exception. But if i gve like this ten its showing successful.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
       <ns0:Message1>
    <Root>
           <Name> asd </name>
           <ID> A </ID>
    </Root>
    </ns0:Message1>
    </ns0:Messages>
    But how can wedo that as transforamtion happens in BPM. PLease help me out in this

    Hi,
    Check these links
    /people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/76/5d373f5e550456e10000000a114084/frameset.htm
    Regards,
    Kumar

Maybe you are looking for