Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8902

Method export parameter, debug show container updated, SWIA doesn't

$
0
0

Hello all,

 

I am modifying an existing workflow, and an existing background method. I added a new exporting parameter (Z_BLART) to the method and changed the code to populate the new exporting parameter.

 

swc_set_element container 'Z_BLART' v_blart .

 

V_blart contains financial document document type.

 

I added an endless loop so I could debug this method code from transaction SM50.  When in the debugger I can see that the code is updating element Z_BLART with the correct value in the container

 

When I look at the workflow log from transaction SWIA neither the task container or the workflow container has element Z_BLART populated.

 

The workflow change is using the workflow container element Z_BLART in a new decision step that will take one of two paths depending on the value of the field. Since this element is never populated, the wrong path is always taken.

 

Z_BLART:

- method defined like BKPF-BLART, parameter - exporting

- task container definition defined like BKPF-BLART, importing & exporting

- workflow container definition defined like BKPF-BLART, importing & exporting

 

I have reset the buffer with transaction SWU_OBUF and logged off SAP and logged back on.

 

I can't see any reason why the task container parameter and the workflow container parameter are not getting updated correctly. I am no workflow expert. Having had no training, I have been tasked with taking over all of the existing workflows. The person who had workflow training, and worked at the arm of a workflow consultant for many months, and then worked on workflow for 10 years is long gone. At a very high level I know about workflow. But clearly at the detail level, where the rubber meets the record, my knowledge is sorely lacking.

 

Any help greatly appreciated. I have attached three screen prints that I'm hoping will be useful.

 

Thanks

Bruce


Viewing all articles
Browse latest Browse all 8902

Trending Articles



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