Program exit to change workitem text

Hi All,
I have a requirement to change work item text at runtime, i am using program exit to change the task contrainer variable which is being used to display work item text. i have written a code in program exit to update container element, but it's not reflected to change workitem text, when i check in ln workflow log the variable shows with updated value.
Please help to solve issue.
Many thanks,

Hi Gupta,
I used below code to update container element.
CASE im_event_name.
     WHEN swfco_event_after_creation.
        CLEAR l_value.
       CALL METHOD l_wi_cont->get
         EXPORTING
           name  = 'LV_WITEXT'
         IMPORTING
           value = l_value.
         REPLACE '$' INTO l_value WITH lv_id.
       CALL METHOD l_wi_cont->set
         EXPORTING
           name  = 'LV_WITEXT'
           value = l_value.
With above code LV_WITEXT is updated with new value, but same is not displayed as workitem text in inbox.
After workitem displayed in inbox if i use FM SWL_REFRESH_WORKITEM_TEXT explicitly to refresh, workitem text getting refreshed.
Many thanks.

Similar Messages

  • Process Controlled WF - Change Workitem Text

    Expert's,
    I noticed that is possible to change workitem text in process controlled workflow, but i need to inser a field that is not available in the workflow container. Is there any exit available in the workflow or is compulsory to change standard workflow to perform this modification ?
    Thanks in advance,
    Best regards,
    Mário.

    Hi,
    How about adding custom attributes in Business Object Repository? Transaction SWO1.
    http://help.sap.com/saphelp_nw70/helpdata/en/c5/e4aaf4453d11d189430000e829fbbd/content.htm
    Regards,
    Masa

  • Change workitem text using PFTC

    Hi all,
    We have to change some workitem texts adding Shopping cart number. We have changed some of them successfully but we have 2 of them where Shopping Cart Number is not available:
    Task 14007938 - Present Changes to Creator
    Task 10407972 - Change Rejected Shopping Cart
    It is strange because structure REQ is available but Shopping cart number field is not available.
    Do you know if there is any other way to do that? I am looking also for OSS notes...
    Thx in advance.
    Manel

    Hi Naz
    The Base object (_WI_Object_ID - Leading Object) in the this task is of type BUS2014.
    1) Create a subtype of BUS2014 and do the delegation between the two. (This will enable new attributes to be referenced directly using BUS2014.
    Use this link to know more on delegation:
    Business Object Delegation - Business Intelligence (BusinessObjects) - SCN Wiki
    2) Create a new virtual attribute in that subtype which calculates the value of the contract
    Following links can guide you to create Virtual Attributes
    http://scn.sap.com/docs/DOC-39432
    **************** - Working with Business Objects
    3) Now include the value in the standard task -> PFTC-> Task Type as TS -> Task as  20000172-> Display ->Select tab Basic Data-> then Menu Item Edit ->Work item text - Redefine
    Use the new attribute created for value to display the value. ( by delegation, you can now refer to this new attribute of Z subtype using _WI_Object_ID - Leading Object
    Regards,
    Modak

  • Change workitem text using PFTC in ECC for Task TS20000172 – release contract

    Hello,
    I would like step by step guidance on changing the worklist item description for Task ID TS20000172. Currently the contract goes for approval and the worklist item reads “Release  of Contract 4600000000”. How can I add the value of the contract in the worklist text? I looked in transaction PFTC, Container tab but could not find the variable ‘Value?’. Please advise?
    Thanks, Naz

    Hi Naz
    The Base object (_WI_Object_ID - Leading Object) in the this task is of type BUS2014.
    1) Create a subtype of BUS2014 and do the delegation between the two. (This will enable new attributes to be referenced directly using BUS2014.
    Use this link to know more on delegation:
    Business Object Delegation - Business Intelligence (BusinessObjects) - SCN Wiki
    2) Create a new virtual attribute in that subtype which calculates the value of the contract
    Following links can guide you to create Virtual Attributes
    http://scn.sap.com/docs/DOC-39432
    **************** - Working with Business Objects
    3) Now include the value in the standard task -> PFTC-> Task Type as TS -> Task as  20000172-> Display ->Select tab Basic Data-> then Menu Item Edit ->Work item text - Redefine
    Use the new attribute created for value to display the value. ( by delegation, you can now refer to this new attribute of Z subtype using _WI_Object_ID - Leading Object
    Regards,
    Modak

  • How to redefine workitem text

    Hi,
    I want to redefine the workitem text of a standard SAP task (Task 10008212, check shopping cart in SRM). Using the transaction pftc_dis I changed the work item text and I can see only the redefined customer text when I display this task again.
    But the issue the workitem text change is not reflecting in the workitems for shopping carts.
    Can someone please let me know if this is the correct way to add a customer definition for a work item text.
    Regards,
    Soorya

    Hi,
    I followed the following procedure:
    1) Translation of f the task work item text (translation with SE63, transport object with key R3TR PDTS, ex: R3TR PDTS 91000031)
    2) Imported to production the missing translation (transport order created using SLXT)
    3) For the existing workitems I changed manually, using LSMW, the text using transaction SWI1; Edit -> display workitem ; goto -> technical workitem display; Edit -> Change; execute "Change workitem text
    Kind regards
    Jorge

  • I just did the photoshop camera raw update and now everytime I try to do a text box or change the text the whole program crashes.

    I just did the photoshop camera raw update and now every time I try to do a text box or change the text the whole program crashes.

    All fixed!!!  My Aperture wasn't being recognized because it was in a folder.  OK, now I can use my camera with Aperture. 

  • Want to change the text of a coloumn dynamically in module pool program

    Hi to all experts,
    I need to change the text in a table control( of a column)of a module pool program dynamically ....depending on the company cod e.

    Hi,
    In program depends on the condition you can access the table_control-cols-name and modify it accordingly.
    Eg:
    CONTROLS TABLE_CONTROL TYPE TABLEVIEW USING SCREEN 100.
    you can access the control like:
    TABLE_CONTROL-COLS[1]-SCREEN-NAME
    and modify the same dynamicaly
    cheers
    shibu

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

  • 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

  • Changing the text symbols in the logon language

    Hi...
    I want a text symbol to have description in malay. I logged in to the R/3 system in malay language and went into the text symbols space of the respective program which is in SAPLHRHAP_C_IF_DOCUMENT in my case. I need to change the text symbol BEX (Exit) to BEX (keluar) in this malay log on.When I try to rename it, It says that "the text symbol is in original text and cannot be renamed"
    can you guys tell me how to do it?
    Regards,
    Aruna Nivetha.R

    if you want all your buttons everywhere to have white text, i'd subclass button and make the necessary change in that by calling setForeground();
    otherwise, call setForeground() on all your buttons...

  • Import workflow container element to program exits

    Hi Friends
    Can you please let me know if we can import container elements from workflow to program exits in step?
    Regards
    Rajeev

    Hi Rajeev,
    Yes you can import container elements from the workitem (not the workflow) to the program exit. You need an element which references the container (if_swf_ifs_parameter_container). You probably have an attribute in you class which is a reference to IF_WAPI_WORKITEM_CONTEXT called M_CTX. This has a method called get_wi_container which will give you the workitem container. Now you not only have the option to read elements with method get in your container class, but there is also a method set which will allow you to fill or change values in the container.
    Regards,
    Martin

  • Not able to make change of text in text symbol which are stored in txt pool

    Hi Experts,
    I have new problem today. I have been told to make changes of header text which is displayed after running one customized program.
    Program name : ZSDXXXXX1 which is attached in one Tcode: ZSDXX2.But when I goto SE38 and display the program to make changes, it shows the following different report name like AQCSSYSTQV000009ZSDXXXXX1 and the text symbols text-f58 which are somewhat different.
    Pls gide me to proceed further...
    In SE38:
    report AQCSSYSTQV000009ZSDXXXXX1
       line-size 253 no standard page heading line-count 000(003).
    include <symbol>.
    include <icon>.
    selection-screen: begin of block prog
                               with frame title text-f58.
    tables LIKP.
    data %count-LIKP(4) type x.
    data %linr-LIKP(2).
    tables aqldb.
    include rsaqexcd.
    data: begin of %st_liste occurs 100,
              head(1),
              tab(3),
              line(6) type n,
              cont(1) type n,
              fint(1),
              finv(1),
              fcol(1) type n,
              text(0253),
          end of %st_liste.
    etc.

    As per the report name "AQCSSYSTQV000009ZSDXXXXX1", it seems that there will be a SAP Infoset "ZSDXXXXX1"
    Go to transaction SQ02 with this infoset name "ZSDXXXXX1" then press change button.
    Then on right hand side there witll be field groups/data fields. Select the folder corresponding to Text-F58 and then press change button .
    If it does not work try transaction SQ01 & SQ03.
    <REMOVED BY MODERATOR>
    Edited by: Alvaro Tejada Galindo on Apr 11, 2008 4:29 PM

  • How to change a text in an icon prorgrammatically

    Hi,
    I've got some VIs that have a text in common in their icons but I would like to change that text because I'm going to use that VIs in another part of the project. So, how can I change that text programmatically in all VIs that are in the same directory?.
    I know it's possible because in the GOOP Developer program they do.
    Thanks,
    Javier de Pablos

    Hi noxus,
    You are right.  It's very important to post the solutionts in order to other people with the same problem can resolve it without to put in contact with me.
    Sorry, but I'm quite busy with I project I must to have finished in September and it was easier not to post the links.  Sorry, again.
    Here you've got the links to the topics of the forums.
    http://forums.lavag.org/index.php?s=6ab0491a70f27fcb48d6f5f3450a4ca6&showtopic=3533
    http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=E32C7C8D50B94F76E034080020E74861&p_...
    http://forums.openg.org/viewtopic.php?t=37&highlight=icon+editor
    If anybody has any problem say me
    Javier de Pablos

  • How to change the text in a browser title bar?

    I'm new at flash and I'm finding most things obvious, but
    this is one I just can't figure out!
    How the dickens do you change the text that shows in, say, an
    Internet Explorer window?
    Is it by filename? Mine, the index page, currently shows as
    the exciting and unprofessional "index"
    I've taken over the work from someone else who I'm not able
    to contact (I know, that NEVER happens /sarcasm) so I'd appreciate
    any help I can get.
    Thanks.
    Nick

    andsoitgoes,
    > When publishing the flash file, there is an option to
    export
    > the HTML document along with the flash file.
    Yes.
    > I see no way to edit the HTML itself. How can I edit the
    > HTML template that's published?
    Depending on where you specify that file's location (which
    you can also
    set for the SWF itself), you navigate to that folder, then
    edit the
    resultant HTML file in whatever text editor you please, from
    Notepad/TextMate to Dreamweaver.
    If you're asking how to edit the template Flash uses to
    generate this
    file, you can find that (at least, on Windows) at this
    location:
    C:\Program Files\Adobe\Adobe Flash CS4\en\First Run\HTML\
    Be warned, however, that these template files, though
    HTML-based, are
    heavily programmed with JavaScript and a number of custom
    tokens that get
    populated by Flash when it goes through the publish process.
    For example,
    in the Default.htmll file inside this folder, you'll see a
    <title> tag whose
    content reads "$TI" (without quotes). Think of that as a
    varible. That
    gets populated with the the name you've given the FLA file,
    simply because
    $TI arbitrarily refers to the file name in this scenario. You
    can change
    this if you like, but if you do, make sure to safe it as a
    new file (or at
    least back up the original templates that ship with Flash).
    > Does that make a bit more sense? :)
    Only if I've properly understood your question! If I still
    haven't,
    please try again. :)
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • How to change the text in Footer

    Hi SAP Gurus,
      Am not ABAP expert, currently I have one change request that we have one SAP form. in that Form we have Footer window to print the footer in the out put, currently my requiremtn is i need to delete some of the lines in the footer text and add some other lines, but in the change additor I found this statement INCLUDE ZXX_ZXXXXX_FOOTER OBJECT TEXT ID ST PARAGRAPH TC, where I can check that object and how to change it. please give guide me step by step.
    Thanks & Regards,
    Murali.

    Hi,
    Go to Tocde: So10
    Give  as follows:
    Text Name       :ZXX_ZXXXXX_FOOTER
    Text ID              ST
    Language             EN
    and enter change mode, change whatever modifications you want.
    after run Standard program: RSTXTRAN  for adding Standradt text to transport request
    Regards
    Jana

