<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: clarification on move in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494012#M229511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this statement, in each loop pass of ITAB, the contents in the record of the internal tables are passed to the structure LFA1. This structure LFA1 is probably used in the Text element ELELFA1. You can verify his by opening the form ZSAPSCRIPT in SE71.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Aug 2006 00:45:11 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2006-08-14T00:45:11Z</dc:date>
    <item>
      <title>clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494007#M229506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tables : lfa1 .&lt;/P&gt;&lt;P&gt;data itab like lfa1 occurs 2 with header line.&lt;/P&gt;&lt;P&gt;select * from lfa1 into table itab.&lt;/P&gt;&lt;P&gt;loop at itab. &lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;move itab to lfa1.&amp;lt;/b&amp;gt;  ...&lt;/P&gt;&lt;P&gt;  ...&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you explain how this move statement works? Are we moving the data into lfa1 database table? This is from working example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We all know the move staement works like this:&lt;/P&gt;&lt;P&gt;move &amp;lt;source&amp;gt; to &amp;lt;destination&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2006 20:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494007#M229506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-13T20:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494008#M229507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Move&amp;lt;/b&amp;gt; can also move entire internal table headers in a single shot. Than moving individual fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Move&amp;lt;/b&amp;gt; is advised to use than &amp;lt;b&amp;gt;Move-correspnding&amp;lt;/b&amp;gt; clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also refer to helplink..fyi&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Manohar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2006 20:29:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494008#M229507</guid>
      <dc:creator>Manohar2u</dc:creator>
      <dc:date>2006-08-13T20:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494009#M229508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this example, you are moving data from itab to a work area which has a structure like LFA1.  It is not modifying the database yet.  If you would have an INSERT, MODIFY, DELETE, or UPDATE statement afterwards, then it would be modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Aug 2006 22:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494009#M229508</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-13T22:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494010#M229509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;This is a print program (Driver program) in Sapscript.&lt;/P&gt;&lt;P&gt;Could you explain the role of 'move' in this program? Why are we moving the data to a structure? (I ran this program it is working)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZRIP_SCRIPT                             .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES LFA1 .&lt;/P&gt;&lt;P&gt;DATA ITAB LIKE LFA1 OCCURS 2 WITH HEADER LINE  .&lt;/P&gt;&lt;P&gt;SELECT * FROM LFA1 INTO TABLE ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'OPEN_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   APPLICATION                       = 'TX'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_INDEX                     =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  ARCHIVE_PARAMS                    =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;   DEVICE                            = 'PRINTER'&lt;/P&gt;&lt;P&gt;   DIALOG                            = 'X'&lt;/P&gt;&lt;P&gt;   FORM                              = 'ZSAPSCRIPT'&lt;/P&gt;&lt;P&gt;   LANGUAGE                          = SY-LANGU&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB .&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MOVE ITAB TO LFA1 .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WRITE_FORM'&lt;/P&gt;&lt;P&gt; EXPORTING&lt;/P&gt;&lt;P&gt;   ELEMENT                        = 'ELELFA1'&lt;/P&gt;&lt;P&gt;   FUNCTION                       = 'SET'&lt;/P&gt;&lt;P&gt;   TYPE                           = 'BODY'&lt;/P&gt;&lt;P&gt;   WINDOW                         = 'MAIN'&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CLOSE_FORM'&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 00:38:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494010#M229509</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T00:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494011#M229510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sreenath,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Its moving the work area of the itab to the workarea of LFA1 created by the TABLES statement.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Each pass of the loop will move the ITAB record into LFA1 work area for further use.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 00:40:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494011#M229510</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T00:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494012#M229511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;With this statement, in each loop pass of ITAB, the contents in the record of the internal tables are passed to the structure LFA1. This structure LFA1 is probably used in the Text element ELELFA1. You can verify his by opening the form ZSAPSCRIPT in SE71.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 00:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494012#M229511</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2006-08-14T00:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494013#M229512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, the structure LFA1 is being used in the sapscript itself. Probably something like....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AS  &amp;amp;LFA1-LIFNR&amp;amp; &amp;amp;LFA1-NAME1&amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables statement in the driver program provides a work area in which you are moving data to.  Once the data is in the structure LFA1, it then can be displayed on the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is practically the same as if you would define a structure in the print program yourself, something like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of xoutput,
      lifnr type lfa1-lifnr,
      name1 type lfa1-name1,
      end of xoutput.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then move the values from the itab to these fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

LOOP AT ITAB .

&amp;lt;b&amp;gt;xoutput-lifnr = itab-lifnr.
xoutput-name1 = itab-name1.&amp;lt;/b&amp;gt;
 


CALL FUNCTION 'WRITE_FORM'
EXPORTING
ELEMENT = 'ELELFA1'
FUNCTION = 'SET'
TYPE = 'BODY'
WINDOW = 'MAIN'
.
IF SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDLOOP.



&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in the sapscript.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AS  &amp;amp;XOUTOUT-LIFNR&amp;amp; &amp;amp;XOUTPUT-NAME1&amp;amp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this help clarify a little?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 01:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494013#M229512</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-14T01:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494014#M229513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Rich and every one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 01:40:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494014#M229513</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-14T01:40:22Z</dc:date>
    </item>
    <item>
      <title>Re: clarification on move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494015#M229514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are quite welcome.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Aug 2006 01:42:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clarification-on-move/m-p/1494015#M229514</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-14T01:42:21Z</dc:date>
    </item>
  </channel>
</rss>

