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

function module

Former Member
0 Likes
551

PERFORM select_frontend_file CHANGING p_file.

if u declare a function module like.. above , what is the meaning?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
528

Hi,

Rao, u are not calling or declaring a function module here.u are calling a subroutine here using PERFORM. u will soon see code in between .

Form select_frontend_file .

.........

.........

ENDFORM.

Rgds,

Prajith

5 REPLIES 5
Read only

Former Member
0 Likes
528

This is not function module.

Your calling subrountine <b>select_frontend_file</b> passing P_file

Read only

Former Member
0 Likes
528

You can write a function module inside this using the paramter p_file.

But this is not a function module.

Read only

varma_narayana
Active Contributor
0 Likes
528

hi

This is not FM.

It is calling Subroutine named <b>Select_frontend_file </b>

and passing the Parameter <b>p_file</b> thru Pass by Ref.

<b>reward if Helpful.</b>

Read only

Former Member
0 Likes
529

Hi,

Rao, u are not calling or declaring a function module here.u are calling a subroutine here using PERFORM. u will soon see code in between .

Form select_frontend_file .

.........

.........

ENDFORM.

Rgds,

Prajith

Read only

Former Member
0 Likes
528

Hello,

Just to add to the above comments

<b>Perform select_frontend_file CHANGING p_file.</b>

will have a

<b>form select_frontend_file CHANGING X_file type XXXX.

endform..</b>

the purpose of this perform is to do some operation on data in P_file

so in the form select_frontend_file we will be performing some validations or operations on the data passed through p_file to x_file and changing it's contents

in the form "select_frontend_file" the x_file should be recieved as the same type shown as XXXX of p_file

Reward if helpful

regards

Byju