Process Chain Status is Red even though all processes are successful.

I implement ABAP Code by using standard function module "RSPC_CHAIN_START" for execute process chain and return status of process chain after execute completely as following code:
Execute Process Chain
CALL FUNCTION 'RSPC_CHAIN_START'
  EXPORTING
    I_CHAIN             = I_CHAIN
    I_SYNCHRONOUS       = I_SYNCHRONOUS
IMPORTING
   E_LOGID             = P_LOGID.
  If sy-subrc = 0.
    gt_status = 's'.
    WHILE gt_status = 's'.
Get Status of Process Chain
      CALL FUNCTION 'RSPC_API_CHAIN_GET_STATUS'
      EXPORTING
      i_chain              = I_CHAIN
      i_logid              = P_LOGID
     IMPORTING
      E_STATUS             = gt_status
      E_MESSAGE            = P_MESSAGE.
Status G or F - Report that the Chain is Successfully Completed.
Status A - The chain is Currently running
Status R or X - Report that the chain has ended with Errors.
    CASE gt_status.
    WHEN 'A'.
Process chain is running
      gt_status = 's'.
      P_MESSAGE = ''.
    WHEN OTHERS.
Process chain is completed
      exit.
    ENDCASE.
    IF gt_status = 's'.
       WAIT UP TO 2 SECONDS.
    ENDIF.
ENDWHILE.
Display Message
  IF gt_status = 'G' or gt_status = 'F'.
    MESSAGE i162(00) WITH P_MESSAGE.
  Else.
    MESSAGE e162(00) WITH P_MESSAGE.
  ENDIF.
  ENDIF.
From above code, when execute this function module, sometimes status of process chain is shown as canceled 'X', therefore, output of this function module is shown as "The process chain is canceled". When monitor process chain in RSPC log view, the process chain status is also shown as canceled 'X' and status of all process in process is green, however, after wait for a while, the status changed from canceled 'X' to successful 'G'.
Why did the status of process chain show as canceled 'X' even though finally process chain status is successful ? If I want to check status of process chain after execute completely, which status should to check in ABAP code?
Regards,
Pui

Using that FM.. u will be providing the Instance and Variant of the failed process.. and hence the reload will start from the failed process but not the entire chain...
In general the process status shud finish then or based on the link combination  the change from one process to other will happen...
try to maintain a wait time between the process atleast 2 to 4 secs..
thanks
hope this helps..

