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 dont save the input

Former Member
0 Likes
283

Hi Experts,

I am using a table control for write and set buttons. The Problem is that the settings are not available when I want to show it.

What must I do?

Michael

1 REPLY 1
Read only

Former Member
0 Likes
258

Mike,

I'm not completely sure what your issue is, but possibly this will help.

Setting Attributes is done in the PBO routine


 module TABCTL_ZLMACT_change_tc_attr.      "<== Change table control screen attributes
 module TABCTL_ZLMACT_change_col_attr.      "<== Change table columns screen attributes
  loop at   WT_ZLMACT
       into WK_ZLMACT
       with control TABCTL_ZLMACT
       cursor TABCTL_ZLMACT-current_line.
      module TABCTL_ZLMACT_change_field_attr       "<== Change table field screen attributes
  endloop.

Now.. in the PAI routine



loop at WT_ZLMACT.

chain.

field WK_ZLMACT-SEQNO.

field WK_ZLMACT-CONT_TY.

field WK_ZLMACT-CONT_DT.

field WK_ZLMACT-CONT_TM.

field WK_ZLMACT-CONTRE.

  • field WK_ZLMACT-FOLLDT.

field WK_ZLMACT-COMP_DT.

field WK_ZLMACT-COMP_TM.

field WK_ZLMACT-COMP_NM.

field WK_ZLMACT-AEDAT.

field WK_ZLMACT-AETIM.

field WK_ZLMACT-AENAM.

field WK_ZLMACT-ERDAT.

field WK_ZLMACT-ERTIM.

field WK_ZLMACT-ERNAM.

field WK_ZLMACT-DISP_NOTE.

endchain.

field WK_ZLMACT-SEL

module TABCTL_ZLMACT_mark on request.

endloop.

at this point all the data is in my internal table WT_ZLMACT as it is on the screen.

From here it would be up to you to edit, move and save this data as you need.