‎2007 Oct 16 8:33 AM
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.
‎2007 Oct 16 8:46 AM
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
‎2007 Oct 16 8:42 AM
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.
‎2007 Oct 17 8:22 AM
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.
‎2007 Oct 16 8:46 AM
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
‎2007 Oct 17 8:24 AM
Thank u Rajesh, The Function Modules were real Helpful.
Message was edited by:
GOLDIE CHANDRAMOULI
‎2007 Oct 16 8:51 AM
‎2007 Oct 16 8:53 AM
‎2007 Oct 16 9:08 AM
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
‎2007 Oct 17 8:16 AM
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.