Whether Workflow Program Exit works in ABAP WebDynpro

Hi,
I have the custom  workflow in which in each task i have given a program exit to update the status into my custom tables.
Now i'm in doing the change in workflow, that it should call the abap webdynpro screen, where the user decisions has to be made.
I'm getting the Workitem id from the UWL and then it lauches the Web Dynpro to choose either Approve, Reject or Change etc along with some other travel expense information.
Now once i complete the web dynpro by calling the method 'SAP_WAPI_WORKITEM_COMPLETE', the particular work item is completed.
I want to ask whether before this FM is called,whether the Program Exit which i have written in the Class method and which is called in the Workflow, whether it triggers or not?
Regards,

It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
So closing the thread.

Similar Messages

  • Exit button in ABAP Webdynpro doesnot work with SPNEGO

    Dear Webdynpro Gurus,
    we are in weird situation where we have webdynpro application in ABAP with exit button.
    we have ABAP System and EP System and SSO configured for these two systems.
    We configured EP system with Microsoft Active directory for single-signon with SPNEGO.
    this configuration is working fine.
    the situation is when we click on exit button, it is not redirecting to the main iview and there is no action taking place.
    please find the code for the exit button:
    *METHOD onactionexit .*
      *CONSTANTS lc_uri TYPE string VALUE 'ROLES://portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.roles'.*
      *constants lc_url type string value '/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.employee_self_service/com.sap.pct.erp.ess.area_employee_search'.*
    'ROLES://pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.overview'.**
    *   Call New portal Page or iView**
      *TYPES: BEGIN OF navigation,*
        *target       TYPE string,*
        *mode         TYPE string,*
        *features     TYPE string,*
        *window       TYPE string,*
        *history_mode TYPE string,*
        *target_title TYPE string,*
        *context_url  TYPE string,*
       *END OF navigation.*
      *DATA: wa_navigation TYPE navigation.*
      *data : lv_url1 type string.*
      *DATA lo_api_component  TYPE REF TO if_wd_component.*
      *DATA lo_portal_manager TYPE REF TO if_wd_portal_integration.*
      *lo_api_component = wd_comp_controller->wd_get_api( ).*
      *lo_portal_manager = lo_api_component->get_portal_manager( ).*
      *concatenate lc_uri lc_url into lv_url1 respecting blanks .*
      *wa_navigation-target = lv_url1.*
      *wa_navigation-mode   = '0'.*
      *CALL METHOD lo_portal_manager->navigate_absolute*
        *EXPORTING*
          *navigation_target = wa_navigation-target*
          *navigation_mode   = wa_navigation-mode "IF_WD_PORTAL_INTEGRATION=>CO_SHOW_INPLACE*
          *post_parameters = ABAP_TRUE.*
    *ENDMETHOD.*
    Please help me to get out of this situation.
    Thanks & Regards,
    Khurshid.

    It is calling the workflow program exit before the SAP_WAPI_WORKITEM_COMPLETE function module.
    So closing the thread.

  • Doubt in Workflows using Programming Exits on OO ABAP

    I have a doubt on workflows:-
    Let me brief you about my requirement:
    I am trying to update some Master data using ABAP Methods through Programming Exits in a Workflow.
    I managed to find an OO method that can fetch the workflow container values directly into the structure.
    While testing the workflow:-
    The OO ABAP method executes and successfully updates the master tables.
    However, a calling method (that triggers this method indirectly), raises an exception called SWF_RUN_WIM_EXEC_INTERRUPTED.  
    The exception is caught within the caller method and the workflow errors saying that “the method ABC… cannot be executed.”
    The caller method is:-
    CL_SWF_RUN_WORKFLOW_START
    The exception is raised on execution of the following statement:-
    CALL METHOD me->start_workitem( lh_wi_handle ).
    One reason for this is that the workflow is still not completed and still in “READY” state.
    Alternative method
    Once the Master data is updated successfully,
    I tried to use the FM SAP_WAPI_WORKITEM_COMPLETE to end the work item or tried another FM to suspend the workflow.
    Now it gives an error saying that these FMs are restricted from use during run-time execution.
    Query
    Do you have an idea why the exception is raised and how to track/prevent the same?
    Can you suggest any other alternative?  Your valuable advice is urgently needed.
    Thanks a million in advance,
    Best Regards,
    Vinod

    Check the code
          CLASS zcl_event_handler IMPLEMENTATION
    CLASS zcl_event_handler IMPLEMENTATION.
    Top-of-page event
      METHOD top_of_page.
        PERFORM event_top_of_page
                USING z_dyndoc_id.
      ENDMETHOD.   "METHOD top_of_page
    Change Status Button
      METHOD handle_toolbar.
        IF NOT pa_prodr IS INITIAL.
          DATA: lz_toolbar  TYPE stb_button.
          CLEAR lz_toolbar.
          MOVE    'CHANGE_STATUS'  TO lz_toolbar-function.
          MOVE    text-001         TO lz_toolbar-text.
          APPEND  lz_toolbar       TO e_object->mt_toolbar.
        ENDIF.          "IF NOT pa_prodr IS INITIAL
      ENDMETHOD.   "METHOD handle_toolbar
    Handle User Command
      METHOD handle_user_command.
        CASE e_ucomm.
          WHEN 'CHANGE_STATUS'.
            LOOP AT    it_output
                 INTO  wa_output.
              IF wa_output-chk_box EQ kc_x.
                z_flag = 1.
                EXIT.
              ENDIF.          "IF wa_output-chk_box EQ kc_x
            ENDLOOP.      "LOOP AT it_output INTO  wa_output
            IF z_flag EQ 1.
              PERFORM display_selected_data.
            ELSE.
              MESSAGE i001(zzrefn01)
                      WITH text-023.
            ENDIF.       "IF z_flag EQ 1
        ENDCASE.      "CASE e_ucomm
      ENDMETHOD.   "METHOD handle_user_command
    ENDCLASS.   "zcl_event_handler IMPLEMENTATION

  • Programs by SAP on ABAP WebDynpro

    HI All,
    I am new to WebDynpro, So want to look at some test programs given By SAP on WebDynpro, like we have SLIS package containing various standard ALV programs. Is there any similar  Package, where I can have programs on Webdynpro explaining it's various features???
    Regards
    Hemant

    Check out this package :
    SWDP_DEMO
    Also check this one : SWDP_DEMO_TUTORIALS
    You may also refer Standard Webdynpro Components :
    WDR_TEST_UI_ELEMENTS
    WDR_TEST_EVENTS
    Edited by: Saurav Mago on Dec 7, 2009 1:50 PM

  • FM to read multiline WF container from abap webdynpro

    Hi Gurus,
    We are stuck in reading workflow multiline container in our ABAP webdynpro code. Hope some one can assist us.
    Let me brief you the issue.
    We need to read the workflow multiline container using our webdynpro program. we are using the FM SAP_WAPI_READ_CONTAINER to read the container elements of the workflow by passing workitem id as an input. But this FM is failing to pick the multiline container. Can any one of you advise the alternate way to proceed with this ?
    Merry Christmas to all.
    Cheers,
    BG Suseendran

    Hello Suseendran !
                   Thanks for your Christmas wishes.
                   You can use the following function modules :
                    SWI_READ_CONTAINER_OBJECT
                    SWW_WI_CONTAINER_READ
    Regards,
    S.Suresh

  • Models in Abap Webdynpro.

    Hi All,
    I am a Java guy having knowledge in Java webdynpro, it happend for me to get into ABAP webdynpro just had a small query here.
    How does models functionality work in ABAp Webdynpro.
    How do we access RFC, BAPI, web services, EJBs etc in ABAP web dynpro.
    Thanks in Advance,
    Sai Krishna.

    Hi Sai,
    Model is nothing but the business logic similar to the Java webdynpro . I guess you have seen those Hook methods like WD_doinit, WD DOmodifyView some standard default methods which we get according to the requirement we write our code as and where we want . One basic thing is u must be aware of the Context which is the heart of the webdynpro abap applications the interaction between the screen and the database is done by this .
    Let me take a small example of how are we going to use the RFC or Bapis.
    EG:
    We have a screen UI elemnets in which we have one input field and a table our aim is to fetch the data into the table depending upon the input field or say selection field . and here we will be using say RFC or it may be a BAPI.
    SO step1. Intially we desing the screen UI elements , create a Node for the input field with cardinality (0:1). and create another node for the table binding with cardinality as (0:n).then bind the values of the screen .
    step2:  Now since after giving the value in the input filed we want to fetch the data. On action of the Button or on enter of the input filed we need to write our code.
    That means here our bapi or RFC comes into picture . what we need to do is get_attribute of the input field and call that RFC in import values pass the get_attribute value and see that it returns some table
    say lt_table.
    Now when you debug you can see the table values which we need to bind it to the table.
    lo_nd_table->bind_table( lt_table ).
    This will fetch the table values depending upon the input field values you giv .
    Hope it is clear and helpful.
    Have A GoodDay:)
    Regards,
    Sana.

  • ABAP webdynpro concepts

    If i want to work with ABAP webdynpro,
    what are all main areas or concepts to be covered in ABAP webdynpro?

    Hi,
    Go through the below links,
    Notes:   https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Wiki : https://wiki.sdn.sap.com/wiki/display/WDABAP
    https://wiki.sdn.sap.com/wiki/display/WDABAP/NewtoWebDynproABAP
    and also links,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/263c6874-0701-0010-3996-8266a631fead?prtmode=navigate
    /people/marilyn.pratt/blog/2005/12/20/web-dynpro-for-abap
    Regards,
    Azaz Ali.

  • Need some suggestions on ABAP webdynpro ..

    Hi
    I am actually a java guy. But now i m moving to Object Oriented ABAP. I have to work in ABAP Webdynpro. Could anyone please tell me
    How much time it will take to learn OOAbap ?
    Could u please suggest me which book is best for learning OOABAP ?
    Any online books are available?
    Thanks & Regards
    Ravi Shankar B

    For ABAP OO:
    http://www.sapgenie.com/abap/OO/index.htm
    For Materials:
    1) http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf -- Page no: 1291
    2) http://esnips.com/doc/5c65b0dd-eddf-4512-8e32-ecd26735f0f2/prefinalppt.ppt
    3) http://esnips.com/doc/2c76dc57-e74a-4539-a20e-29383317e804/OO-abap.pdf
    4) http://esnips.com/doc/0ef39d4b-586a-4637-abbb-e4f69d2d9307/SAP-CONTROLS-WORKSHOP.pdf
    5) http://esnips.com/doc/92be4457-1b6e-4061-92e5-8e4b3a6e3239/Object-Oriented-ABAP.ppt
    6) http://esnips.com/doc/448e8302-68b1-4046-9fef-8fa8808caee0/abap-objects-by-helen.pdf
    7) http://esnips.com/doc/39fdc647-1aed-4b40-a476-4d3042b6ec28/class_builder.ppt
    8) http://www.amazon.com/gp/explorer/0201750805/2/ref=pd_lpo_ase/102-9378020-8749710?ie=UTF8
    1) http://www.erpgenie.com/sap/abap/OO/index.htm
    2) http://help.sap.com/saphelp_nw04/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm
    <b>For ABAP Webdynpro:</b>
    Look at the below thread for documents & example..
    I want some Material for WebDynpro Applications?
    Re: i need material on ABAP Webdynpro..
    <b>*Reward each useful answer</b>
    Raja T

  • How do the Program exits in Workflow  work?

    hi all,
    there is a Program Exit available in Workflow tasks...and it says
    You can execute additional methods that you have programmed when predefined events occur. Add the ABAP classes that contain these methods. The ABAP classes added must support the IF_SWF_IFS_WORKITEM_EXIT interface.
    now i want to use this program exits in my workflow...so that this program exit(which is basically a class) will take input from Workflow container and gives back processed data <b>back to workflow</b>.
    so how to go about with these Program exits.
    thanks,
    subba

    hi
    good
    go throgh this links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/82d03e23-0a01-0010-b482-dccfe1c877c4
    http://help.sap.com/saphelp_nw04/helpdata/en/1a/6b023c3f6aaf08e10000000a11402f/content.htm
    thanks
    mrutyun^

  • What are the main parts in ABAP Programing to work in Real Time ?

    Hi
    I would like to know hat are the main/important parts in ABAP Programing to work in real time environment.
    Moderator message : Search for available information. Thread locked.
    Edited by: Vinod Kumar on Aug 1, 2011 9:50 AM

    Hi Ashok,
    There are so many programming parts such as Function modules, report programs, workflows, smartforms, webdynpro, adobe forms, scripts etc.
    In which context you want answer can you please tell ?
    Regards,
    Aabha

  • How to Trigger a Workflow from ABAP Webdynpro

    Hi All Gurus,
    I have the following urgent requirement, my client is implementing HR and there is a requirement, where is a ABAP Webdynpro component in which we have integrated a Adobe Interactive Form. When the user calls this from through Portal and fills out the relevant data and submits it, a Workflow in the backend ECC system should lauch,
    I am not familiar with, this concept although I have worked in Workflow this is the first time I am interfacind with ABAP Webdynpro and Adobe Interactive From.
    Can you please let me know in steps what needs to be done to make the workflow trigger for my scenario and also the specific settings to be done in the bacckend.
    Regards,
    Pratima Jain

    Hi,
    If you are using HCM Processes and Forms, the Workflow and form are not directly related, thats true.
    But the method in the task calls the corresponding webdynpro application which responds to the action triggered by the user in turn to trigger the workflow and update the data in the HR Master Data.
    There are 3 layers  1. UI (webdynpro which launches Adobe Interactive form based on ISR Framework)
    2. Workflow
    3. Backend framework (used for retrieving F4 helps, default values, save data in the infotypes).
    for more documentation, please refer it on help.sap.com.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/82/b6b94278560c31e10000000a1550b0/content.htm
    hope this helps.
    Best Regards,
    Saujanya.

  • Need to open an ABAP WebDynpro application from Portal UWL work item

    Hi All
    I need some suggessions on how to navigate to an ABAP WebDynpo application iview from a mail(Work Item) in portal UWL.
    Requirement in detail:
    Agreements will be created from portal( Agreement Creation Application is developed in ABAP webDynpro and iview has been created with in the portal for this WD application). as and when the agreement is created a mail (ECC Workitem) should trigger to the approver, who has access to portal and check the mail(Work Item) from the portal UWL.
    The mail body should consist the link to the Agreement created in portal ( Link to navigate to the Agreement Creation ivew).
    So, the main requirement is user should navigate to the Agreement creation iview when he open the mail from UWL.
    Mail can be sent from ECC by using ABAP Function modules or by creating a workflow
    Please advice me on how can we achieve this requirement.
    Thanks & regards
    Vijay Bedamsetty
    Edited by: VIJAY BEDAMSETTY on Apr 19, 2011 5:42 PM

    Hi,
    You can call the iView directly by using NavigationTarget..
    http://myServer:50000/irj/portal?
    NavigationTarget=ROLES://portal_content/myFolder/myRole/myIview
    Plz note that the iView you are calling should be part of a Role.
    And the PCD location of the iView in the Role must be given for Navigation Target.
    Check this URL
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
    Thanks
    Prashant

  • Current Agent Value in Program Exit Workflow

    Hi Gurus,
    we are using program exit to send mail to outlook on user decsion step and it is working fine for Sequential approval but when we have to send mail for parallel approval(have used block for parallel approval) we are not able to fetch current agent.
    - Have store agent in workflow container 'Agent' and used it in Block in workflow for implementing parallel appoaval.
    - Created class implementing inetrface IF_SWF_IFS_WORKITEM_EXIT and put it under program exit of user decsion in workflow
    - Now in this class I have created method at work item created to trigger email for which i require runtime work item id and agent for it.
    - We are getting workitem id at runtime and based on it picking up approval agent from workflow container and send mail to it.
    - this workfs fine for sequential one as there is only one approver at a time but in parallel where all approver are maintained in one multiline container, it is sending mail to first person maintained in multiline container.
    Please find steps below what i have tried:-
    - i tried with  FM RH_USERS_OF_WI_READ to get current agent for particular work item id  but it is throwing dump no value found at   runtime but stangely gives value if we run standalone for same work item id.
    - Then,  I tried putting wait upto to see if it helps, but then also above fm is unable to fetch agent.
    - Tried by putting select on   SWWUSERWI table but that also is not giving current agent
    Question is:
    Why we are not able to get value of current agent through above FM or select from userwi table? How do we get current agent value at the time of work item creation event is triggered which further hits our custom method.
    Please help...
    Regards
    Ajit C

    Hi Ajit,
    Here you go.
    You must be having a multiline container (probably of type WFSYST-AGENT) in your workflow which holds all the user ids to whom work item must be going parellely. e.g if the multiline container name is AGENT.
    The current agent from that multiline container is referred by &AGENT[_AGENT_line_]&. This you must hast have put in your user decision step/activity as an agent also.
    Now in your user decision step/activity, create one single line container element of type WFSYST-AGENT e.g. current_agent. in workflow to task binding, bind &AGENT[_AGENT_line_]& to CURRENT_AGENT. This way you will have current agent in that task container.
    Finally use function module SAP_WAPI_READ_CONTAINER using WORKITEM id to read the value of CURRENT_AGENT in your program exit.
    Regards,
    Ibrahim

  • Workflow to UWL to ABAP WebDynpro ( Binding not happening)

    Hi All,
    I have created Workflow which need to be executed from UWL.
    The workitem in UWL will call a ABAP Web Dynpro application for approval Process.
    I have registered the my Task in SWFVISU and Maintained the necessary settings (Even Re-registered the new task in UWL ).
    When I click the workitem in UWL it successfully calls the ABAP webDynpro application.
    But the Parameter WORKITEM id is not transfered from workflow to Web Dynpro Application.
    I have created a parameter WORKITEMID in the Workflow and populating it at runtime. But the same is not being passed to WebDynpro Import Parameter.
    I see that WORKITEMID is initial at runtime while debugging in WebDynpro Application.
    Can you please help me to bind the WORKITEMID from Workflow to WeBsynpro or from UWL to WebDynpro??
    Thanks
    Praveen

    Hi,
    You have bind the work item id to the task?
    You have added the work item id parameter in SWFVISU?
    Can you show us the UWL XML code for your task?
    Regards,
    Karri

  • Modifiy a standard ABAP Webdynpro program

    Hi
    I'm beginig with ABAP Webdynpro  (i already read tutorials and make some easy program for display Z table) , but i need to modify some SAP standard abap webdynpro program, wich contains a tabstrip with 2 tabs ; i need to add a third tab.
    I need investigate about how to do this and how debug it , when i execute the program send me to the web page with program executing but i really do not know how can i debug it.
    Does sombebody can help me about where can i read how to modify a standard abap webdynpro program ?   and how can i debug a webdynpro program ?
    Any help will be appreciated.
    Thanks a lot
    Frank
    Moderator message: wrong forum, please have a look in the "Web Dynpro ABAP" forum.
    Edited by: Thomas Zloch on Mar 24, 2011 9:14 AM

    Hi
    Does somebody knows where can i investigate about how to modify a standar abap webdynpro program ?
    I know about to enhancement a standar abap program (exits, Badis, screen exits, enhancements points, etc.) but i really do not know if a standar abap webdynpro program can be enhanced and how to do this.
    My requirement is modify a standard webdynpro program wich shows a tabstrip with 2 tabs, i need to add one more tab to program.
    Any help will be aprecciated.
    Thanks
    Frank

Maybe you are looking for

  • Is it possible to mix animation methods?

    I had originally begun my project using the javax.swing.Timer animation loop documented at http://java.sun.com/docs/books/tutorial/uiswing/painting/animLoop.html. My game has different difficulty levels--the higher the difficulty, the shorter the del

  • Page items are cleared when calling javascript function for a buton.

    Hello, Can anyone please help me out with this issue. I have a reports region with some editable items and in which I have a button enter errors which opens up an popup window, but for this button i also have save process which updates the report and

  • Another Lumia 520 user without an equalizer

    I have installed the latest updates and now get the equalizer that flashes for the blink of an eye then disappears. If memory serves, the owners manual said that the lumia 520 would give me equalizer settings when the headphone jack was in use. Just

  • File Adapter help required.

    Hi All, My scenario: I have source txt file that is seperated by semicolon. I need to do Receiver determination that for some value it shoud go to Receiver A and for other value it should go to Receiver B. File that is reaching Receiver A and Receive

  • How to Mount Another mac on Network at start up

    Hello kind people I have a MacPro and Powerbook G4 on my gigbit ethernet network at home. I can use the finder on MacPro to locate my Powerbook and connect as a registered uder no problem. However I would like the MacPro to mount the Powerbook automa