Maybe you are looking for

  • Domain is partially active

    Hi Experts, I am facing problem while activating a standard domain which we changed. It is showing error while activating the domain as one of the dependant table is inconsistent. I tried activating that table in all the ways, but the table is not ge

  • Videos playback differently on New Apple TV vs. Old Apple TV

    I bought the new model of the Apple TV this weekend. I have had the older model for some time and over the years I've converted some of my home DVDs to playback. Works great. When I go to play these same videos on the new Apple TV, they are no longer

  • Can't start iTunes!

    Please help!!! I can't start up my iTunes! Even when I start comes the following alert: THE INITIALISING OF iTunes IS MALFUNCTION. - MISTAKE #-2093 PLEASE MAKE SURE, THAT QUICKTIME IS INSTALLED CORRECTLY ON THIS COMPUTER! My answer is: Yes I think so

  • CIN - Accounting entry

    Dear, Can any one give me, what are the accounting entries will create while doing cin related documents. i.e when i do migo, miro, excise invoice and return delviery, utilization... i.e which a/c makes dr/cr,. pls provide in detail...

  • Overlapping Purchase and Refund needed

    Dear I purchased the Skype Premium 1 AUD12.99 today for calling Australia landline and I upgrade to Skype Premium 2 AUD26.49 for calling both landline and mobile in Australia. Did I just purchased two independent product? Is this two purchase overlap