Attribute filled in SWO1 but not in workflow container

Weaver, Karen Karen.Weaver at Sonopress.com
Wed Apr 14 09:04:40 EDT 2004


First of all, you can't avoid any bindings.  If you have already determined
the value earlier in your workflow and you only want it for the duration of
the workflow, then you should create a workflow container element and pass
it by using bindings.  Otherwises, you will create additional overhead and
work that you don't need just to avoid some bindings.
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU]On Behalf Of
Robert.vande.Berg at nuon.com
Sent: Wednesday, April 14, 2004 4:02 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attribute filled in SWO1 but not in workflow container
 
 
SO you can't create an attribute which holds a value for runtime only so it
can be used in the workflow??
I don't save the attribute in the database.
 
Purpose: I want to use a method as a secondary method in a task, so I don't
have any bindings. I want to use an attribute to provide data in the
secondary method which I determine earlier in the workflow.
 
 
-----Oorspronkelijk bericht-----
Van: Dart, Jocelyn [mailto:jocelyn.dart at sap.com]
Verzonden: woensdag 14 april 2004 9:55
Aan: SAP-WUG at MITVMA.MIT.EDU
Onderwerp: Re: Attribute filled in SWO1 but not in workflow container
 
 
Hi Rob,
Um...what's your attribute code to read the Logid attribute?
 
Normally attributes are read from the database or calculated.
So you would normally have your method update the appropriate table.
Otherwise the data won't be persistent.
 
You could try using an object-private-
intermediate field to hold the data and see if that works in your given
scenario.
Should be ok if the object doesn't get refreshed or re-instanced in the
meantime.
 
However it would be safer to save the data somewhere.
 
Jocelyn
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Robert.vande.Berg at nuon.com
Sent: Wednesday,14 April 2004 5:17 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attribute filled in SWO1 but not in workflow container
 
 
It still doesn't work in the workflow...
The method is now:
 
begin_method set_logid changing container.
 
DATA:
      lognumber LIKE balhdr-lognumber,
      logid LIKE balhdr-lognumber.
swc_get_element container 'LogNumber' lognumber.
logid = lognumber.
swc_set_element container 'LogID' logid.
 
end_method.
 
-----Oorspronkelijk bericht-----
Van: Dart, Jocelyn [mailto:jocelyn.dart at sap.com]
Verzonden: woensdag 14 april 2004 8:58
Aan: SAP-WUG at MITVMA.MIT.EDU
Onderwerp: Re: Attribute filled in SWO1 but not in workflow container
 
 
Rob,
It sets it back into the object (not workflow) container - from which object
attributes are returned to the workflow.
Try it.
Jocelyn
 
-----Original Message-----
From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Robert.vande.Berg at nuon.com
Sent: Wednesday,14 April 2004 4:52 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Re: Attribute filled in SWO1 but not in workflow container
 
 
But that sets the element back into the container, not as an attribute, does
it??
 
-----Oorspronkelijk bericht-----
Van: 'Mark Pyc' [mailto:Mark.Pyc at bhint.com]
Verzonden: dinsdag 13 april 2004 18:07
Aan: SAP-WUG at MITVMA.MIT.EDU
Onderwerp: Re: Attribute filled in SWO1 but not in workflow container
 
 
Maybe the commented out set of the container element?
 
 
 
 
 
Robert.vande.Berg at nuon.com
Sent by: SAP Workflow <Owner-SAP-WUG at MITVMA.MIT.EDU>
13/04/2004 16:49
Please respond to SAP Workflow Users' Group
 
 
        To:     SAP-WUG at MITVMA.MIT.EDU
        cc:
        Subject:        Attribute filled in SWO1 but not in workflow
container
 
 
Hi all.
 
 
 
I created an attribute LOGID and a method SET_LOGID.
 
The attribute is virtual.
 
 
 
The method works fine when I test it in SWO1, the attribute is filled and
it
can be used in a secondary method for the workflow.
 
But when I test it in the workflow, the attribute is NOT filled. Bindings
are right, so what could be the problem??
 
 
 
The method:
 
BEGIN_METHOD SET_LOGID CHANGING CONTAINER.
 
 
 
DATA:
 
      LOGNUMBER LIKE BALHDR-LOGNUMBER.
 
  SWC_GET_ELEMENT CONTAINER 'LogNumber' LOGNUMBER.
 
  OBJECT-LOGID = LOGNUMBER.
 
*  swc_set_element container LOGNUMBER OBJECT-LOGID.
 
 
 
END_METHOD.
 
 
 
Does anybody know??
 
 
 
Regards,
 


More information about the SAP-WUG mailing list