Application Development 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: 

module pool

Former Member
0 Kudos
58

i wouldlike to loop through the table control and o call another transaction so how to do.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
33

Hi

U can do it the statament EXIT FROM STEP-LOOP to exit from LOOP/ENDLOOP of table control and than call the new trx:

PROCESS PAI.

LOOP AT .....

MODULE EXIT.

ENDLOOP.

MODULE CALL_TRANSACTION.

MODULE EXIT.

IF .......

FL_CALL_TRX = 'X'.

EXIT FROM STEP-LOOP.

ENDIF.

ENDMODULE.

MODULE CALL_TRANSACTION.

CHECK FL_CALL_TRX.

CALL TRANSACTION .......

ENDMODULE.

Max

1 REPLY 1

Former Member
0 Kudos
34

Hi

U can do it the statament EXIT FROM STEP-LOOP to exit from LOOP/ENDLOOP of table control and than call the new trx:

PROCESS PAI.

LOOP AT .....

MODULE EXIT.

ENDLOOP.

MODULE CALL_TRANSACTION.

MODULE EXIT.

IF .......

FL_CALL_TRX = 'X'.

EXIT FROM STEP-LOOP.

ENDIF.

ENDMODULE.

MODULE CALL_TRANSACTION.

CHECK FL_CALL_TRX.

CALL TRANSACTION .......

ENDMODULE.

Max