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

Table Maintainance

Former Member
0 Likes
710

Hi All,

I have created a Z Table say for Eg ZTAB.

I have created a Transaction to maintain this Table say for Eg ZMAINTAIN.

Now, my requirement is , when I execute ZMAINTAIN, I want one of the fields in ZTAB to be filled by Default and this field should be greyed out, ie user cannot change this field.

Can anyone tell how to set a default value for a particular Field while maintaining the table and that Field must be uneditable(Greyed out) while table maintainan?

Thanks in Advance.

6 REPLIES 6
Read only

Former Member
0 Likes
675

Hi,

You can goto the layout of Overview screen, Change the attribute of the scrren field to Input ->not possible. then activate the screen and run sm30.

In Table maintenace generator, Overviewscreen -> goto the screen layout -> select the screen field -> change attribute of the sctren field to screen input -> Not possible under the Program tab.

Save your changes and activate. The In SM30 you can find the field not-editable.

Read only

Former Member
0 Likes
675

Your table maintance program is an individual module pool program.

1>

So first go in that program,

open screen,

then make that particular column as a output only.

2>

in pbo of that screen.

in to the loop of table control.

pass your fix value of your column to the internal table of that table control.

it will bring that fix value in your column and that will be in display mode only.

Read only

Former Member
0 Likes
675

hi,

pls refer the link below

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/tableMaintenancein+ABAP]

This link refers to the variou sevents in TMG and how u can work with it.

https://wiki.sdn.sap.com/wiki/x/EQGSBQ

regards

Read only

shishupalreddy
Active Contributor
0 Likes
675

Hello,

Goto the Function group of the Table Maintenence of ZTAB write the logic within the PBO of the screen flow logic .

PBO.

Module diable_field.

Module diable_field.

Keep default value witin that <vkorg> = '9060'.

LOOP AT screen.

if screen-name = <VKORG>

SCREEN-input = 0.

MODIFY SCREEN.

endif.

endloop.

ENDmodule.

Regards,

Read only

former_member229729
Active Participant
0 Likes
675

Hi,

There is a brief help document from SAP. Please read below which is very helpful for everyone:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8129f164-0a01-0010-2a8e-87652872...

Rgds,

Ramani N

Edited by: Ramani Nagarajan on Jun 24, 2009 8:56 AM

Read only

Former Member
0 Likes
675

hi,

1. goto sm30 wirite your table name their and make display.

2. now you go to the settings in the setting choose status.

3. Their you get the screen number click on it it take to the screen where the table control is.

4.goto the propery of the fileld make it not editable or go to the PBO of the screen to make it non editable.

Hope This helps

Regards

RItesh J