07-01-2011 10:32 AM
Hi Guys,
I have a requirement to design a selection screen like SE16N for a table maintenance for a custom table. I searched for this in SDN and got some links related to SE16 and not for SE16N.
Please reply me if you have worked on a similar requirement.
Thanks,
Meenu.
07-01-2011 10:52 AM
You can use SE16N for custom tables as well, plus there is the standard table maintenance generator via SE11 for table maintenance via SM30 or parameter transaction.
What could be a reason to design yet another tool like this?
Please provide more details.
Thomas
07-01-2011 11:01 AM
Custom table can be only displayed in SE16N right ....data cannot be modified here. So they are asking for a selection screen like SE16N with maintanence propperties.
07-01-2011 11:26 AM
Hi Meenu,
Try using function module SE16N_INTERFACE
Use the below parameters
I_TAB -> Your custom table name
I_EDIT -> X
Make sure to build proper authorizations and limit it only to your specific table, as any table name provided would go into EDIT mode.
Regards
Rajvansh
Edited by: Rajvansh Ravi on Jul 1, 2011 12:27 PM
07-01-2011 11:38 AM
I am using this FM only and I am using custom selection screen. But this FM does not have a selection screen like SE16N. It directly takes you to output.
Thanks,
Meenu.
07-01-2011 11:43 AM
SE16N can be used to modify custom Z-tables as well, if the settings made in SE11 tab "delivery and maintenance" allow it.
Thomas
07-01-2011 12:00 PM
Hi Meenu,
Make the changes which Thomas has said.
And use the function module SE16N_START to get the selection screen as in SE16N. I tried with a new Z table and it works well
Regards
Rajvansh
07-01-2011 12:27 PM
For me it is not working since they have applied the SAP note : 1420281 in my development system. This note says "the &SAP_EDIT function will be deactivated once this note is applied". Is there any other way....please let me know...
Thanks,
Meenu.
07-01-2011 1:03 PM
Hi Meenu,
In one of my system the note is implemented and &SAP_EDIT does not work. But i am able to maintain entries in SE16N for custom table and through function module as well (Not sure why, but checking on this).
For your custom table check the below settings (Which Thomas already mentioned).
1. In SE11 for the table, under "Delivery and Maintenance" it should have value "Display/Maintenance allowed"
Regards
Rajvansh
07-01-2011 1:12 PM
Yes....it is set to Display/Maintainence Allowed. Still not working.
07-01-2011 1:16 PM
I am able to maintain entries using FM but not directly from SE16N transaction........but though FM selection screen is not coming like SE16N....it directly goes to output....
07-01-2011 1:20 PM
Hi,
Have you tried function module SE16N_START ? It gives selection screen right .. Any issues with SE16N_START ?
Regards
Rajvansh
07-01-2011 1:22 PM
Yes I tried this ...but this will not allow you to modify the entries......
07-01-2011 1:40 PM
Hi Meenu,
For me it works.
When you execute from SE16N_START a screen same as in SE16N will be displayed
There is a checkbox "Maintain entries" . this needs to be selected. Otherwise it goes to display mode
Regards
Rajvansh
07-01-2011 1:43 PM
This Maintain entries checkbox is disabled in my system....I think due to some settings....
07-03-2011 6:22 PM
The transaction code SE16N [report RK_SE16N] offers some options for table maintenance activities, if the corresponding authorizations are assigned as well.
first of all we have to understand how the table maintanence activity is executed.
when we call the transaction SE16N and enter the table name we want to maintain ,it either offer integrated maintanence functionality repersented by checkmark in check box or it doesnt offer this functionality automatically.
in the second case we use a different path to achive this we enter "&SAP_EDIT" to activate general maintanence functionality .
07-03-2011 7:51 PM
hello,
use UASE16N tcode, program UA_SE16N_START. (it is only in newer versions of SAP). you could use it as example how to overcome your problem.
br,
dez_
03-29-2012 5:28 PM
Hi all,
After
SAP Note 1473881 - Usage of transaction UASE16N
you can no longer do...I think the argumenthas becomea little chaotic !
Bye...
03-29-2012 5:44 PM
Hi Meenu,
As suggested by Rajvansh, I tried SE_START and was able to maintain the table. If yuo see there is a View Maintenance Tab which displays all the entries in the table. You can change the mode from DISPLAY to CHANGE and modify the existing table entries.
Thanks
Abhilasha Gupta
04-10-2012 10:49 AM
Hi Meenu,
One option you have using the function module SE16N_START is to copy the function group to a zfunction group and copy the function module to ZSE16N_START and change the code of the function module as follows:
after statement "gd-display = i_display." add lines:
gd-sapedit = 'X'.
gd-edit = 'X'.
Or maybe you can achieve the same by enhancing the function module SE16N_START.
Regards,
Peter Jonker