<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: Passing Data from a screen to WF & back again</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2>Hi Menand and all,</FONT>
</P>
<P><FONT SIZE=2>There was (prior to release 4.0) a non-supported function </FONT>
<BR><FONT SIZE=2>module that allowed reading of dynpro field entries. </FONT>
<BR><FONT SIZE=2>Obviously, if it still exists there is a risk that it </FONT>
<BR><FONT SIZE=2>will not work after any upgrade.</FONT>
</P>
<P><FONT SIZE=2> DATA:</FONT>
<BR><FONT SIZE=2> INT_F4HLP LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,</FONT>
<BR><FONT SIZE=2> W_F4DYN LIKE SY-DYNNR.</FONT>
</P>
<P><FONT SIZE=2> INT_F4HLP-FIELDNAME = 'MARA-xxxx'.</FONT>
<BR><FONT SIZE=2> APPEND INT_F4HLP.</FONT>
</P>
<P><FONT SIZE=2> W_F4DYN = SY-DYNNR.</FONT>
</P>
<P><FONT SIZE=2> CALL FUNCTION 'DYNP_VALUES_READ'</FONT>
<BR><FONT SIZE=2> EXPORTING</FONT>
<BR><FONT SIZE=2> DYNAME = 'SAPMxxx'</FONT>
<BR><FONT SIZE=2> DYNUMB = W_F4DYN</FONT>
<BR><FONT SIZE=2> TABLES</FONT>
<BR><FONT SIZE=2> DYNPFIELDS = INT_F4HLP</FONT>
<BR><FONT SIZE=2> EXCEPTIONS</FONT>
<BR><FONT SIZE=2> OTHERS = 01.</FONT>
</P>
<P><FONT SIZE=2>INT_F4HLP-FIELDVALUE contains the fielvalue.</FONT>
</P>
<P><FONT SIZE=2>John, can you give any more details on GuiXT? I have the</FONT>
<BR><FONT SIZE=2>same requirement as Menand to insert entries in dialog</FONT>
<BR><FONT SIZE=2>across separate fields. Not all use SET/GET parameters and</FONT>
<BR><FONT SIZE=2>BDC won't help as fields in earlier screens are</FONT>
<BR><FONT SIZE=2>mandatory.</FONT>
</P>
<P><FONT SIZE=2>Regards</FONT>
</P>
<P><FONT SIZE=2>Philip Kisloff</FONT>
<BR><FONT SIZE=2>Deloitte Consulting</FONT>
<BR><FONT SIZE=2>Oberwil CH</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: John Wiese [<A HREF="mailto:jwiese@ESRI.com">mailto:jwiese@ESRI.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, March 29, 2001 6:33 PM</FONT>
<BR><FONT SIZE=2>To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=2>Subject: Re: Passing Data from a screen to WF & back again</FONT>
</P>
<BR>
<P><FONT SIZE=2>Just a thought . . . but there is an additional tool out there in SAP 4.6x</FONT>
<BR><FONT SIZE=2>called GuiXT, which could provide some solutions with "passing a value" to</FONT>
<BR><FONT SIZE=2>the transaction . . . of which you speak.</FONT>
</P>
<P><FONT SIZE=2>John Wiese</FONT>
</P>
<P><FONT SIZE=2>R/3 Project Manager</FONT>
<BR><FONT SIZE=2>ESRI, Inc.</FONT>
</P>
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Richard Schot [<A HREF="mailto:Richard.Schot@avelon-it.com">mailto:Richard.Schot@avelon-it.com</A>]</FONT>
<BR><FONT SIZE=2>Sent: Thursday, March 29, 2001 6:50 AM</FONT>
<BR><FONT SIZE=2>To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=2>Subject: Re: Passing Data from a screen to WF & back again</FONT>
</P>
<BR>
<P><FONT SIZE=2>Hi Menand</FONT>
</P>
<P><FONT SIZE=2>I hope I understand you right... you want to pass a value to the</FONT>
<BR><FONT SIZE=2>transaction.</FONT>
<BR><FONT SIZE=2>This will indeed be done by the code as you provided. Data will only be</FONT>
<BR><FONT SIZE=2>passed</FONT>
<BR><FONT SIZE=2>to the transaction if the object is instantiated in your workflow definition</FONT>
<BR><FONT SIZE=2>otherwise no value will be passed.</FONT>
<BR><FONT SIZE=2>After calling the transaction you can transfer the data from the transaction</FONT>
<BR><FONT SIZE=2>back to your container by the statement GET parameter ID.</FONT>
</P>
<P><FONT SIZE=2>I hope this will help you</FONT>
</P>
<P><FONT SIZE=2>Regards,</FONT>
<BR><FONT SIZE=2>Richard Schot</FONT>
</P>
<P><FONT SIZE=2>SAP Business Workflow Consultant</FONT>
</P>
<P><FONT SIZE=2>________________________________</FONT>
<BR><FONT SIZE=2>Avelon</FONT>
<BR><FONT SIZE=2>Visit us at www.avelon-it.com</FONT>
</P>
<P><FONT SIZE=2>>===== Original Message From SAP Workflow Users' Group</FONT>
<BR><FONT SIZE=2><SAP-WUG@MITVMA.MIT.EDU> =====</FONT>
<BR><FONT SIZE=2>>Hi Guys / Gals</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Has anyone got any ideas on how to pass data from an SAP Dialog screen to a</FONT>
<BR><FONT SIZE=2>>workflow and back again.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>The screen is being called via an Object.Method</FONT>
<BR><FONT SIZE=2>>Does the following line imply that the container is being updated</FONT>
<BR><FONT SIZE=2>>automatically or do I have to pass data to the container?</FONT>
<BR><FONT SIZE=2>>BEGIN_METHOD ZCREATE CHANGING CONTAINER.</FONT>
<BR><FONT SIZE=2>> SET PARAMETER ID 'MAT' FIELD OBJECT-KEY-MATNR.</FONT>
<BR><FONT SIZE=2>> CALL TRANSACTION 'ZAL10' AND SKIP FIRST SCREEN.</FONT>
<BR><FONT SIZE=2>>END_METHOD.</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Any help would be much appreciated.</FONT>
<BR><FONT SIZE=2>>Thanks</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Regards</FONT>
<BR><FONT SIZE=2>></FONT>
<BR><FONT SIZE=2>>Menand Odedra</FONT>
<BR><FONT SIZE=2>>Kraft Foods UK</FONT>
<BR><FONT SIZE=2>>Analyst Programmer (Supply Chain)</FONT>
<BR><FONT SIZE=2>>email: modedra@krafteurope.com</FONT>
<BR><FONT SIZE=2>>Tel: 01242 28 4748</FONT>
</P>
</BODY>
</HTML>