Skip to Content

Update Z table on user decision

Hi,

In my workflow i have a user decision and based on Approve or Reject i have to update a Z table. I found below blogs useful for this:

https://archive.sap.com/discussions/thread/3844674

https://archive.sap.com/discussions/thread/1315537

Could anybody please explain this to me:

i) I have to update Z table in Update task fm wrapped inside an activity step (method).

ii) i dont have to use explicit commit.

iii) In case i have multiple user decision and for each item i have to update Z table, i should have separate function module for each update and fm has to be called in update task.

please let me know.

Thank you

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Apr 20 at 09:01 AM

    Hi sudhanshu

    The easiest way to create a Class and method to update the Z table.

    in Workflow create an Activity and in the Task choose your Zclass and its method. Bind import and export parameter between Method and Task and then Task and workflow.

    You don't need to create multiple method or task . You can use the same and bind the value according.

    if you have multiple user decision and want to update many times , you can also opt for the "Method " tab in the activity directly.

    Regards

    Himanshu

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 24 at 08:03 AM

    Hi,

    Long time ago,I have written a wiki which can be used as one of the possible solutions to your issues.

    https://wiki.scn.sap.com/wiki/display/ABAP/Program+Exits+In+Workflow

    Thanks

    Pavan Bhamidipati

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 20 at 12:49 PM

    Hi,

    You can update it from Program Exit of the steps. You can search SCN for how to use Program Exit .

    Thanks

    Add comment
    10|10000 characters needed characters exceeded

    • Thanks Anjan! My problem was not where to update but how to commit (whether sync. or asyn. or in update task). I'm using program exit for some other purpose but for this a simple activity method is working fine to me for now.