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

Problem with Submit program...

Former Member
0 Likes
338

Dear Friends,

I am facing a problem in submit report ,

I am submiting YYY report from my XXX report with some selection screen values ( Directly calling the YYY report out put ),

now if the data selection part is failed in YYY program I am givinf a information message " No data found " and the report should come back to YYY report selection screen.

but its coming back to my first report XXX.

This is the logic which I used :

SUBMIT YYY

WITH p_rep_g EQ 'X'

WITH s_partno-low = wa_scr300-mfg_part_no1

AND RETURN.

Its directly calling the YYY report out put if there is some data, but if there is no data in YYY report its coming back to my XXX report selection, I don't want it, it should go second report ( YYY ) selection screen.

If possible one more here : if the data is selected in my second report ( YYY ) and from that report ( YYY ) disply I pressed the back button then also it should come to the YYY report selection screen.

hope you understand my problem

Thanks,

Sridhar .

2 REPLIES 2
Read only

former_member188827
Active Contributor
0 Likes
312

After message in report 'yyy' add the following statement:

Leave to transaction <tcode of report yyy>.

Read only

former_member404244
Active Contributor
0 Likes
312

Try without using RETURN

SUBMIT YYY

WITH p_rep_g EQ 'X'

WITH s_partno-low = wa_scr300-mfg_part_no1.

Regards,

Nagaraj