Hi All,
I have a workflow that goes in to three loops. each loop goes through various approvals. These approvals are then stored in an approver log internal table. After I approve my 3rd and last approval, the approval log is updated so that it now has 3 approved entries. After the update, the workflow creates a pdf file(adobe form) with the updated approval log. The problem is the steps in the workflow after the creation of form. When I change one of those task to foreground(untick the background processing), and check my PDF file, it displays the correct approval logs. However, when I change it back background processing, Im getting the wrong approval logs(the logs are complete, approved and pending. It should be complete, approved and approved).
My question is what's the difference when running a process in background and when it is not.
I tried doing this several times and it is still wrong when ran in background and correct when not ran in background and completed manually in SWIA. I already tried checking the internal table of approval logs and it contains the right approval entries right before creating the adobe form. I also tried adding wait commands just in case the processing in background was too fast. None of those worked. Please Help. Thank you.