Skip to Content
0

SAP BUSINESS WORKFLOW: Variable in WorkItem-Text is empty

Apr 07 at 06:52 AM

37

avatar image

Dear all,

I have to add a variable text content in workitem-text of a standard task. I created an element (ABC) in container as import with the corresponding datatype. I did the necessary &ABC& reference entry in the workitem-text field. Then I mapped in the dataflow of the workflow pattern, where the task is used, the corresponding bo attribute to this container variable. Afterwards the pattern was stored and activated. Nevertheless the value is missing if a specific workflow with the related bo instance is instantiated. The database field does have a value, but it is not shown in the workitem-text. What do I miss? I need to admit that I am pretty new to sap workflow.

Any ideas are welcome.

Thanks and best regards

Wolfgang

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Mike Pokraka Apr 07 at 06:07 PM
1

Look at the technical log, go to the step in question and look at the container - does the element ABC have a value?

If not, it means at the time the work item was created, this BO attribute was empty. Please check the BO in the log.

Show 3 Share
10 |10000 characters needed characters left characters exceeded

Hi Mike,

thanks for getting back on this. I tested the BO. For the a given key value the instance is returned and the attribute value is filled with the value from the database, Shouldn't it show up in the workflow item text then as well?

0

That's why I wrote "at the time the work item was created": it means the value was not available then but is now. The most likely scenario is that an update was performed just prior to this step.

If so, and a simple COMMIT WORK is used, the DB update is probably still in progress when the next item is generated and the update is not visible to the next step. Replace this with a COMMIT WORK AND WAIT and all your values should be available.

1

Hi Mike,

thanks a lot for taking a look. For whatever reason the thing got to work after a couple of additional activations of the elements of the model like bo and workflow pattern. SO it works now.

Thanks for you support.

Wolfgang

0
Wolfgang Pfeifer
Apr 11 at 12:58 PM
0

Works now

Share
10 |10000 characters needed characters left characters exceeded