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 related...

former_member755502
Participant
0 Likes
707

Hi,

My question is - how can I develop table control having three columns with only one column editable?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
674

We can make only one column editable in the table control by using below code:

step1: In one of the module in the PBO event

step2: Write beloe code :

LOOP AT SCREEN.

CASE SCREEN-NAME.

WHEN 'IG_ITAB-VBELN'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

WHEN 'IG_ITAB-ERDAT'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDCASE.

ENDLOOP.

step3: Where in the above code, the fields "vbeln & erdat" are two columns which we cant edit in the table control... likewise you can make a column non- editable .

Regards,

Sarkar

4 REPLIES 4
Read only

Former Member
0 Likes
675

We can make only one column editable in the table control by using below code:

step1: In one of the module in the PBO event

step2: Write beloe code :

LOOP AT SCREEN.

CASE SCREEN-NAME.

WHEN 'IG_ITAB-VBELN'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

WHEN 'IG_ITAB-ERDAT'.

SCREEN-INPUT = '0'.

MODIFY SCREEN.

ENDCASE.

ENDLOOP.

step3: Where in the above code, the fields "vbeln & erdat" are two columns which we cant edit in the table control... likewise you can make a column non- editable .

Regards,

Sarkar

Read only

Former Member
0 Likes
674

Hi,

try this..

data : cols like line of tc-cols.

loop at tc-cols into cols.
if cols-screen-name = 'col1'.
screen-input = 0.
endif.
if cols-screen-name = 'col2'.
screen-input = 0.
endif.
modify tc-cols from cols. 
endloop.

Read only

Former Member
0 Likes
674

Hi,

write module in PBO as below

&----


*& Module FIELD_STATUS_9012 OUTPUT

&----


  • text

----


module FIELD_STATUS_9012 output.

LOOP AT SCREEN.

CASE screen-name.

    • The following are the screen field names

WHEN 'WA_LC_BG_ACCT-BELNR' OR

'WA_LC_BG_ACCT-WRBTR' OR

'WA_LC_BG_ACCT-ZFBDT' OR

'WA_LC_BG_ACCT-PYDATE' OR

'WA_LC_BG_ACCT-BCHARG' OR

'WA_LC_BG_ACCT-INTRST'.

screen-input = 0.

MODIFY SCREEN.

ENDCASE.

ENDLOOP.

endmodule. " FIELD_STATUS_9012 OUTPUT

Regards,

Raju.

Read only

Former Member
0 Likes
674

Hi ,

Double click on Column of Table control in screen . Beside one Screen will open. down three radio buttons are there.

Buttons : Dict , Program , Display.

Click on Program , So There u can find out small put field.So there

u can give not possible which columns u dont want to Edit.Which column u want to Edit , related to that give possible in input field.

Regards,

Ramya.