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

submit_report

Former Member
0 Likes
1,184

Hi all,

I used the function module SUBMIT_REPORT in a new program e.g 'ZREPORT' to call a standard program using a variant. And here it works fine. But when I define this ZREPORT program in a transaction code, now when i execute this transaction it works fine with the selection screen but i'm not able to get out of the selection screen. i.e No back,exit and stop button is working. should i need to define the GUI status here or is there anything i'm missing out in the function module.

-Anbu.

1 ACCEPTED SOLUTION
Read only

GauthamV
Active Contributor
0 Likes
765

Did you pass this variable ?


                    RET_VIA_LEAVE = SPACE.

3 REPLIES 3
Read only

GauthamV
Active Contributor
0 Likes
766

Did you pass this variable ?


                    RET_VIA_LEAVE = SPACE.

Read only

Former Member
0 Likes
765

Hi ;

PFB one example.

CALL FUNCTION 'SUBMIT_REPORT'

EXPORTING

REPORT = L_V_REPID

RET_VIA_LEAVE = SPACE

  • SKIP_SELSCREEN = C_X

TABLES

SELECTION_TABLE = FP_IT_SELECTION

EXCEPTIONS

JUST_VIA_VARIANT = 1

NO_SUBMIT_AUTH = 2

OTHERS = 3.

Regards

Read only

Former Member
0 Likes
765

Hi,

Try to use SUBMIT statement for this purpose if it helps you......SUMBIT program name WITH parameters = value AND RETURN.