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

how to make fields editable in table control

Former Member
0 Likes
1,136

hi,

I have a table control (with wizard)  and i need to make some fields  editable depending on the button clicked (button add).

at first my table is displayed with data and all fields are not editable except one.

i want when i click on add button fields become editable.

thanks.

hi,

I have a table control (with wizard)  and i need to make some fields  editable depending on the button clicked (button add).

at first my table is displayed with data and all fields are not editable except one.

i want when i click on add button fields become editable.

thanks.

7 REPLIES 7
Read only

matt
Active Contributor
0 Likes
1,082

Please search. There's plenty of information about editable ALVs.

Read only

Former Member
0 Likes
1,082

i serached a lot but i didn't find my need .

i used table control with wizard. i did not know where i should add my code.

Read only

mayur_priyan
Active Participant
0 Likes
1,082
Read only

Former Member
0 Likes
1,082

hi,

thanks for your help but i have seen this before abd it's not very clear.

where should i put that code.

Read only

Former Member
0 Likes
1,082

hi,

once u selected the aprticluar line   and click on the push button write the code in the pbo event

usinh the loop at screen..........and amke editable of the partilar field which u want....

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,082

(FAQ) Start reading the documentation of LOOP AT SCREEN on help.sap.com or via F1 key, then perform some search (scn tool, google) on PBO, LOOP AT SCREEN and TABLE CONTROL...

Regards,

Raymond

PS: There are many samples at scn, help.sap.com and in SAP demo program (check transactions like ABAPDOCU or DWDM)

Read only

Former Member
0 Likes
1,082

Hi,

You can put a code in Section of PBO like that

if sy-ucomm = 'Button1'.

loop at screen.

if screen-name = 'Field1'  ---> 'which fields are required

screen-active = '1'.

modify screen.

endif.

endloop.

Thanks!

Ram