‎2007 Apr 06 7:17 AM
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
‎2007 Apr 06 7:38 AM
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
‎2007 Apr 06 7:38 AM
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
‎2007 Apr 06 7:45 AM
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
‎2007 Apr 06 7:51 AM
check in debug mode whether that<b> if condition</b> is getting inside or not probably it is not satisfying..
regards
shiba dutta
‎2007 Apr 06 7:56 AM
shiba, iam getting the value in debugg mode.i dont no why it is not modifying the cell?
‎2007 Apr 06 9:00 AM
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
‎2007 Apr 06 9:22 AM
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
‎2007 Apr 06 10:02 AM
sathish,
you given the logic for editable,but iam asking the logic for Non-editable.
Thanks
‎2007 Apr 06 10:05 AM
hi
then, that's what shiba was talking about
screen-input = '0' ->disable input
Sathish. R