Similar Messages

  • Process Chain status not becomeing green even if all loads are successful

    Hi,
    The porcess chain status is not becoming green even if all loads are successful.  How can I make it GREEN.
    One more doubt I have.
    Suppose I have 6 processes in my process chain and the 3rd process failed. If I run the function module RSPC_PROCESS_FINISH will start loading from the beginging or from the failed process.
    I wish to load from the failed process onwards..what should I do ??
    Kindly give the details.
    Bill

    Using that FM.. u will be providing the Instance and Variant of the failed process.. and hence the reload will start from the failed process but not the entire chain...
    In general the process status shud finish then or based on the link combination  the change from one process to other will happen...
    try to maintain a wait time between the process atleast 2 to 4 secs..
    thanks
    hope this helps..

  • When I get a message it only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

    when I get a message my iphone 4s only vibrates even though all sounds are on and when someone calls the sound works perfectly normal.

    Try a reset. To reset the iPhone, press and hold the home and sleep/wake buttons until you see the Apple logo (ignore the slide to power off prompt). If that doesn't work, perform a Restore via iTunes (from backup).

  • I have Lion on my IMac and it is hooked up to I Cloud, however, even though all settings are correct I am not getting auto sync of calendars  to my I Mac from my IPHone 4S or my iPad 1. Neither am I getting Photfrom my IPhone to my I Mac?

    I have Lion on my IMac and it is hooked up to I Cloud, however, even though all settings are correct I am not getting auto sync of calendars  to my I Mac from my IPHone 4S or my iPad 1. Neither am I getting Photfrom my IPhone to my I Mac?
    Can someone set me straight?

    Check system preferences to make sure you have iCal and your photostream checkmarked to TRUE.
    If you still have problems, give us more details.
    Also, make sure the calendar in iCal you're using/looking at is not "On My Mac", but actually an iCloud one.

  • How can I get rid of this number even though all apps are updated and installed?

    Weird problem - How can I get rid of this number on top right even though all apps have been updated and installed?

    stamatgeorge wrote:
    Weird problem - How can I get rid of this number on top right even though all apps have been updated and installed?
    That doesn't mean that you have updates.
    Not sure how that app works, - normally means you have a notification for that app - what happen when you go into the app?
    If you had update it would be a red number for the app store icon

  • I need to update Firefox, but it keeps saying that Firefox needs to be closed first (even though all windows are closed). I cannot install or remove Firefox files due to this problem.

    Firefox was unable to open google, and I saw there was an update for that problem, but I am unable to install the update (or any update for that matter) as well as removing Firefox. Every time I try to do so, I get a message that I must close Firefox first (even though there are no windows open). I checked applications to be sure, and it does not appear Firefox is running when this happens.

    Hi kshikuma. This happens to me sometimes, as well.
    To solve this issue, open the Windows Task Manager by hitting Ctrl+Alt+Del.
    Go to the "Processes" tab and see if a process named "firefox.exe" or "plugin-container.exe" is opened. Close any and all such processes by right-clicking them and selecting "End Process".

  • RAID 1 comes up degraded after reboot, even though all components are new and no data is on the drives. . help!

    Hi there, I'm trying to build a RAID1 (mirrored) from 2 identical drives in an external 2 bay enclosure. I'm able to build the RAID set, and it ends up having an online status when I'm finished. I'm also able to copy data to the new RAID and work on it.  However when I restart my computer the next day, the RAID comes up as degraded and automatically starts the (9 hour!) rebuild process, even if there is no data on the RAID (I've destroyed and recreated the RAID several times).  I've already erased both drives with the zero out option to map out any possible bad blocks, and I've also checked the connections in the enclosure and reseated the drives, although they mount just fine as individual disks.  I'm kind of at a loss here.  Any advice or experience with a similar issue?  The drives and enclosure are all brand new (I know not a guarantee, but it's a bit early for work related failure as they've not been in use for more than a week.)  I'm running 10.6.8 on a 17" Laptop 2.66gHz Quad core with 8gig of RAM.  Enclosure is connected through USB 2.0.  Any help would be greatly appreciated, thanks!
    -Andrew

    Your dad should go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store.
    Regards.

  • Incoming email will not format in html even though all settings are correct

    I have Windows Vista operating system. Our IT guy recently updated my Thunderbird version to 31.5.0.5531 from a very old version. I have tried all suggestions from forums about settings for HTML viewing. At this point, I don't even get the option of reading an email in HTML. I forward a lot of messages to my coworkers, and I can't do that any more. Any help would be greatly appreciated. I would also gladly go back to an earlier version.
    Thanks Cindy

    You ask about HTML, but most of your settings are about remote content. Is it images that are causing grief or HTML?

  • CS5 file printing at 50% opacity, even though all layers are at 100% opacity! HELP

    Hi,
    I'm having some SERIOUS issues with InDesign at the moment. I'm quite well versed with the program, and have never encountered this issue before - I am at a loss at what to do or how to fix it.
    I've been designing a magazine layout for a University assignment - the file/template was downloaded from the Uni website, and had 1 existing layer which we could not alter. I've then added a number of other layers of images, text, shapes etc. Some which have various drop shadows and effects on top.
    When I went to test print the layout, I noticed that it was though it had been set at 50% opacity - everything was see through and I could see multiple layers of colours. I thought that I had perhaps accidentally mucked with the settings, but after double checking, I was baffled. Originally I had exported it as a high quality PDF file, so I then tried printing it as a CS5 file straight from my mac - I got the same result. I've since tried both the PDF and .idml files on both mac and pc, but nothing seems to change.
    The odd thing is, on my screen, both PDF and .idml files are at 100% opacity and vibrant blocks of colour - I am quite confident that the settings on the layers are all at 100%, but I still cannot seem to fix it.
    Some advice or answers would be extremely valuable! I have the chance to resubmit, so I'd like to know how to fix it, if possible!
    Thanks

    I'm not really sure what to show you.
    In overprint view it looks wrong - 50% opacity - i think we're on the right track!
    That's it in overprint view (above)
    That's how it's supposed to look - I'm not sure if you can see the difference though, it's not very clear.

  • TFS 2013 TfsReports on SQL Server 2014 - rsAccessDenied Error even though all users are granted ALL Roles

    We have granted everyone all roles on our TfsReports site. However, all users (except for 2 who are TFS Admins) still get the following errors when attempting to manage the reports:
    The permissions granted to user Domain\UserName are insufficient for performing this operation. (rsAccessDenied)
    These are the roles we've granted to all "Domain Users": Browser, Content Manager, My Reports, Publisher, Report Builder, Team Foundation Content Manager.
    We can't seem to figure out what else might be missing.
    Please help.

    The issue was reported by one of the Application Support team stating that they have problems with accessing reports in Reporting Services from Team Foundation Server (TFS)
    side. By default certain users are part of local domain group having LOCAL ADMINISTRATOR privileges on TFS server, which is by default no issues for those users. Somehow there was a change in the role of certain users where ADMIN access was revoked. However
    the users are still part of SYSADMIN group, they were reported the error as follows:
    “The
    permissions granted to user ''DOMAIN\UserName'' are insufficient for performing this operation. (rsAccessDenied)”
    By default the text clarifies that no permission to access the reports and further we have set of roles defined on the Reporting
    Services, as follows: 
    http ://servername/Reports/
    Root
    BUILTIN\Administrators                  No
    access
    DOMAIN\TfsAdmins                        Content
    Manager
    DOMAIN\ReportAdmins
         Content Manager
    More
    details
    Ahsan Kabir Please remember to click Mark as Answer and Vote as Helpful on posts that help you. This can be beneficial to other community members reading the thread. http://www.aktechforum.blogspot.com/

  • My Canon ZR800 won't import even though all cords are plugged in

    It was working importing but then it said disconnected or off and now it doesn't even recognize that the cameras plugged in

    Did you ever find a solution to this? I am having the same issue with a different camera - driving me insane!

  • Why when mountain lion is downloading it keeps giving me 403 forbidden, even though all systems are up to date?

    I just recently purchased the lastest version of Mountain Lion. I am currently running Snow Leopard 10.6.8 which is the lastest version, and should be compatiable to download Mountain Lion. My computer meets all the requirements in order for the operating system to download, but everytime it gets about halfway through the download it stops and the error screen pops up and says Error: could not download...403 Forbidden. What is going on? I don't know what to do, and I can't get it to download after 4 tries, and all of my programs are up-to-date. What do I do?

    I just recently purchased the lastest version of Mountain Lion. I am currently running Snow Leopard 10.6.8 which is the lastest version, and should be compatiable to download Mountain Lion. My computer meets all the requirements in order for the operating system to download, but everytime it gets about halfway through the download it stops and the error screen pops up and says Error: could not download...403 Forbidden. What is going on? I don't know what to do, and I can't get it to download after 4 tries, and all of my programs are up-to-date. What do I do?

  • Is it possible to restore lost windows? Firefox crashed, and only 5 of my open windows reopened, even though all settings are such that all should be restored.

    Unfortunately when I restarted Firefox after its most recent crash, most of my open windows and tabs were not restored as they are set to do and as they usually do after a crash. Not that I enjoy Firefox crashing, but usually everything reopens and life goes on. However, after a crash tonight, when I next opened Firefox about 80% of my open windows and tabs did not reopen.
    After this (most recent) crash most of my windows and tabs were not restored:
    bp-e7f145b9-04cf-4de8-a4a4-8e2952130816
    This was the most recent prior crash where my windows and tabs were restored:
    bp-c674bdd3-e905-44c0-9bc9-6b4982130815
    **I would love to have these windows and tabs reset, or at least be able to find a list of them to reopen them manually.**
    I am running Firefox 23.0. My antivirus and antispyware were run overnight last night with no issues.
    (This is on my desktop computer using Windows XP. I also have a laptop which runs Firefox 23.0 which uses Windows 7. Firefox on it crashes as well, but thankfully thus far the windows and tabs have been restored. I use it less than I do my desktop, however.)
    Thank you very much!

    Thank you -- I will do so. Still, I'm very eager to restore (or find a list of) my windows and tabs that were not restored after the last crash. Is it possible to do that from the last working restore?
    The last two working restores were after the crash mentioned above, bp-c674bdd3-e905-44c0-9bc9-6b4982130815, and before that, bp-7f5b697e-c4c5-4cb8-9b15-9318c2130815.
    FWIW, I just updated to 23.0.1. Thank you *very* much!

  • Cannot import some CD artwork to iTunes even though all steps are followed correctly

    I can't seem to import some CD artwork into I tunes.  I can drag the artwork into the artwork box when using "get info" but when I click OK, the artwork disappears.  When I try to drag or paste the image to the artwork box on the lower left, the image appears for less than a second and disappears.
    Don't know what else to do.

    can't help, just wanted to add my voice for this problem...
    tried several times to add artwork in "Get Info" box where the add artwork option is available...add picture from my pictures folder and it shows up when song is playing, but after I switch to another song then back to the song I just added the artwork to, the artwork that has just been added a few minutes before has disappeared!
    hope someone has an answer to this disappearing act...or has Criss Angel been hired by Apple to run iTunes development? lol

  • Process Chain Status Red, DTP status yellow, DTP is green from inside

    Hello All,
    I have a problem where the  Process Chain  status is red, but the process(DTP) status is yellow.
    When I right click on the yellow process there is no error message and the DTP is green in Process Monitor.
    But the chain did not complete and the rest of the process steps are grey.
    After 20 minutes the Process Chain ran again(automatically after new data arrived) and this time without errors and it went green.
    My question is, how to proceed with the red Process chain and complete the further process and make it green.
    Regards
    Alex

    hi,
    There are scenarios where you need to change status of a process chain or a particular step in process chain.
    You might need to change the status in the cases where we need mark these steps successful so that dependent steps get processed. There are other scenarios where one needs to change the status of a single step in the process chain or status of whole process chain.
    Step by step instructions on change process chain status
    1. Right click on the failed step in the process chain monitor and go to displaying messages
    2. Go to u2018Chainu2019 tab and note down variant, instance and start date
    3. Go to SE16 and the table RSPCPROCESSLOG and enter variant, instance and start dates from step 2 and note down log_id, type, variant, instance.
    4. Go to SE37 transaction and execute the function module RSPC_PROCESS_FINISH and enter the values from step 3 and enter the new status u2018Gu2019 in status field and execute the FM
    5. This sets the status of the process chain (PC)
    After you set the status using the FM, go to the monitor screen of the process chain, you will notice the changed status. Now dependent steps in the process chain will start running
    Thanks

Maybe you are looking for