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

Passing parameters to a subroutine

Former Member
0 Likes
1,009

Hi,

Can i pass a complete workarea to a subroutine with 'USING'. If not how to pass all the fields of a workarea to the subroutine without naming all the fields explicitly?

Thanks.

1 ACCEPTED SOLUTION
Read only

naveen_inuganti2
Active Contributor
0 Likes
788

Hi

you can pass work area with USING or CHANGING parameters...with the syntax like following..,

data: wa type mara.

perform sub_mara USING wa.

\\\\

form sub_mara USING wa type MARA.
\\\\\
endform.

Thanks,

Naveen.I

Hi you acn pass workarea as

FORM <name> using <wa> structure <type of wa>.

4 REPLIES 4
Read only

Former Member
0 Likes
788

yes u can pass all the fields or try to use just workarea

Edited by: Anil Kalive on Sep 18, 2008 1:50 PM

Read only

0 Likes
788

Hi you acn pass workarea as

FORM <name> using <wa> structure <type of wa>.

Read only

Former Member
0 Likes
788

Hi,

you can

check this link for detail syntax

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

Regards,

Anirban

Read only

naveen_inuganti2
Active Contributor
0 Likes
789

Hi

you can pass work area with USING or CHANGING parameters...with the syntax like following..,

data: wa type mara.

perform sub_mara USING wa.

\\\\

form sub_mara USING wa type MARA.
\\\\\
endform.

Thanks,

Naveen.I