‎2007 Jul 15 2:31 PM
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
‎2007 Jul 16 7:12 AM
Hi Sandeep,
You are looking like a beginner to ABAP. Better you refer ABAP Help.
This site is not to train people but to provide the solutions for critical issues.
‎2007 Jul 16 7:12 AM
Hi Sandeep,
You are looking like a beginner to ABAP. Better you refer ABAP Help.
This site is not to train people but to provide the solutions for critical issues.
‎2007 Jul 16 7:15 AM
hi,
Chk this simple example.
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.
*&---------------------------------------------------------------------
*
*& Form sum
*&---------------------------------------------------------------------
*
* text
*----------------------------------------------------------------------
form sum using p_c1 p_c2 changing value(p_res).
p_res = p_c1 + p_c2.
endform. " sumThis link will clear all your Doubts reagrding Perform Statement.
Have a look:
http://help.sap.com/saphelp_erp2005/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm
rgds
Reshma