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

Submit and not return ?

former_member194669
Active Contributor
0 Likes
3,462

I have a report A and i am calling report B from A

while calling report B from A , i don't need wait for report B to be finished.

My requirment is after submit report B system needs to comeback immediately without waiting

I tried with submit without return but it not working

How to do it

Chan

12 REPLIES 12
Read only

Former Member
0 Likes
2,375

Hi,

If you don't need to wait for report B, I think you should use SUBMIT with RETURN...

Ganga

Read only

former_member194669
Active Contributor
0 Likes
2,375

But how you see report B is finished or not

Any transaction code to see that

Chan

Read only

0 Likes
2,375

There are a few options that you have...

if your report B produces a list output, you can use the addition EXPORTING LIST TO MEMORY with SUBMIT statement. This will keep the list output in the memory, which can be retrieved later using the function LIST_FROM_MEMORY

if your report does some database updates, you can of course check the relevant tables at a later stage...

please specify your requirement in bit more detail to get specific answers....

Read only

0 Likes
2,375

I need to create jpb and submit but without using JOB_OPEN

Chan

Read only

0 Likes
2,375

another option is....have a wrapper function module for your report B...that means...write the code for SUBMIT in this function module...and then call this FM from report A with STARTING NEW TASK option. To retrieve the results later, you can use the RETRIEVE RESULTS FROM statement.

Try it..it might just work for you

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
2,375

> I need to create jpb and submit but without using JOB_OPEN

Hello Keshav,

For submitting the report as a background job you need to use the JOB_OPEN FM which OP does not want to use

Cheers,

Suhas

Read only

0 Likes
2,375

Ohh ... I didnt see that

Read only

Former Member
0 Likes
2,375

Hi Boss,

You can create a FM which contains this Program and use CALL FUNCTION func STARTING NEW TASK

Hope this will serve your purpose.

Regards

Ramchander Rao.K

Read only

Former Member
0 Likes
2,375

Hi,

As far as I can see It is not possible to return without full execution of report B,

However there is one way out instead of submitting you can shedule the report B to execute in background and can continue your processing with A.

Regards

Bikas

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,375

Why not submit program B as a JOB ?

What about Submit Via Job name ...

submit Z123

with S_PERNR IN ITAB

via job v_jobname

number v_jobcount

to sap-spool without spool dynpro

spool parameters w_params

and return.

Keshav

Edited by: Keshav.T on Feb 16, 2010 2:09 PM

Edited by: Keshav.T on Feb 16, 2010 2:11 PM

Read only

Former Member
0 Likes
2,375

Hi ,

You can use SUBMIT and RETURN.

Later check output of the program called through submit, using transaction 'SP02'.

Regards,

Salil Sonam.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,375

This message was moderated.