CHAIN: custom process type: EVENT: complex status: bad planned jobs

Hi experts,
I've implemented a custom process type (in RSPC/Settings/MaintainProcess) called ZWX_COND.
The main properties of ZWX_COND are: "ZCL_RSPC_DECISION" as ObjectTypeName, "00 ABAP Class" as ObjectType and "(Scheduled) processs ends with complex status" as PossibleEvents.
Class ZCL_RSPC_DECISION is a copy of the standar one CL_RSPC_DECISION. I've only made the necessary changes in methods GET_EVENTS and GET_EVENT (I only need two events) and EXECUTE (to choose one of the two events depending on a customized table).
I've made a main process chain with that new type (a decision step). I've connected that step with the process chain "A" for case ‘01’ and with the process chain "B" for case ‘02’. I've verified the main process chain and all is correct.
Once I've activated and planned the main process chain, un unknown job BI_PROCESS_CHAIN appears. In addition, although the decision step ends correctly (green color) and the event RSPROCESS with parameter XXXX_02 is triggered (it's correct, since it's indicated in that way in the customized table), process chain "B" doesn't start. In fact, neither process chain "A" nor process chain "B" starts. Both process chains remain in yellow color, but the corresponding jobs are not activated or finished, they are just released.
I see that the start condition (event parameter) for the planned jobs corresponding to process chains "A" and "B" is incorrect, since it is XXXX in both cases. I think the condition must be XXXX_01 for process chain "A" and XXXX_02 for process chain "B".
I'd like to implement this process type because I want the process to end with a green status. If I use a custom process type with events "succesfull" or "incorrect", I can make the decision and the chain process works, but the process chain ends with red status when the event triggered is the "incorrect" one.
Please, could somebody help me? I don't know if it's a program error or I'm implementing it in the wrong way.
Thanks in advance,
César Rueda
PS. Sorry by my English
Message was edited by:
        César Rueda
Message was edited by:
        César Rueda

Hi,
   i am experiencing the same thing .... have you got an answer , i did not see any notes on this type of issue .

