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

INPUT FIELDS ON THE SELECTION -SCREEN

Former Member
0 Likes
1,416

Hi Experts,

I want to have a selection screen displayed dynamically,depending upon the database table mentioned i want the selection screen to be populated with the fields of the table for input ( like the same way se16 works )

can someone give me relavant help.

Pls im in urgent need of help .

Thanks,

Goldie.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,033

Check the documentation of the FM's

1.FREE_SELECTIONS_INIT Initialize dynamic selection: Declare permitted tables ...

2.FREE_SELECTIONS_DIALOG Dialog for entering dynamic selection conditions

8 REPLIES 8
Read only

Former Member
0 Likes
1,033

Hi Goldie,

In order to achieve the desired functionality,you will have to wrte a Module Pool program for that.

If for example,you go to T-code SE16 and enetr any table name there and press enter,the selection screen for that particular table gets displayed there.Now,go to System at the menu bar and then status.Double click on the Program name and note the program name.Similarly,do it for another table and note the program name again.

You will find that everytime,the system generates a new program name dependng on the table name enetered.

I will suggest you to debug the T-code SE16(although debugging a standard T-code is never easy) and you will get a lot of useful information there.

In case you have any further clarifications,do let me know.

Regards,

Puneet Jhari.

Read only

0 Likes
1,033

hi Puneet,

i did start off like dat but dat turned out to be a lil too complicated so i used a few function modules that worked like a dream.

Now im workin on improvising so i can have a few static fields too.any suggestions?

Thanks ,

Goldie.

Read only

Former Member
0 Likes
1,034

Check the documentation of the FM's

1.FREE_SELECTIONS_INIT Initialize dynamic selection: Declare permitted tables ...

2.FREE_SELECTIONS_DIALOG Dialog for entering dynamic selection conditions

Read only

0 Likes
1,033

Thank u Rajesh, The Function Modules were real Helpful.

Message was edited by:

GOLDIE CHANDRAMOULI

Read only

Former Member
0 Likes
1,033

SE16 user FM - RS_TABLE_LIST_CREATE. Try this

Read only

Former Member
0 Likes
1,033

Hi,

You can display tables as a check boxes and change your selection screen dynamically based on the selected check boxes using the following code in the event At Selection-screen Output.

loop at screen.

if screen-group1 = ' '

screen-input = '0'.

modify screen.

endif.

endloop

Regards,

Siva

Read only

Former Member
0 Likes
1,033

thank u everyone for your answers ,they were very helpful ,i have managed to solve the problem.though im able to have the fields appear dynamically.i want some common fields to remain static on the screen so im trying to figure out a way to do that .....any suggestions???

Thanks&Regards,

Goldie.