Testing FM with swc_get_element not getting my values in 4.6cvia se37

Sample, Rick Rick.Sample at graybar.com
Thu Jun 19 11:36:40 EDT 2008


Nope! Just passing in simple data types. No objects. And "attempting" to
set to simple data types. 
Tried, swcont-value (since that is what they are in the container),
tried simple myvar(14) type c, tried the actual data type in Fm, 
tried upper/lower case and matched what was being passed in to name in
the swc_get_element.
 
99% of the time, I have no issues. This FM was working perfect until I
add a new container value initiator. Same type as my zlastagent. 
Every swc_get after the new addition gives me a sy-subrc 8. 
 
I created a brand new Test and added in all the elements one at a time.
I commented out ALL other code except the swc_get_element, and just does
not get the container values.
 
As I stated, I can see all my values in the ac_container. The are there
and same name with the values in the ac_container. swc_get_element just
simple will not get all my values in the test via se37. But, when I call
the FM via roles res in task, it gets all just fine. 
Just not in the Test option in SE37. 
 
Very aggravating!
 

________________________________

From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Mike Gambier
Sent: Thursday, June 19, 2008 10:00 AM
To: SAP Workflow Users' Group
Subject: RE: Testing FM with swc_get_element not getting my values in
4.6cvia se37


Just a thought Rick but if your element values are actually object
instance keys (which judging by their names they probably are) are you
sure there's not something dodgy going on with your delegated objects
and their internal buffering? Perhaps the sy-subrc 8 is crawling out of
their existence check methods...
 
Or, maybe the keys are case-sensitive whereas the Test Variant has
converted your entries to UPPER case without you realising it? That has
happened to me nefore when messing around with keys based on GUIDs.
 
Mike GT

> Subject: Testing FM with swc_get_element not getting my values in 4.6c
via se37
> Date: Thu, 19 Jun 2008 09:45:18 -0500
> From: Rick.Sample at graybar.com
> To: Rick.Sample at graybar.com; sap-wug at mit.edu
> 
> In 4.6c, I have a FM and I am passing in 6 elements via the
> ac_container.
> Every great once and a while, I can not get all my elements no matter
> what data type I assign.
> 
> I add my values in the correct order via the "Test Data Directory".
> I do my gets in same order. (again, no matter what order, data type,
> etc.)
> 
> Like so, 
> swc_get_element ac_container 'ZPONUMBER' l_po_num_in.
> swc_get_element ac_container 'ZLASTAGENT' zlastagent.
> swc_get_element ac_container 'ZINITIATOR' zinitiator.
> swc_get_element ac_container 'ZROLERESERROR' zrolereserror.
> 
> The second two elements in the container sy-subrc 8 on swc_get_element

> even though I look at the container and see them in the container. 
> 
> Anyone have ideas? And I mean anyone with any far fetched ideas. 
> This is getting VERY annoying!!!
> 
> Rick Sample
> SAP Business Workflow Developer
> Graybar, Inc.
> 11885 Lackland Dr.
> St. Louis, MO. 63146
> 314-573-5822
> 
> 
> 
> 
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug



________________________________

Miss your Messenger buddies when on-the-go? Get Messenger on your
Mobile! <http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/>  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20080619/435ce118/attachment.htm


More information about the SAP-WUG mailing list