Process Chain - Decision Step - 1st Day of Month

Hi All,
I have a process chain decision that detemines if it is 1st of Month,
1st Line
Command -> IF
Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) = 1
then
Event - > Option 1
2nd Line
Command -> Else IF
Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) <>1
then
Event -> Option 2
3rd Line
Command -> Else
then
Error.
However, this month it has failed to work correctly.  It was sucessful on 1st Jan, but it is also triggering Option 1 on 2nd, 3rd & 4th Jan.  Can you help me to understand why it is doing this?
Thanking you,
Michelle

Thank you Npathak,
The process chains should run everyday therefore I don't understand how this would affect the process chain.
This is just a decision step at the end of the Daily Meta Chain, where if it is the 1st of the Month, it will continue and process a DTP for Stock Balances.  The problem I have is that for the last 3 days, it has continued to process final step eventhough it is not 1st of Month.
For info; When I check the decision logic in the variant, I can see that the date that is being used in syst-datum.
Have you any other ideas?
Thank you,
Michelle

Similar Messages

  • Run process chain on last three days of the month

    Hello
    I need to run process chain on last three days of the month. For example , It should run on 28, 29 and 30th dates of June.
    There is no option to put a code in the start process of the process chain.
    I can run it every day and put a code in the infopackage/DTP so that empty load (0 records) will be done on other days.
    This doesnt sound as a good option.
    Do u know any other options?

    Hi
    See the code and details how to do it, and change the code as per your requirement.
    http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Triggering  the Process Chains at Particular Date using Events
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/triggering%20%20the%20process%20chains%20at%20particular%20date%20using%20events.pdf
    BI-ABAP (Trigger Process Chains on evry month 3rd and 4th day).
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=81428842 
    Thanks
    Reddy

  • Schedule a process chain on last saturday of every month

    Hi Guys,
    My requirement is to schedule process chain on last saturday of every month. Is there any way to do this?
    I am already aware of below document. So please do not reply with the same. But please let me know if I am missing on anything.
    I have a requSchedule a Process chain on specific weekdays
    Thanks,

    HI R P,
    As mentioned in 'Schedule a Process chain on specific weekdays' document to use decision step. You can go with it just before setting actual data flow PC steps. Here a help for  you.
    Logic for decision step-
    Create a new custom function/method (say ABC) to calculate last Saturday of every month by using Standard Method 'FIRST_DAY_IN PERIOD_GET' (this gives last Sunday of every month) and use code logic accordingly to get last Saturday.
    Now, pick this ABC function from 'User- Defined function' section for your decision step formula.
    Hope this help.
    Thanks!
    Pratish

  • Error in process chain pushing step

    Hi Experts,
    We encountered an error in process chain pushing step. The error is "Process ZXXXX, variant 4UBK25S73O99DNLFQ0Q55EBTY, ended with invalid status". Data is pushing from OHD to PI/XI system. Unable to trace error and even not able to see the variant in PC.
    Could any one please give us your inputs on the error, if you experienced such type of error message. Your inputs/suggestions are highly appreciable.
    Best Regards
    Venkat...

    Hi Ram, thank you for the quick response.
    Yes, at source, all requests are available for reporting.
    Source is a Cube and target is OHD (DB Table). From this OHD we are pushing data to PI system.
    PC flow is: Start--->DTP--->Push Interface. The push interface step got failed.
    Daily, it's working fine. Unfortunately, today failed
    Any insights please...
    BR
    Venkat...

  • Process Chain Decision Maker Step

    Hi,
    Decision Making is required to find the current day is not a 4rth Work Day of the Month. I have written a formula in the Decision Maker which looks like below. Can some one validate?
    WORKINGDAY_MONTH( RIGHT( 2, Current Date ), SUBSTRING( Current Date, 4, 2 ), LEFT( 4, Current Date ) ) <> 4
    If something is missing, please correct.

    Hi Nilesh,
    I have a problem with a decision step in my process chain.  Also using 'WORKINGDAY_MONTH'  However I don't understand what it is doing.  Here is the formula;
    1st Line
    Command -> IF
    Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) = 1
    then
    Event - > Option 1
    2nd Line
    Command -> Else IF
    Formula -> WORKINGDAY_MONTH( Current Date, 'IE', '' ) 1
    then
    Event -> Option 2
    3rd Line
    Command -> Else
    then
    Error.
    I would expect that on 1st day of each month it would trigger event option 1.  This has been working sucessfully in previous months, however in Jan, it has triggered event option 1 for each of the following days, 1st, 2nd, 3rd, 4th & 5th Jan(today).
    Following this decision point, it triggers Dataloads, only required at month end, ie 1st of each month.  Everyday this week I had reverse the process.
    Can you help me to understand what is happening?  What transaction can I use to view logic of this function WORKINGDAY_MONTH.
    Thanks very much,
    Michelle

  • How can I realize a period process chain start: the 1st to 3rd day every?

    Hi,All
    I want to set a start in a process chain as the following:
    a period value: the 1st to 3rd day every month
    How can I realize it ? Thanks.
    Best Regards
    Jiande Ding

    Hi Jiande Ding 
    create original chain as a Meta chain.
    create the another process chain with immedaite in start varaint..
    and put abap step in that PC after process chain..
    put this below code in that abap program.
    DATA: wwdate like sy-datum,
              WWDAY(2).
    wwday = sy-datum+6(2).
    IF WWDAY EQ '01' OR WWDAY EQ '03'.
       CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        I_CHAIN             = <ur meta chain tech.name>
    ENDIF.
    Edited by: shanthi bhaskar on May 5, 2009 4:44 PM

  • How to CHANGE formulas in Process Chain decision?

    Hi,
    I'm working on a BI 2004s system with SP10.
    I have created a Process Chain with a decision. This decision should check the first day in the month. In that case the chain should follow another path.
    After creating a formula in the decision process type for the check, it's not possible to display or change this formula anymore!?!?!?!? I have only an option to create formula's: the white button.
    Please advise.
    Cheers,
    Patrick

    Hi Paolo,
    That's exactly the problem: there is no pencil button.
    I only see a create button.
    Have you applied a special note to get the change button available?
    Cheers,
    Patrick

  • Problem in process chain running for 3 days

    Hi Experts,
    Please help me
    We have process chain like below
    1.     delete index
    2.     full loads going 3 cubes (16 infopacs)
    3.     loading to ods and then update to cube
    4.     delete overlapping requests (16 infopac)
    5.     create index
    6.     aggregate filling
    7.     delete PSA
    Now the issue is, from last Saturday onwards
    Process chains was still in Yellow status till date, so now, 1,2,3,4, are still running
    In process chains, out if 16 infopacs, 12 are green, remaining 4 are stopped
    And in ODS activation of ods data variant shows yellow, but when checked the data is activated, but not pushed to cube. When checked log it show u201Csystem exception error_messageu201D, so process terminated.
    When we checked for shortdump,
    It says u201Clocal time on the application server is incorrectu201D
    Experts please let me know how to solve this and correct the load.

    Hi Experts,
    Thank u for your help,
    I have done the steps manually yestarday, checked todays, still it is in yellow status.
    let me explain the scenario,
    The data is going to 3 cubes,
    the process chain is designed like this,
    1. initially delete index
    2. full load to cube using 16 infopac and loading from (2)ODS to cube.
    3. delete overlapping requests
    4. create index (3 cubes)
    5. fill aggregates (only one cube)
    6. Delete PSA request
    so now , chain is having problem at
    1. data is loaded to ods
    2. data activation (showing yellow, but when checked data is activated)
    3. further update to cube  (2 cubes) in process chain this is not started atall ( so y'day I've done manually)
    4. out 16 infocpack, only 12 infopacs are green and remaining 4 are not started.
    so yestarday I've manually schedule remaining 4 infopacs.
    and deleted previour requests in infocube as they are full load, but I did'nt done create index and fill aggregate steps.
    now the problem is , out of 3 cube report available request is present for 2 cubes, but for 3 cube  this report request is not available, but QM status is green
    please let me know how to proceed.
    one small silly question, do i need to  fill aggregate step to get this report available request.....please suggest.
    Thanks & Regards,
    Raghu

  • Process chain - schedule for certain days

    Hello all,
    How can I schedule a process chain that :
    -should run 3 times per day
    -between the 8th and the 12 workingday of a month
    Any sugesstions?
    Thank you.

    Maybe I cna help others with my solution.
    So...
    I made the chain to run 3 times per day as Debjani advidced me in this thread.
    I put 3 jobs, at the hours I wanted, the period daily, without weekends and holidays.
    I made a reports that tests the 18-th working day (for example) and some others:
    REPORT  Z_DAYS.
    TABLES : TFACS.
    DATA: GI_CURSOR TYPE CURSOR,
          GI_TABIX  TYPE SY-TABIX,
          GT_TFACS  TYPE TABLE OF TFACS.
    DATA: TEXT(50) TYPE C,
          LEN TYPE I,
          IND TYPE I,
          POS TYPE I,
          CNT_ONE TYPE I,
          CNT_ZERO TYPE I,
          DAY_VAR TYPE I,
          IND_VAR(3) TYPE C.
    DATA: EVENTID LIKE TBTCJOB-EVENTID.
    DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
    FIELD-SYMBOLS:  <GT_TFACS> TYPE TFACS.
    DAY_VAR = SY-DATUM+6(2).
    OPEN CURSOR GI_CURSOR FOR
    *select data for factory calender Germany (01) and year 2009
    SELECT * FROM TFACS
      WHERE IDENT EQ '01' AND JAHR EQ SY-DATUM+0(4).
    IF SY-SUBRC NE 0.
      EXIT.
    ENDIF.
    MOVE 100 TO GI_TABIX.
    DO.
      FETCH NEXT CURSOR GI_CURSOR
       INTO TABLE GT_TFACS
       PACKAGE SIZE GI_TABIX.
      IF SY-SUBRC NE 0.
        EXIT.
      ENDIF.
    *loop on internal table
      LOOP AT GT_TFACS ASSIGNING <GT_TFACS>.
        TEXT = <GT_TFACS>-MON01.
        LEN = STRLEN( TEXT ).
        WRITE : 'len' , LEN.
        DO LEN TIMES.
          IND = SY-INDEX.
          POS = SY-TABIX.
          IND = IND - 1.
          IND_VAR = IND + 1.
          WRITE: / 'ind', IND_VAR.
          WRITE : 'pos'.
          WRITE POS.
          IF TEXT+IND(POS) = '1'.
    *number of working days increases with 1
            CNT_ONE  = CNT_ONE + 1.
            IF CNT_ONE EQ 8 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '8th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 9 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '9th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 10 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '10th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 11 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '11th working day'.
              EXIT.
            ELSEIF CNT_ONE EQ 17 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '17th working day' COLOR 5.
              EVENTID = 'ZE_PROD'.
              EVENTPARM = 'ZEP_PROD'.
              CALL FUNCTION 'RSSM_EVENT_RAISE'
                EXPORTING
                  I_EVENTID              = EVENTID
                  I_EVENTPARM            = EVENTPARM
                EXCEPTIONS
                  BAD_EVENTID            = 1
                  EVENTID_DOES_NOT_EXIST = 2
                  EVENTID_MISSING        = 3
                  RAISE_FAILED           = 4
                  OTHERS                 = 5.
             IF NOT SY-SUBRC IS INITIAL.
               WRITE:/ 'EVENT DID NOT START'.
             ENDIF.
              EXIT.
            ELSEIF CNT_ONE EQ 18 AND ( DAY_VAR = IND_VAR ).
              WRITE : / '18th working day' COLOR 5.
              EVENTID = 'ZE_PROD'.
              EVENTPARM = 'ZEP_PROD'.
              CALL FUNCTION 'RSSM_EVENT_RAISE'
                EXPORTING
                  I_EVENTID              = EVENTID
                  I_EVENTPARM            = EVENTPARM
                EXCEPTIONS
                  BAD_EVENTID            = 1
                  EVENTID_DOES_NOT_EXIST = 2
                  EVENTID_MISSING        = 3
                  RAISE_FAILED           = 4
                  OTHERS                 = 5.
             IF NOT SY-SUBRC IS INITIAL.
               WRITE:/ 'EVENT DID NOT START'.
             ENDIF.
              EXIT.
            ENDIF.
          ELSEIF TEXT+IND(POS) = '0'.
    *number of holidays days increases with 1
            CNT_ZERO = CNT_ZERO + 1.
          ENDIF.
        ENDDO.
        WRITE : /.
        WRITE: 'January :' COLOR 1, <GT_TFACS>-MON01.
      ENDLOOP.
      REFRESH GT_TFACS.
    ENDDO.
    WRITE / .
    WRITE ' The number of working days is :'.
    WRITE CNT_ONE COLOR 5.
    WRITE / .
    WRITE ' The number of holiday days is :'.
    WRITE CNT_ZERO COLOR 7.
    WRITE : /  DAY_VAR.
    CLOSE CURSOR GI_CURSOR.
    When I am in the 18-th day, I raise an event. I test the year,the calender of the system and the month (January).
    This report is called in the chain, as ABAP process.
    Then, in my chain , I put a local chain , that starts after it receives the event 'ZE_PROD' and the parameter for it 'ZE_PROD'.
    This event with parameter has to be created in SM62.
    I hope this helps and thank you all for the advices.
    PS: - the factory calender method seems not to be to good, because need special rights to create it and I don' t think it's possible to customize it (because the holiday calender has to be changed and I did not see how).
    Edited by: EMI on Jan 27, 2009 4:21 PM

  • Planning a process chain from 2 to 15 every month

    Dear Gurus,
    I have created a process chain but I must plan it daily from day 2 to day 15 every month. If I check the period values to plan it I can just select: daily, weekly, monthly... but I need it to be daily but just those days.
    Can anybody help me with it?
    Many thanks!
    Regards,
    Jordi

    Hi,
    You can do it by using simple programs/events.
    See some usefull Blogs/Articles/Wiki in the following URL..
    https://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
    Triggering  the Process Chains at Particular Date using Events
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/s-u/triggering%20%20the%20process%20chains%20at%20particular%20date%20using%20events.pdf
    BI-ABAP (Trigger Process Chains on evry month 3rd and 4th day).
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=81428842 
    How to trigger the Process Chains in BW from ECC
    /people/surendrakumarreddy.koduru/blog/2009/03/18/how-to-trigger-the-process-chains-in-bw-from-ecc
    Thanks
    Reddy

  • Process chain failing past 3 days

    Hi,
    Process chain is failing since 3 days which suppose run 6 PM everyday, If i run manually it is working fine, again it is failing at schedule time 6 PM.
    In Canceled job log giving the following information. NO_MORE_SPACE: can not crate MTE: No more space: no more MESSAGE_CONTAINER slots available.Process chain variant XXXX not having scheduled variant for the event RSPROCSS.
    Please advice me to over come this issue.
    Regards,
    B J

    HI JB,
    Check in DB02 is there enough space available or not?
    Contact your basis people if space related issue means.
    NOTE: Assign points if it helps
    Regards,
    Arun.M.D

  • Process Chain load step in yellow status

    We are having a process chain with a load step.The load step is run with init with data transfer.
    The load step is scheduled for the next time without changing the option to delta update.So the load step turned yellow with the background job log stating that delete the init Request ID.
    The process chain is scheduled for several times but the load steps are all yellow.I initialized with data transfer and then to delta update.
    All the requests in data targets are green.But all the load steps are in yellow.please let me know how to make it green.I tried to change the status of the load step to green manually using the function module rsps_process_finish,but the status is not changing.
    Please help me out.Thanks in advance.

    Hi,
    From the Cube Manage > Environment > Automatic req processing > Chk Quality status to ok , chk this option if it is not done.
    this should reslve the issue.
    -Vikram

  • Process chains problems : Working every day with error (red)

    Hi All,
    I have a next question, about process chains problem.
    When I start my process chains immediate, then working without errors,  but I want this process chains work every day and chainged properties, selected date/time and periodicaly (every day) but now it work with error.
    How to I find problems? What are yours offers?
    p.s. I see logs, but every day have diffence between errors.
    Regards,
    Mahir M. Quluzade

    HI,
    just check the time which you have given is OK or is overlappintg with some other job which is locking your table in process chain
    or is colliding with attribute change run
    or it fails because of lack of background processes.
    There could be numerious reasons and you need to analyze the log for this.
    But as you said the job is failing everday for different reasons..try to find the most common errors and try to remove it or mention that here.
    Thanks
    Ajeet

  • Process chain detailed step procedure

    dear all,
        i want detailed step procedure or tutorial about process chain for beginners. i need help.
    with regards,
    satish.

    Hi,
    Please search the forum before posting :
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/502b2998-1017-2d10-1c8a-a57a35d52bc8
    -Vikram

  • Process chains Decision process user defined functions

    Hi Experts,
    In process chains process type decision we can define user defined functions. How to define these functions. Any help greatly appreciated. Thanks.
    Best Regards,
    Suresh.

    I can only find out "decision between multiple alternatives'//are you looking for this?
    This is used to decide b/w different options as given in its menu....
    --SA

Maybe you are looking for

  • HP 2200 Printer no longer recognized (10.7)?

    I got a new MacBook Pro with 10.7 (updated to 10.7.3 now).  I'm running the printer through Airport Express's USB. It was working fine, but at some point, I'd get the interminable "Finding printer".  I could be misremembering though, and maybe it nev

  • Increasing ppi from 72 to 300?

    I'm by no means a graphic designer, but my job is having me create a 3' x 2' poster (300 ppi) using Photoshop CS3. I am trying to place a few logos on the poster but am having difficulties. My logos are currently about 20 inches wide, and I would lik

  • Exception

    hi , i have an exception i don't know why . java.io.UTFDataFormatException: invalid byte 2 of 3-byte UTF-8 sequence (0x76) what can i do ?

  • What USB connection do I use for 5530

    What USB cable can I use to get this thing WORKING

  • Will this external drive work with my macbook?

    I'm thinking about investing in an external hard drive, is this one compatible with my original Macbook Pro? http://www.amazon.com/Iomega-Portable-External-Drive-34945/dp/B003D3NDD2 (side question, I've never used an external HD before. Will it just