Binding table parameter from method to multi-line container e lement in task

Hotmail swam_in at hotmail.com
Tue Jul 6 10:45:28 EDT 2004


Fred,
 
When you select 'Binding Definition' between task and method, you would see
those 2 options if you happen to bind an internal table. First option will
clear and refresh the internal table before the binding occurs every time.
The second option just adds the entry no matter what is in the internal
table. By default the option is 2. So select the binding definition again
and choose the first option instead.
 
Hope this helps.
 
Swami Bala
 
----- Original Message -----
From: "Kouw, FA - SPLXE" <fa.kouw at td.klm.com>
To: <SAP-WUG at MITVMA.MIT.EDU>
Sent: Tuesday, July 06, 2004 1:23 AM
Subject: Re: Binding table parameter from method to multi-line container e
lement in task
 
 
> Hi Jocelyn,
>
> I'm not familiar with these options (always used the default settings).
We're on 4.6C.
>
> How can I see that I used 'the default setting of append' and how can I
'change it in the binding definition'? I tried to
> find it, but no luck so far...
>
> To me it seems that the problem was located in the binding from the method
to the task and not in the binding from the
> task to the workflow (see previous message). Maybe I'm wrong!
>
> The only clue I have is what I already mentioned in my previous message,
is that the change you refer to:
>
> " What is also not clear to me is why the following expressions are shown
> when defining the binding between the method parameter to the task
> container element (one extra for the element 'NonClearableItems'):
>
> ================
> Expression
>
>     -  Container
>
>         +  NonClearableItems    Invoice Items
>             NonClearableItems      "  add instead of change
> ================ "
>
> Hope you or someone else can help me out!
>
> Regards,
>
> Fredl
>
> "Dart, Jocelyn" wrote:
>
> > Fred,
> > Sounds like you let the assignment type in the binding between workflow
and task go to the default setting of append.
> > You should be able to change it in the binding definition.
> > Jocelyn
> >
> > -----Original Message-----
> > From: SAP Workflow [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
Kouw, FA - SPLXE
> > Sent: Tuesday,6 July 2004 12:25 AM
> > To: SAP-WUG at MITVMA.MIT.EDU
> > Subject: Binding table parameter from method to multi-line container
element in task
> >
> > Hi,
> >
> > I have a problem binding a parameter from a method to a container
> > element in a task. The value in the task container is not overwritten by
> > the value that is set in the method parameter. When testing the method
> > on it's own the results are OK (value method parameter empty). Can
> > someone give me a clue what I'm doing wrong?
> >
> > A value is given to the method parameter (table) and exported to the
> > task container element (multi-line element defined as ABAP dictionary
> > reference table RSEG_BUZEI) like this:
> >
> > ================
> > BEGIN_METHOD Z_INITIALIZENONCLEARABLEITEMS CHANGING CONTAINER.
> >
> >   DATA: tab_nonclearable_items LIKE rseg_buzei OCCURS 0.
> >
> >   swc_get_table container 'NonClearableItems' tab_nonclearable_items.
> >   REFRESH tab_nonclearable_items.
> >   swc_set_table container 'NonClearableItems' tab_nonclearable_items.
> >
> > END_METHOD.
> > ================
> >
> > The problem I experience is shown in the workflow trace:
> >
> > ================
> > Import binding
> >
> > Content of target container
> >
> > Name                            Type Value
> >
> >  NONCLEARABLEITEMS(001)          C006 000001
> >  _WI_OBJECT_ID                   o090 D11CLNT210BUS2081   5105602051200
> >  _WORKITEM                       o090 D11CLNT210BATCHITEM 000000690207
> >
> > Content of source container
> >
> > Name                            Type Value
> >
> >  NONCLEARABLEITEMS(001)           000
> > <--------------------------------------- This looks strange!!!!!
> >  _WI_OBJECT_ID                   o090 D11CLNT210BUS2081   5105602051200
> >
> > Error messages       - none
> >
> > NONCLEARABLEITEMS                ===> &NONCLEARABLEITEMS&
> > ================
> >
> > What is also not clear to me is why the following expressions are shown
> > when defining the binding between the method parameter to the task
> > container element (one extra for the element 'NonClearableItems'):
> >
> > ================
> > Expression
> >
> >     -  Container
> >
> >         +  NonClearableItems    Invoice Items
> >             NonClearableItems      "  add instead of change
> > ================
> >
> > Hope someone can help me out (I also tried to set the container element
> > to an empty value using a container operation, but that also didn't work
> > (error: "Operation '=' between data type 'u' and 'u' not allowed", see
> > previous posting from Shefali Hennekam).
> >
> > Regards,
> >
> > Fred
> >
> > Please visit http://www.klm-em.com for information about KLM Engineering
& Maintenance products and services.
> >
> > **********************************************************************
> > This e-mail and any attachment may contain confidential and privileged
> > material intended for the addressee only. If you are not the addressee,
you
> > are notified that no part of the e-mail or any attachment may be
disclosed,
> > copied or distributed, and that any other action related to this e-mail
or
> > attachment is strictly prohibited, and may be unlawful. If you have
received
> > this e-mail by error, please notify the sender immediately by return
e-mail,
> > and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM),
its
> > subsidiaries and/or its employees shall not be liable for the incorrect
or
> > incomplete transmission of this e-mail or any attachments, nor
responsible
> > for any delay in receipt.
> > **********************************************************************
> >
> >
____________________________________________________________________________
_________________
> > This outbound message from KPN has been checked for all known viruses by
KPN IV-Scan, powered by MessageLabs.
> > For further information visit: http://www.veiliginternet.nl
> >
____________________________________________________________________________
_________________
> >
> >
____________________________________________________________________________
_____________
> > This inbound message from KPN has been checked for all known viruses by
KPN IV-Scan, powered by MessageLabs.
> > For further information visit: http://www.veiliginternet.nl
> >
____________________________________________________________________________
_________________
>
>
> Please visit http://www.klm-em.com for information about KLM Engineering &
Maintenance products and services.
>
> **********************************************************************
> This e-mail and any attachment may contain confidential and privileged
> material intended for the addressee only. If you are not the addressee,
you
> are notified that no part of the e-mail or any attachment may be
disclosed,
> copied or distributed, and that any other action related to this e-mail or
> attachment is strictly prohibited, and may be unlawful. If you have
received
> this e-mail by error, please notify the sender immediately by return
e-mail,
> and delete this message. Koninklijke Luchtvaart Maatschappij NV (KLM), its
> subsidiaries and/or its employees shall not be liable for the incorrect or
> incomplete transmission of this e-mail or any attachments, nor responsible
> for any delay in receipt.
> **********************************************************************
>
>
____________________________________________________________________________
_________________
> This outbound message from KPN has been checked for all known viruses by
KPN IV-Scan, powered by MessageLabs.
> For further information visit: http://www.veiliginternet.nl
>
____________________________________________________________________________
_________________
>
 


More information about the SAP-WUG mailing list