Accessing an object attribute in programmed binding?
Edwin Mukusha
emukusha at nebraska.edu
Thu Sep 8 12:04:36 EDT 2005
Hey Margaret,
Try the following:
============================================================
data: $Myobject type swc_object,
l_attribute1 type .....,
l_attribute2 type .....,
l_attribute3 type ..... .
* Set the calling container to runtime to allow you to access BOR elements
swc_container_to_runtime calling_container.
swc_get_element calling_container 'MyObject' $MyObject.
swc_get_property $MyObject 'Attribute1' l_attribute1.
swc_get_property $MyObject 'Attribute2' l_attribute2.
concatenate l_attribute1 l_attribute2 into l_attribute3.
=======================================
happy coding,
On a different note: Sorry to all that received my emails in html format.
I have set my mail client to mail text only from now on. If anyone needs
me to resend any of my postings from yesterday just shout.
--------------------------------------------------------------------------
Edwin Mukusha
Business Technologies Lead
Administrative Systems Group
University of Nebraska
Phone: (402) 472-7756 Fax: (402) 472-7390
Email: emukusha at nebraska.edu
--------------------------------------------------------------------------
"Hilsbos, Margaret A" <Margaret.Hilsbos at dayzim.com>
Sent by: sap-wug-bounces at mit.edu
09/08/2005 10:37 AM
Please respond to "SAP Workflow Users' Group"
To: "SAP-WUG \(E-mail\)" <sap-wug at mit.edu>
cc:
Subject: Accessing an object attribute in programmed
binding?
Hello WUG'ers,
An easy one for many of you I am sure:
I am trying to write a programmed binding using attributes of an object in
the container. For example the workflow container has 'MyObject' with
Attribute1 and Attribute2. Suppose I want to bind to a task, the value
which is Attribute1 and Attribute2 concatenated. I think the only way to
do this is in a programmed binding.
I have been able to use programmed binding successfully when I access a
simple element in the container, but I then tried to use "swc_get_element
calling_container...." in various ways to access an object attribute and
always the value is blank. Can anyone give me a simple example syntax of
how I could use an attribute of an object in the programmed binding? (I
am not much of an ABAPer but I am good at following examples ;-)
The SAP version is 6.20.
Thanks,
Margaret Hilsbos
Day & Zimmermann
_______________________________________________
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