‎2008 Jul 16 6:40 AM
Hi,
I need to give an authorization object to the table fields.
We can do that in the function group by creating module and coding in that module, but the major drawback in this is whenever the table maintenance is re generated all the code in the function group will be refreshed.
So i need to know is there any other way to add authorization objects to the table fields.
I have got 2 methods to do that.
1. In table maintenance generator, u can define Authorization group and Authorization object. (I hope we need basis help on this).
2. In table maintenance generator, Environment -> Modification -> Events, we can create subroutines and code in it.
But I am not sure how to work on these and whether these will not be refreshed once u regenerate the function group.
Please help me regarding this.
Helpful answers will surely be rewarded.
Thanks in advance,
Asif Ali Khan
‎2008 Jul 16 6:42 AM
Hi,
Assign authorization group to the table.
You can create auth.grp using tcode SE54.
Regards,
Subramanian
‎2008 Jul 16 6:44 AM
Hi
Table Maintenance Generator (TMG) is a tool which is used to create a equipment by which customized tables created by end users can be changed as required,such as making an entry to that table,deleating an entry etc.
SM30 is the transaction code to create table maintenance generator.
go through the link given below :
With Regards
Nikunj shah
‎2008 Jul 16 6:57 AM
Hi Asif,
The purpose of table maintenance generator is to enable the table maintenance through SM30, and to implement and validation etc on table field inputs.
SE11->Utilities->table maintenance generator
You need to enter the values of following fields:
1. Table name
2. Authorization group, and authorization object (select the suitable one)
3. Function group and package
4. Maintenance type: single or double screen maintenance view depending on the option selected.
5. Maintain screen number: you may specify a value or let the system generate one for you.
The validation code for the table entry is written in the flow logic of this screen. Even some of the fields may be made display only, by adding suitable code in the logic or directly disabling the input in table control in the layout.
Table maintenance is for creating, adding data to an existing table.
it is for adding multiple records at a time in the table
A table can be manipulated by a program or manually.
When creating table, you will find a check box 'Table maintenance allowed'. If we
check that option, we can manually enter entries using SE16 or table
maintenance generator screen.
SE16 is for data browser.
Go to SE11, give the table name and click on change. Then Go to utilities--> Table maintenance generator.
In the table maintenance generator screen, we should give Authorization Group,
Function Group name (Function Group name can be same as table name),
Maintenance type can be one step or two step, usually we will create with one
step. we should give maintenance screen number. After clicking on create button,
a table maintenance generator will be created.
To check it go to SM30. In SM30, we find display, Maintain options.
We can view the table contents by choosing Display and we can create table
entries by choosing Maintain.
In the production system, end-users will not be having access to transaction
codes like SE11 and SE16. Developers will not be having access to many
transaction codes including the above two.
To view the contents of the database table, we will use SE16n in Production
system. Please find out the difference between SE16 and SE16n.
All these authorizations will be maintained by BASIS team, by creating access
profiles.
So in order to edit or create the contents of a database table, we should go for
table maintenance generator. In real time, authorizations will be maintained in
production system. (Even in development and Test systems to some extent).
There is an audit like Sarbanes-Oxley Act for American clients, where every thing
will be audited by government agency. To know more about SOX, use the links on the right hand side of this page.
The second reason is, we can edit or create multiple entries at a time, using table
maintenance generator.
Apart from that we have options like 'Enter conditions' in table maintenance
screen SM30. Please try to find out the use of those, by creating an example.
Table Maintenance generator: Difference between one step and two steps.
While creating table maintenance generator, we find below options:
When we choose one step, we have to give the screen number in Overview Screen field.
When we choose two step, we have to give both overview screen number and single screen number.
You can give any number for screen. Donu2019t give 1000 screen number. As this
number is reserved for selection screen.
When we choose two steps, two screens will be created for table maintenance. For
single step only one screen will be created.
When we choose two step, table maintenance will work as follows
Go to SM30, give the table name for which you have created table maintenance-
Overview screen will be displayed. To create entries, when you click on u2018new
entriesu2019. Another screen will be displayed, where you give input and save. You can
enter one record at a time.
Go to SM30; give table name for which you have created table maintenance-
Overview screen will be displayed; To create entries click on u2018new entriesu2019, you can
enter the records on the same screen. You can enter multiple records at a time.
We use single step generally, as it is user friendly.
To completely understand the difference and above points please do exercise by
creating table maintenance generator in both ways (using single step and two
step).
http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ed2d446011d189700000e8322d00/content.htm
http://help.sap.com/saphelp_46c/helpdata/en/a7/5133ac407a11d1893b0000e8323c4f/frameset.htm
/message/2831202#2831202 [original link is broken]
One step, two step in Table Maintenance Generator
Single step: Only overview screen is created i.e. the Table Maintenance Program will have only one screen where you can add, delete or edit records.
Two step: Two screens namely the overview screen and Single screen are created. The user can see the key fields in the first screen and can further go on to edit further details.
If Found Help Full Do Reward.
Regards.
Eshwar.
‎2008 Jul 18 8:17 AM
Hello Asif,
You can maintain your own authorization coding inside the Function Group, or any such custom coding via any events, for a given Maintenance Dialog.
Just make sure that all such coding is built within a different Include than any of the generated includes. Make sure it is not one of the SVIM includes, or any of the Generated includes like DAT, T00, TOP etc.
This way, re-generating maintenance dialogue will not harm your custom coding. You must however only remember to re-insert calls to your custom coding, within the generated coding, if any.
Regards,
Rekha