‎2011 Mar 11 10:33 AM
I have a Ztable which is getting Inserted/Updated thru some Report.
I want to give Authorization for Insertion/Updation of that table through that program.
How can I proceed.
My table has following Fields.
MANDT
WERKS
LGORT
MATNR
SEQ_NUM
STDAT
STTIM
EDDAT
EDTIM
I need to send request to BAsis Team for creating Authorization Object but I dont know what to send them
Plz Help
‎2011 Mar 11 10:52 AM
‎2011 Mar 11 11:25 AM
I need to update table from my Program and not thru SM30 transaction.
‎2011 Mar 11 12:46 PM
Hello Karan,
Are you creating a table maintenance generator for this particular custom table?
If yes, then i don't think you need to create an additional Auth. Obj. for this. You can make use of the existing obj. S_TABU_DIS.
For this you'll have to make create a new auth. group while defining the TMG & then in you program call the auth. object:
AUTHORITY-CHECK OBJECT 'S_TABU_DIS'
ID 'ACTVT' FIELD '02' "Change
ID 'DICBERCLS' FIELD 'ZAUTH'. "Custom Auth. Group
IF sy-subrc = 0.
* Add your logic
ENDIF.BR,
Suhas
‎2011 Mar 11 11:27 AM
Create One Screen which have to fields User name and Passoword. Create one z table for storing both these field
And Create one more screen to UPDATE and INSERT in the required Z table in program. you can set authorization only to
those users which you have maintaind in new z table.
S Sonar
‎2011 Mar 11 11:53 AM
Hi
May be an approach would be have the WERKS fields in your selection screen and create a authority object which would check the WERKS and returns for a user whether they are authorized to edit the table for that werks.
For all the authorized WERKS you can call the table through the FM VIEW_MAINTENANCE_CALL specifying the filtering with the authorized WERKS.
That's one of the approach i can think of. You can more restrictions based on other fields as well. You need to provide this information about the fields on which you want to check authorizations. Also, you can specify what level of authorizations, for some users it can be display only and for some it can be Read/Write access to the table entries.
Don't forget to generate the table maintenance before doing all these.
Regards
Ranganath
‎2011 Mar 11 11:57 AM
Hi,
I understand that you want to provide authorization through your report.
For that you can create a Authorization Object with Activity and User Name and call that Authorization Object in your program.
You can control insert/Update with the User Name.
Already a lot of threads are present in SDN regarding authorization Object, for reference you can search.
Thanks
Arbind
‎2011 Mar 11 12:30 PM
I agere with Arbind,
create a Z authorization code from trx SU21and call it from your program