‎2008 Feb 23 7:19 AM
HI,
Can anyone tell me how to make some elements in a rows of table control as non- editable ?
Regards,
Nishant
‎2008 Feb 23 7:26 AM
hi
hope it will help you.
Reward if help.
syntax:
CONTROLS .
if you only want to determine the row of the table control. SY´-SUBRC allows you to check if the cursor is placed in a row of a table control.
u need to comment the performs of table control fields and write ur own perform statements. And u have to declare the table control fields as separate internal tables.
Go through this urls.
Check the below links.
just refer to the link below
http://www.sapmaterial.com/tablecontrol_sap.html
step by step procedure with screen shots
http://www.planetsap.com/howdo_a.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbac5135c111d1829f0000e829fbfe/content.htm
http://sap.niraj.tripod.com/id25.html
Also you can see the below examples...
Go to se38 and give demodynpro and press F4.
YOu will get a list of demo module pool programs.
One more T-Code is ABAPDOCU.
YOu can find more examples there.
See the prgrams:
DEMO_DYNPRO_TABLE_CONTROL_1 Table Control with LOOP Statement
DEMO_DYNPRO_TABLE_CONTROL_2 Table Control with LOOP AT ITAB
‎2008 Feb 23 9:23 AM
Assign screen group say 'G1' to that field (column ) of table control through layout editor, and in PBO , in the module written inside the loop of table control written fillowing code,
if it_vbak-vbeln eq '0000000001'.
loop at screen.
if screen-group1 = 'G1'.
screen-input = '0'.
screen-output = '1'.
modify screen.
endif.
endloop.
endif.
Reward if useful.
‎2008 Feb 23 10:09 AM
hi,
first assign group to all the elements which u want disable .
You can set this through attributes...
now make one module in PBO...
MODULE init_screen OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 111 .
screen-input = 0.
MODIFY SCREEN.
ELSEIF screen-group1 <> 111.
screen-input = 1.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDMODULE. " init_screen OUTPUT
reward if usefull.