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 field attributes

Former Member
0 Likes
936

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??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
522

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.

3 REPLIES 3
Read only

Former Member
0 Likes
523

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.

Read only

0 Likes
522

Hi Vijay,

thanks that works.

Regards Thomas

Read only

Former Member
0 Likes
522

u r welcome thomas.

vijay,