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

Subroutine Pool

Former Member
0 Likes
773

The Standard Program & Standard Form For printing RFQ Details

are : SAPFM06P (Standard Program)

MEDRUCK (Standard Form)

The Program SAPFM06P is a Subroutine Pool.

this program is not executing.

Pls Tell me how to execute a Subroutine Pool as well as What

is a Subroutine Pool ?

5 REPLIES 5
Read only

Former Member
0 Likes
712

HI,

we cannot execute them directly.

subroutine-pool programs normally will have subroutines.

we will call them from different programs.

in this case these subroutines will be called from the sap-script MEDRUCK.

<b>reward if helpful</b>

rgds,

bharat.

Read only

0 Likes
712

HI,

how the subroutines will be called from the Form MEDRUCK.

rgrds

Sandeep

Read only

0 Likes
712

HI,

how the subroutines will be called from the Form MEDRUCK.

rgrds

Sandeep

Read only

0 Likes
712

we use subroutines in SAP SCRIPTS if we want to add new fields and modify fields for this in the text editor of the scripts call SUBROUTINE using the fallowing code.

PERFORM <PER NAME> IN <PROG.NAME> USING <FIL1>

CHANGING <FIL2>.

in SE38 the report type SUBROUTINEPOOL.

FORM <PERNAME> USING <FIL1> TYPE ITCSY

CHANGING <FIL2> TYPE ITCSY.

ITCSY is structure contains 2 fields NAME and VALUE.

<b> reward points to all helpful answers</b>

suredarreddy pulimamidi

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
712

Hi,

Subrotuine pool is a collection of Subroutines.

These routine's can be called from other programs as follows.

PERFORM sub_name(prog_name) using ... changing ...

If you want to call from Method of a class then

PERFORM sub_name in prog_name.

Regards,

Sesh