Automatic popup for reason of rejection after async method

Hello,
How to get a <b>reason of rejection</b> popup after an asynchronous method?
Currently I am using the standard <b>singlerelease</b> method of object type BUS2012 for the release of purchase order.
Now once this order gets rejected the user wants an automatic popup for entering the reason for rejection and NOT as another workitem in his inbox for execution.
Please let me know how can I provide this functionality in the current scenario. Also since the Previous method(singlerelease) is asynchronous “Advance with Dialog” does not work.
Thanks and Regards,
Anuj

Hi Mikko/Anuj,
Added to the FAQ, including techo details.
Cheers,
Mike
3.16. How can I 'advance in dialog' with asynchronous tasks?
This is unfortunately not possible as the very nature of <i>asynchronous</i> tasks contradicts the idea of 'advance in dialog', also known as <i>synchronous</i> dialog chains. The two main reasons for using asynch tasks are either that the termination can happen outside of WF, or to ensure that all database updates are complete. Both of these imply that there is an action happening outside of workflow (database updates can happen outside the user session after the transaction is completed). Since these happen outside the current dialog session, one would have to 'continue' another user's session in the current dialog, which is not possible.
How it works on a more technical level:
Asynchronous tasks use terminating events which live in the instance linkage tables (tx SWEINST). You don't normally have to touch instance linkages, the WF system creates these as necessary, and deletes it when a task completes.
The main difference between instance and type linkages is that instance linkages have a key and are specific to one instance (hence the name), they are only triggered for the object with the same key. Like any other event they are passed on to the event manager who triggers the receiver (the task completion in this case) via RFC (user WF-BATCH). This is why it is theoretically impossible to advance in dialog - because the task completion happens in a separate dialog under a different user, quite possibly on a different server.
Workarounds can include secondary methods (though they have their own restrictions), or redesigning your flow so that it uses a synchronous task instead e.g. by using a wait for event in a separate branch or creating a synchronous task instead.

