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

Stack over after Calling a module pool N times

Former Member
0 Likes
584

Hi Experts,

There is a module pool 'A' which exports to memory a table and executes a CALL TRANSACTION 'B' (another module pool).

After saving program B, I must execute it again 'n times' without returning to caller program 'A', until I choose BACK.

So I wrote, WHEN 'SAVE'...CALL TRANSACTION 'B', in order to save-call itself-save-call itself-etc.

The problem is that after calling itself 5 times, the stack is over and it leaves program.

I tried using LEAVE TO CURRENT TRANSACTION, but it doesn't works because when I save B it goes out from program to SAP menu, instead of recalling itself.

Is there any way of doing this or deleting the stack?

Please help me out in this.

Thanks in Advance,

Lilian.

3 REPLIES 3
Read only

Former Member
0 Likes
479

Hi,

Instead of using the Call screen NNNN, use the Leave to scree NNN, then the stock will not overflow

Regards

Sudheer

Read only

0 Likes
479

I'm not using CALL SCREEN nnn, but CALL TRANSACTION.

Read only

0 Likes
479

I need to initialize everything and to fill internal tables again each time I save. If I LEAVE TO SCREEN nnn, the program begins again, but tables are not initialized.