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

Ragarding For Submit statement with free selection

Former Member
0 Likes
874

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 .

4 REPLIES 4
Read only

Former Member
0 Likes
609

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.)

Read only

0 Likes
609

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..

Read only

former_member191735
Active Contributor
0 Likes
609

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

Read only

0 Likes
609

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....