2009 Sep 18 2:49 PM
Hi,
Am using in my called program with the beleow statement . but am not able to return back to calling program even if use Return statement. i want to return back from called program to calling program.
Submit Reoprt1 free selections it_texpr .
Hi,
Am using in my called program with the beleow statement . but am not able to return back to calling program even if use Return statement. i want to return back from called program to calling program.
Submit Reoprt1 free selections it_texpr .
2009 Sep 21 1:34 PM
hi. it will Return if ur not using with option "USING SELECTION-SCREEN".
jUST SEE THESE TWO PROGRAMS (copied the example code in sap-help)
REPORT ZREPORT2.
TYPE-POOLS rsds.
DATA: trange TYPE rsds_trange,
trange_line
LIKE LINE OF trange,
trange_frange_t_line
LIKE LINE OF trange_line-frange_t,
trange_frange_t_selopt_t_line
LIKE LINE OF trange_frange_t_line-selopt_t,
texpr TYPE rsds_texpr.
trange_line-tablename = 'SPFLI'.
trange_frange_t_line-fieldname = 'CONNID'.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'BT'.
trange_frange_t_selopt_t_line-low = '0200'.
trange_frange_t_selopt_t_line-high = '0800'.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
trange_frange_t_selopt_t_line-sign = 'I'.
trange_frange_t_selopt_t_line-option = 'NE'.
trange_frange_t_selopt_t_line-low = '0400'.
APPEND trange_frange_t_selopt_t_line
TO trange_frange_t_line-selopt_t.
APPEND trange_frange_t_line TO trange_line-frange_t.
APPEND trange_line TO trange.
CALL FUNCTION 'FREE_SELECTIONS_RANGE_2_EX'
EXPORTING
field_ranges = trange
IMPORTING
expressions = texpr.
SUBMIT zreport1 WITH FREE SELECTIONS texpr and return.
write : 'hello'.
::::::::::::::::::::::::
The Second Report with logocal data base F1S
REPORT ZREPORT1.
NODES: spfli, sflight, sbook.
*****any code**********
Note : if you are using Selection-screen of the Report1 (logical Data base it will not come back u need to write code for that in start-of-selection. to leave the screen and return back to calling prog.)
2009 Sep 21 2:13 PM
hi Expert,
actually i wrote the logic as u mentioned but and return not working am not using via selection-screen...also
plz help me on this..
2009 Sep 21 10:50 PM
Did you use SUBMIT with RETURN statement? Check sap help on SUBMIT and also see the called program in debug if there is any call screens or some wierd statements
2009 Sep 22 12:05 PM
Hi raju,
am writing below statement in module pool program. actually Report1 is a Standard Transaction QM10
when 'sy-ucomm'.
submit Report1 with free selections texar.
i tried with and return also but its not working...please helop on this.....thanks for ur replying....
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |