‎2009 Mar 16 7:40 AM
How and why to use tables in perform (subroutines) statement?
Do tell me the difference between using and changing statement in perform (subroutines).., ?.
thanks.
vasanth
‎2009 Mar 16 7:44 AM
‎2009 Mar 16 7:46 AM
Hi Vasanth,
Kindly go through this link below:
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db977635c111d1829f0000e829fbfe/frameset.htm
Hope it helps
Regrds
Mansi
‎2009 Mar 16 7:47 AM
Hi Vasanth,
Befor perform a=1, b=2.
*PERFORM <subroutine> [(<program>)] [TABLES <actual table list> 'int' ]
[USING <actual input list> 'a']
[CHANGING <actual output list> 'b' ]*
After Perform a=1, b=3.
If you want to use int tbale in form....endform. This way u can use tables in performs.
Using - it will be used in form....endform. Its value not chnages after returing back to program.
Changing - it will be used in form....endform. Its value chnages after returing back to program.
Reg,
Sachin
‎2009 Mar 16 7:47 AM
Hi,
Do search before posting such question.
A subroutine is an internal modularization unit within a program, to which you can pass data using an interface. You use subroutines to encapsulate parts of your program, either to make the program easier to understand, or because a particular section of coding is used at several points in the program.
Your program thus becomes more function-oriented.
USING - CALL BY VALUE
CHANGING - CALL BY REFERENCE
Hope this helps you.
Regards,
Tarun
‎2009 Mar 16 7:49 AM
Hi,
check this link
http://www.sap-basis-abap.com/abap/meaning-of-changing-var-in-subroutine-call.htm
it would helpful
Thanks and regards
Durga.K