Time dependant message collecting in a bpm

I have a bpm setup to collect messages. I want to collect messages until a specific time daily (eg. 18h00 everyday) and then send them.
I have used the BpmPatternCollectTime pattern but cannot specify a daily time. Does anyone have suggestions on how to accomplish this.
Ta.
Rodney

Hi Rodney,
         We also had this same design implemented. But the BPM is not flexible enough to provide the get the current date and collect till a particular time.
One another way will be to use the design BpmPatternCollectMessage and send in a stop proxy message using a ABAP proxy message triggered from the ABAP stack at 18:00hrs every day so that the collection process will end and will send the data to the target system.
Cheers
JK
PS: Award points if this helps you

Similar Messages

  • Mapping 2 messages into 1 using BPM

    hello
    I have a BPM tha recieve 2 messages, and combine them into 1 message. I would like to know how can I map the 2 messages into 1.
    more over, is there a way to decide the value of the attribute for the mapping? (for example, if in one of the messages I have attribute value=4, and when mapping it I want 4 to be translated to write Mr. if the value was 3, I would like the value to be Miss, etc.
    Thanks
    Kfir

    Hi Kfir.
    As I understand your requirement, you want to combine two messages into one.
    If both of the messages have the same structure, then, in BPM, you can use a while loop which contains the receive step followed by the container step into which the messages will be collected. You can use "APPEND" option in the container step. After the while loop, use a transformation step and then followed by the send step.
    Now for the loops, you can go with a Time-Dependent, Message-Dependent or Payload-Dependent Loops. Now, that depends on your business requirement.
    For this scenario to work, you need to create a correlation, for which the two incoming messages should have one field in common and also should contain the same value. Else, it would fail.
    If that is not the case, then in the correlation, define a constant and set it's value to 1 for both of the messages. This will make it work.
    Check out the Integration Processes BPMPatternCollectTime, BPMPatternCollectPayload, BPMPatternCollectMessage under the http://sap.com/xi/XI/System/Pattern of the SAP BASIS Software component.
    I think this would give you an idea.
    Regards,
    Hari.

  • 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

  • Time-dependency in master-data

    Good mornging BW-community
    I still have a problem during my query. I have time-dependent master-data (an item infoObject with it's corresponding price as an attribute) and want to show the item prices depending on the date of sale on my bill. I can put a "key-date" in my query-properties, but that delivers only the price to that date. I would like to have the price determined by the date of sale saved in 0CALDAY in my cube. What do I have to enter in the query-properties?

    Hello Jochen Schmitz  ,
    You can write routine in update rule which fetches values from master data info object and collect it into ODS as per bill date.
    The code in update rule should like this ..
    select price into lv_price from /bic/table  "table containting time dependent master data
                        where material = /bic-material
                           and billdate >= datefrom
                           and billdate<= dateto.
    Hope that helps.
    Regards
    Kapadia
    Message was edited by:
            Mr Kapadia

  • Time-dependent Vendor Master & Handling Special Characters

    Hi,
    I need to extract time-dependent Vendor Master.
    1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
    2. Does the Master data in R/3 for Vendors will hold the valid date range?
    3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
    Handling Special Characters:
    We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
    Please help me getting the 2 issues resolved.
    Thanks in advance.
    Regards,
    Sudhakar.

    Hi Everyone,
    Thanks for inputs on Special characters issue...
    Finally resolved with below piece of code in the start routine:
    DATA: FLAG,
          OFF TYPE I,
          LEN TYPE I VALUE 1,
          ALLOWED_CHAR(95) VALUE
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
    'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
    CONSTANTS: C_CHAR VALUE '-'.
      LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
        DO.
          IF DATA_PACKAGE-/BIC/ZI_DESC CN  ALLOWED_CHAR.
            REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
                    DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
            FLAG = SPACE.
          ELSE.
            FLAG = 'X'.
          ENDIF.
          IF FLAG = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        MODIFY DATA_PACKAGE.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
    Regards,
    Sudhakar.

  • 0CS_Item with time-dependent hierarchy

    Dear Experts,
    we are discussing pros and cons for a time-dependent item catalog (characteristic 0CS_item with time dependent hierarchy in BW) within consolidation SEM BCS 4.0. Does anybody has experiences on this topic?
    I am quite sure it will be a performance issue and it means additional reporting effort (e.g. using reference period/year in the report comparing different hierarchies).
    I am not sure if there are any other risks so I it would be great if anybody has some hints.
    Thanks in advance,
    Birgit Laux
    Message was edited by: Birgit Laux

    Birgit,
    Some other things to consider:
    - frequency of changes to item hierarchy. Could lead to a lot of item hierarchies in BW over time.
    - hierarchy validity date does not seem to be displayed when running web queries and thus makes it difficult for the user to select the correct hierarchy when executing the query. Still looking for a fix for this.
    - greater complexity in overall design. Is it really necessary to achieve correct financial statement presentation?
    Virtual cube performance is not great but you could implement the data mart which provides typical BW query performance.
    I stayed away from setting the item as time dependent for these reasons.
    Brian

  • Issue while creating a heirarchy using Hierarchy Structure Time dependent

    Hi every body
    I created an Info object(SREP) with Heirarchy Strututre Time Dependent property. When i am creating an Heirarchy for the info object(SREP) i am not able to see any text node by default, do we need to create it explicitly or system would propose one node by defalut..
    I created a text node manually then and tried to assign an another info object(SREG) as a child using an option of "Insert Characterstic", but i am getting a message as "InfoObject SREG is not entered for InfoObject SREP as a Foreign Heirarchy Characterstic", and system is again proposing to assign some info object as a child.
    Thanks in advance..
    sekhar

    ok

  • Time Variable in Container Operation in BPM

    hi,
    how can we add a time variable in container operation in BPM?
    Say i want to increment the time upto 5 hours and see if it has reached in my loop.
    how can we achieve this?
    Tiru

    henrique -
    I have a block with a timeout defined.
    Within the block i have the deadline with control step which triggers the exception
    I have the exception handler which has a send step which sends the actual error message.
    I have a send step which polls the http receiver and is in a infinite loop.
    Now the first time i receive an error message i get an email which is good and should work that way.
    Next time if it errors out it should continue until a deadline of 8 hours and then should send out an error email.
    What happens is i get the second error message immediately without the deadline getting exceeded.
    When i look at the workflow log the exception handler gets executed but i don't see a sign of the deadline getting executed?
    Any reasons why its behaving this way?
    Thanks,
    Tiru

  • How to Display Time-Dependent Characteristic Data In Query

    Hi Experts,
       I have encountered a problem. I want to use Time-Dependent Chart. And want to display different value according characteristc's valid from time. For Example,
    The Characteristic 0COSTCENTER has the navigation attribute 0COMPANY, The data as:
    0COSTCENTER   Valid from   Valid To       0COMPANY
    BW2305              20070101   20070430     A
    BW2305              20070501   99991231     B
    I want  the report  can display as :
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     B                  2000
    But when I set the query's key date 20070420, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     A                  1000
    BW2305              20070501   99991231     A                  2000
    when I set the query's key date 20070520, the report display as:
    0COSTCENTER   Valid from   Valid To       0COMPANY  AMOUNT
    BW2305              20070101   20070430     B                 1000
    BW2305              20070501   99991231     B                  2000
    Can anybody tell me how I can get report expected.
    Thanks in advance.
    SF

    Hi,
    1) Add the characterstics 0COSTCENTER ,0DATETO,DATEFROM and  0COMPANY to the cube.
    2) And also add these 4 IOs to the Communication structures which has update rules with the concern cube.
    3) I hope , you already have  0COSTCENTER in the Commnication structure and mapping for that infoobject at both Update rules and Transfer rules.
    4) Leave to the Blank(no mapping) mappings for the IOs 0DATETO,DATEFROM and  0COMPANY in the Transfer rules.But make 1:1 mapping in the Update rules for these 2 infoobjects.
    5) Write the below code in the strt routine of the Update rules:
    TYPES:  BEGIN OF type4.
          include structure like /BI0/QCOSTCENTER.
    TYPES END OF type4.
    DATA:
      ITAB4 TYPE STANDARD TABLE OF TYPE4
           WITH HEADER LINE
           WITH NON-UNIQUE DEFAULT KEY INITIAL SIZE 0.
    SELECT * FROM /BI0/QCOSTCENTER INTO CORRESPONDING FIELDS
    OF TABLE ITAB4
    WHERE OBJVERS = 'A'.
    loop at DATA_PACKAGE.
         READ TABLE ITAB4 WITH KEY COSTCENTER = DATA_PACKAGE-MATERIAL 
    DATETO LE DATA_PACKAGE-PSTNG_DATE
    DATEFROM GE DATA_PACKAGE-PSTNG_DATE.
                  IF SY-SUBRC EQ 0.
                    DATA_PACKAGE-DATETO = ITAB4-DATETO.
                    DATA_PACKAGE-DATEFROM = ITAB4-DATEFROM.
                    DATA_PACKAGE-COMP_CODE = ITAB4-COMP_CODE.
                  ENDIF.
                  Modify DATA_PACKAGE.
      endloop.
      ABORT = 0.
    Here I assumed you have Posting date in the Communication structure and used to map to Fiscalperiod of the cube.
    6) Do the Master data upload to Cost center and active the master data of it always before uploading the data to cube.
    7) Do the uploading to cube from Sratch.
    With rgds,
    Anil Kumar Sharma .P
    Message was edited by:
            Anil Kumar Sharma

  • Message Splitting issue (without bpm)

    Hi Experts,
    I was currently trying to create a message split (1 message --> 2 output) using BPM like in this blog: Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    Then i noticed that it was also possible to achieve this without using BPM (creating a interface mapping with 2 outputs, and using the interface determination with the extended option) like on this one:
    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure
    (but using the structure showed in the first blog since i was just testing)
    The issue i have is that even when it worked, and i see all good in the XML monitoring (SMXB_MONI) the both resulting files appear only with  one field, and i can't see the others
    Example from the XML monitoring:
    ORIGINAL FILE: (I split based on the id 1 and 2)
    <?xml version="1.0" encoding="utf-8" ?>
    - <ns:bpm_in_MT xmlns:ns="http://bpm.com/splitting">
    - <record>
    - <details>
      <name>Jorge</name>
      <id>1</id>
      </details>
    - <details>
      <name>Fernando</name>
      <id>2</id>
      </details>
      </record>
      </ns:bpm_in_MT>
    RESULT FILE 1:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:bpm_out_MT xmlns:ns1="http://bpm.com/splitting">
    - <record>
    - <info>
      <name>Jorge</name>
      <id>1</id>
      </info>
      </record>
      </ns1:bpm_out_MT>
    RESULT FILE 2:
      <?xml version="1.0" encoding="utf-8" ?>
    - <ns1:bpm_out1_MT xmlns:ns1="http://bpm.com/splitting">
    - <record>
    - <info>
      <name>Fernando</name>
      <id>2</id>
      <age>20</age>
      </info>
      </record>
      </ns1:bpm_out1_MT>
    HERE's the ISSUE:
    Files in the FTP folder:
    file1.txt with only "Jorge        "
    file2.txt with only "Fernando  "
    when the first file should have 2 fields (id is included), and the second one should be name (id and age included)
    Could this be a parsing issue? i'm confused since i see no errors in the channels
    I'm using 2 FTP receivers channels with Content conversion
    CC_FTP_first_file_receiver:
    Recordset: info
    info.fieldNames                  name,id
    info.fieldFixedLengths         15,1
    info.keyFieldValue              1
    info.endSeparator               'nl'
    info.processFieldNames      fromConfiguration
    CC_FTP_second_file_receiver:
    Recordset: info
    info.fieldNames                  name,id,age
    info.fieldFixedLengths         15,1,2
    info.keyFieldValue              2
    info.endSeparator               'nl'
    info.processFieldNames      fromConfiguration
    I may have no use for the keyfieldvalue since i'm only saving that file in FTP, but i already removed that and it didn't change much, i still get 2 files, but only with the "name" tag on them
    Any ideas??
    i'm sure i'm missing something basic, but i'm don't have much experience on XML
    Thanks!

    Hi,
    This is really intersting as well as unexpected result...if you used directly the XML format then 2 fiels are created with appropriate data with all fields....
    And if you used the FCC then , fields are missing...so one thing is clear that as you have already said..issue is with FCC only...
    Have you tried to process only single file with FCC instead of  2 files at a time.
    Also if possible try out with fieldSeperator parameter instead of FixedFieldLenghts...see whats the result...
    I hope this will give you the hint...
    Thanks
    swarup

  • Purchase order time dependent

    Hi,
    Can i have my purchase order has time dependent.
    If my purchase order exceeds the time limit to deliver the item by the vendor at the time of MIGo the system should give a message.
    Is it possible
    Sunil

    Hi
    It is possibel to implement numerous checks likeposting dates, movement types vs material types, mandatory fields under specific conditions, posting date deviation from today, total consumption per order etc. try enhancment MBCF0002 and component EXIT_SAPMM07M_001.
    Take help of ABAPer
    Reward if useful
    Regards
    SE

  • Two time-dependant entire hierarchies problem

    I has one infoobject which is assigned two time-dependant entire hierarchies. The two hierarchies have two different time ranges. But when I ran a query which set a key date and choosed one of two hierarchies. The error happened. Error message "abort Hierarchy has been adjusted. start the query again". I tried again, the problem was still there.
    Who can tell me what's the problem?

    Hi Robert,
    in OSS i found Note 659283 that seems to be suitable: are you runnig with SP lower than 16 on 3.0B or 10 on 3.1C? The message shuod have the Code BRAIN 074 ...
    Hope it helps
    GFV

  • Time-Depended hierarchy and BEx-Queries

    Hi Gurus, Masters,
    I have ONE time-depended hierarchy for 4 periods (times):
    1, 2, 3, 4
    I have 4 columns in Query with 4 periods:
    1 col for 1 period,
    2 col for 2 period,
    3 col for 3 period,
    4 col for 4 period.
    I have 1 row with this hierarchy.
    How can i share this hierarchy in my columns by validity:
    for 1 col -> this hierarchy for 1 period,
    for 2 col -> this hierarchy for 2 period,
    for 3 col -> this hierarchy for 3 period,
    for 4 col -> this hierarchy for 4 period?
    Any answer will be very appreciated.
    Thank you.
    Is this possible?
    P.S.
    I have 2 solutions found.
    Message was edited by: AndyML

    Hi Shashi,
    One of the ways:
    Create a variable type customer exit - in properties of the IO - in the 'select hierarchy' window there is a 'Variables' checkbox for key date.
    Calculate the last date of the entered period/year in the exit.
    Best regards,
    Eugene

  • Time Dependent Hierarchy for Cost Center

    I have searched the entire SDN for this so any help would be really appreciated.
    I am a BI consultant and I am trying to look around for the exact steps on how to make a Cost Center Hierarchy "Time Dependent" in ECC system.
    I am aware of changes to do in BI system but there is no way that I can know what needs to be done in ECC side since we dont have any FI Consultant to help us. All the posts show that there is something to be done on ECC but it seems even no body is sure on what to do.  I think the hierarchy is created in KSH1.
    Please provide any documentation or exact steps on how to do it. I will assign full points to the correct and precise answer.
    Regds
    Girish

    Hi,
    Creation of cost centre:
    Path: Accounting  Controlling  Cost centre accounting  Master data  Cost centre  Individual processing  Create (T. Code KS01)
    Cost centre: Dept A
    Valid from: 01.04.2009 to 31.12.9999
    Enter
    Name: Dept A
    Depart Cost centre: Department A
    Person responsible: A
    Cost centre category: 1 (Production)
    Hierarchy area: XXXXXX
    Business area: XXXX
    Currency: INR
    Save (or) (Ctrl + s)
    Ignore the warning message, press enter
    Cost centre: Dept B
    Valid from: 01.04.2009 to 31.12.9999
    Reference cost centre: Dept A
    Controlling area: XXXX
    Enter
    Name: Department B
    Description: Cost centre department B
    Basic data
    Person responsible: B
    Save (or) (ctrl + s)
    Ignore the warning message, press enter
    Cost centre: Dept C
    Valid from: 01.04.2006 to 31.12.9999
    Reference cost centre: Dept A
    Controlling area: XXXX
    Enter
    Name: Department C
    Description: Cost centre department C
    Basic data
    Person responsible: C
    Save (or) (ctrl +s)
    Ignore the warning message, press enter
    Creation of Cost centre group:
    Path: Accounting  controlling  Cost centre Accounting  Master data  Cost centre group  Create (T. Code KSH1)
    Cost centre group: XXX Produ
    Enter
    XXX Produ u2013 Production department for Co. area XXXX
    Select insert cost centre button (Shift + F4)
    Give the cost centre: Dept A, Dept B
    Save
    Hope It will clear.
    Regards,
    Kishore K
    Edited by: kishore babu on Nov 12, 2009 1:14 PM

  • Time-Dependent Attribute & most recent active value

    Hello experts,
    How can you show in your report the most recent value of an attribute. It is now showing the first value it encounters.
    I need it to show the value which is valid at this moment in time.
    That's the whole point of time-dependant, but I can't figure out how to do it.
    Any input is highly appreciated.
    Naoki

    hi,
    in query edit mode, click 'query properties', choose button 'values' beside the key date box, tab 'variable', choose the variable 0DAT - current calendar date, or just type in &0DAT& to the box.
    http://help.sap.com/saphelp_nw04s/helpdata/en/07/0ab63c71f41d5ce10000000a114084/frameset.htm
    Message was edited by: A.H.P

