ABAP Process Type

Hi All,
I have a doubt with the ABAP Proces types used in PCs.
In one of our PCs, we have a ABAP process for posting Sales files on the appln server based on the periods every month.
As for the vaiarnt filed,we have a variant but our variant has no values. Its blank. Think its getting populated by the system variables.
My doubt is that, can a variant old blank value?? as the ABAP process is runnning for long time and getting failed.
Can you please explain it..?
Thanks!
Dharini!

hi,
hope you can remove the variant if not populating any values.
chk the link for PC using ABAP process type
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/30664504-40dd-2a10-3794-db7b4190bef3
Ramesh

Similar Messages

  • Email Alert for Process Chain for ABAP Process Type

    Hi BW Experts,
                             I created a process chain based on ABAP Process Type ( for Broadcasting rsrd_broadcast_starter). I want to add alert message for each ABAP process if it is failed. But I cant see any option showing Successfull or Error or Always when I select create message option on the process type. How ever I can see for other process chain which is loading data (Process Type is Info Package ) from SAP into BW.
                             Please some one tell me why it is not showing alert message for ABAP Process Type.
    Thanks
    Ganesh Reddy.
    Edited by: Ganesh Reddy on Jul 13, 2009 10:16 PM

    I dont have the exact answer for your question, But as a work around i can suggest you that.
    If these ABAP programs are included in a chain and this local chain is a part of meta chain then you can create a message on the local chain.By right clicking on the local chain >Create Message>Success
                                                                                    --->Failure
    >Always
    Hope this resolves the problem tempervorly.I will get back to you once i have
    Or the permanent solution is
    Its big and also easy method to perform, by this you will be able to get all the options for a ABAP Program also.If you have any questions please let me know.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/business-intelligence/a-c/creating%20an%20abap%20process%20type%20for%20process%20chains%20in%20bi.pdf

  • 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

  • How to reset an failed asynchron abap-process in a process-chain?

    Hi specialists,
    I've got a process-chain which triggers (as one of its steps) an abap-program.
    The program should run asychroniously, so the process-chain waits until the programm reports its ending.
    When the abap-program fails/crashes/dumps, then the endings is never reported and the process-chain gets stuck.
    If I try to re-run that process-chain, it fails again with the message "Variant XYZ still executing from previous run".
    What I already found so far is the following note:
    The process chain management will not know if your program terminates!
    Thus if you re-start the chain, this will also terminate, because the old run would not have finished yet. To avoid this, you need to manually set the process in the chain log view in the process monitor to terminate before you start again.
    My problem: I cannot find any possibility to set the process to "terminate" in the chain's log view.
    Could you please gimme a hint where I can find that option?
    Best regards,
      Marco

    Hi,
    You can remove the process chain from scheduling before staring the process chain again.
    Also can edit the entries in RSPROCESSLOG table before running the process chain.
    Alternatively you can create a custom ABAP process type which handles the success as well as fail cases.
    Refer : [How To- Trigger subsequent processes in a Process Chain based on the Success or Failure of ABAP program|/people/balaji.venugopal/blog/2009/04/07/how-to-trigger-subsequent-processes-in-a-process-chain-based-on-the-success-or-failure-of-abap-program]
    Hope this helps,
    Regards,
    anil

  • Failed ABAP process in process chain does not trigger subsequent process

    Hello,
    I have a issue in my process chain with the abap process type.
    When this abap process gets failed due to some reason; it is not trigerring subsequent step in the chain.
    Any ideas on how it can be solved or any work-around?
    I searched the forum and got to know that we can create a copy of abap process type, and can change possible events to
    "success or fail".
    Please let me know your views on it or if someone has ever encountered similar issue.
    Thanks alot for your help,
    Anuj

    Hi Anuj,
       My guess is that you have your the link between the ABAP process type and the subsequent step to trigger on success. You can check this, Go to RSPC -> process chain and check the design. If the link has a green light on it, then it will trigger only on success of the abap process. You need to check with your design and confirm whether this need to be like this, (maybe the abap process is doing something which is required for the subsequent loads??)
    If no then you can change the link type to either success of failure and activate the chain. This would resolve your problem.
    If you cant change your chain, then i would suggest you correct the failure and then use the program RSPC_PROCESS_FINISH to push the chain further. Just search for this on the forums, there are plenty of blogs/threads on  this.
    Regards.

  • Problem in connecting process types APD

    Hi All,
    I have created an APD to update an infoobject say ZEMP. The source of the APD is the P table of ZEMP and target is the characteristics ZEMP itself. I am doing some processing before i process data to ZEMP. In my APD, I have database table as a source, then followed by a filter process type. I am then doing some processing through ABAP process type. But when I try to connect the ABAP process type to the attribute procees type, the system does not allow me to connect the ABAP process type to Attributes process type. What could be the reason.
    Thanks,
    Satya

    Hi,
    I had the same problem. Turns out that you see small red triangles (like the 'play' symbol on music applications) on your process types. If you click on that symbol and drag toward your other object, you will see a line appear and you'll be able to assign fields.
    Good luck!
    Hayo

  • Creating New Process Types

    Hello,
    Great to hear from anyone who has created a non-ABAP process type and included in the process chain.
    The interface methods and how they get called and/or check status etc. are not documented or at least I cannot find them.
    Thanks
    Mathew

    Hi Bill,
    Thanks for the info. You can also create process types similar to the Load IP process type which react to certain events like right click etc.
    For example, if you wanted a new process type that checked for its status within the last xxx hours and then bypasses itself or run itself based on a set of rules.
    If can be done as an ABAP program with possibly a variant for the IP name, time etc. which can then be attached to a process chain or can be programmed similar to an existing non-ABAP process type, say similar to the Load IP process type.
    What I was looking for is some documentation or feedback from others who know about the methods used ...there all have to conform to some OO based interface but there is little by way of documentation on it.
    Ta Mathew

  • 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

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

  • 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

  • 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

  • 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

  • How to Send an Email to Outlook using process type in RSPC?

    Hi,
    How to Send an Email to Outlook using process type in RSPC?
    We created lot of process variants, actually we want to send an mail to users if the DP Background job was succesfully finished.
    Actually i tried with create message its not happening...
    Plz let me know .. its urgent ...
    Regards,
    Satish

    Hello Satish,
    If you want to send a friendly message to your users, then you can do this by building an ABAP program that calls function module SO_NEW_DOCUMENT_SEND_API1 . You can then insert this ABAP program in your process chain (using the ABAP program process type) or as a second step in your background job. With this technique, you can send an email to SAP users, or to external users (e..g Outlook email addresses)
    Here's  a sample ABAP code:
      data: ls_docdata type SODOCCHGI1,
            lt_objcont type table of solisti1,
            lt_receivers type table of somlreci1,
            ls_objcont type solisti1,
            ls_receivers type somlreci1,
            ls_user type syuname.
    * Fill these variables with subject and msg lines that you need.
    data: MAIL_SUBJECT     TYPE STRING,
    MSG_LINE1     TYPE STRING,
    MSG_LINE2     TYPE STRING,
    MSG_LINE3     TYPE STRING,
    MSG_LINE4     TYPE STRING,
    MSG_LINE5     TYPE STRING.
      ls_docdata-obj_descr = mail_subject.
      ls_objcont-line = msg_line1.
      append ls_objcont to lt_objcont.
      ls_objcont-line = msg_line2.
      append ls_objcont to lt_objcont.
      ls_objcont-line = msg_line3.
      append ls_objcont to lt_objcont.
      ls_objcont-line = msg_line4.
      append ls_objcont to lt_objcont.
      ls_objcont-line = msg_line5.
      append ls_objcont to lt_objcont.
    * t_userlist contains the list of users to whom th email will be sent.
      loop at t_userlist into ls_user.
        ls_receivers-receiver = ls_user.
    "Change the type  here if email is for outlook users, See documentation
    " of function module in SE37
        ls_receivers-rec_type = 'B'.            
        ls_receivers-express = 'X'.
        append ls_receivers to lt_receivers.
      endloop.
      CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
        EXPORTING
          document_data                   = ls_docdata
        tables
         OBJECT_CONTENT                   = lt_objcont
         receivers                        = lt_receivers
       EXCEPTIONS
         TOO_MANY_RECEIVERS               = 1
         DOCUMENT_NOT_SENT                = 2
         DOCUMENT_TYPE_NOT_EXIST          = 3
         OPERATION_NO_AUTHORIZATION       = 4
         PARAMETER_ERROR                  = 5
         X_ERROR                          = 6
         ENQUEUE_ERROR                    = 7
         OTHERS                           = 8
    You can test out the function module first in SE37 (just put the name of the FM and click execute). Testing it in SE37 will help you get your parameters right.
    Hope this helps.

Maybe you are looking for

  • ADOBE interactive form runtime error

    Hi All, While deploying ADOBE form, I am getting the following error. The initial exception that caused the request to fail, was:    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (401) Unau

  • Can't create a pdf, or see preview, from print function in Filemaker

    I recently bought a 24" imac with 10.5.6 installed. I transferred everything over from my old G5. Everything works well except one function that I really need. I Filemaker (8.5), in the print function, if I click on "pdf", the "save as pdf" choice do

  • Iphone 5 "no service" after unlocking

    i just recently bought iphone 5 and unlocked it !! when i plug into itunes it says congratualtion !! you iphone has been unlocked.....but when i put my sim card in for Family Mobile (t-mobile) it says no service !! can someone help me out please

  • Urgent: Out of message Exception when parsing large message with JavaMail

    I am using JavaMail to parse the message. If the size of the message I try to parse exceeds my memory setting, I will got the Out of memory error. I understand that, and it is reasonable. The question I have is: At the time I try to parse the message

  • Full package name needed when using FindClass?

    When loading a class for use by the invocation interface, do I need to use the full package name of the class to be loaded, or just the class name? For example, I have a program called MyProg. It is part of package MyProg, and when I run it, I have t