Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Workflow task not updating DB table when executed in background mode

Former Member
0 Likes
676

created a workflow for material change reversal. created a rfc which reverts the changes when user rejects. used bapi bapi_material_savedata. workflow works perfectly when the task is kept as foreground and updates the db table based on the user decision from the gateway.  but when executed in background WF is completed and even sent the mail but the DB table is not getting updated. Also written my own code in the rfc to update the table but its not working in background mode but its working perfectly in foreground. It will be a great help if someone suggest some solution to this issue. Its bit urgent.

thanks in advance.

ravi shankar.ch

created a workflow for material change reversal. created a rfc which reverts the changes when user rejects. used bapi bapi_material_savedata. workflow works perfectly when the task is kept as foreground and updates the db table based on the user decision from the gateway.  but when executed in background WF is completed and even sent the mail but the DB table is not getting updated. Also written my own code in the rfc to update the table but its not working in background mode but its working perfectly in foreground. It will be a great help if someone suggest some solution to this issue. Its bit urgent.

thanks in advance.

ravi shankar.ch

1 REPLY 1
Read only

muneshpatwari
Active Participant
0 Likes
455

Hi Ravi,

Please see if the ID "WF-BATCH" has the required authorizations to update the tables.

Regards,

Munesh.