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

How to use selection-screen in function module?

Former Member
0 Likes
1,741

Hello

I've created a function module and i have to create within the function module a selection-screen(with select-options for entering data) but i get an error that within form routines and function modules this statement is not allowed.

Can anybody help?

thanx

3 REPLIES 3
Read only

Former Member
0 Likes
764

Hi,

YOu cannot create a selection screen withing a function module.

What you can do is to call a screen , say '0100'.

Create a screen '0100' and then include a selection -screen as a subscreen in that screen.

Regards,

Ravi

Read only

0 Likes
764

Hello

Yes but if i create another screen isn't it possible that the function module calls the screen "0100" from within the program where i called the function module an d not the screen "0100" of the function module?

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
764

You can put your selection screen in a report program and then use the SUBMIT statement in your function module to fire this report program.

Regards,

Rich Heilman