2008 Jun 11 6:57 AM
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
2008 Jun 11 7:06 AM
HI,
Are you using RETURN after submitting report.
if not then try SUBMIT <report>
and RETURN
Hope it works .
Reward if helpful.
2008 Jun 11 7:09 AM
Yes I am using and return after submit. But still its not working.
It gets blocked on the modal dialog box.
Regards,
Anju
2008 Jun 11 7:11 AM
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.
2008 Jun 11 7:14 AM
2008 Jun 11 7:17 AM
2008 Jun 11 7:38 AM
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
2008 Jun 11 9:42 AM
2008 Jun 11 9:53 AM
2008 Jun 11 10:04 AM
2008 Jun 11 1:18 PM
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