Skip to Content
0
Former Member
Jun 08, 2009 at 04:33 PM

Table Control - single cell edit

26 Views

Hi,

I have TC with many fields, 2 of them are important, if in one is 'R' then second should be ready for input.

My code looks like this:

PROCESS BEFORE OUTPUT.
...
  LOOP AT it_placpiz INTO wa_placpiz
    CURSOR tab_placp_iz-current_line
    WITH CONTROL tab_placp_iz.
    MODULE prebaci_u_tc_2305.
  ENDLOOP.

MODULE prebaci_u_tc_2305 OUTPUT.

  g_tc2_lines = sy-loopc.
  CLEAR /b4b/vt_placpiz.
  MOVE-CORRESPONDING wa_placpiz TO /b4b/vt_placpiz.
    LOOP AT SCREEN.
    IF screen-name = '/B4B/VT_PLACPIZ-PLANI'.
      IF /b4b/vt_placpiz-plast = 'R'.
        screen-input = 1.
        screen-output = 1.
        screen-active = 1.
        screen-invisible = 0.
        MODIFY SCREEN.
      ELSE.
        screen-input = 0.
        screen-output = 1.
        screen-active = 1.
        screen-invisible = 0.
        MODIFY SCREEN.
      ENDIF.
    ENDIF.
  ENDLOOP.

ENDMODULE.

This looks good to me BUT in my local system(6.0) is NOT working, but at some customer IS WORKING FINE and as it would be expected?! Any idea? Is there something wrong with system, my code....

thx