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 CONTROL

Former Member
0 Likes
394

HI,

Can anyone tell me how to make some elements in a rows of table control as non- editable ?

Regards,

Nishant

3 REPLIES 3
Read only

Former Member
0 Likes
365

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.

www.saptechnical.com

www.sap-img.com

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

http://www.geocities.com/ZSAPcHAT

http://www.allsaplinks.com/files/using_table_in_screen.pdf

Read only

Former Member
0 Likes
365

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.

Read only

Former Member
0 Likes
365

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.