Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Perform tables.

0 Likes
536

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

5 REPLIES 5
Read only

Former Member
0 Likes
513

You are supposed to search first the forum for your question before posting : this will save your time waiting for answers also.

check this link :

Mathews

Read only

Former Member
0 Likes
513

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

Read only

Former Member
0 Likes
513

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

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
513

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

Read only

Former Member
0 Likes
513

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