<?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: codes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538026#M576414</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;Chk this simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : c1 TYPE i, c2 TYPE i, res TYPE i.
c1 = 1.
c2 = 2.
data: subroutinename(3) VALUE 'SUM'.

PERFORM (subroutinename) IN PROGRAM Y_JJTEST1USING c1 c2 CHANGING res.

*WRITE:/ res.

*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp; Form sum
*&amp;amp;---------------------------------------------------------------------
*
* text
*----------------------------------------------------------------------
form sum using p_c1 p_c2 changing value(p_res).
p_res = p_c1 + p_c2.
endform. " sum&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link will clear all your Doubts reagrding Perform Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2007 06:15:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-16T06:15:47Z</dc:date>
    <item>
      <title>codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538024#M576412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose i want to add two numbers by passing their value and store the result in a variable.Then can anybody send the program code for the above requirement independantly by MEANS OF  METHOD IN A LOCAL CLASS,ALSO BY MEANS OF SUBRUOUTINE,AS WELL AS BY MEANS OF FUNCTION MODULE AND THE SYNTAX FOR CALLING THAT PARTICULAR  FUNCTION MODULE IN OUR PROGRAM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jul 2007 13:31:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538024#M576412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-15T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538025#M576413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    You are looking like a beginner to ABAP. Better you refer ABAP Help.&lt;/P&gt;&lt;P&gt;This site is not to train people but to provide the solutions for critical issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 06:12:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538025#M576413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T06:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: codes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538026#M576414</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;Chk this simple example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : c1 TYPE i, c2 TYPE i, res TYPE i.
c1 = 1.
c2 = 2.
data: subroutinename(3) VALUE 'SUM'.

PERFORM (subroutinename) IN PROGRAM Y_JJTEST1USING c1 c2 CHANGING res.

*WRITE:/ res.

*&amp;amp;---------------------------------------------------------------------
*
*&amp;amp; Form sum
*&amp;amp;---------------------------------------------------------------------
*
* text
*----------------------------------------------------------------------
form sum using p_c1 p_c2 changing value(p_res).
p_res = p_c1 + p_c2.
endform. " sum&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This link will clear all your Doubts reagrding Perform Statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 06:15:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/codes/m-p/2538026#M576414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T06:15:47Z</dc:date>
    </item>
  </channel>
</rss>