Maybe you are looking for

  • Iphone 5s ios 7.01 - touchscreen typing

    After the ios 7.01/7.02 update on my new iPhone 5s I am seeing typing issues. If the phone is in portrait mode and I hit any of the keys on the 2nd row from the bottom ("up arrow', z, x, c, v, b, n, m, "backspace") the keys under them will be pressed

  • A Table field needed

    Hi all, while creating Purchase order, the delivery date which we give in ME21 screen ..where that is going to be stored for <b>temporatily...</b>. I know after saving that document .it goes to EKET table.. but before where that field is going to sto

  • How can I reinstall Mountain Lion (already bought before) after I restore my MacBook unibody (restores it to snow leopard)?

    Originally I had upgraded my MacBook unibody to mountain and used time machine to back up my data. I then wanted to restore my MacBook so I did but it restored my MacBook to snow leopard. After restoring to an old time machine backup some of the apps

  • Creation of Hierarchy-Analyse summarization Object : Plan/Actual Comparisio

    Dear All,               Pls tell me how to create the hierarchy for run the T.Code KKBC_HOE. Thanks in advance Regards avudaiappan

  • Day One Disaster

    I was at the New York City 5th Avenue store yesterday waiting in line and it was a disaster! At midnight, after waiting in line for about 4 hours, about 1000 people were told that the servers were going down until 7:00 a.m. and that no more phones co