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

CHAIN ENDCHAIN for a table control

former_member191562
Participant
0 Likes
1,769

Hi all,

I have my screen logic like this,

PROCESS AFTER INPUT.

LOOP AT tc_li_itab.

MODULE read_tc.

ENDLOOP.

MODULE process.

MODULE usercommand_0110._

I want to implement CHAIN and ENDCHAIN for the underlined modules. How can i do that???

I

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
951

Hi

The code is always the same, but the place where it has to be inserted depends on which fields have to be managed.

If they are table control field it needs to insert in the loop of PAI

 LOOP AT tc_li_itab.
  CHAI,
     FIELD: <field1>,
               <field2>,
               .............
     MODULE process.
  ENDCHAIN.
ENDLOOP.

else out of loop:

 LOOP AT tc_li_itab.
ENDLOOP.

  CHAI,
     FIELD: <field1>,
               <field2>,
               .............
     MODULE process.
  ENDCHAIN.

Max

Hi all,

I have my screen logic like this,

PROCESS AFTER INPUT.

LOOP AT tc_li_itab.

MODULE read_tc.

ENDLOOP.

MODULE process.

MODULE usercommand_0110._

I want to implement CHAIN and ENDCHAIN for the underlined modules. How can i do that???

I

1 REPLY 1
Read only

Former Member
0 Likes
952

Hi

The code is always the same, but the place where it has to be inserted depends on which fields have to be managed.

If they are table control field it needs to insert in the loop of PAI

 LOOP AT tc_li_itab.
  CHAI,
     FIELD: <field1>,
               <field2>,
               .............
     MODULE process.
  ENDCHAIN.
ENDLOOP.

else out of loop:

 LOOP AT tc_li_itab.
ENDLOOP.

  CHAI,
     FIELD: <field1>,
               <field2>,
               .............
     MODULE process.
  ENDCHAIN.

Max