Container Operation-Programming

Maorriyan maorriyan_santoso at yahoo.com
Tue Oct 19 12:09:01 EDT 2004


Hi Jocelyn,
I'm trying to get the material type that executed by
the user.
Looking forward for your detail answer.
 
regards,
 
Maorriyan
 --- "Dart, Jocelyn" <jocelyn.dart at sap.com> wrote:
>  swc_get_element container '_WI_OBJECT_ID.MATERIAL'
> materialtype1.  => is not valid!
>
> Are you trying to get the material type from
> transaction MM11 or from the
> workflow container?
> Regards,
> Jocelyn
>
> -----Original Message-----
>> From: SAP Workflow
> [mailto:Owner-SAP-WUG at MITVMA.MIT.EDU] On Behalf Of
> Maorriyan
> Sent: Tuesday,19 October 2004 12:47 AM
> To: SAP-WUG at MITVMA.MIT.EDU
> Subject: Container Operation-Programming
>
> Hi all,
> We're in 4.7.
> We have a workflow that running base on triggering
> events ECM.TO_BE_PROCESSED. This workflow contain a
> task that execute custom method
> "schedulematerialcreation" from object type
> BUS1001006
> (I made a subtype ZMMBUS01).
> When user executing this task, SAP transaction MM11
> will run and certain information must be filled by
> user.
> I've create a program:
>
> BEGIN_METHOD SCHEDULEMATERIALCREATION CHANGING
> CONTAINER.
>   SET PARAMETER ID 'MAT' FIELD OBJECT-KEY-MATERIAL.
>   CALL TRANSACTION 'MM11' AND SKIP FIRST SCREEN.
>
> data:
>  materialtype1 like RMMG1-MTART.
>
>  swc_get_element container '_WI_OBJECT_ID.MATERIAL'
> materialtype1.  => Not working
>
> END_METHOD.
>
> I was debugging this code and not working.
> Basically what I want to do is:
> 1. Get the material type that typed in by the user
> and
> copy it into my container.
> 2. After certain calculation I need to pass back the
> container value to SAP screen.
>
> What's the data declaration I have to make and
> what's
> the statement I have to use and how?
>
> Thanks
>
> =====
> Maorriyan
>
>
________________________________________________________________________
> Yahoo! Messenger - Communicate instantly..."Ping"
> your friends today! Download Messenger Now
> http://uk.messenger.yahoo.com/download/index.html
>
 
=====
Maorriyan
 
________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
 


More information about the SAP-WUG mailing list