Application Development and Automation 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: 
Read only

Tcode for table maintenance only in dispaly mode

Former Member
0 Likes
15,791

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
Read only

rahul_mahajan
Active Participant
0 Likes
9,901

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

Read only

0 Likes
9,901

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

Read only

VijayaKrishnaG
Active Contributor
0 Likes
9,901

Hi Neelima,

Try UPDATE = SPACE, while creating the Tcode.

Thanks & Regards,

-Vijay

Read only

0 Likes
9,901

Hi Vihaykrishna,

Try with table maintenance events to HIDE change button.

Regards,

Rajesh

Read only

0 Likes
9,901

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

Read only

0 Likes
9,901

Hi Vijay

I tried with this option UPDATE = SPACE

too. But no use.

Regards

Neelima

Read only

Former Member
0 Likes
9,901

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

Read only

0 Likes
9,901

Hi Syed

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

Regards

neelima

Read only

0 Likes
9,901

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

Read only

Former Member
0 Likes
9,901

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....

Read only

0 Likes
9,901

Hi all

Please understand my query.

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

Regards

Neelima.

Read only

0 Likes
9,900

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

Read only

Former Member
0 Likes
9,900

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

Read only

0 Likes
9,900

All the fields are not getting copied to the maintenance view

Read only

Former Member
0 Likes
9,900

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.

Read only

koolspy_ultimate
Active Contributor
0 Likes
9,900

Hi neelima,

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

Regards,

Madhumahesh.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
9,900

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

Regards,

Raymond

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
9,900

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

Read only

0 Likes
9,900

So he will have TWO dialog maintenance ?

Read only

Former Member
0 Likes
9,900

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.

Read only

Sudhakargadde
Participant
0 Likes
9,900

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

Read only

hiriyappa_myageri
Participant
0 Likes
9,900

Hi Neelem,

In Delivery and Maintenance tab your table .

select delivery class as 'G'.

Regards,

Hiriyappa

Read only

Former Member
0 Likes
9,900

Hi all

thanks for your inputs.

Done with the help of basis though authorization group.

Closing the thread.

Regards

Neelima.

Read only

0 Likes
9,900

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

Read only

ujjaval-bhalala
Explorer
0 Likes
9,900

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

And Create t-code using parameterized transaction of SE16.