‎2006 Feb 28 10:39 AM
Hi,
i want to change some attributes for special fields inside a table control (not the whole column only special fields in different lines)
in the PBO part
PROCESS BEFORE OUTPUT.
*&spwizard: pbo flow logic for tablecontrol 'TC_PACKTAB'
MODULE tc_packtab_change_tc_attr.
*&spwizard: module TC_PACKTAB_change_col_attr.
LOOP AT wt_packtab
INTO wa_packtab
WITH CONTROL tc_packtab
CURSOR tc_packtab-current_line.
MODULE tc_packtab_get_lines.
*&spwizard: module TC_PACKTAB_change_field_attr
MODULE modify_screen.
ENDLOOP.
MODULE modify_screen OUTPUT.
perform modify_screen.
ENDMODULE. " modify_screen OUTPUT
FORM modify_screen .
LOOP AT tc_packtab-cols INTO cols. "WHERE index GT 2.
IF cols-screen-name = 'WA_PACKTAB-NTVOL'
AND wa_packtab-error = 'X'.
cols-screen-intensified = '1'.
MODIFY tc_packtab-cols FROM cols .
ENDIF.
ENDLOOP.
ENDFORM. " modify_screen
After that: Only the whole column is intensified (on or off) depense on the last field that was checked. But it should changed the color e.g. in line 2 and 6 and all other lines should be intensified off.
What is wrong??
‎2006 Feb 28 10:51 AM
1.did u assign screen groups to the particular field where u want them to change the attributes in the table control.
2. this u might be knowing in the field attributes where u hav option for 4 screen groups.
3. after assigning now in pai write teh code as follows.
.now using screen groups and combing them
like
if screen-group1 = '001'
screen-intensified = ' ' or 1 .
endif .
and modify the screen.
regards,
vijay.
‎2006 Feb 28 10:51 AM
1.did u assign screen groups to the particular field where u want them to change the attributes in the table control.
2. this u might be knowing in the field attributes where u hav option for 4 screen groups.
3. after assigning now in pai write teh code as follows.
.now using screen groups and combing them
like
if screen-group1 = '001'
screen-intensified = ' ' or 1 .
endif .
and modify the screen.
regards,
vijay.
‎2006 Feb 28 11:18 AM
‎2006 Feb 28 11:19 AM