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

Dart, Jocelyn jocelyn.dart at sap.com
Mon Jul 5 21:39:59 EDT 2004


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
_____________________________________________________________________________________________
 


More information about the SAP-WUG mailing list