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

call subroutine in sap script

Former Member
0 Likes
1,326

how can i call subroutine in SAP Script?& where?

how can i call subroutine in SAP Script?& where?

5 REPLIES 5
Read only

Former Member
0 Likes
789

Hi,

SAP has documented this aspect very clearly in the following help.sap.com link:

[calling subroutine from script.|http://help.sap.com/saphelp_47x200/helpdata/en/d1/803279454211d189710000e8322d00/frameset.htm]

You call a subroutine from a window in a SAP script when you need some calculations to be performed and a value returned for display.

Cheers,

Aditya

Read only

Former Member
0 Likes
789

Hi!

You can call a subroutine in any of the SAPScript windows and pass data to and from the subroutine using structure ITCSY. For further details you can refer SAP Help.

Cheers!

Read only

Former Member
Read only

Former Member
0 Likes
789

Hi

/: perform <form_name> in program <program_name>

/: using <var1>

/: using <var2>

.

.

/: changing <return1>

/: changing <return2>

/:endperform

Read only

Former Member
0 Likes
789

Hi,

In script:

/: perform <form> in program <prog>

/: using &invar1&

/: using &invar2&

..........................

/: changing &outvar1&

.......................

/: endperform

In program(se38):

Report <prog>.

Form <form> tables in_tab structure itcsy

out_tab structure itcsy.

....................

endform.

Regards,

Bhaskar