Container Operation

Dart, Jocelyn jocelyn.dart at sap.com
Tue May 1 08:18:17 EDT 2001


Hi Menand,
Yes you do...
 
If you let the business object builder generate the method shell you will
find it adds lines to the end of the method to help set the container such
as:
 
swc_set_element container 'MYELEMENT' myelement.
 
where MYELEMENT is the name of the container element you are trying to fill,
 
and myelement is a variable containing the value you want to fill it with.
 
You need to do this for any value you want to set into the container
including
the result value (element "_Result") and any method parameters that you want
 
to bind to your task and/or workflow.   If you are returning a multiline
variable
use the macro swc_set_table instead.
 
Suggest you look up the R/3 library documentation on these macros in the
Business
Workflow section, and/or talk to someone who's been on the BC610 Workflow
Programming
course.
 
Regards,
        Jocelyn Dart
Consultant (BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
 
 
-----Original Message-----
From: Odedra, Menand [mailto:MOdedra at krafteurope.com]
Sent: Monday, 30 April 2001 5:36 PM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: Container Operation
 
 
Hi All
 
Firstly thanks for all the Help with the Send Mail Task.. It took me a while
but I realised the the wizard wasn`t setting the reciever of the Task.
 
I`ve now got a second problem in that it looks like the workflow container
is not being updated by one of my tasks.
I`m using the following method to create a new form
 
BEGIN_METHOD CREATE CHANGING CONTAINER.
  CALL FUNCTION 'ZCREATE_PA22'
    IMPORTING
      PA22_NO = OBJECT-KEY-PA22_NO
    EXCEPTIONS
      FORM_NOT_CREATED = 01
      ABORTED = 02
      OTHERS = 03.
  CASE SY-SUBRC.
    WHEN 0.            " OK
    WHEN 01.    " to be implemented
    WHEN 02.    " to be implemented
    WHEN OTHERS.       " to be implemented
  ENDCASE.
END_METHOD.
 
Do I need to add any additional code to allow the values in the container to
be changed?
 
Thanks
Regards
 
Menand Odedra
Kraft Foods UK
Analyst Programmer (Supply Chain)
email: modedra at krafteurope.com
Tel: 01242 28 4748
 


More information about the SAP-WUG mailing list