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

doubt in table control cell

Former Member
0 Likes
900

hi,

I want to make a cell of table 'editable' while the other cells in the same column remains 'uneditable'.

Is it possible? How can I achieve it?

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
878

yes it is.

in PBO

screen flow logiv.

PROCESS BEFORE OUTPUT

module dis.

in abap

module dis output.

loop at screen.

if screen-name = <your screen field name like ITAB-MATNR in caps > or....<which are the fields you want to disable>

screen-input = '0'.

modify screen.

endif.

endmodule.

regards

shiba dutta

Message was edited by:

SHIBA DUTTA

8 REPLIES 8
Read only

Former Member
0 Likes
879

yes it is.

in PBO

screen flow logiv.

PROCESS BEFORE OUTPUT

module dis.

in abap

module dis output.

loop at screen.

if screen-name = <your screen field name like ITAB-MATNR in caps > or....<which are the fields you want to disable>

screen-input = '0'.

modify screen.

endif.

endmodule.

regards

shiba dutta

Message was edited by:

SHIBA DUTTA

Read only

0 Likes
878

Hi shiba,

i have written code as below which comparartively same with your code.But iam not getting the desirable result.

process before output.

*&SPWIZARD: PBO FLOW LOGIC FOR TABLECONTROL 'TC_400'

module tc_400_change_tc_attr.

*&SPWIZARD: MODULE TC_400_CHANGE_COL_ATTR.

loop at g_t_wkly_fcst_400

into g_wa_wkly_fcst_400

with control tc_400

cursor tc_400-current_line.

module tc_400_get_lines.

MODULE MODIFY_SCREEN.

*&SPWIZARD: MODULE TC_400_CHANGE_FIELD_ATTR

endloop.

MODULE modify_screen OUTPUT.

g_calmonth = sy-datum+0(6).

LOOP AT SCREEN.

IF g_wa_wkly_fcst_400-calmonth LE g_calmonth AND screen-group4 = 'GP4'.

screen-input = '0'.

ENDIF.

MODIFY SCREEN.

ENDLOOP.

ENDMODULE. " MODIFY_SCREEN OUTPUT

Help me in this aspect

Thanks

Read only

0 Likes
878

check in debug mode whether that<b> if condition</b> is getting inside or not probably it is not satisfying..

regards

shiba dutta

Read only

0 Likes
878

shiba, iam getting the value in debugg mode.i dont no why it is not modifying the cell?

Read only

0 Likes
878

when it is going to if condition just check the screen-name is your screen field name or not other wise code with screen-name = 'ITAB-MATNR' or like that.....

regards

shiba dutta

Read only

Former Member
0 Likes
878

hi skk,

i think shiba is replying you how to make a particular cell uneditable, whereas you want that cell alone to be editable...if i am right, then just change scren-input to '1'...

LOOP AT SCREEN.

IF g_wa_wkly_fcst_400-calmonth LE g_calmonth AND screen-group4 = 'GP4'.

screen-input = '1'. --> change it to 1

ENDIF.

MODIFY SCREEN.

ENDLOOP.

if helpful, reward

Sathish. R

Read only

0 Likes
878

sathish,

you given the logic for editable,but iam asking the logic for Non-editable.

Thanks

Read only

0 Likes
878

hi

then, that's what shiba was talking about

screen-input = '0' ->disable input

Sathish. R