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

Similar Messages

  • 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!

  • 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

  • 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

  • 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.

  • 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 .

  • 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

  • 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?

  • 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 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

  • 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?

  • 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 proces type based on ABAP OO class

    Hy,
    I have a process type and in one method of its asoociated ABAP OO class I have to check if their process chains are running or not.
      I know how to make the tests, but the problem is that I have to integrate them in one method. I'm lookink for a solution to adapt the process type from :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/509f3ae6-e36e-2910-48a8-ab43dc167dd9   
    Any suggestions about what should I keep or not and in which method should I put my tests?
    Thank you.

    Hello,
    Sorry, not sure where my brain was. Actually I do know: at two clients with projects going live this month, so apologies for a rushed and inaccurate response. It's CL_SWF_EVT_EVENT.
    Jocelyn's blog I referred to includes a code sample using the same class on how to raise an event with an object key.
    Regarding your second question: No you don't need to do any binding. Just use an instance of your object and it will wait for an event with the same key. The WF part is very straightforward and works exactly like BOR, it's just raising event that can't be done with the WAPI.
    Cheers,
    Mike

  • Memory leak in JCO when calling an ABAP-function that returns larg tables

    Hello everybody,
    I think discovered a memory leak in JCO when the calling functionions that have exporting tables with large datasets. For example the ABAP-function RFC_READ_TABLE, which in this example I use to retrieve data from a table called "RSZELTTXT", which contains ~ 120000 datasets. RFC_READ_TABLE exports the data as table "DATA".
    Here a simple JUnit test:
    http://pastebin.ca/1420451
    When running it with Sun Java 1.6 with standard heap size of 64mb I get a heapsize OutOfMemory error:
    http://pastebin.ca/1420472
    Looking at the heap dump (which I unfortunately cannot post here, because of it' size), I can see that I've 65000 char[512] array objects in my heap, which don't get cleaned up. I think, each char[512] array stands for one dataset in the exporting table "DATA", since the table contains 120000 datasets, the heap is full after the first 65000 datasets are parsed. Apparently, JCO tries to read all datasets in memory instead of justing reading the dataset to which the pointer (JCoTable.setRow(i)) currently points to and releasing it from memory after the pointer moves forward ...
    Did anybody else experience this?
    Is SAP going to remove to issue in upcoming versions of JCO?
    regards Samir

    Hi,
       Check Below links
    1) How To Analyze Performance Problems JCO
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/3fbea790-0201-0010-6481-8370ebc3c17d
    2) How to Avoid Memory Leaks 
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c3e598fe-0601-0010-e990-b8622840c8c2
    Salil...
    Edited by: salil chavan on Jun 2, 2009 5:21 AM

  • Create Process Chains and add Process Types using ABAP

    Does anyone in here have experience in creating or changing a full Process Chain including the Process Types?
    The reason is, that we have a lot of source systems with "similar" loads.
    We already have an ABAP that can copy the chain and replace the InfoPackages. But we can't find a way to create/change a process, e.g. 'Hierarchy Save', 'PSA Delete' etc.
    Any ABAP samples is highly appreciated!
    Best Regards Jakob

    Hello Jakob
    did you find already this how to paper: "How to ... Implement custom process types" ?(https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/72e0e1ed-0c01-0010-74bc-b397c8c4dadc)
    It has a code sample in the appendix.
    Hope it helps,
    regards
    Martin
    Message was edited by: Martin Lehmann

Maybe you are looking for

  • How to stop rendering a report?

    I am building reports using MS Visual Studio, and in the Preview tab I have the Refresh button and a button with a X to stop a report while rendering. However, when I deploy the report to the reporting server and I run it from the application the X b

  • Itunes10.5 download error message

    Apple should please do something on this matter. I need to download itune 10.5, and I have been tying for two weeks now without much joy. Is apple enjoying having to put us loyal customers through this? For crying out loud, I can not even sync my Ipa

  • TDS on interest for loans

    Dear Experts, How can I map the following entry in Interest Rate Instrument? Interest Exp - Dr---- 10/-            TDS - Cr---- 1/-             Bank Outgoing - Cr---- 9/- I have created a new derived flow for TDS and I assigned the respective G/L acc

  • Sun Federation Manager installation problem

    I'm trying to install Sun Federation Manager on a machine running RedHat Linux and Sun Application Server. The installation in itself appears to go ok, and the loginpage appears when i connect to http://x.x.x.x/federation The problem is when I try to

  • Game won't work!

    I've had my iPod mini for almost 2 years now, and when I updated it, on the previous iTunes, when I tried to play Music Quiz, it said 'Error - music not found'. Now, I know this is impossible since I have about 700 songs on my iPod right now. I've tr