Container operation: remove?

Dart, Jocelyn jocelyn.dart at sap.com
Wed Nov 9 17:56:06 EST 2005


Kjetil,
They did completely replace them in older releases, but life is more fun in the latest releases.  


Regards,
Jocelyn Dart
Senior Consultant
SAP Australia Pty Ltd.
Level 1/168 Walker St.
North Sydney 
NSW, 2060
Australia
T   +61 412 390 267
M   + 61 412 390 267
E   jocelyn.dart at sap.com
http://www.sap.com

The information contained in or attached to this electronic transmission is confidential and may be legally privileged. It is intended only for the person or entity to which it is addressed. If you are not the intended recipient, you are hereby notified that any distribution, copying, review, retransmission, dissemination or other use of this electronic transmission or the information contained in it is strictly prohibited. If you have received this electronic transmission in error, please immediately contact the sender to arrange for the return of the original documents. 
Electronic transmission cannot be guaranteed to be secure and accordingly, the sender does not accept liability for any such data corruption, interception, unauthorized amendment, viruses, delays or the consequences thereof.
Any views expressed in this electronic transmission are those of the individual sender, except where the message states otherwise and the sender is authorized to state them to be the views of SAP AG or any of its subsidiaries. SAP AG, its subsidiaries, and their directors, officers and employees make no representation nor accept any liability for the accuracy or completeness of the views or information contained herein. Please be aware that the furnishing of any pricing information/ business proposal herein is indicative only, is subject to change and shall not be construed as an offer or as constituting a binding agreement on the part of SAP AG or any of its subsidiaries to enter into any relationship, unless otherwise expressly stated. 


-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf Of Paul.Bakker at osr.treasury.qld.gov.au
Sent: Thursday, 10 November 2005 8:42 AM
To: SAP Workflow Users' Group
Subject: RE: Container operation: remove?


Kjetil,

   That's not quite correct - programmed bindings don't replace the whole
binding. They can be used to do all
or part of your bindings.

It took me a while to figure them out, but now I use programmed bindings
all the time. They're so flexible!

Some uses:
 - to transform a variable during binding (rather than a straight copy)
- instantiate and attach business objects to a workitem
- providing extra context information to the workitem

And I suspect a whole lot more...

lykke til
Paul



                                                                                                                                        
                      "Kjetil Kilhavn"                                                                                                  
                      <KJETILK at statoil.        To:       "SAP Workflow Users' Group" <sap-wug at mit.edu>                                  
                      com>                     cc:                                                                                      
                      Sent by:                 Subject:  RE: Container operation: remove?                                               
                      sap-wug-bounces at m                                                                                                 
                      it.edu                                                                                                            
                                                                                                                                        
                                                                                                                                        
                      10/11/2005 00:08                                                                                                  
                      Please respond to                                                                                                 
                      "SAP Workflow                                                                                                     
                      Users' Group"                                                                                                     
                                                                                                                                        
                                                                                                                                        




Thanks for the tip and the sample function Anna.

Actually I discovered which button to press this weekend, the button
between the two container columns, when me and another guy was trying to
get the solution completed before Monday morning. We ended up not using it
after all, but I may take a closer look some day. One reason we decided to
not use it was that it seemed it replaced the whole binding, not just one
"variable". The code in your sample function seems we were right about
that.

Our requirement when I found out where to click was simple - strip off the
leading US from actual agent to user name. We had to do this many places,
so instead we decided to just pass the agent in and strip off leading
characters in the method which updates the tables (our document event
logger).

For the "remove from multiline" problem I created a method taking operator
(+ or -), object ID, and list and we use that both for adding (appends) and
removing (first one found) - so we have a FIFO list. In our implementation
there should never be a duplicate ID, so that can be used to discover
errors.
--
Kjetil Kilhavn, Statoil ØFT KTJ ITS BKS SAP Basis


