WF with OO - dialog step issue

Hi folks.
I'm on ECC 6.0. My Zwf works with a Zclass. There is a dialog step that user receive in workplace ans can execute. BUT this WI terminates even user do nothing.
I'd like the WI get out its inbox ONLY if hin/her does the correct action in SAP document.
This step is configured with a method of a Zclass that calls a transaction.
I tryied configurations like explained in others posts, but without sucess.
I followed this explanation ( ABAP OO Method, you can select it as "Background Processing" else it will be a "Dialog Process) but it doesn't work. The WI always gets out of users workplace inbox. I want it to stay there while user did nothing in document.
Thanks.
Glauco

When a method completes execution it is finished and workflow moves on.
If you want to control when it is considered complete, you can either:
- Use "Confirm end of Processing" on the task
- Raise an exception CX_BO_CANCELLED or a subtype thereof in your method (this does not set the item into error)
- Use a condition on the WF step if there is something you can check
- Make it asynchronous with a terminating event
The first two options are the easiest to implement.
Hope that helps,
Mike

Similar Messages

  • Issue with 'Advance With Immediate Dialog' - Reg

    Hello Gurus,
    We are on ECC 6.0 with the below system details.
    SAP_ABA     700     0015     SAPKA70015     Cross-Application Component
    SAP_BASIS     700     0015     SAPKB70015     SAP Basis Component
    I have this strange requirement / issue. I have a User-decision step as step # 1 with 2 Outcomes (Release & Reject). If 'Release' option is chosen, then I need to display the same user another User-decision step for further decision. This works perfectly fine with the "Advance with Immediate Dialog' Flag. But now a new requirement came to run some background step in between these 2 decision steps. Means, if 'Release' option is chosen, then i need to execute a background method to validate some criteria and pull out some values into a container element in the workflow container. And then depending on the value of this container element, i'll have to pop-up the 2nd user decision step to the same user immediately.
    The "Advance with Immediate Dialog" is not working in this case. The 2nd User-decision step is coming as a separate work item to the user's Inbox. This will not meet the user requirement as 2nd work item should pop-up immediately after the decision of 1st step.
    I understand that this flag works with SAP Inbox fine ONLY for two consecutive dialog steps(Per SAP documentation...Condition step, Process Ctrl steps are OK to be in between two dialog steps). But i need to have some way of executing a piece of code at the end of step# 1 User decision and bring back some values into this container element.
    I could have used the concept of 'Programmed Binding' between WFLOW <----> TASK containers. But, the problem is these steps are User decision steps with DECISION.PROCESS, which is a std Business Object and Method. And i cannot modify this std. BO / method, just for this purpose. It'd be really laborious to have a custom DECISION Business object and method etc..
    Has anybody had similar requirement.If yes, how did you resolve it ?. Any other better ideas to achieve the above requirement would be greatly appreciated.
    Thank You In advance for your timely help
    Regards,
    venu
    Edited by: Venugopal Jogi on Dec 4, 2011 12:49 AM

    Hi,
    1) Why does the background step has to be between the decision steps? Can't you get the same data already before the first decision step? (I am just wondering that what changes your first decision step can make in the database, so that you need to get this new data after the user decision step.)
    2) One option for you is to change the background step as a dialog step. Just put the Advance With Immediate Dialog on for it too. And use the same agent as in the previous decision step. => Since you don't have any user dialog in the step it will be executed "automatically" and the user does not even know that this step was executed - he will only see the following dialog step. Just make sure that user has needed authorisations to do the things required in the background step.
    3) Another option could be to check if you could use a functional method of an ABAP class. Refer to Jocelyn Dart's blogs about OO in WF if you are not familiar with this stuff. Basically you could try to execute a functional method (including your code) from a container operation step that you could place between the decision steps. That will fill your container. Anyhow, I am not absolutely sure how this will affect to the "Advance With Immediate Dialog". Maybe the container operation with a functional method will stop the process similarly as happens now in your WF.
    Regards,
    Karri

  • PO Release workflow: mail and Sub workflow/Dialog step related issue

    Dear All,
    I have crated a two step work flow for release of  purchase order with two release code X & Y.Creator C1 creates PO.A mail is trigger to X&Y .In first step  X release the PO.
    Then Notification send to C1 & Y that the Release of 1st step is effected.Then Y releases it and a mail of completions is sent to C1 .(Structure is as follows: Po creation ->Mail to XY->
    X releases(PO release)->Mail toC1 &Y->Y Releases->Mail to C1&X->Workflow complete).My workflow works fine but have following problems.
    1) System gives the three stages mail properly.But after completions also generates 2nd stage mail(Mail toC1 &Y).I have used "process control"at the end but
    still the mail reoccurs.How to control it?
    2) Two types of messages appears in the SAP business w/p of user.Sub work flow and dialog step.4 mesgs appears in the sap inbox of X & Y .2 of
    Sub work flow & 2 of Dialog step.How can i control it .Can i set 1 out of them?
    3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this
    4) Organization plan is always must? or w/o that we can proceed?
    Pls Guide
    Regards
    Sachin

    Hello Rick,
    Sorry for any inconvenience caused.Intension is only to get quick focus from experts.
    I have redrafted my query .Please check
    I have crated a two step work flow for release of purchase order with two release code X & Y.Creator C1 creates PO.A mail is trigger to X&Y .(Structure is as follows: Po creation ->Mail to XY->X releases(PO release)->Mail toC1 &Y->Y Releases->Mail to C1&X->Workflow complete).My workflow works fine but have following problems.
    1) Reoccurring of 2nd stage mail.How to avoid this?At the end i  used"process control" with "outcome name=work flow completed.
    2) Two "work item type" message apeears in the out box of PO creators(sub)work flow and Dialog Step.Is this a standard or I need to correct it?
    3) After completion ,work flow log shows two Graphical Workflow Log.One is completed and other up to stage ->Mail to XY-> How to clear this
    4) Organization plan is always must? or w/o that we can proceed?
    Sachin

  • Purchase Order Workflow - dialog step not receiving terminating event

    Hi,
    We have a scenario wherein based on the release groups and release strategies, different peope need to release the PO's.
    I have been able to develop the workflow for this successfully, but here is where I am facing an issue.
    After the PO has been created, based on the release group and strategy, it gets routed to the appropriate 1st approver. On their approval, the PO gets routed to the 2nd approver. Once the 2nd approver approves, the dialog step doesnt get completed and is still waiting for the terminating event. Event trace shows that the event is getting published, but there is no workitem to receive the terminating event. I am not sure why this is occuring for only 2nd approver onwards whereas for the 1st approver, the terminating event is received by the workitem.
    I am using start conditions for my workflow to ensure only 1 instance of the workflow is triggered for a rel groups and rel strategy and release code, else I am multiple instances each time an approver approves the PO. I am not sure if the start conditions are causing this issue with the terminating events not being received with the workitems.
    Any assistance is welcome.
    Thank you,
    Satish

    From the information provoided it seems you are using PO that is subjected to Release of PO for multiple Release Code and each Release Code Release is being done by one approver. If that is the case then I think the Terminating event should get caught. Please check whether the Terminating event that is getting triggered is specific to the Release Code or not.
    Thanks
    Arghadip

  • Hoping for some help with a very frustrating issue!   I have been syncing my iPhone 5s and Outlook 2007 calendar and contacts with iCloud on my PC running Vista. All was well until the events I entered on the phone were showing up in Outlook, but not

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

    Hoping for some help with a very frustrating issue!
    I have been syncing calendar and contacts on my iPhone 5 and Outlook 2007 using iCloud  2.1.3 (my PC is running Vista). All was well until the events I entered on the phone were showing up in Outlook, but not the other way around. I’ve tried the usual recommended steps: deselecting calendar and contacts in the iCloud control panel and then re-selecting, signing out of the panel and back in, and repairing the Outlook installation in control panel.  I even uninstalled iCloud on the PC and downloaded it again (same version). 
    The furthest I’ve gotten is step 2 (and once, step 3) of 7 while performing “Outlook Setup For iCloud.” At that point I get, “Your setup couldn’t be started because of an unexpected error.”  After the first attempt at all this, all my calendar events disappeared from Outlook, although they are still in iCloud calendar and on my phone.
    Sound familiar?  Any ideas on how to solve this iCloud/Outlook issue?  Thanks much in advance!

  • Applescript to print a .doc file using TextEdit with print dialog.

    I want to print a pdf file using TextEdit .
    I want to display the print dialog before doing the print operation.
    Can any one help me with apple scripts to perform this operation.
    We tried to use this script; but when I click Cancel on print dialog. I am getting an error saying "TextEdit got an error: Apple Event Handler failed".
    set printDoc to "Macintosh HD:Users:testuser:Testing:testprint.pdf"
    tell application "TextEdit"
    activate
    open printDoc
    print printDoc with print dialog
    quit saving no
    end tell
    Can anyone help me to fix this issue ?

    Clicking the cancel button in the print dialog is sending an error code back to the script. If you use a try statement you can handle it better. The script below will just ignore it. Or you could use an "on error" statement to do something else.
    set printDoc to "Macintosh HD:Users:testuser:Testing:testprint.pdf"
    tell application "TextEdit"
    activate
    open printDoc
    try
    print printDoc with print dialog
    end try
    quit saving no
    end tell
    Hope that helps. Though the plaintext of a pdf may be a little hard to read.

  • Top 10 transactions in terms of dialog steps

    Hi,
    I have a client that I need to compare their top 10 transactions in terms of dialog steps to the SAP average.  I don't know where to go to get that average.  I know not all systems are the same and I also know this is pretty much an impossible task.  Is there some place where averages for different configurations might be posted?

    Hi ,
    Well, if they asked you to fly to Mars what would you tell them?  Olivier is exactly right...not only is this an impossible task -- such an "average" simply does not exist -- but any such average would have absolutely no meaning.
    What you need to come up with is a graceful explanation of the fact that they do not understand what they are asking in the first place.  I have been a consultant before and still talk to customers on a regular basis, so I understand that this may not be the easiest task.  However, it is much easier that what they are asking for in the first place!  Your best route will be to educate them.  In the long run they will respect you more for it.
    Best Regards,
    Matt

  • Update should happen with user id using advancing with immediate dialog ??

    Hi Experts,
    I am trying to use the advancing with immediate dialog:  My workflow is using HCM forms: The approver approves the form and  I want the next step to execute immediately. I made the recipient the same as the actual agent of the work item which just completed. The new step goes into a ready state in that agent's  inbox,  I signed on as the user to execute and it works fine.
    What other steps are required to make the task execute immediately without going to the user inbox?  The task calls a BOR object which has synchronous object method and object method with dialog checked. The task has advance with dialog checked.
    Regards,
    Lolanda

    Hi Viji,
    Yes,  I want the actual user name from the previous task which approved the item to display on the infotype  8 record as changed by. I thought I would be able to have it executed automatically by setting the step condition to  create work item and complete work item condition. I have not been successful in the background. It completes the task but I am not sure it is calling the routine. Is there a way to debug the task. It is  passing all breakpoints.
    regards,
    Lolanda

  • Workflow Dialog Step from WD ABAP.

    Hi Friends,
    I want to display User Decision steps / Dialog Step (where user can approve/reject )from my WD application . I was trying with the FM "SWL_WI_EXECUTE" and "SWL_WI_DISPATCH" but both are giving Null Pointer Dump. I debug and found that there is some problem which it generating HTML file .Has anybody any idea .
    Thanks In Advance.
    Satya

    Hi Satya,
    I am using the same FM SAP_WAPI_DECISION_COMPLETE for approving/rejecting from within my WDA application. I dont see as to why this should not be working for you.
    CALL FUNCTION 'SAP_WAPI_DECISION_COMPLETE'
        EXPORTING
          workitem_id          = im_workitem_id
          language             = sy-langu
          decision_key         = im_decision_key
       IMPORTING
          return_code          = ex_return_code.
    Here the decision key is a value which my workflow consultant had provided me. (In my case its like 0001 for approval, 0002 for rejection & 0003 for sending back the form to the initiator.)
    Regards,
    Uday

  • Can't interact with flash dialog boxes[Solved- sorta]

    Any time I try to interact with a dialog box produced by the flash plugin (such as the one that pops up with you right click a flash application and select "settings"), I am unable to do anything with it. That includes moving it, closing it, or manipulating any of the  controls within it.
    I've been googling for the last hour and haven't come up with any kind of solution. I even tried installing flashplugin9, gnash, and flashplugin-mozilla, and they all give the same result. Nor does changing  browsers (I've tried opera, arora, swiftfox, and firefox) yield different results.
    Thanks in advance for any insight into this issue.
    Regards,
    EnvoyRising
    Last edited by EnvoyRising (2009-01-12 15:58:49)

    EnvoyRising wrote:
    Any time I try to interact with a dialog box produced by the flash plugin (such as the one that pops up with you right click a flash application and select "settings"), I am unable to do anything with it. That includes moving it, closing it, or manipulating any of the  controls within it.
    I've been googling for the last hour and haven't come up with any kind of solution. I even tried installing flashplugin9, gnash, and flashplugin-mozilla, and they all give the same result. Nor does changing  browsers (I've tried opera, arora, swiftfox, and firefox) yield different results.
    Thanks in advance for any insight into this issue.
    Regards,
    EnvoyRising
    I would try a different GTK2 theme first. Something not complicated like the default Raleigh theme.

  • Response times -- Dialog Steps  Week / Weekend: How to compare it?

    Hello,
    We have SAP ECC 6.0 running on a HP-UX Cluster. Our service is a  7x7 24x24.
    Like most of companies system activity is lower in the weekend, for example:
    From Monday to Friday an average of 2.500.000 DIALOG Steps with a response time of 900 ms.
    On Saturday we have an average of: 650.000 DIALOGS Steps with a response time of 650 ms.
    On Sunday we have an average of: 250.000 DIALOG Steps with a response time of 450 ms.
    So the question is: It have sense that with 10% of user activity on sunday response time is near to 50% (comparing 450ms on sunday with 900 ms in the week) why the response time on sunday is not 10% of response time in the week, something like 90 ms?
    What is the correct way to analyze this numbers? Probably you never will have a linear function to represent this situation (in fact this is a Exponential function). SAP always have this behavior?
    sap_responseTime(t) = exp(t) Where t  is the time in ms.
    F(450) = 250.000    
    F(650) = 650.000    
    F(900) = 2.500.000 
    Please some tips about this topic.
    Best Regards,
    Erick Ilarraza

    Hi Erick
    Response times entirely depend on the overall system hardware, usage and user activities over the system. In your case, during weekends , a lower number of dialog steps suggest fewer dialog logons in comparison to the weekdays.
    In contrast, the response time ( 50%) in comparison to weekdays suggest that the users are executing some heavy transactions that show increased overall response time. These may be transactions that run reports with expensive SQL statements or fetch huge volumes of data from your database ( in comparison to the weekdays).
    There cannot be a linearity maintained between the dialog steps and response times when users log in and work randomly in a system
    I hope this helps
    Regards
    Chen

  • Catalogue price increased by 10% with a few steps ??

    I have made a Catalogue in InDesign CS6. All prices must be increased by 10% ... Who can help me to do this with a few steps ??

    Just follow the instructions on that page. But here's a summary anyway:
    1. Click the download the script link. You're asked to choose a folder for the download. Choose any. You're downloading a zip file. Double-click the zip file and drag the file you see in there (number_adjuster_1_2.jsx) to your scripts folder. Don't open that .jsx file.
    2. If you don't know where your scripts folder is, click the install it link on the InDesignSecrets.com page for instructions.
    3. Open your document and start the script from the Scripts panel (Window > Utilities > Scripts).
    4. In the script's dialog, set these these things:
    = Numbers are formatted as: 1.234,56
    = Operation to perform: Multiplication
    = Operator: 1.1 (multiplying by 1.1 is adding 10%)
    = How many places to round to: 2
    = Only find numbers . . . €
    Now the tricky bit. You have a space between the Euro symbol and the money amount, and the script doesn't allow you to enter the Euro symbol and a space in the Only find . . . field. Therefore take a breath, and tick the Search on Custom RegEx checkbox. All you need to do is to add \s at the beginning of that formula. Don't change anything else: just add \s at the beginning.
    5. Press ok to run the script.
    6. You'll see that the prices are updated, but the space between the Euro symbol has disappeared. Insert that space again by replacing € with € followed by a space.
    Peter

  • Dialog Formatting Issue

    Ran into a dialog formatting issue - namely that it will leave a character name and paranthetical at the bottom of one page, then put the dialog (with the character name again) on the next page when it should instead push all of it automatically to the next page. Makes no sense.
    For example, if writing this at the bottom of the page: 
                   Juliet
         (sotto)
    Romeo, Romeo, where for art thou, Romeo.
    It would leave this on one page:
                   Juliet
         (sotto)
                   (MORE)
    And put this on the next page:
                   Juliet (CONT'D)
    Romeo, Romeo, where for art thou, Romeo.
    Need to fix that. Thanks.

    Hi,
    Thanks for reporting this issue.
    This is a known issue to us, we already have this in our To-Do list.
    We have a couple of other high priority things lined up at the moment.
    We will let you know as soon we resolve this issue.
    Thanks again,
    - Priyank
    Adobe Story Team

  • Log on with a dialog user

    Hi all Basis Gurus,
                This is my question to Basis forum Please reply me immediately.  while running ITS in CRM 50 i am getting mentioned below error (Logon on with a dialog user).  can u please guide what are things i have to follow to resolve this prblem.
    Please suggest me what  shall i  do.
    Error when processing your request
    What has happened?
    The URL http://sapsrv.techmahindra.com:8010/sap/public/bc/its/mimes/system/SL/page/hourglass.html was not called due to an error.
    Note
    The following error text was processed in the system DEV : Log on with a dialog user
    The error occurred on the application server sapsrv_DEV_10 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Module: %_HTTP_START of program SAPMHTTP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system DEV in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapsrv_DEV_10 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 0 in transaction ST11 on the application server sapsrv_DEV_10 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 000 -u: SAPSYS -l: E -s: DEV -i: sapsrv_DEV_10 -w: 0 -d: 20070223 -t: 144317 -v: ERROR_MESSAGE_STATE -e: Log on with a dialog user
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Regds,
    Govinda ([email protected])

    I have checked with that setting,but still it is showing the below error.is there any another way?
    Error when processing your request
    What has happened?
    The URL http://gcecc62:8000/sap/bc/webdynpro/sap/zwda_logo_demo was not called due to an error.
    Note
    The following error text was processed in the system ECC : Die URL enthält keine vollständige Domainangabe (gcecc62 statt gcecc62.).
    The error occurred on the application server gcecc62_ECC_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: CHECK of program CX_FQDN=======================CP
    Method: LATE_CONSTRUCTOR of program CL_WDR_UCF====================CP
    Method: HANDLE_REQUEST of program CL_WDR_UCF====================CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP

  • TS1538 Device not recognized in iTunes for Windows  I wasted about 1.5 hours with Apple on this issue. It all started happening after I updated to the latest version of iTunes. I haven't been able to sync my iPhone 4 in 1 month and am freaking out about p

    Device not recognized in iTunes for Windows
    I wasted about 1.5 hours with Apple on this issue. It all started happening after I updated to the latest version of iTunes. I haven't been able to sync my iPhone 4 in 1 month and am freaking out about possibly losing my pictures, video, text messages and music.
    Windows XP user.
    Any help will be greatly appreciated.
    iPhone 4, iOS 5.1.1

    If might be helpful if you actually told us what the problem is.

Maybe you are looking for

  • Reconcile BP balance.

    In case I have made "on account payment" to a vendor against 2 or 3 different Invoices and the amount paid is higher than the total amount required to be paid. how to i close the Invoices against  "on account payment made"..?? and what about the exce

  • Will Time Machine delete what I delete?

    If I delete some old photos to free up space on my laptops hard drive, will Time Machine do the same the next time it's plugged into back up hard drive? Or can I just run the old photos from the back up hard drive? thanks

  • Ready to trade my sleek for an ipod after 24 hou

    I got my sleek yesterday and I am ready to trade it for a freakin ipod! ... I never thought id say that. I must have spent 5 hours today trying to get Windows media player to read my sleek. Windows recognizes it, when I open up my computer its recogn

  • Can any1 please help me..

    I am getting this error message when i run the program..The database is MS-Access..The java version is 1.3.I am attaching the error message it is throwing... An unexpected exception has been detected in native code outside the VM. Unexpected Signal :

  • Make certain fields in the Account Detail Page Read-Only based on a Checkbo

    Hello We would like to make certain fields on the Account Detail Page Read-Only based on a checkbox that is on the Admin Account Detail Page. The fields we are looking to make read-only are Account Name, Primary Address, Phone Number. Thanks