07-21-2009 7:03 AM
Hi expert,
I am doing quotation program , in that multiple pricing values are there so,
I want to set screen property intensifed for values in table control depends on conditions.
plz reply me with details procedure.
Regards,
Jyotsna
07-21-2009 7:33 AM
this is discussed so many times,
in pbo
loop at itab with control tc using screen 9001.
module screen_control.
endloop.
_______________________
Module screen_contol.
loop at screen,
if screen-name = ' Your field Name'.
if condition. "your condition
screen-intensified = 1.
modify screen.
else.
screen-intensified = 0.
modify screen.
endif.
endif.
endloop.
end module.
Regards,
Alpesh
07-21-2009 8:24 AM
Try this way.
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,
LOOP AT itab.
MODULE change_table_control.
ENDLOOP.
*----------------------------------------------------------------------*
* MODULE read_table_control INPUT
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
MODULE read_table_control INPUT.
LOOP AT flights-cols INTO cols.
IF cols-screen-input = '0'.
cols-screen-intensified = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-intensified = '0'.
ENDIF.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
ENDMODULE. "read_table_control INPUT
Thanks
Venkat.O
07-21-2009 8:55 AM
Hi alpesh ,
Thanks for ur reply but , total column is going to intensifed as per ur reply ,
i want to intensifed perticular cell of table control.
plz reply.
Regards,
Jyotsna
07-21-2009 9:57 AM
Hi Jyotsna,
Why don't you try this
Thanks
Venkat.O
LOOP AT flights-cols INTO cols.
IF cols-screen-name = 'ITAB-COL1'.
cols-screen-intensified = '1'.
ELSEIF cols-screen-input = '1'.
cols-screen-intensified = '0'.
ENDIF.
MODIFY flights-cols FROM cols INDEX sy-tabix.
ENDLOOP.
07-21-2009 10:17 AM
hi venkot ,
Plz tell me in brief about your reply .
actually still i am facing same prblem of not getting intensified perticular row or cell of table control.
wats cols in your thread b'coz i got syntax error at the time of working.
Regards,
Jyotsna
07-21-2009 10:21 AM
hi,
In Venkat's code,
flights is a Table control.
when you debug see flights-cols, it would be an internal table holding column names.
Hope you are clear.
Regards
Sajid
07-21-2009 10:37 AM
Hi Jyotsna,
<li>flights is table control.
<li>cols is an internal table which contains table control field names at runtime.
Thanks
Venkat.O
CONTROLS flights TYPE TABLEVIEW USING SCREEN 100.
DATA: cols LIKE LINE OF flights-cols,