‎2011 May 06 1:39 PM
Hi,
I create a tranasaction Z* to display table 'FEBKO' (SE16).
I want change BUKRS parameter to obligatory and put autority check
Any ideas to help
Thanks
‎2011 May 06 1:53 PM
Hi,
create variant parameter transaction, give transaction authority to selected users, make desired field mandatory in transaction variant.
Read documentation.
Regards,
Clemens
‎2011 May 06 1:53 PM
You can create a report to display table with standard se16 function, and implement control and correction in report execution.
‎2011 May 06 2:48 PM
Do you have an example?
I creat report and i use FM 'ZRS_TABLE_LIST_CREATE' but i can't modify parameter
Thx
‎2011 May 06 3:13 PM
Why didn't you use Clemens' suggestion? That's the proper way to control Z-table transactions and it's covered in the help files and has been discussed on the forum many times...
‎2011 May 06 3:15 PM
‎2011 May 06 3:20 PM
Ok but i want to check autority 'F_BKPF_BUK' after F8
How can i do?
‎2011 May 06 3:27 PM
Now you've changed the question and the corresponding answer...
‎2011 May 06 3:27 PM
As Clemens said, this is what is done for standard transactions and you should follow that.
But if you are creating a custom transaction, I don't understand where's the issue. You can always make it mandatory.
Try the following things:
- If you have created a custom transaction and a se38 report as well, then use loop at screen and make the value mandatory. (This is what i've done to make many standard transactions like MI01 to make few fields mandatory using enhancements).
- For authorization, first you need to add the transaction to a role and use the 'Authority_check' FM in your code to confirm the role in your code.
Regards,
Santosh
Edited by: Santosh Verma on May 6, 2011 4:28 PM
‎2011 May 06 3:36 PM
This is my problem:
When i execute my specific t.code i display selection screen of table 'FEBKO'. The user clik on F8 he display content of table.
Me i want make parameter BUKRS obligatory and when the user put the value on BUKRS i excute check autority 'F_BKPF_BUK'.
‎2011 May 06 7:01 PM
The base authorization object for SE16 is S_TABU_DIS. The object is checked both before and after execute, but the only checks are against the activity and the authorization group if it's assigned in the DDIC. In this case, the auth group is 'FA' and the user must have authorization to view table recs in that group. You MIGHT be able to create a hack approach with BADI VIM_AE_BADI but it's not worth the hassle. You'd be better off with a custom approach as described but it would be better to just restrict the entire table via the standard object.
‎2011 May 06 4:25 PM
Hey SIMO,
If that's the case, then you have to change your requirement. You have to discuss this with the functional owner.
You may have to create a custom report where you will list the burks as dropdown as first input, then set the parameter id for it. Once the bukrs is selected, use a container/docking container below the BUKRS field and display the se16 screen format for other fields (here BURKS will be set again from the value selected in dropdown).
It may not be the best way, and I do not have a system to provide some quick better solution but i believe, you may have to end up creating custom report as well.
Regards,
S. Verma
‎2011 May 09 10:12 AM
I creat custom program and i call FM 'ZRS_TABLE_LIST_CREATE' copy of 'RS_TABLE_LIST_CREATE' at the end of FM i use syntax:
p_seltab = p_bukrs (selection screen)
SUBMIT /1bcdwb/dbfebko USING SELECTION-SET 'SELBUKRS' VIA SELECTION-SCREEN WITH SELECTION-TABLE p_seltab AND RETURN.
It work but when i change field selection from SE16 the program dump
I think i must use User exit in SE16. I don't know if exist???
‎2011 May 09 2:57 PM
I think i must use User exit in SE16. I don't know if exist???
Then use a runtime analysis trace to find out , but I've already given you a reply about that...
‎2011 May 09 3:33 PM
‎2011 Aug 01 9:23 AM
Please check on SAP Note
Note 1381945 - SM30: View Maintenance Authorization Enhancement
On my case, i have to delete interface IF_EX_VIM_AE_BADI before creating classic badi VIM_AE_BADI.
Thanks