<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi Kiran<BR>
&nbsp;<BR>
Thanks, but what I'm doing is the other way around I think.<BR>
&nbsp;<BR>
I have some SAP code that has already read a table in to &lt;fs&gt;,&nbsp;&lt;fs&gt; is an object ref (lh_int_tab-&gt;*&lt;fs&gt; , call function using &lt;fs&gt;.. etc)<BR>
&nbsp;<BR>
What I want to do is take the contents of &lt;fs&gt; and copy them in to a&nbsp;normal internal table (standard table), when I try&nbsp;I get a short dump&nbsp;stating that the conversion is incompatible.<BR>
&nbsp;<BR>
How do I read the contents of the data&nbsp;object reference table in &lt;fs&gt; in to an&nbsp;internal table?<BR>
&nbsp;<BR>
&nbsp;<BR>
Kind Regards<BR>
Sunni<BR>&nbsp;<BR>
<HR id=stopSpelling>
Subject: RE: abap question<BR>Date: Thu, 28 Jan 2010 10:00:44 +0800<BR>From: KiranKumar_Akula@aprilasia.com<BR>To: sap-wug@mit.edu<BR><BR>
<STYLE>
.ExternalClass .ecxshape
{;}
</STYLE>

<STYLE>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:blue;text-decoration:underline;text-underline:single;}
.ExternalClass p
{margin-right:0in;margin-left:0in;font-size:12.0pt;font-family:'Times New Roman';}
.ExternalClass span.ecxEmailStyle18
{font-family:Arial;color:navy;}
.ExternalClass span.ecxEmailStyle19
{font-family:Arial;color:navy;}
.ExternalClass span.ecxSpellE
{;}
.ExternalClass span.ecxGramE
{;}
@page Section1
{size:8.5in 11.0in;}
.ExternalClass div.ecxSection1
{page:Section1;}
</STYLE>

