<?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: How to write using &amp;quot;PERFROM USING&amp;quot; statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677966#M1449121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding wa_attr1 to wa_NonActiveUSers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Mar 2010 10:44:07 GMT</pubDate>
    <dc:creator>andreas_mann3</dc:creator>
    <dc:date>2010-03-01T10:44:07Z</dc:date>
    <item>
      <title>How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677965#M1449120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write the below code using "&lt;STRONG&gt;PERFORM&lt;/STRONG&gt;" Statment ,  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope by using Perfrom we can reduce the code, No need to write move statment each time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Kindly let me know how to write using PERFROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF wa_attr1-Status &amp;lt;&amp;gt; 'Active'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;move wa_attr1-empid to wa_NonActiveUSers-empid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-EmailId to wa_NonActiveUSers-EmailId.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-Fname to wa_NonActiveUSers-Fname.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-Lname to wa_NonActiveUSers-Lname.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-Status to wa_NonActiveUSers-Status.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-Manager to wa_NonActiveUSers-Manager.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MOVE wa_attr1-Country to wa_NonActiveUSers-Country.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND wa_NonActiveUSers to itab_NonActiveUSers.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab_EmpInfo INTO wa_attr1.&lt;/P&gt;&lt;P&gt; write: 'att-  ', wa_attr1-EmpId, 'HPBiz - ', wa_attr1-HPBusinessUnit.&lt;/P&gt;&lt;P&gt;     uline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sandy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mrSandy1981 on Mar 1, 2010 11:30 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 10:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677965#M1449120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T10:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677966#M1449121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;here you can use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding wa_attr1 to wa_NonActiveUSers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 10:44:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677966#M1449121</guid>
      <dc:creator>andreas_mann3</dc:creator>
      <dc:date>2010-03-01T10:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677967#M1449122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how about if you better use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;move-corresponding wa_attr1 to wa_NonActiveUSers.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is faster.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 10:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677967#M1449122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T10:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677968#M1449123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't  use move-corrosponding &lt;STRONG&gt;since the structure is not same and data type are not same&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;some people told me use PERFROM using...so pls tel me how to write using PERFORM statment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 10:51:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677968#M1449123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677969#M1449124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this. If you do not have wa_attr2 - 7  then ignore the PERFORMS for the structures you do not have. There is not much point in using PERFORM if you just wish to use it for wa_attr1 - but it will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PERFORM build_nonactiveusers USING wa_attr1.
PERFORM build_nonactiveusers USING wa_attr2.
PERFORM build_nonactiveusers USING wa_attr3.
PERFORM build_nonactiveusers USING wa_attr4.
PERFORM build_nonactiveusers USING wa_attr5.
PERFORM build_nonactiveusers USING wa_attr6.
PERFORM build_nonactiveusers USING wa_attr7.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  build_NonActiveUSers
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_WA_ATTR1  text
*----------------------------------------------------------------------*
FORM build_nonactiveusers USING    p_attr.

  MOVE p_attr-empid TO wa_nonactiveusers-empid.
  MOVE p_attr-emailid TO wa_nonactiveusers-emailid.
  MOVE p_attr-fname TO wa_nonactiveusers-fname.
  MOVE p_attr-lname TO wa_nonactiveusers-lname.
  MOVE p_attr-status TO wa_nonactiveusers-status.
  MOVE p_attr-manager TO wa_nonactiveusers-manager.
  MOVE p_attr-country TO wa_nonactiveusers-country.
  APPEND wa_nonactiveusers TO itab_nonactiveusers.

ENDFORM.                    " build_NonActiveUSers
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 11:26:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677969#M1449124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T11:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677970#M1449125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why do you say "I can't use move-corrosponding since the structure is not same and data type are not same".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING is well working with different structures and different data types. You need only to have some fields with the same names in both structures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check it with this small program:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: begin of struct1,
      c1(5),
      c2(10),
      c3 type i,
      end of struct1.

      DATA: begin of struct2,
      c2 type i,
      c3(6) type c,
      c4(10),
      end of struct2.

      struct1-c1 = 'TEST'.
      struct1-c2 = '33'.
      struct1-c3 = 5.

    MOVE-CORRESPONDING struct1 to struct2.

    WRITE: / struct2-c2, struct2-c3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Mar 2010 12:50:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677970#M1449125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-01T12:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677971#M1449126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jorge Alonso  and Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;EM&gt;Move-corrosponding works&lt;/EM&gt;, But &lt;U&gt;shall we need to use APPEND statement after using append,&lt;/U&gt;Can anyone let mem know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;sndy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 06:46:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677971#M1449126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-02T06:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to write using "PERFROM USING" statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677972#M1449127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you have to use APPEND after the MOVE-CORRESPONDING statement to make the data reflect in the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Mar 2010 06:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-write-using-quot-perfrom-using-quot-statement/m-p/6677972#M1449127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-02T06:55:32Z</dc:date>
    </item>
  </channel>
</rss>

