2008 Dec 23 10:18 AM
Hello
I need to create a program to displays the SE16 selection screen and report for a specific table and without the authorisation checks.
Originally I tried this:
CALL FUNCTION 'RS_TABLE_LIST_CREATE'
EXPORTING
table_name = 'TABLE_NAME''
no_structure_check = 'X'Which worked, but still required the user to have SE16 permissions. Next I tried this:
DATA mem_id(16) TYPE c VALUE 'TABELLENANZEIGER'.
DATA action(4) TYPE c VALUE 'ANZE'.
DATA mainflag TYPE c VALUE 'X'.
DATA viewgrant TYPE c value ''.
DATA global_auth(4) TYPE c VALUE 'SHOW'.
DATA g_data_exit TYPE c value ''.
EXPORT action mainflag viewgrant global_auth g_data_exit
TO MEMORY ID mem_id.
* Bypass auth check
DATA: l_progname TYPE rsnewleng-programm
VALUE '/1BCDWB/DBTABLE_NAME'.
SUBMIT (l_progname) VIA SELECTION-SCREEN AND RETURN.Which again worked fine and even bypassed SE16 auth checks, but seems to give some odd side effects related to the EXPORT statement.
I'm hoping there's a better way to do this, any ideas?
Edited by: Chris Turner on Dec 23, 2008 11:18 AM
2008 Dec 23 12:27 PM
Hi,
You copy the FM into your customized one and proceed.
Regards
Srini
2008 Dec 23 12:27 PM
Hi,
You copy the FM into your customized one and proceed.
Regards
Srini
2008 Dec 23 2:13 PM
I'd like to avoid creating an FM if at all possible, I'm just looking for a quick function or procedure call to provide SE16 functionality for a given table without the auth checks.
2008 Dec 24 7:18 AM
The best way is to copy and do as few more SE16 authorization checks are inserted in upper versions and you cannot have a control.
Regards
Srini
2008 Dec 24 7:33 AM
Call FM :call_transaction_from_table
it bypasses all the auth checks.
you can give the transaction name as a parameter to this FM.
{
call Functio 'call_transaction_from_table '
exporting I_TCODE = 'SE16.'
}
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |