Quantcast
Channel: SCN : Unanswered Discussions - SAP Business Process Management
Viewing all articles
Browse latest Browse all 3160

GET_INSTANCE from WF gets old data

$
0
0

Hi, I hope someone can help with this.

 

We're using Workflow for PLM Specification Approvals.  When the user opens a Workitem, it contains a hyperlink to the Specification.  They click that, make updates to the Spec, and Save the spec.  During Save, it does some processing, which includes CALL METHOD cl_ehcsm_spc_access=>get_instance (which returns io_spc_bo), and then io_spc_bo->retrieve_ident to get the Spec Identifiers.  At this point, it find the buffered data, which is the desirable behavior, since the changes haven't yet been saved.

 

After returning to the Workitem window, they click "Approve". 

During the approval processing, it runs the same CALL METHOD cl_ehcsm_spc_access=>get_instance.  but the Object number of the instantiated class is different than above (317 instead of 2198).

After this, it goes through the same retrieve_ident above.

 

The problem is that at this point I need it to read from the DB, but somehow the WF is still holding the prior value that existed when it was opened.  That value no longer exists in the DB tables (ESTRI), and I can't find it anywhere in the WF Container.

 

 

Can anyone suggest how to read the DB, without rewriting the program to use SELECTs instead?

Mostly I need an understanding of how the instantiation works, so that I can refresh the WF to get current data.

 

Closing/reopening the Workitem DOES cause it to retrieve fresh data.

 

Many thanks!!


Viewing all articles
Browse latest Browse all 3160

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>