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

Call a Program

Former Member
0 Likes
712

Hi everyone,

I created batch input program for sap banking that create massive loans and edit this loans for the loan type 33D. now I want to Call again the start of selection part of my program.

how can I do that?

Thanks in advanced,

Fidel Peralta

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
595

You want to call the selection screen again while still in the program. You can say LEAVE TO TRANSACTION 'YOUR_TRANSACTION'. This will leave the current processing of your program and "start-it-over". Is this what you are looking for.

Regards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
596

You want to call the selection screen again while still in the program. You can say LEAVE TO TRANSACTION 'YOUR_TRANSACTION'. This will leave the current processing of your program and "start-it-over". Is this what you are looking for.

Regards,

Rich Heilman

Read only

0 Likes
595

Not really, what I want is to start the processing again without going to the selection screen.

I have two subroutines. one for the selections and the other one for the output. what I want is to start the chain of events all over again. (execute the program again without going to the selection screen)

Read only

0 Likes
595

How many times you want to run it. Is there any conditional for exit ?

You can use loop for that. Loop at itab , in case using internal table for data, do n time, if you want to run fixed time, or while for conditional loop.

put your processing in the loop.

Regards,

Gagan

Read only

0 Likes
595

Ok, for example....




START-OF-SELECTION.

PERFORM GET_DATA.
PERFORM OUPUT.


Can you not just call the subroutines again? At what point to you want to do this. You need some trigger.

Regards,

Rich Heilman