Quantcast
Channel: SCN : Document List - ABAP Development
Viewing all articles
Browse latest Browse all 935

Creation of Transaction Code for Custom Table Display for User

$
0
0

This document is aimed at creation of a transaction code for table display (in non-editable mode) for the user. User should be able to see the records but must not be able to edit the records.

 

This type of requirement arises when the end user is not authorized to execute std. transactions like SE16N, SE16, SE11 or SM30 for the table display and he wants to display the records of a custom (Z) table. Normal table maintenance generator (via. SM30) is equipped with the functions to maintain the table, hence, user can make changes to the table contents.

 

Therefore, we need to create a table maintenance generator with maintenance screen having modified GUI status. (Some function codes which are intended for editing the records have to be deleted from the GUI status.)

 

Below are the steps required to create a transaction code for the table display:


1. Create a new table maintenance generator for the table and then change the maintenance user interface via. Environment --> Modification -->User Interface.

TBG1.png

 

2. In the following pop-up screen, press User Interface button. (Copy Interface or F9).

UI1.png

 

3. A warning message will appear if the logon language is other than German (DE). Then just press Enter or OK.

UI2.png

 

4. Next pop-up screen provides the option the change the user interface. From here, Standard interface can be replaced with User's own interface.

Click on button Std. <-> Ind.

UI3.png

 

5. Then click on Edit button after switching to Individual interface.

UI4.png

 

6. This takes us to initial screen of Menu Painter (Transaction SE55).

Note: Do remember to activate the user interface before making any changes to it as if we don't activate it before making the changes, the language of all the standard texts will remain German.

UI5.png

 

7. Now select Function list and go into change mode by clicking on Change button.

UI6.png

 

8. Delete the function codes which are intended for editing table contents. For example, AEND (Display -> Change button in SM30) and ANZG (Change -> Display) as shown below. Now activate the interface.

UI7.png

 

In this way, we can remove any function codes according to specific needs.

Eg. NEWL - New record

      KOPE - Copy As...

      KPOF - Copy        etc.

 

9. Now, create a new transaction code using transaction SE93 as shown below. Choose Transaction with parameters (parameter transaction).

SE93_1.PNG

 

10. In transaction creation screen, give the parameters VIEWNAME as the table name (ZTEST_TABLE in our example) and SHOW as 'X'. See below.

Tcode1.png

11. Save the transaction. The transaction is now ready for the use.

Run the transaction. The table is displayed as below.

tcode.png

 

Here, we observe that the button to go into edit mode (Display -> Change) has got removed which used to be there before modifications to the interface.


This transaction is perfectly suitable for table content display and very similar to a transaction for table maintenance with the only difference that it doesn't allow the editing of table contents.


PS : Suitable changes can also be made to the maintenance screens as per the needs via. Environment --> Modification -->Maintenance Screens in table maintenance generator.


Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>