Skip to Content
0
Former Member
Jun 07, 2007 at 11:13 AM

Why Control is not coming back, even though I used the RETURN in SUBMIT?

20 Views

Hi Experts,

I am using SUBMIT statement in 2 ways in a z_BAPi,

I st case,

SUBMIT my_prog

WITH SELECTION-TABLE t_param

AND RETURN.

2nd case

submit my_prog

WITH ss_stats IN ss_stats1

WITH s_sdate IN ss_stats2

AND RETURN.

as sson as the control encoutering the SUBMIT statement, its shifting to my_prog. and the control flow is like,

1 - SELECTs - SQLs,

2- very first REPORT statemnt,

3- again START-OF-SELECTION

i.e. the control is not coming back from my_prog. to z_BAPi

In debug mode,

1) the selection screen is coming, there I am presising F8 manually!

2)I forcebly (by using CALL FUNCTION z_BAPi in my_prog.) shifted the control from my_prog. to Z_BAPi and then its working well, I mean, the control is coming along with output and importing the data into z_BAPi_itab i.e. purpose solved!

3) even though my_prog does hv the END-OF-SELECTION,

bit its not triggering!

So,

1 - Why the control is not coming back from my_prog (report prog.)to z_BAPi)?

Thank you,

Message was edited by:

Srikhar

Message was edited by:

Srikhar

Message was edited by:

Srikhar