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

using

Former Member
0 Likes
384

what is the purpose of keywords using,chnging,tables rgarding subroutines and what are main differeneces between them

1 ACCEPTED SOLUTION
Read only

former_member189059
Active Contributor
0 Likes
362

- If the form definition has a parameter USING VALUE(p_var1) then any changes will NOT be passed back to the caller.

- Any other parameter definitions will result in changes being passed back to the caller.

- For readability, if the form is going to pass back a changed value for a parameter, then you should use a CHANGING parameter.

- The TABLES parameter is obsolete. You should use a using/changing parameter with a table type.

For more info, please refer below link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm

3 REPLIES 3
Read only

former_member189059
Active Contributor
0 Likes
363

- If the form definition has a parameter USING VALUE(p_var1) then any changes will NOT be passed back to the caller.

- Any other parameter definitions will result in changes being passed back to the caller.

- For readability, if the form is going to pass back a changed value for a parameter, then you should use a CHANGING parameter.

- The TABLES parameter is obsolete. You should use a using/changing parameter with a table type.

For more info, please refer below link:

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db984635c111d1829f0000e829fbfe/content.htm

Read only

Former Member
Read only

Former Member
0 Likes
362

hi,

using is used for passing parameters to sub routines.

changing is used for passing values and and returning the changes to the called area.

tables are used for passing tables from calling area to sub routines.

values is the keyword which can be used for using and changing.

generally if u dont specify any thing then call by reference mode is used by default.

if helpful reward some points.

with regards,

Suresh.A