‎2009 Aug 19 12:32 PM
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 .
‎2009 Aug 19 12:43 PM
After message in report 'yyy' add the following statement:
Leave to transaction <tcode of report yyy>.
‎2009 Aug 19 12:44 PM
Try without using RETURN
SUBMIT YYY
WITH p_rep_g EQ 'X'
WITH s_partno-low = wa_scr300-mfg_part_no1.
Regards,
Nagaraj