<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</STYLE>
<META content="MSHTML 6.00.2900.3020" name=GENERATOR></HEAD>
<BODY class=hmmessage>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">Nope! Just passing in simple data types. No objects.
And "attempting" to set to simple data types. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">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,
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">tried upper/lower case and matched what was being
passed in to name in the swc_get_element.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif"></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">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. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">Every swc_get after the new addition gives me a
sy-subrc 8. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif"></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">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.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif"></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">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.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">Just not in the Test option in SE37.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif"></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif">Very aggravating!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=221572615-19062008><FONT
face="Microsoft Sans Serif"></FONT></SPAN> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Mike
Gambier<BR><B>Sent:</B> Thursday, June 19, 2008 10:00 AM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> RE: Testing FM with swc_get_element not
getting my values in 4.6cvia se37<BR></FONT><BR></DIV>
<DIV></DIV>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...<BR> <BR>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.<BR> <BR>Mike GT<BR><BR>> Subject: Testing FM with
swc_get_element not getting my values in 4.6c via se37<BR>> Date: Thu, 19 Jun
2008 09:45:18 -0500<BR>> From: Rick.Sample@graybar.com<BR>> To:
Rick.Sample@graybar.com; sap-wug@mit.edu<BR>> <BR>> In 4.6c, I have a FM
and I am passing in 6 elements via the<BR>> ac_container.<BR>> Every great
once and a while, I can not get all my elements no matter<BR>> what data type
I assign.<BR>> <BR>> I add my values in the correct order via the "Test
Data Directory".<BR>> I do my gets in same order. (again, no matter what
order, data type,<BR>> etc.)<BR>> <BR>> Like so, <BR>>
swc_get_element ac_container 'ZPONUMBER' l_po_num_in.<BR>> swc_get_element
ac_container 'ZLASTAGENT' zlastagent.<BR>> swc_get_element ac_container
'ZINITIATOR' zinitiator.<BR>> swc_get_element ac_container 'ZROLERESERROR'
zrolereserror.<BR>> <BR>> The second two elements in the container
sy-subrc 8 on swc_get_element <BR>> even though I look at the container and
see them in the container. <BR>> <BR>> Anyone have ideas? And I mean
anyone with any far fetched ideas. <BR>> This is getting VERY
annoying!!!<BR>> <BR>> Rick Sample<BR>> SAP Business Workflow
Developer<BR>> Graybar, Inc.<BR>> 11885 Lackland Dr.<BR>> St. Louis,
MO. 63146<BR>> 314-573-5822<BR>> <BR>> <BR>> <BR>> <BR>>
<BR>> _______________________________________________<BR>> SAP-WUG mailing
list<BR>> SAP-WUG@mit.edu<BR>>
http://mailman.mit.edu/mailman/listinfo/sap-wug<BR><BR><BR>
<HR>
Miss your Messenger buddies when on-the-go? <A
href="http://clk.atdmt.com/UKM/go/msnnkmgl0010000001ukm/direct/01/"
target=_new>Get Messenger on your Mobile!</A> </BODY></HTML>