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

T/f data From Table Control Back to abap program

Former Member
0 Likes
542

Hi,

How can we transfer table control data after modification back to the abap program (in itab).

Thnx

sid

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
503

If you use the table control wizard, it will write code to handle this for you automatically. There will be a module within a loop inside the flow logic of the screen, which will UPdate the ITAB when changed.

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
504

If you use the table control wizard, it will write code to handle this for you automatically. There will be a module within a loop inside the flow logic of the screen, which will UPdate the ITAB when changed.

Regards,

Rich Heilman

Read only

0 Likes
503

For example, here is some screen flow logic. The BOLD code, is the part that will pass control to the ABAP for updating the ITAB.



PROCESS AFTER INPUT.
* PAI FLOW LOGIC FOR TABLECONTROL 'ITABCON'
<b>  LOOP AT Itab.
    CHAIN.
      FIELD  Itab-CHECK.
      MODULE I_itabCON_MODIFY ON CHAIN-REQUEST.
    ENDCHAIN.
  ENDLOOP.</b>


  MODULE USER_COMMAND_0200.


Now the specific module that updates the ITAB.



module i_intrcon_modify input.

  <b>modify itab index itabcon-current_line.</b>

endmodule.


Regards,

Rich Heilman

Read only

0 Likes
503

Thnx Rich.