Similar Messages

  • Automatic popup for reason of rej after an async method

    Hello,
    How to get a reason of rejection popup after an asynchronous method?
    Currently I am using the standard singlerelease method of object type BUS2012 for the release of purchase order. Now once this order gets rejected the user wants an <b>automatic popup for entering the reason for rejection</b> and NOT as another workitem in his inbox for execution.
    Please let me know how can I provide this functionality in the current scenario. <b>Also since the Previous method(singlerelease) is asynchronous “Advance with Dialog” does not work.</b>
    Thanks and Regards,
    Anuj

    It does not work for asynchronous methods but works for synchronous methods. As per SAP the advance with immediate dialog should work for asynchronous methods as well.
    Below is an excerpt from SAP help.
    At runtime, after completion of a step, (= work item has status completed), the workflow system checks the following properties of the subsequent work item:
    •     Is it a dialog work item?
    •     Does the corresponding task refer to a synchronous method?
    •     Is the indicator Advance with dialog set?
    •     Is the actual agent also a recipient of this work item?
    •     Has the work item reached all of its requested starts?
    If the answer to all these questions is yes, the workflow system automatically starts execution of the work item.
    May be you should write a message to SAP. In the meanwhile you can create a synchronous method for the business object.
    -Kiran

  • Popup for entering Reason for Rejection

    Hi Experts,
    I have a workflow which has a user deciision step for approval and rejection.
    On rejecting i want a popup to appears where in user can select the reason for rejection and then exceute the workitem.
    I have tried using POPUP_GET_VALUES . I created a method in my BO and it works fine over there, but when i call it in the workflow i dont c any popup and the wokritem disappears.
    When i check the log, this step is still in READY state and thw rokflwo is hanging.
    Any other approach that any1 can suggest.
    Thanks.

    Hi Aarvi,
    I have similar requirement. Could you please provide some more info on the solution. I am using FM 'CATSXT_SIMPLE_TEXT_EDITOR' to get the popup. I have added this FM in a method and this method is attached to "Method AFTER Work Item Execution" section in Method tab in User decision task.
    Problem I have is, even if I approve or reject, popup still appears. But I need only the popup during rejection.

  • Short dump while marking Sales order Line item for Reason for rejection

    Hi All,
    Need your help in the following regards.
    In system Client is creating a sales order with 100+ line items and for each line item a project gets created automatically at the background as it is a make to order senario. Now what is happening is customer suddenly call's and tells to stop few line items tempororily till he gives go-ahead, so our client is marking it for reason for rejection, while doing this the network created for a project is getting deleted. Once we receive conformation for that line item agin to proceed we are removing the reason for rejection and it was suppose to create a new network, but system is taking huge time to do this and going for a shout dump saying time-out error, in few cases it is creating the network.
    Need your valuable inputs how we can address this issue to avoid the short dump. We have increased the buffer time to 30min also.
    Thanks
    regards
    kishore

    Hi,
    You can easily list out sales order that have been assigned reason for rejection..simple extract of table VBAP-ABGRU = not blank.
    This report should list out the sales order number along with some more details, as required.
    Now the report should allow to choose the documents i.e. like giving checkboxes in the left most side and once the user chooses the sales documents he wants to get processed--> the program should call change Sales Order FM or BAPI. Execute this in background.
    Regards,
    Raghu.

  • How can I make a intro page for my website, then after the intro has run make the page automatically change to my we site home screen

    how can I make a intro page for my website, then after the intro has run make the page automatically change to my website's home screen

    You can do this using a meta refresh but the problem is you have to add it to the html file for the page very time you publish changes.
    A better way is to create a splash page and upload it to the server outside of the folder produced by iWeb. Example HERE.
    The meta refresh is added to the head section of the html file...
    <meta http-equiv="refresh" content="32;url=http://www.domain.about.com/Page-Name.html">
    The delay time in seconds is marked in blue and the URL to the redirect page is in red.

  • I have just upgraded from Lightroom 5 standalone to Lightroom 6 standalone. I ppear to have been automatically enrolled for a 30 day free trial of Lightroom mobile and Creative Cloud. Reading the FAQ, it appears that after the expiry of the free trial I w

    I have just upgraded from Lightroom 5 standalone to Lightroom 6 standalone. I appear to have been automatically enrolled for a 30 day free trial of Lightroom Mobile and Creative Cloud. Reading the FAQ, it appears that after the expiry of the free trial, if I do not sign up and pay, I will only be able to view my pictures on the desktop but not edit them - surely this cannot be true. How do I un-enroll for the 30 day free trial of Lightroom Mobile and CC?

    When I was signed into Adobe (which was a requirement for installing the upgrade), Lightroom 6 told my at the top right corner that I had 30 days left of my free trial of Lightroom Mobile and Creative Cloud. In parallel with this forum posting, I am chatting with Adobe support. he is away to find out how to prevent any synching with Creative Cloud during the 30 day free trial. I do not think that Creative Cloud is an application that gets installed on your PC. I think Lightroom 6 has it built in, and can use it if if you are signed up to the Creative Cloud and Lightroom Mobile (which I am for 30 days)

  • After adding MIME type in sharepoint server, file click opens a popup for file to open as readonly or edit, How to avoid this popup

    After adding MIME type in sharepoint server,
    File click opens a popup for file to open as readonly or edit, How to avoid this popup
    Popup Details:
    You are about to open --> File Details
    How would you like to open --> ReadOnly, Edit
    OS: Window 7
    Jagadish

    this is likely caused by the library requiring check-out/check-in. For a file to be editable, the file needs to be checked out.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    When I click PDF file, the file does not open and  installation software for creative suite automatically begin to start. Even after re-installation of creative suite 5.5, only acrobat reader dose not work and the same phenomena occurs.

    Did you ever install Acrobat? It is not installed automatically with CS, but requires an extra installation step.

  • The system shall allow for reporting by rejection reason code

    Allow the reporting of a reason code when an order is rejected for the purpose of tracking lost sales
    The system shall allow for reporting by rejection reason code to allow for tracking lost sales.

    A custom ABAP will have to be developed looking at table VBAK and VBAP to determine the reason for rejection, then group it by order number.

  • Updating the reason of rejection for line item in sales order

    Hi
    I am updating the reason of rejection field (ABGRU) using the function module VERKBELEG_WRITE_DOCUMENT.
    there is no error that is thrown but the field is also not getting updated.
    I have populated the VBAP old and new structure. where the difference is only in the ABGRU field. in the old VBAP struct its missing where as in new it has a value
    if anyone has any idea what is that i might be missing, do let me know.
    Regards
    Nikhil

    Hi
    we need to maintain the username of the person who has triggered this process through XI .
    I BAPI we cannot instruct the BAPI to maintain a specific username.
    that is why i am using this FM because this will allow us to maintain the change history with the username we want
    Regards
    Nikhil

  • Update Reason of Rejection field in Sales Orders

    Hi all,
    My scenario is:
    1) To Close all the open sales orders with a customized Reason of Rejection (ABGRU) field
    2) Only when the Sales Order Created Date is 1 month behind the Current Date.
    The report program which shall be developed should be run in background and shall automatically close all the Open Sales Orders and update the Reason of Rejection.
    Any hints shall be very helpful in addressing ,my problem.
    Thanks and Regards
    Srikanth.P

    Hi,
    After prfoeming select query on data base tables , use  Bapi BAPI_SALESORDER_CHANGE  for updating the reason for rejection  and FM RV_SALES_DOCUMENT_UPDATE  for updating the status of SO.
    Hope this helps you.
    BR,
    Lokeswari.
    Edited by: Lokeswari Bandaru on Sep 27, 2010 9:06 AM

  • Re: Reason Of Rejection field in the Sales Order screen in IC Web client

    Hi guys
    WE have implemented CRM 6.0 & ECC 6.0
    Our call center guys login to IC Webclient to place Standard Orders in the CRM system which replicates to ECC.
    Now as most of us know that the Order cannot be rejected once a Delivery Document is created for it. The field becomes Inactive.
    Now as per our requirement, we want to enhance this functionality & allow the user to Reject the Order till the Delivery is not Shipped. To make this happen the Reason Of Rejection Field needs to be active even after Delivery is created.
    We have made changes to the ECC system & the CRM backend system to allow this functionality.
    I was assuming that keeping the field active in CRM backend would automatically keep it active on the IC web client.
    However this is not the case.
    Can anyone guide me in the right direction. I know that the IC webclient is based out of JAVA.
    If someone could tell me if there is any customization that can make this happen or if some part of the code associated to the IC webclient needs to be enhanced to make this happen ?
    Thanks
    Vinit

    Hi Chandrakant
    thanks for ur response
    But can u be a bit more specific as in where should i view these ?
    I am an SD consultant trying to learn CRM .. hence if u could give the tcode or the spro path where i can check these .. it will be great.
    Editing the reply
    I got thru the view & also went into the attributes.
    In that I see different codes for this field.
    Get_Rejection
    Set_Rejection
    Get_M_Rejection
    Get_V_Rejection
    Get_I_Rejection
    Get_P_Rejection
    So now my question is whether the deactivation part needs to be coded in one of these or will I have to create one of such codes to achieve my functionality ?
    Thanks for ur time
    Vinit
    Edited by: vinit parkar on Jan 28, 2011 8:28 PM

  • How to update the status of Credit memo request as "Close" by putting reason of rejection

    Dear All,
    Our requirement is to close credit memo request, We already cancelled the subsequent document i.e. billing. In credit memo request we are trying to close it by putting "Reason of Rejection", but instead of closed is coming as " Being Process". I already did the required configuration at Item Level for G2N in VOV7, but still the status is "Being Process".
    Please let me know if I m missing config.
    Thanks,
    Sumeet Sah

    Hi
    Check this below link. I had faced this issue years ago and got a strange solution which is still applicable.
    Open status of Credit Memo after rejecting all line items
    Thank$

  • Set batch management  for reasons of cost management item cannot be deleted

    Discovery was made that a material should have had batch management MARC-XCHPF selected.  Within that time sales orders were created as well as sales order stock.  411E movements were done to get rid of the sales order stock, and it can not be seen in MMBE.  MD04 is also clear.  New attempt to add batch management in the plant displayed errors - SD Documents exist (orders or deliveries) that have not yet been
    processed or that have been processed only in part.            
       Document   Item                                             
       206365     000020
    Attempt to remove item 20 from sales order and receive error
    Message no. V1128
    For reasons of cost management, item 000020 cannot be deleted.
    Diagnosis
    You tried to delete a sales document item for which cost management is carried out. Cost management can exist at item level for
       - make-to-order production
       - make-to-order stock
       - service contract item
    Procedure
    Enter a reason for rejection at item level.
    I found a similar problem on the forum but not really a solution other than throwing in the towel and making new materials.

    Hi
    What I understand from your thread is:
    You have chekced batchmanagement in
    material master & after working some time you want to remove that tick mark.
    First of all one should understand that for what ever reason batch management is ON, you can not reverse it .
    Either activation or deactivation of batchmanagement is irreversible.
    Oflat SAP had come with a note telling that how to proceed with reversal batch management.
    I have gone through that note .Finally SAP wants to take consultancy with some fees to make reversal.
    It is all pain ful job.
    If you can do it abandom thta material & create new material.
    This is the solution I can give.
    Hope it is celar to you.
    Regards
    YMREDDY

  • JSF error message: Automatic prompting for file download

    This is a weird problem. I have a JSF application wherin I popup a new window on a submit button.
    The window opens a test.jsf page that redirects the output to a servlet1.
    Servlet then based on some parameters does a sendRedirectI() to different servlets out of context.
    Now the issue is that when the output is redirected to out of context servlet, that returns a file download.
    If in IE browser, if one does not do a setting of "Automatic prompting for file download", this window that I had opened on submit buttton vanishes in a jiffy. If the IE setting is done, it shows the file download correctly.
    I would want to show the user some kind of message by which he/she understands that this IE setting has to be done.
    I have tried several ways:
    1. Javascript: window.onbeforeunload on the test.jsf so that when the window unloads i can show some message. But since test.jsf forwards to servlet1, the html page generated does not show my script.
    2. I also tried checking if some windows registry can help me understand the setting.
    3. I tried writing in response object the javascript and then redirecting it to servlet out of context. But I guess sendRedirect() does a new request, so this did not help.
    Can anyone help? I am not sure if I am able to explain my problem correctly.
    Yani

    Here is the result.I used your code and it worked fine with IE setting Enabled. But when I tried to access the download servlet after opening a new window, it doesnt download the file.

Maybe you are looking for

  • How do you allow a user to create a new password?

    The way i have it set up right now the users are registered by the admin and a random password is provided for them to log in. When they login they're instructed to create a new password. They click to update their information. Included in this form

  • Is there a version of Pages I can download for ios5.1.1?

    Is there a version of Pages I can download for ios5.1.1?

  • EventHandler triggering issues from AdobeForm SubmitToSAP button

    Hi Sumit, Please follow this solution: Please switch on logging for the following location to "info": Nw04:  com.sap.tc.webdynpro.clientserver.adobe.AdobeFormHelper Nw04s: com.sap.tc.webdynpro.clientserver.uielib.adobe.impl.AdobeFormHelper How to use

  • ITunes Match doesn't upload any songs.

    I've got a problem with iTunes match on iTunes 11 on my MacBook Pro 10.8.2. At Step 3, iTunes Match doesn't upload any songs! It stops and starts again with Step 1. At the end, I've error 4002. Turn on/off Genius/iTunes Match didn't worked ! I need h

  • Clone stamp behaving oddly

    i accidentally hit a wrong key when trying to get the clone stamp going and now it brings up a box with changing icons in it  (see upper left of attached image). and it doesnt work.  how can i get clone stamp back to normal?