Container element of type BAPIRETURN does not get set

Sample, Rick Rick.Sample at gbe.com
Wed Aug 1 12:09:49 EDT 2007


Dan,

swc_set_xxxxxx will set your Containers, not going to set your method
export parms!
Two different animals. 

zExportParm1 = value, to set your method export parms and 
swc_set_xxxxxx = value to set your task Containers.

With that said, if you are going to send back your Export parms from 
Method->Task (via the bindings) you do not need to set the containers 
from inside the method.

Clear as mud?

Rick Sample
SAP Business Workflow Developer
Graybar, Inc.



-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Dan Stoicof
Sent: Wednesday, August 01, 2007 10:47 AM
To: sap-wug at mit.edu
Subject: RE: Container element of type BAPIRETURN does not get set

What I said before is that I have the data at the time of execution of
swc_set_element.  Something happens after this (or this "set element"
does not load the container because there is no more code after this
statement).
Bindings are the same throughout.  The thing is, even when I test the
method (in SWO1), the export parameter does not get populated . . . 

Regards,

Dan

>>> "Sample, Rick" <Rick.Sample at gbe.com> 8/1/2007 11:39 AM >>>
ok, you have data at point of method completion.
now, is your binding from your method to you task set and same type?
i.e. go to the Task, basic data tab down in the Object Method and check
those binding there.

Rick Sample
SAP Business Workflow Developer
Graybar, Inc.

 

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Dan Stoicof
Sent: Wednesday, August 01, 2007 9:25 AM
To: sap-wug at mit.edu
Subject: RE: Container element of type BAPIRETURN does not get set

The method is synchronous.  XXXXXX (in swc_set_TABLE container XXXXX) is
of type BAPIRETURN which is not a table, so I cannot use swc_set_TABLE).

>>> "Sample, Rick" <Rick.Sample at gbe.com> 8/1/2007 10:04 AM >>>
If you have BAPIRETURN as table, swc_get_TABLE container XXXXX?
Should be synchronous, Multiline, result parm as table all the way from
Method to task. 
Task should have element same data type.

Also, can only send back a Result parm in synchronous.

Rick Sample
SAP Business Workflow Developer
Graybar, Inc.



-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Dan Stoicof
Sent: Wednesday, August 01, 2007 8:01 AM
To: sap-wug at mit.edu
Subject: Re: Container element of type BAPIRETURN does not get set

I tried, as suggested, a different name . . . same result: both
container and parameter are blank after execution.

Regards,

Dan

>>> Mike Pokraka <asap at workflowconnections.com> 8/1/2007 6:16 AM >>>
Just a shot in the dark, but try naming it something else. "Return" is
too close to having other meanings.

On Tue, July 31, 2007 11:28 pm, Dan Stoicof wrote:
> Hello,
>
> I have defined a container element, "Return", of type BAPIRETURN.  
> Also, I created an export parameter with the same name and type.
>
> In my code I set it like this:
>
>   SWC_SET_ELEMENT CONTAINER 'Return' ls_return
>
>  . . . where ls_return is of the same type, BAPIRETURN.
>
> When I debug the code, ls_return has data in it (so technically my 
> container element should get the same value), but after execution, the

> parameter and the container element are blank.
>
> Is there something about BAPIRETURN that the SWC_SET_ELEMENT does not 
> like?
>
> Thanks!
>
> Dan Stoicof
> HopkinsOne Project
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>


--
Mike Pokraka
Senior Consultant
Workflow Connections
Mobile: +44(0)7786 910855

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug 


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu 
http://mailman.mit.edu/mailman/listinfo/sap-wug 

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu 
http://mailman.mit.edu/mailman/listinfo/sap-wug 


_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu 
http://mailman.mit.edu/mailman/listinfo/sap-wug

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug





More information about the SAP-WUG mailing list