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: 

Call a Program

Former Member
0 Kudos
182

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
65

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos
66

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

0 Kudos
65

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)

0 Kudos
65

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

0 Kudos
65

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