<!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 &amp; 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>&nbsp; DATA:</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; INT_F4HLP LIKE DYNPREAD OCCURS 0 WITH HEADER LINE,</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp; W_F4DYN LIKE SY-DYNNR.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp; INT_F4HLP-FIELDNAME = 'MARA-xxxx'.</FONT>
<BR><FONT SIZE=2>&nbsp; APPEND INT_F4HLP.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp; W_F4DYN = SY-DYNNR.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp; CALL FUNCTION 'DYNP_VALUES_READ'</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXPORTING</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DYNAME&nbsp;&nbsp;&nbsp;&nbsp; = 'SAPMxxx'</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DYNUMB&nbsp;&nbsp;&nbsp;&nbsp; = W_F4DYN</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; TABLES</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; DYNPFIELDS = INT_F4HLP</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; EXCEPTIONS</FONT>
<BR><FONT SIZE=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; OTHERS&nbsp;&nbsp;&nbsp;&nbsp; = 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 &amp; 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 &quot;passing a value&quot; 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 &amp; 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>&gt;===== Original Message From SAP Workflow Users' Group</FONT>
<BR><FONT SIZE=2>&lt;SAP-WUG@MITVMA.MIT.EDU&gt; =====</FONT>
<BR><FONT SIZE=2>&gt;Hi Guys / Gals</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Has anyone got any ideas on how to pass data from an SAP Dialog screen to a</FONT>
<BR><FONT SIZE=2>&gt;workflow and back again.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;The screen is being called via an Object.Method</FONT>
<BR><FONT SIZE=2>&gt;Does the following line imply that the container is being updated</FONT>
<BR><FONT SIZE=2>&gt;automatically or do I have to pass data to the container?</FONT>
<BR><FONT SIZE=2>&gt;BEGIN_METHOD ZCREATE CHANGING CONTAINER.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; SET PARAMETER ID 'MAT' FIELD OBJECT-KEY-MATNR.</FONT>
<BR><FONT SIZE=2>&gt;&nbsp; CALL TRANSACTION 'ZAL10' AND SKIP FIRST SCREEN.</FONT>
<BR><FONT SIZE=2>&gt;END_METHOD.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Any help would be much appreciated.</FONT>
<BR><FONT SIZE=2>&gt;Thanks</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Regards</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt;Menand Odedra</FONT>
<BR><FONT SIZE=2>&gt;Kraft Foods UK</FONT>
<BR><FONT SIZE=2>&gt;Analyst Programmer (Supply Chain)</FONT>
<BR><FONT SIZE=2>&gt;email: modedra@krafteurope.com</FONT>
<BR><FONT SIZE=2>&gt;Tel: 01242 28 4748</FONT>
</P>
 
</BODY>
</HTML>