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: 

PBO FLOW LOGIC FOR TABLECONTROL - change some fields in table editable

szyba
Discoverer
0 Kudos
594

I'm looking help for table on subscreen. Some fields (not colums) in table I need to be editable. 

In case in value field I have number > 3 this field should be editable, SCRREN-INPUT = 1. But it doesn't work.

 

LOOP AT gt_on_screen INTO gs_on_screen 
    WITH CONTROL on_screen 
    CURSOR on_screen-current_line 
 MODULE on_screen_get_lines.
 FIELD gs_on_screen-field1 MODULE input_off.
ENDLOOP.

MODULE input_off.
  LOOP AT SCREEN.
    IF screen-name = 'GS_ON_SCREEN-NO' AND GS_ON_SCREEN-NO > 3.
      screen-input = 1.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDMODULE.

 

 

2 REPLIES 2

RaymondGiuseppi
Active Contributor
0 Kudos
572

Just try to remove the FIELD statement (or use the CONTROLS and not a LOOP AT SCREEN)

szyba
Discoverer
0 Kudos
431

I know where was mistake. The code is correct, but in next module code change screen on group. Thank you for attention.