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: 

Submit Report and return

Former Member
0 Kudos
209

Hi All,

I am using the submit statement to call my report. In my report I call another modal dialog box. My issue is I get blocked on the dialog box and the screen gets hanged. I have no option but to kill the session. I want the control to come back to my calling report after I have done my processing on the dialog box.

Kindly help as this is really urgent.

Thanks in advance.

Thanks & Regards,

Anju

10 REPLIES 10

Former Member
0 Kudos
138

HI,

Are you using RETURN after submitting report.

if not then try SUBMIT <report>

and RETURN

Hope it works .

Reward if helpful.

0 Kudos
138

Yes I am using and return after submit. But still its not working.

It gets blocked on the modal dialog box.

Regards,

Anju

Former Member
0 Kudos
138

Hi,

Modal dialog box - Do you mean a custom designed screen or using some FM to display a dialog box?

If you are using custom screen in PAI afte your processing logic use LEAVE TO SCREEN 0 statement. It will bring the control back to the report where you called that modal dialog.

Example:

Process After Input.

Module User_Command.

Module USER_COMMAND.

Perform do_process.

Leave to screen 0.

Endmodule.

Use Submit <report_name> AND RETURN when you submit to the report.

Thanks and Regards,

Lakshmi.

Former Member
0 Kudos
138

Hi,

Try using LEAVE SCREEN or LEAVE TO SCREEN 0 in the PAI

0 Kudos
138

I am doing that too....:(

Regards,

Anju

former_member223537
Active Contributor
0 Kudos
138

Hi,

If your program is having Modal dialog box, then use BDC instead of SUBMIT AND RETURN.

Else modify the program to display modal dialog box only when executed in foreground.

Best regards,

Prashant

Former Member
0 Kudos
138

Can you post the code you have written.

former_member182485
Active Contributor
0 Kudos
138

Use Submit and Return.

Former Member
0 Kudos
138

Hi,

Try using BDC for that.

Thanks,

Sriram Ponna.

megha_h
Participant
0 Kudos
138

Hi Anju,

I think, this is happening because you dont any event on the dialog screen which will process the PAI. create back button and in PAI check for back. on back use leave to screen 0.

-


Process on Output.

module status.

Process on input.

Module check.

-


module status output.

set pf-status 'PF100'.

  • in PF100 , set BACK func code for back button

endmodule.

module check input.

case sy-ucomm.

when 'BACK'. leave to screen 0.

endcase.

endmodule.

Reward points if useful.

Regards

Megha