Similar Messages

  • Implementing a custom process type for a process chain

    I have created a custom process type for a process chain that allows a user to send back a failure or error status when calling an ABAP program.  I copied the class that is used from the existing ABAP process type as a template. 
    The process type works fine, I just cannot find out how to recreate the documentation for my custom type using free text. When you maintain the process type there is a field for the documentation object, but I can't find where in SAP to implement this.
    I have tried looking at the document maintenance using SE61 and looking into the class documentation from SE24 with no success.  The only detail that is provided in the SAP help portal is:
    "If necessary, assign a documentation type and a docu. object to the process type. The docu object can be called up via F1 in the process chain maintenance overview tree. "
    Does anyone out there have any experience with this that can push me in the right direction?
    Thanks,
    Eddie

    You can create and maintain system documentation from transaction SE61. This is how you would create documentation for a process type or if you wanted to create a book. <a href="http://help.sap.com/saphelp_nw04/helpdata/en/a4/d47df949e111d189730000e8322d00/frameset.htm">more info</a>
    Here are the steps to make your documentation similar to that used for the ABAP process type:
    From transaction SE61:
    -Create a document of type TX (either from scratch or by copying RSPC_ABAP which is used for the SAP-delivered ABAP process type)
    -Make any changes you need. I suggest downloading the document in ITF format and make the changes in a basic text editor and then uploading your changed document. It's a little easier to tell what is going on that way.
    Now on to transaction RSPC.
    Once you save your changes, go to RSPC and select on any chain you have to get into the "plan and check views of process chain maintenance." Then just go to Settings -> Maintain Process Types.
    From here you can select your process type, select TX from the document type dropdown, and then enter the name of your document in the docu. object field.
    Hope that helps.

  • Custom Process Type in PC - ABAP pgm that returns success/fail status

    Hello All,
    I need to create a custom process type so that an ABAP program can return success/failure message to its successor. browsing through the forum posts i came across some links to a How-To document. but that link doesnt seem to be valid anymore.
    I dint get much idea looking into the IF_RSPC_* interfaces and CL_RSPC_ABAP class.
    Please let me know if anybody has documentation on this topic. any help would be appreciated.
    Thanks,
    Rit

    Hi,
    you can goto 'rspc' and then settings->maintain process types. there you can define your possibilities/results.
    i read somewhere in forum like for failure in abap just need to raise error message within abap routine.
    hope it helps,
    regards,
    anil

  • Urgent:  ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    To trigger a process chain from an external program you can use the function:
    RSPC_API_CHAIN_START
    you need only to know the Chain ID and pass it in import parameter.
    Here an example:
    select-options v_time for sy-uzeit.
    parameter: chain type RSPC_CHAIN.
    check sy-uzeit in v_time.
    CALL FUNCTION 'RSPC_API_CHAIN_START'
      EXPORTING
        i_chain             = chain
      I_T_VARIABLES       =
      I_SYNCHRONOUS       =
      I_SIMULATE          =
      I_NOPLAN            =
    IMPORTING
      E_LOGID             =
    EXCEPTIONS
      FAILED              = 1
      OTHERS              = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Sergio

  • Urgent Help need for ABAP Custom Process Types

    Hi Gurus,
    I have created a Custom Process Type for ABAP program which returns status (Success or Failure).
    I followed the below procedure to create a custom ABAP process type.
    In RSPC, I went to Settings -> Maintain process types
    I selected the ABAP process type and then selected the EDIT -> COPY AS and then in the process chain configuration screen, I gave a new name to the process type, changed the POSSIBLE EVENTS settings to "2 process ends "successful" or "failure" and saved the settings to confirm changes.
    Now I can see the new process type for ABAP program which returns the success or failure for the successors.
    Now, my question is, where do i write the logic for ABAP program ? how does the ABAP program returns the success or failure. Do I have to change the code in the method IF_RSPC_EXECUTE~EXECUTE to return success or failure.  Please make me clear where I can write the code? For example in my ABAP program, I am searching a table to find a specific value. If the value is not found, then the ABAP process type should return failure, if found should return success. How can I do this?
    Thanks in advance,
    Regards,
    aarthi
    [email protected]

    Hi,
       We have a similar problem. We have an ABAP program in a process chain that
    uses a custom process type with on success and on failure.
        If  the program is successful there is no problem. it will run the next process step.
        The problem is when the ABAP Program fails and even though the message class is E in our ABAP program it has a confirm popup message with a status change and asks "Save Status and Trigger Events if Appropriate".
         Once you enter Yes to continue it then continues to the next step in the program and is fine.I traced in debug where this status message is appearing. It is in CL_RSPC_LOG. There is a popup_to_confirm_step where it checks the e_status that is value J ( Framework Error upon completion). Then it submits the rspc_process_finish program to complete and call the on error process step.
         Has anyone else experienced this and is there any other documents out there to help me?
    Apologies if this is not very clear.
    Any assistance would be appreciated.
    Thanks
    Monica Mandia

  • Custom process type

    Hi,
    I am trying to implement an abap program based on the status of which i want to get the status. The process type needs to be similar to the abap program so that i can use a variant with the abap program.
    I tried creating a copy of the abap program process type and change the process ending to 2 status but it doesnt help . It still seems to execute even if the program fails.
    I then tried to create an abap oo class similar to that of the abap . The issue i am having in this is when i include this process type in the process chain but when i try to put the variant it doesnt seem to pick it up.
    It keeps saying enter an existing variant . Not sure where i need to look .
    thanks
    amit

    Hello Manfred.
    Here is the scenario. I have the abap program with selection screen and hence can create a variant for that .
    Now lets say i include that program as part of the abap program process type i cant control the status to R or G . So i created another abap oo class based on the how to .
    If i use that process type , it is not asking for user input , so in that case we are hard coding the variant and path . I want it to be similar to the abap process type where in when i pull the custom process type into the process chain i am asked for the variant.
    I hope i am a bit clear.
    thanks
    amit

  • Error in Custom Process Type Howto

    I have been following along the lastest howto document for custom process types (BI 7.0):
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9
    I copied its code and everthing compiles fine, but when executed, the program crashes when you click on the green arrow to confirm the selected variant. The method call to RSPC_GET_CHAIN seems to be wrong:
    Type conflict when calling a function module.
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_DYN_CALL_ILLEGAL_TYPE', was
    not caught in
    procedure "IF_RSPC_GET_VARIANT~GET_VARIANT" "(METHOD)", nor was it propagated
    by a RAISING clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    The call to the function module "RSPC_GET_CHAIN" is incorrect:
    The function module interface allows you to specify only
    fields of a particular type under "I_CHAIN".
    The field "L_S_TABLE-VALUE" specified here is a different
    field type
    1 METHOD IF_RSPC_GET_VARIANT~GET_VARIANT.
    2   DATA: L_T_CHAINID TYPE RSPC_T_CHAINID,
    3         L_S_CHAINID TYPE RSPC_S_CHAINID,
    4         L_T_CHAINT TYPE RSPC_T_CHAINT,
    5         L_S_CHAINT TYPE RSPCCHAINT,
    6         L_S_CHAIN TYPE RSPC_S_CHAIN,
    7         L_T_TABLE TYPE TABLE OF SVAL,
    8         L_S_TABLE LIKE LINE OF L_T_TABLE.
    9
    10 * ... Read Process chains from control table an
    11   READ TABLE I_T_CHAIN INTO L_S_CHAIN INDEX 1.
    12   L_S_TABLE-TABNAME = 'ZPROCESS_CONTROL'.
    13   L_S_TABLE-FIELDNAME = 'ZCHAIN_ID'.
    14   L_S_TABLE-VALUE = '*'.
    15   APPEND L_S_TABLE TO L_T_TABLE.
    16   CALL FUNCTION 'POPUP_GET_VALUES'
    17     EXPORTING
    18       POPUP_TITLE = 'Process Chain to Check'
    19     TABLES
    20       FIELDS      = L_T_TABLE.
    21
    22 * ... Check selected process chain
    23   READ TABLE L_T_TABLE INTO L_S_TABLE INDEX 1.
    >>   CALL FUNCTION 'RSPC_GET_CHAIN'
    25     EXPORTING
    26       I_CHAIN         = L_S_TABLE-VALUE
    27       I_OBJVERS       = 'A'
    28       I_WITH_DIALOG   = RS_C_TRUE
    29       I_ONE_NO_DIALOG = RS_C_TRUE
    30     IMPORTING
    31       E_T_CHAIN_IDS   = L_T_CHAINID
    32       E_T_CHAINT      = L_T_CHAINT
    Does anyone know how to fix this?
    Thanks,
    Dennis

    I was able to fix it myself:
    CALL FUNCTION 'RSPC_GET_CHAIN'
    EXPORTING
    I_CHAIN = L_S_TABLE-VALUE(25) " <- this is the fix
    I_OBJVERS = 'A'
    I_WITH_DIALOG = RS_C_TRUE
    I_ONE_NO_DIALOG = RS_C_TRUE
    IMPORTING
    E_T_CHAIN_IDS = L_T_CHAINID
    E_T_CHAINT = L_T_CHAINT

  • Custom Process Type - Creating the variant screen

    My custom process type's logic is rather simple: run parts of the process chain only if it is the first day of the month, other parts only if it the last day of the month.
    I created a new custom process type (ABAP OO Class), but I am now struggling with creating the logic to create/maintain a variant for my custom process type.
    My goal is to have a simple interface with two radio buttons where the user clicks on the "new variant" icon. One choice is "run on the first day of the month", the other choice is "run at the last day of the month".
    My understanding is that this logic has to be implemented in the method IF_RSPC_MAINTAIN~MAINTAIN.
    To support this, I also created a database table that consists of:
    - process chain id
    - run type (B = beginning of month / E = end of month)
    - current process type id (not quite sure how to populate this field yet...)
    Can someone now point me into the direction on how the create the variant logic so that the radio buttons get displayed and the table updated with the user's choice?
    Thank you,
    Dennis

    Any ideas?

  • SAP BPC Custom Process Type - passing parameters

    Hi,
    I wish to create a custom process type with custom parameters which can be populated from the Data Manager package execution. I went thru the tutorial by Rich mentioned [here|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b0427318-5ffb-2b10-9cac-96ec44c73c11]. But because of access issues, I cannot install the classes on my system using the .BPC files.
    Can someone please guide me as to how I can use custom parameters in my process type? So far, I have tried adding the parameter but haven't been successful:
    1) Created a class ZCL_UJD_BPC_TEST (with superclass CL_UJD_ACTOR) and populated all the methods for this class.
    2) Created a class ZCL_UJD_TEST and created a constructor and PROCESS method. Here I tried to read the parameter XXXXXX.
    3) Added the ZBPCTEST process type in RSPC
    4) Created a custom process chain with a custom variant /CPMB/ZYYYYYY for the ZBPCTEST process type.
    5) Created the DM package and passed value to the parameter XXXXXX using dynamic script.
    However, I get the error "Cannot configure the parameter XXXXX in task YYYYYYYY".
    Thanks,
    Shailesh Kamath.

    Hi Shailesh,
    Did u solve this, we also implemented same in BPC 7.5 NW but after migration many methods become obselete,please let me know how you approached.
    Regards
    Ram

  • Custom Process Types not working in SAP BPC 10.0

    Hi Experts,
    We have migrated from SAP BPC 7.5 NW to SAP BPC 10.0 NW.
    We have three Custom Process Types created in BPC 7.5NW using the super class CL_UJD_SIMPLE_ACTOR as super class.
    It has been made Obsolete and Final class in BPC 10.0NW and the Custom Process types are not running as expected.
    Can you please suggest if there is any alternative for using the existing custom process types? Or do we have any alternative for creating custom process types?
    *Note: We have tried replacing the superclass with CL_UJD_ACTOR instead of CL_UJD_SIMPLE_ACTOR but of no use.
    Regards,
    Balraj.

    Hi Inl,
    The statement looks fine, just confirm:
    Your CATEGORY dimension is named CATEGORY? Is it really has property COMPARISOIN?
    Can you show the screenshot of UJKT run of script?
    What is your core BPC SP?
    Vadim

  • BI custom process type (ABAP OO Class): how to create a variant screen?

    I created a custom process type in Netweaver 2004s (business intelligence) which in essence is nothing but an Abap class that implements certain interfaces. What I am now struggling with is how to write the code for the "new variant" input screen.
    My understanding is that the logic has to be implemented in the method IF_RSPC_MAINTAIN~MAINTAIN, but I am lacking detailed information.
    Can someone give me an example with a variant screen that displays two radio buttons?
    Thank you,
    D.

    It is a custom class that implements the following interfaces:
    IF_RSPC_GET_VARIANT
    IF_RSPC_MAINTAIN
    IF_RSPC_EXECUTE
    The interface I am struggling with is the first one (get variant). Any more insight on how this should be used would be highly appreciated.
    Thanks!

  • FM to create support message for custom process type other than 'SLFN'

    Hi All
    Is there any function module or BAPI which will create support message for the custom process type other than SLFN.
    BAPI_NOTIFICATION_CREATE is posting only for the process type 'SLFN'
    Thanks in advance
    Regards
    Ravi

    Any ideas?

  • Where to use in process chains in process type in os option

    hi
    where to use in process chains in process type in os option
    regards
    vijender reddy

    Hi reddy,
    check this links,
    http://help.sap.com/saphelp_bw33/helpdata/en/35/6d6b3cfa58dd7de10000000a114084/frameset.htm
    How to Use Process Type OS Command
    Hope this helps,
    Sudhakar.

  • Process Chains and Process Types for ODS Change logs

    We have created and used process chains to manage a large amount of our batch processing.   I am looking to convert our batch process of deleting data from ODS change logs into a process chain.   I have been unable to find a process type that will allow us to do this.
    Any thoughts?

    Hi Lisa,
       You can use Process "Deleting Requests from the PSA" for deleting PSA and change log data.
    Since the change log is also stored as a PSA table, you can also use this function to delete change log
    records. You can find additional information under Deleting from the Change Log.
    More info:
    Deleting Requests from the PSA
    http://help.sap.com/saphelp_nw04/helpdata/en/b0/078f3b0e8d4762e10000000a11402f/content.htm
    Deleting from the Change Log
    http://help.sap.com/saphelp_nw04/helpdata/en/6d/1fd53be617d524e10000000a11402f/content.htm
    Hope it Helps
    Srini

  • Process chains - Process type ends with complex status

    Hi all
    does anyone know how to use this functionality ? I've created a custom process type that ends with complex status. I assume I assign the different statuses with parameter E_STATE. But how do I retrieve the status in the process chain ?
    Thanks a lot.
    Eli G

    Hi,
    We have two connected links in the process, one to continue the process chain when process status is green and other link to red status. The problem is the process status remains yellow until our confirmation in pop-up.
    The process chain should be started by user in web browser. So, it isn't possible run it in background.
    Thank you,
    Regards,
    BR

