Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Tcode for table maintenance only in dispaly mode

Former Member
0 Kudos

Hi all

I have created tcode for the maintenance of a Z-Table as

Viewname  - given table name

show          -  'X'.

While executing the tcode , it is opening in display mode only but there is option for change/create entries also.

How to avoid change entries?


Thanks in advance

Regards

Neelima.

25 REPLIES 25

rahul_mahajan
Active Participant
0 Kudos

Hi Neelima,

Please refer below threads.

http://scn.sap.com/thread/229815

http://scn.sap.com/thread/1354974

Just for your information. We can always try below options in order.

        1) Try to read F1 help (most of the time small issues get solved here)

        2) Seek some help from team lead or peers

        3) Search on SCN (somebody already faced same issue and answered also)

        4) Google it out

        5) Post a question

Cheers!!!

Rahul

0 Kudos

Hi Rahul

Thanks for the suggestion.As i already done with all 4 options, opted for 5th option .

In my case , for the same table maintainance generator i need create/change access to some users and display only to some users.

So trying to create 2 different tcodes for the same purposes.

For dispay transaction i need to restrict the change access.

Regards

Neelima

VijayaKrishnaG
Active Contributor
0 Kudos

Hi Neelima,

Try UPDATE = SPACE, while creating the Tcode.

Thanks & Regards,

-Vijay

0 Kudos

Hi Vihaykrishna,

Try with table maintenance events to HIDE change button.

Regards,

Rajesh

0 Kudos

Hi Rajesh,

If I understood this query correctly, here Former Member wants the view in GRAY DISPLAY Mode. So, how can we make gray mode through events in TMG?

Regards,

- Vijay

0 Kudos

Hi Vijay

I tried with this option UPDATE = SPACE

too. But no use.

Regards

Neelima

Former Member
0 Kudos

Hii Neelima,

At the place of show change it to  UPDATE = 'X'.

like shown below

It will allow create and change of values in tmg maintenance

regards

Syed

0 Kudos

Hi Syed

I need to avoid change and create entries allowing only display mode.

Regards

neelima

0 Kudos

Hii Neelima,

U can acheive ur requirement through modification of maintenance of screen.

go to TMG-->go to Environment-->modification-->maintenance screen

A pop-up window will be appeared with ur screen no and description place the cursor on the description value and click ok.

like below

After clicking ok.

below screen will be appeared click ok.

After cliking ok u will be directed to below screen

Go to element list

and uncheck the input field of all field and checked the ouput only field of all.

Thus u will get the entire field of ur tmg non editable i.e in display mode.

After cliking new entries it will still in display mode.

Here is the ouput

Or

else u can acheive this by creating a module in function group of tmg.

Go to se80.

double click on ur screen no. u will get the PBO and PAI of the screen.

Now u can create a module in PBO and modify the screen like

Loop at screen.

      if screen-name = <ur screen field name> .  -->u will get ur field name within chain and endchain.

          screen-input = 0.

     endif.

modify screen.

endloop.

Cheers

regards

Syed

Former Member
0 Kudos

Hi Neelama.........

1. Go to Tcode se93.

2. Select ' Transaction with parameters'.

3. Then Transaction SM30' with click on skip initial screen

      VIEWNAME : your table name

      UPDATE   : X

Instead of using SHOW = X  use UPDATE = X, then you can maintain values in your table.

Refer above screen shot....

0 Kudos

Hi all

Please understand my query.

I dont want to create/change entries. Only display needed.

Regards

Neelima.

0 Kudos

Hi Neelima,

Check the below screen shot. In this particular event 25 you can write authorization for individual.

you can write event code in your tables maintenance generator.

Regards,

Rajesh

Former Member
0 Kudos

Hi Neelima,

"Tcode for table maintenance only in dispaly mode"

The possible solution for this requirement is

1.Create Miantenance View for Z-table(e.g. Table ZTESTT and Maintenance View name ZTESTT_M)

2.Maintenane View of ZTESTT_M -->select  tab Maint.Status --> select radio button read only under box Access.

3.Create Table Maintenance Generator for Maitenance view ZTESTT_M.

4.Activate Maintenance View.

5.Create Transaction Code for Maintenance View ZTESTT_M.

                 VIEWNAME  = ZTESTT_M

                 SHOW          =  'X'

I hope this will gives solution for above requirement .

Regards,

Somi Reddy Satti

0 Kudos

All the fields are not getting copied to the maintenance view

Former Member
0 Kudos

Hi Neelama,

http://sap-abap-info.blogspot.in/2013/05/make-table-maintenance-display-only.html

http://scn.sap.com/thread/1760509

Check above links..May be useful to ur requirement

Thanks,

Srinivas.

koolspy_ultimate
Active Contributor
0 Kudos

Hi neelima,

                While creating tmg just use the maintenace status as read only , already mentioned by .

Regards,

Madhumahesh.

raymond_giuseppi
Active Contributor
0 Kudos

Did you try to use Event ST: GUI Menu Main Program Name ?

Regards,

Raymond

0 Kudos

Raymond Giuseppi wrote:

Did you try to use Event ST: GUI Menu Main Program Name ?

Isn't it easier to create a Maint. View & set the access as "read-only"?

Shouldn't we K.I.S.S

- Suhas

0 Kudos

So he will have TWO dialog maintenance ?

Former Member
0 Kudos

Hi Neelima,

In the PBO of your TMG you can check for the t-code and code accordingly by using LOOP AT SCREEN.

Hope this helps..

Regards,

Santanu.

Sudhakargadde
Participant
0 Kudos

Hi Neelima,

My suggestion when you are creating the Table maintain generator for the table in the mean time you are given a Function Group Name go to it and find the Screen Number your are give for the screens and go to Flow logic of it and Go to PBO Event and if SY-UNAME EQ 'Display USER' then Set the PF-Status to with out the EDIT/Create Buttton else you can what every you want.

Note : for that you need to create two PF Status.

Thanks

Sudhakar

hiriyappa_myageri
Participant
0 Kudos

Hi Neelem,

In Delivery and Maintenance tab your table .

select delivery class as 'G'.

Regards,

Hiriyappa

Former Member
0 Kudos

Hi all

thanks for your inputs.

Done with the help of basis though authorization group.

Closing the thread.

Regards

Neelima.

0 Kudos

Hi Neelima, I Have seen ur thread recently. I got same requirement now.like below. create new custom tcode for standard table.  This tcode should display table . Could you please give solution for this. Regards Karthik

ujjaval-bhalala
Explorer
0 Kudos

As u need table entries in display mode only, create database view of table.

And Create t-code using parameterized transaction of SE16.