‎2009 Jun 24 5:13 AM
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.
‎2009 Jun 24 5:28 AM
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.
‎2009 Jun 24 5:32 AM
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.
‎2009 Jun 24 5:37 AM
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
‎2009 Jun 24 5:46 AM
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,
‎2009 Jun 24 7:56 AM
Hi,
There is a brief help document from SAP. Please read below which is very helpful for everyone:
Rgds,
Ramani N
Edited by: Ramani Nagarajan on Jun 24, 2009 8:56 AM
‎2009 Jun 24 8:01 AM
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