Maybe you are looking for

  • Error creating job into trigger using DBMS_SCHEDULER.

    Hi, I am trying to create job using dbms_scheduler package. I have one trigger on insert event on one table. I am creating job using following syntax. CREATE OR REPLACE TRIGGER TRG_BI_JOB_CONFIG BEFORE INSERT ON JOB_CONFIG FOR EACH ROW DECLARE BEGIN

  • Update Rules to an ODS

    I have a Data field as part of the Update Rules to an ODS.  By default it is able to get its value from the source field.  However, I want to modify this slightly so that I can strip out the brackets if they occur in the source field.  Would I need t

  • Managing files and other newbie type questions

    I'm trying to decide between FCPX and Premiere Elements. I manage most of my media with Aperture. I've learned a whole lot already in a few solid hours of use of the trial. The integration with Aperture/iPhoto is very nice and keeps me out of Adobe O

  • PSE7 Organiser with new C: drive - Win XP Home SP2.

    The recent slow-down of my C: drive (160GB, approx 75% full) has persuaded me - whether or not it's the cause - to order a new larger drive to replace the old one, and I gather I can copy everything across to the new one relatively easily. Now I appr

  • Core dump in malloc

    I get a core dump while making a call to malloc. Owing to waht reasons can malloc give a coredump?