<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 
 
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>Hi 
Mary, </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>There 
is a collection of useful list processing routines in function group&nbsp; SLST 
including </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002>LIST_TO_SPOOL which should get you close to what you 
want.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>If you 
are looking for useful function modules, you can often find these 
in:</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>* The 
reuse library - transaction SE83 (requires a 4.6 or above 
system)</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002>*&nbsp;The R/3 library </SPAN></FONT><FONT 
color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>documentation, 
e.g. under Basis &gt; ABAP Workbench &gt; Extended Applications Function 
Library</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>* Or 
you can&nbsp;put</SPAN></FONT><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002> a query into OSS or <A 
href="http://service.sap.com">http://service.sap.com</A>.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002></SPAN></FONT>As this is a WORKFLOW distribution list 
and not an ABAP distribution list we would </SPAN></FONT></DIV></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002>appreciate if you did&nbsp;not ask ABAP questions 
here.&nbsp; </SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN 
class=656454000-25012002>Regards,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=656454000-25012002>
<DIV style="HEIGHT: 90px; WIDTH: 374px"><FONT size=2>
<TABLE>
  <TBODY>
  <TR>
    <TD></TD></FONT>
    <TD>
      <DIV><FONT size=2><FONT color=#0000ff>Jocelyn Dart</FONT> <BR><FONT 
      color=#0000ff>Consultant (EBP, BBP, Ecommerce, Internet Transaction 
      Server, Workflow)</FONT> <BR><FONT color=#0000ff>SAP 
      Australia</FONT></FONT></DIV>
      <DIV><FONT color=#0000ff><FONT size=2>Email </FONT><A 
      href="mailto:jocelyn.dart@sap.com"><FONT 
      size=2>jocelyn.dart@sap.com</FONT></A><BR><FONT size=2>Tel: +61<SPAN 
      class=153385400-09052000> 412 390 267</SPAN><BR>Fax: +61&nbsp;2 9935 
      4880</FONT></FONT></DIV></TD></TR></TBODY></TABLE></DIV></SPAN></FONT></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
  <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Carroll, Mary L 
  [mailto:mary.carroll@gwl.com]<BR><B>Sent:</B> Friday, 25 January 2002 10:38 
  AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Re: Write from R/3 
  to Unix<BR><BR></DIV></FONT>
  <DIV><FONT color=#008000 face="Comic Sans MS">Thanks for your response, 
  Joe.</FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=#008000 face="Comic Sans MS">Actually, I didn't state my 
  question properly.&nbsp; I do know how to use the MESSAGES INTO extension but 
  I want everything defined by a WRITE statement to go to a flat file, not just 
  transaction messages.&nbsp; Th<SPAN 
  class=390262923-24012002>is</SPAN>&nbsp;would&nbsp;<SPAN 
  class=390262923-24012002>include&nbsp;r</SPAN><SPAN 
  class=390262923-24012002>eport </SPAN>header lines,&nbsp;<SPAN 
  class=390262923-24012002>end-of-job counts, </SPAN>error messages I have 
  defined&nbsp;<SPAN class=390262923-24012002>myself </SPAN>(writing a 
  message&nbsp;and stopping the program before&nbsp;going to the call 
  transaction<SPAN class=390262923-24012002> if, for example, the input file 
  does not net to zero</SPAN><SPAN class=390262923-24012002>).</SPAN> 
  </FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=#008000><FONT face="Comic Sans MS">Again, I&nbsp;<SPAN 
  class=390262923-24012002>know I </SPAN>can do it with the TRANSFER&nbsp;<SPAN 
  class=390262923-24012002>statement but was hoping for something similar to a 
  SPOOL or DESTINATION statement that would write 
  remotely.</SPAN></FONT></FONT></DIV>
  <DIV><FONT color=#008000><FONT face="Comic Sans MS"><SPAN 
  class=390262923-24012002></SPAN></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT color=#008000><FONT face="Comic Sans MS"><SPAN 
  class=390262923-24012002>Thanks for any more input you might 
  have,</SPAN></FONT></FONT></DIV>
  <DIV>&nbsp;</DIV>
  <DIV><FONT color=#800080 face="Monotype Corsiva" size=5>Mary</FONT></DIV>
  <BLOCKQUOTE style="MARGIN-RIGHT: 0px">
    <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
    size=2>-----Original Message-----<BR><B>From:</B> Graf, Josef 
    [mailto:josef.graf@sap.com]<BR><B>Sent:</B> Thursday, January 24, 2002 9:29 
    AM<BR><B>To:</B> SAP-WUG@mitvma.mit.edu<BR><B>Subject:</B> AW: Write from 
    R/3 to Unix<BR><BR></DIV></FONT>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN class=070202816-24012002>Hi 
    Carroll,</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=070202816-24012002>use the extension "MESSAGES INTO &lt;internal 
    table&gt;" of the "CALL TRANSACTION" statement.</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=070202816-24012002>Then&nbsp;all messages will be in the &lt;internal 
    table&gt; after the CALL TRANSACTION and can be</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=070202816-24012002>easily written to the UNIX file 
    system.</SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=070202816-24012002>Best regards </SPAN></FONT></DIV>
    <DIV><FONT color=#0000ff face=Arial size=2><SPAN 
    class=070202816-24012002>Joe</SPAN></FONT></DIV>
    <BLOCKQUOTE 
    style="BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">
      <DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma 
      size=2>-----Ursprüngliche Nachricht-----<BR><B>Von:</B> Carroll, Mary L 
      [mailto:mary.carroll@gwl.com]<BR><B>Gesendet:</B> Donnerstag, 24. Jänner 
      2002 16:52<BR><B>An:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Betreff:</B> Write 
      from R/3 to Unix<BR><BR></DIV></FONT>
      <DIV>
      <P>I'm an ABAP programmer, working on an R/3&nbsp;<SPAN 
      class=818044215-24012002>(4.6c) </SPAN>install. I'm writing a program 
      that&nbsp;call<SPAN class=818044215-24012002>s a</SPAN> transaction. When 
      you execute the program in the foreground, R/3 transaction error messages 
      are displayed as output.<SPAN class=818044215-24012002>&nbsp; </SPAN>I 
      want to write these messages to a flat file at the unix<SPAN 
      class=818044215-24012002> (AIX) </SPAN>level rather than (or in addition 
      to) having them display at the terminal<SPAN 
      class=818044215-24012002>.&nbsp;&nbsp;</SPAN>I realize I can write 
      TRANSFER statements in the ABAP code to accomplish this but what a 
      pain!<SPAN class=818044215-24012002>&nbsp; </SPAN>Can anyone 
      help?</P></DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>