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 in function module exit include program

Former Member
0 Likes
905

Hi Friend,

I want to modularise the code inside the include program defined in funtion module exit. but it is giving out errors.

Can any one help on this.

Regards

Gautham

6 REPLIES 6
Read only

Former Member
0 Likes
763

Please specify the exact error you are getting .

Read only

Former Member
0 Likes
763

It says incorrect nesting the FUNCTION should be ending with ENDFUNCTION.

Read only

0 Likes
763

You must have made some nesting error. Just paste your code here .

Read only

Former Member
0 Likes
763

Hi,

Use submit program....statement it wil work....

Thanks,

Shailaja Ainala.

Read only

Former Member
0 Likes
763

Hello Gautam,

Use the PERFORM (FORM ................. ENDFORM.) for modularizing the code inside the function module exit. You can not use the include inside the function module directly but once u create a PERFORM (FORM ................. ENDFORM.). Inside this FORM ................. ENDFORM .. u can create any number of include's.

I hope it will resolve your problem.

Thanks.

Anurag

Read only

Former Member
0 Likes
763

Hi,

Is your issue resolved?If not can you send as screen shot of how and where you are trying to modularize the code?

U get this error, if form-endform is defined with function-endfunction.

Sunroutines calls can be written within function-endfunction but there bosy ie. form-endform should be written after endfunction or in some separate include.

Hope this helps.

Deepika