2009 Dec 17 9:17 AM
Good Day Experts
I have a challenging ABAP Program ahead of me and would appreciate your help. Our client does not want to use Transaction SM30 to maintain customized (ZTABLES) that holds transaction / master data. So we need to design one dialog program that can change different tables.
Currently i have the table as a parameter on a selection screen and i found a function module that would give me the primary key of the table back in an internal table. However i have to now load this itab onto the screen and then do my selects from the data inserted by the user. Does anyone know of an easier (or more senior) way of doing this?
Kind Regards
Jennifer
Good Day Experts
I have a challenging ABAP Program ahead of me and would appreciate your help. Our client does not want to use Transaction SM30 to maintain customized (ZTABLES) that holds transaction / master data. So we need to design one dialog program that can change different tables.
Currently i have the table as a parameter on a selection screen and i found a function module that would give me the primary key of the table back in an internal table. However i have to now load this itab onto the screen and then do my selects from the data inserted by the user. Does anyone know of an easier (or more senior) way of doing this?
Kind Regards
Jennifer
2009 Dec 17 11:49 AM
Hi,
I could understand the first part but not the second..!!
Cud u please elaborate it so that v can atleast think of a way to solve this.
Thanks & Best Regards,
Ramya
2009 Dec 17 12:20 PM
Hi
Thank you for your response. Let me try and explain it better. I have to write a dialog with the user so that they can do table maintainace without using transaction SM30. They also want to use this as a selection report. SO basically i need a program that can have a table as an input parameter and then in my code i need to dynamically determine the fields of this table and display them back to the user for "selection" after this i need to display the entries for the selection in an ALV grid and then have the option to change them, after this in background i need to update the selected table with the changed data and log the event in a different table.
hope it makes more sense
Kind regards
2009 Dec 18 12:49 PM
Hi Griphen,
PFO_BUILD_DYNAMIC_SELOPTIONS " Using this you can develop dynamic Selection Screen
" using the Following table you can get the Fields within the Table
Here user will enter the Table name and you can get all the fields from the table using the Following table. DD03L
and then you can pass the Selected fields back to the user which he can select for the Select Options
" just check how it works in SE37 for the above FM
" Another Option you can copy the SE11 Program to a Z Progarm, but this it work around. Instead you can use the Above FM and Table
DD03lTake the help of this FM
This would serve your purpose
Cheerz
Ram
2009 Dec 23 7:14 AM
Thanks Ram
Your help is really appreciated
This helped me with the initial part of the program, and its working perfect , and i can get the ALV grid to display my dynamic selection, I now need to give the user the ability to change this data and then update the database with this information. Do you maby know of an FM or Bapi that does that?
Kind Regards
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |