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

Include Programs in Function Group

Former Member
0 Likes
3,157

Hi,

I want to write subroutines inside a Function Module. I think i can use one of the Include programs got created while creating the Function Group. Can you please suggest me a solution for this?

Thanks and Regards,

Kannan.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,466

Hi Kannan,

1) Every function module is associated with function group.

2) Every function group will have two default includes namely L<FUNCTION_GROUP>TOP and L<FUNCTION_GROUP>UXX.

3) Apart from these you can have your own includes too.

4) Write a PERFORM statement in your function module code and double click on it and it will ask to assign for new INCLUDE L<FUNCTION_GROUP>F01 or to MAIN PROGRAM.

5) Just select that INCLUDE and write your FORM logic.

Thanks,

Vinay

2 REPLIES 2
Read only

Former Member
0 Likes
1,466

Double-click on the subroutine name in the PERFORM statement and you will be prompted to create the FORM. It will prompt you to choose the new include by default (named L<function group>F01). Press enter. The new include is automatically inserted into the function group main program.

Read only

Former Member
0 Likes
1,467

Hi Kannan,

1) Every function module is associated with function group.

2) Every function group will have two default includes namely L<FUNCTION_GROUP>TOP and L<FUNCTION_GROUP>UXX.

3) Apart from these you can have your own includes too.

4) Write a PERFORM statement in your function module code and double click on it and it will ask to assign for new INCLUDE L<FUNCTION_GROUP>F01 or to MAIN PROGRAM.

5) Just select that INCLUDE and write your FORM logic.

Thanks,

Vinay