Skip to Content
avatar image
Former Member

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,

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Sep 06, 2014 at 09:13 PM

    Hi

    Are you changing the value of the container element of the workflow or of the task workitem?

    Also, at which event of the program exit are we doing that?

    Regards,

    Modak

    Better approach is to use in-line functional methods in binding to get the right work item text and pass it to a container element of the task. Use that element in Work item text. This is a maintainable approach.

    http://wiki.scn.sap.com/wiki/display/ABAP/Using+functional+methods+in+workflows+and+tasks

    Expressions: Functional Methods - SAP Business Workflow: Reference Documentation - SAP Library

    Regards,

    Modak

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Shiva

      Did you try the functional methods?

      Also, try event SWRCO_EVENT_BEFORE_CREATION.

      Just a silly question, are you plugging the exit at the WF Header or the step which generates the WI? It should be the latter one.

      Regards,

      Modak