> -----Original Message-----
> From: sap-wug-bounces at mit.edu
> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Hill, Anna
> Sent: 9. november 2005 12:25
> To: SAP Workflow Users' Group
> Subject: RE: Container operation: remove?
>
> Hi Kietil
>
> FYI - If you want to experiment with programmed bindings,
> here's an example of a very simple function module you can
> use. Once you have created your programmed binding FM, you
> then enter it on to the binding on the step; in the binding
> editor, click on the black arrow assignment button and you
> then have the option to swtich to programmed binding. Enter
> the FM in there. Note that the FM holds a dataflow variable
> which defines the direction of the binding execution at run
> time. Note that E is for export from the workflow to the
> task, the workflow container is the calling container and the
> task container is the called container.
>
> Cheers
> Anna
> SAP UK
>
> function z00_bind_wf_to_display_step.
> *"------------------------------------------------------------
> ----------
> *"*"Local interface:
> *"       IMPORTING
> *"             VALUE(DATAFLOW) LIKE  SWABINDEF-DATAFLOW
> *"       TABLES
> *"              CALLED_CONTAINER STRUCTURE  SWCONT
> *"              CALLING_CONTAINER STRUCTURE  SWCONT
> *"------------------------------------------------------------
> ----------
>   data: mat_object type swc_object.
>   data: mat_view   like t132t-statm.
>
>   if dataflow eq 'E'.
>     " only consider export dataflow from wf to wi container
>     " read data from workflow (= calling) container
>     swc_get_element calling_container 'MaterialMaster'   mat_object.
>     swc_get_element calling_container 'MaterialView'     mat_view.
>
>     .... Do your coding in here
>
>     " write data to work item (= called) container
>     swc_set_element called_container   wi_leading_object mat_object.
>     swc_set_element called_container   'MaterialView'    mat_view.
>   endif.
> endfunction.
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu
> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Kjetil Kilhavn
> Sent: Wednesday, October 26, 2005 8:05 AM
> To: SAP Workflow Users' Group
> Subject: RE: Container operation: remove?
>
> There should only be one... - but that is a good question.
>
> I think, with the particular design we have here, we should
> actually remove only one (the first one) as the table is
> really a queue of who approval is (still) required from.
> Multiple approvers can be required, and then the approvals
> take place in parallell - i.e. it is not multiple _levels_.
> When responsibility changes I don't want to terminate and
> start new workflows for those who are still responsible, and
> the design we have come up with (which may be stupid or may
> be smart) uses a queue to determine when the document
> approval has been completed.
>
> I've attached the design to confuse you further :-) The
> "Evaluate document" workflow is started by "external" events
> when a document is created/changed significantly, while the
> ApprovedFor, Rejected, and Refused events are published by
> the approval report that documents are presented in.
>
>
> PS: I've seen programmed binding mentioned many times, but
> after trying to find it in our screens with absolutely no
> luck I have come to the conclusion that this is available
> only to those exploring the frontiers, i.e. anything newer
> than 4.6C :-)
> --
> Kjetil Kilhavn, Statoil ØFT KTJ ITS BKS SAP Basis - and I
> appreciate it if you delete Statoil's (and other) company
> disclaimers when you reply to this message, since that helps
> the readability.
>
>
> -----Original Message-----
> From: sap-wug-bounces at mit.edu
> [mailto:sap-wug-bounces at mit.edu] On Behalf Of Mike Pokraka
> Sent: 20. oktober 2005 16:57
> To: SAP Workflow Users' Group
> Subject: Re: Container operation: remove?
>
> Hi Kjetil,
>
> Would you want to remove the exact value or all matching
> values, treating it as a kind of key? If you have the value
> multiple times should it remove just one or all of them?
>
> Not really such a simple operation.
>
> I saw bits of the next version on the way (6.40s) which
> should do indexed multiline containers, which is nice. I
> think there were some more extensive container operation
> capabilities available to go with it. But it's not for us
> mortals to play with for a while.
>
> I've had to resort to custom methods and the odd programmed
> binding to work around stuff like that (6.20).
>
> Cheers
> Mike
>
> Kjetil Kilhavn wrote:
> > I am working on a solution (R/3 46C) where it would be VERY
> nice to be
> > able to have two types of container operations.
> > "Add this value to table" is possible with a standard container
> > operation.
> > "Remove this value from table" is not quite as easy. There is a "-"
> > operator, but I assume the workflow builder is not quite
> that object
> > oriented (yet)...
> >
> > As far as I know the only option I have with respect to
> removal is to
> > write a method on a business object.
> >
> > Is this any different in new versions?
> > Has anyone created a super-duper object type which can
> perform generic
> > operations like this?
> > --
> > Kjetil Kilhavn, Statoil KTJ IT BKS
>
>
> Mike Pokraka
> Senior Consultant
> Workflow Connections Ltd.
> Mobile: +44 (0)7786 910 855
>
>
> -------------------------------------------------------------------
> The information contained in this message may be CONFIDENTIAL and is
> intended for the addressee only. Any unauthorised use,
> dissemination of the
> information or copying of this message is prohibited. If you
> are not the
> addressee, please notify the sender immediately by return
> e-mail and delete
> this message.
> Thank you.
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you.

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug






_______________________________________________
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