<DIV class=ecxSection1>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">This code snippet helps:</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DATA:&nbsp;BEGIN&nbsp;OF&nbsp;line,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxGramE>col1(</SPAN>1)&nbsp;TYPE&nbsp;c,<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<SPAN class=ecxGramE>col2(</SPAN>1)&nbsp;TYPE&nbsp;c&nbsp;VALUE&nbsp;'X',<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;END&nbsp;OF&nbsp;line.<BR><BR><SPAN class=ecxGramE>FIELD-SYMBOLS&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;&nbsp;LIKE&nbsp;line.</SPAN><BR><BR>ASSIGN&nbsp;line&nbsp;TO&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;.<BR><BR>MOVE&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;-col2&nbsp;TO&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;-col1.<BR>WRITE:&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;-col1,&nbsp;&lt;<SPAN class=ecxSpellE>fs</SPAN>&gt;-col2.</SPAN></FONT></P>
<DIV>
<P class=ecxMsoNormal><FONT color=navy size=1 face="Times New Roman"><SPAN style="COLOR: navy; FONT-SIZE: 6.5pt">&nbsp;</SPAN></FONT></P></DIV>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">By the way, using SE38 we can refer to the following list of demo reports:</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_ASSIGN_COMP Assigning a Structure Component by Component to a Field Symbol</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_ASSIGN_DECI Cast Decimal Places</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_ASSIGN_<SPAN class=ecxGramE>ERR<SPAN>&nbsp; </SPAN>Data</SPAN> Areas for Field Symbols</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_ASSIGN_TYPE Cast with Predefined Data Types</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_CASTING<SPAN>&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Casting Using Field Symbol Type</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_CASTING_TYP Casting Using Explicit Type</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_DYNAMI_AS_1 Dynamic ASSIGN</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_DYNAMI_AS_2 Dynamic ASSIGN</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_DYNAMI_AS_3 Assigning Field Symbols</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_STAT_AS_OF2 Static ASSIGN Using Offset</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_STAT_AS_OFF Static ASSIGN Using Offset</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_STAT_ASSIGN Static ASSIGN</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_STRUCTURE<SPAN>&nbsp;&nbsp; </SPAN>Forcing a Structure on a Field Symbol</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">DEMO_FIELD_SYMBOLS_TYPE<SPAN>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>Specifying the Full Type of a Field Symbol</SPAN></FONT></P>
<DIV>
<DIV style="TEXT-ALIGN: center" class=ecxMsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=ecxMsoNormal><B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> KiranKumar Akula <BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, January 28, 2010 9:51 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> 'SAP Workflow Users' Group'<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> RE: abap question</SPAN></FONT></P></DIV>
<P class=ecxMsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Here it is:</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;&nbsp;DATA&nbsp;name(20)&nbsp;TYPE&nbsp;c&nbsp;VALUE&nbsp;<B><SPAN style="FONT-WEIGHT: bold">'</SPAN></B>ITAB-FIELDNAME<B><SPAN style="FONT-WEIGHT: bold">'</SPAN></B>.<BR>&nbsp;&nbsp;FIELD-SYMBOLS&nbsp;&lt;fs&gt;&nbsp;TYPE&nbsp;ANY.<BR>&nbsp;&nbsp;ASSIGN&nbsp;(name)&nbsp;TO&nbsp;&lt;fs&gt;.<BR>&nbsp;&nbsp;IF&nbsp;sy-subrc&nbsp;EQ&nbsp;0.<BR>&nbsp;&nbsp;&nbsp;&nbsp;WRITE&nbsp;/&nbsp;&lt;fs&gt;.<BR>&nbsp;&nbsp;ENDIF.</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">&nbsp;</SPAN></FONT></P>
<DIV>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Regards</SPAN></FONT><FONT color=navy size=1><SPAN style="COLOR: navy; FONT-SIZE: 8pt"></SPAN></FONT></P></DIV>
<P class=ecxMsoNormal><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt">Kiran</SPAN></FONT><FONT color=navy size=2 face=Arial><SPAN style="FONT-FAMILY: Arial; COLOR: navy; FONT-SIZE: 10pt"></SPAN></FONT></P>
<DIV>
<DIV style="TEXT-ALIGN: center" class=ecxMsoNormal align=center><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=ecxMsoNormal><B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt; FONT-WEIGHT: bold">From:</SPAN></FONT></B><FONT size=2 face=Tahoma><SPAN style="FONT-FAMILY: Tahoma; FONT-SIZE: 10pt"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B><SPAN style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Shoaib Mirza<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Thursday, January 28, 2010 3:49 AM<BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> sap-wug@mit.edu<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> abap question</SPAN></FONT></P></DIV>
<P class=ecxMsoNormal><FONT size=3 face="Times New Roman"><SPAN style="FONT-SIZE: 12pt">&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT size=2 face=Verdana><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt">Hi<BR>&nbsp;<BR>I'm integrating a workflow analysis&nbsp;report i've written into another report.&nbsp; This other report selects data from a database and puts it in to a data reference object i.e.:<BR>&nbsp;</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=blue size=1 face="Arial monospaced for SAP"><SPAN style="FONT-FAMILY: 'Arial monospaced for SAP'; COLOR: blue; FONT-SIZE: 9pt">* assign data reference to table field symbol</SPAN></FONT></P>
<P class=ecxMsoNormal><FONT color=black size=1 face="Arial monospaced for SAP"><SPAN style="FONT-FAMILY: 'Arial monospaced for SAP'; COLOR: black; FONT-SIZE: 9pt"><SPAN>&nbsp; </SPAN>ASSIGN lh_paa_tab-&gt;* TO &lt;fs_paa_tab&gt;.</SPAN></FONT></P>
<P style="MARGIN-BOTTOM: 12pt" class=ecxMsoNormal><FONT size=2 face=Verdana><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt">&nbsp;<BR>-&gt; then a subroutine pulls back the data in to &lt;fs_paa_tab&gt;.<BR>&nbsp;<BR>&nbsp;<BR>Now my traditional abap report starts with an internal table whick matches &lt;fs_paa_tab&gt; structure.<BR>&nbsp;<BR>I want to transfer the contents of&nbsp; &lt;fs_paa_tab&gt; in to my internal table so I can start my processing, but if I try I get a short dump because of incompatibility.<BR>&nbsp;<BR>How do I transfer the data from this data reference to a standard internal table?<BR>&nbsp;<BR>Any suggestion would be greatly appreciated.<BR>&nbsp;<BR>Kind REgards<BR>Sunni<BR>&nbsp;</SPAN></FONT></P>
<DIV style="TEXT-ALIGN: center" class=ecxMsoNormal align=center><FONT size=2 face=Verdana><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt">
<HR align=center SIZE=2 width="100%">
</SPAN></FONT></DIV>
<P class=ecxMsoNormal><FONT size=2 face=Verdana><SPAN style="FONT-FAMILY: Verdana; FONT-SIZE: 10pt">Do you have a story that started on Hotmail? <A>Tell us now</A></SPAN></FONT></P></DIV>
<BR>The above message is for the intended recipient only and may contain confidential information and/or may be subject to legal privilege. If you are not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this message, or any attachment, is strictly prohibited. If it has reached you in error please inform us immediately by reply e-mail or telephone, reversing the charge if necessary. Please delete the message and the reply (if it contains the original message) thereafter. Thank you.                                               <br /><hr />Do you want a Hotmail account? <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now - Free</a></body>
</html>