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

Kouw, FA - SPLXE fa.kouw at td.klm.com
Tue Jul 6 11:42:03 EDT 2004


Hi,
 
I think I figured out what caused my problem (or better, how to solve it):
 
The basis of my workflow is a standard SAP workflow for handling price blocks in invoices (WS20000397, Treatment of inv.
blkd for price, Log.IV). We made some changes to this workflow.
 
In the workflow a (standard SAP) multi-line container element is used: 'NonClearableItems'. It is defined as data type
reference table RSEG_BUZEI (thus no field is specified, which means a reference to a whole table or structure). When
using a container operation to assign an empty value to this container element the following error is displayed:
"Operation '=' between data type 'u' and 'u' not allowed".
 
I changed the data type definition: table RSEG_BUZEI and field BUZEI. Now it's possible to use the container operation to
set an empty value for the container element. Also I changed the parameter of the methods and the container of the
standard tasks involved (this works for me because the structure RSEG_BUZEI only consists of one column). All works fine
now. Still I do not know how I should have solved my problem in case the structure consisted of more than one column
(then specifying the field BUZEI would not be sufficient).
 
Regards,
 
Fred
 
"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