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!

Similar Messages

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

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

  • 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

    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

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

  • 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

  • Process Type ABAP does not work properly via process chain

    Dear SDNers
    I am running a process chain and it contains process type ABAP program. ABAP program was running correctly till now via this process chain. ABAP program process type generally takes approximately 2 hours to run. But now, this process type for ABAP program just run for less than 1 minute and finishes successfully. The issue is that ABAP program does not run at all.
    I ran the ABAP program in background and it took approximately 2 hours to run. ABAP Program is local means in our BW system and does not involve Remote Function call. We have BI7.0 system
    Has some one came across this type of issue?
    Best Regards
    Pradip

    Has the aleremote user or which ever user you have defined for background scheduling changed permissions recently?
    What happens if you create an adhoc chain and include this ABAP variant, does it run then?
    What does the log say in SM37 when run via process chain?
    Cheers
    Craig

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

  • How to create a variant in VA01

    Hi Gurus,
    Can you teach me how to create a variant in VA01?  I'd like to have a default value in the sold to party field.
    Thanks,
    Paul

    hi,
    To show a default sold-to-party in this field when the user creates a sales order (VA01) we can use a function exit .This function exit is located in enhancement no V45A0002 . Before we can choose the exit we have to create a project in CMOD after that enter V45A0002 in the enhancement field and click on the components . In the components you will see the exit EXIT_SAPMV45A_002 . This exit is used for our purpose.
    Double clicking on this exit will takes us to function builder (SE37) . This function exit has one exporting parameters and two importing parameters, we are interested in exporting parameter which is E_KUNNR of type KNA1-KUNNR i.e if we move the desired customer name to this structure(E_KUNNR) it will be shown in the field as the default value when we create the sales order. This function also contains a customer include ZXVVA04 . This include will be used to write our custom code .
    Double clicking on this include and it will prompt us that this include does not exists do you want to create this object ,select yes and the include will be created .In this include we can write our own code that will fill the field E_KUNNR.
    e.g. E_KUNNR = 301.
    Activate the include and Activate the project. Now when ever the SALES ORDER will be created , sold-to-party field will come up with a predefined customer .
    regards
    sadhu kishore

  • How to create t-code for a table and how to create transaction variant???

    Hi,
    I have created a custom table zsark.
    Now my requirement is : I have to create a transaction variant zsark_var for sm30 and table zsark. I have to disable the output of the first screen. I have to assign the transaction variant to the transaction code of table zsark.
    Now,
    1.     how to create transaction code to a table. Can any one give me the 
                    staps??
    2.     how to create transaction variant for the above requirement???
    Thanks & Regards,
    Sarkar

    Hi
    1 Goto SE93 transaction
    2 Choose 5th option Transaction with parameters
    3 Give transaction : SM30, Check Skip Initial Screen Press Enter
    4 Goto Bottom left corner, click F4 select viewname, on right hand side give table name
    5 Press one more time F4, choose update , mark it X on right side.
    6 save the transaction.
    Thanks
    sandeep
    reward if helpful

Maybe you are looking for